/* =========================================================
   Home / One-Pager specific styles
========================================================= */

/* ---------- Hero ---------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
}
#hero .hero-media {
  position: absolute;
  inset: -8% -4%;
  z-index: 1;
}
#hero .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 48% 34%;
  filter: grayscale(0.4) contrast(1.08);
  will-change: transform;
}
#hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(6,6,7,0.55) 0%, rgba(6,6,7,0.05) 30%, rgba(6,6,7,0.15) 60%, rgba(6,6,7,0.92) 100%);
}
#hero .hero-content {
  position: relative; z-index: 3;
  padding: 0 var(--edge) 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#hero .hero-name {
  font-weight: 700;
  font-size: var(--display);
  line-height: .92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
#hero .hero-name span { display: block; }
#hero .hero-tagline {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: var(--body);
}
#hero .hero-tagline strong { color: var(--fg); font-weight: 500; }
#hero .scroll-cue {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
#hero .scroll-cue .line {
  width: 1px; height: 34px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
#hero .scroll-cue .line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--fg);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- About ---------- */
#about {
  position: relative;
  padding: 150px var(--edge) 130px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
#about .about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}
#about .about-photo img {
  position: absolute; inset: -10% -6%;
  width: 120%; height: 120%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  will-change: transform;
}
#about h2 {
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
#about h2 em { font-style: normal; color: var(--accent); }
#about p {
  color: var(--muted);
  font-size: var(--body);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 16px;
}
#about .about-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
#about .about-cta:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  #about { grid-template-columns: 1fr; padding-top: 110px; }
  #about .about-photo { max-width: 340px; }
}

/* ---------- Work intro ---------- */
#work-intro {
  padding: 90px var(--edge) 0;
  border-top: 1px solid var(--line);
}
#work-intro h3 {
  font-size: var(--display-md);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

/* ---------- Project stack ---------- */
#work {
  position: relative;
}
.proj-panel {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.proj-panel .panel-media {
  position: absolute; inset: 0;
}
.proj-panel .panel-media picture {
  display: block;
  width: 100%; height: 100%;
}
.proj-panel .panel-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  transition: filter .6s ease;
  filter: grayscale(0.55) brightness(.62) contrast(1.05);
  will-change: transform;
}
.proj-panel:hover .panel-media img {
  filter: grayscale(0.1) brightness(.72) contrast(1.08);
}
.proj-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,7,0.05) 0%, rgba(6,6,7,0.75) 100%);
  pointer-events: none;
}
.proj-panel .panel-body {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--edge) 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.proj-panel .panel-heading {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 76%;
}
.proj-panel .panel-index {
  font-size: .85rem; color: var(--muted); letter-spacing: .1em;
}
.proj-panel .panel-cat {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500;
}
.proj-panel[data-cat="Fotografie"] .panel-cat { color: var(--gold); }
.proj-panel[data-cat="Design"] .panel-cat { color: var(--blue); }
.proj-panel .panel-title {
  font-size: var(--display);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
@media (min-width: 761px) {
  .proj-panel .panel-title.panel-title--tight {
    font-size: calc(var(--display) * 0.94);
  }
}
.proj-panel .panel-desc {
  color: var(--muted);
  max-width: 44ch;
  font-size: var(--body);
  line-height: 1.6;
  display: none;
}
.proj-panel .panel-cta {
  flex-shrink: 0;
  width: clamp(60px, 7vw, 86px);
  height: clamp(60px, 7vw, 86px);
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.proj-panel .panel-cta svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.proj-panel:hover .panel-cta {
  background: var(--fg);
  border-color: var(--fg);
}
.proj-panel:hover .panel-cta svg { transform: rotate(45deg); color: #0b0b0c; }

@media (max-width: 760px) {
  .proj-panel { align-items: flex-end; }
  .proj-panel .panel-body { flex-direction: column; align-items: flex-start; gap: 20px; }
  .proj-panel .panel-heading { max-width: 100%; }
  .proj-panel .panel-title { font-size: clamp(2.6rem, 13vw, 5rem); }
}
