:root {
  /* Interactions:** */
  --cream: #faf3e8;
  --linen: #f0e6d4;
  --gold: #c8a96e;
  --umber: #3a2518;
  --charcoal: #4a3f35;
  --sienna: #a0522d;
  --rose: #d4956a;
  --cocoa: #1e1410;
  --display: "Jost", "Futura", "Inter", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --accent: "DM Sans", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.background-grid {
  position: fixed;
  inset: -12vh -12vw;
  width: 124vw;
  height: 124vh;
  z-index: -2;
  opacity: 0.34;
}

.studio-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid #c8a96e45;
  border-radius: 999px;
  background: #faf3e8d9;
  box-shadow: 0 8px 32px #3a251820;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  backdrop-filter: blur(10px);
}

.studio-nav.visible { opacity: 1; transform: translateY(0); }

.studio-nav a, .label, figcaption, .eyebrow {
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
}

.studio-nav a {
  color: var(--charcoal);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease, box-shadow 0.6s ease;
  border-radius: 999px;
}

.studio-nav a:hover {
  color: var(--sienna);
  transform: scale(1.03);
  box-shadow: 0 0 12px 4px #c8a96e00;
  animation: hoverPulse 0.6s ease;
}

.studio-nav span { width: 24px; height: 1px; background: #c8a96e80; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #f0e6d4 0%, #faf3e8 54%, #d4956a22 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 40px #1e141015;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  width: min(68vw, 820px);
  height: min(58vh, 560px);
  opacity: 0;
  transform: scale(1.08) rotate(-2deg);
  animation: photoArrive 8s ease-out 0.4s forwards;
  background:
    radial-gradient(circle at 50% 45%, #1e1410 0 10%, #4a3f35 10% 18%, #c8a96e 18% 20%, transparent 21%),
    linear-gradient(135deg, #a0522d, #d4956a 45%, #f0e6d4);
}

.photo-treatment {
  position: relative;
  border-radius: 4px;
  filter: sepia(25%) contrast(0.92) saturate(0.85) brightness(1.05);
  box-shadow: 0 8px 32px #3a251820;
  overflow: hidden;
}

.photo-treatment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8a96e15 0%, #d4956a15 100%);
  pointer-events: none;
}

.camera-body {
  position: absolute;
  left: 15%;
  top: 34%;
  width: 70%;
  height: 36%;
  border-radius: 14px;
  background: linear-gradient(90deg, #3a2518, #a0522d 35%, #4a3f35);
  box-shadow: inset 0 0 40px #1e141080;
}

.camera-lens {
  position: absolute;
  left: 43%;
  top: 38%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 14px solid #c8a96e;
  background: radial-gradient(circle, #faf3e8 0 8%, #1e1410 9% 38%, #4a3f35 39% 70%, #d4956a 71%);
}

.film-strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 100%;
  background: repeating-linear-gradient(to bottom, #1e1410 0 16px, #faf3e8 16px 25px, #1e1410 25px 41px);
  opacity: 0.65;
}

.hero-lines {
  position: absolute;
  width: 110vw;
  height: 110vh;
  transform: rotate(7deg);
  opacity: 0.42;
}

.draw-line, .station-lines path {
  fill: none;
  stroke: #c8a96e;
  stroke-width: 1;
  stroke-opacity: 0.45;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: drawGrid 2s ease 0.4s forwards;
}

.hero-title-wrap { position: relative; z-index: 2; text-align: center; opacity: 0; animation: titleIn 1.2s ease 0.4s forwards; }

.eyebrow { margin: 0 0 10px; color: var(--gold); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--umber);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(4rem, 12vw, 9rem); }
h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

.down-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  opacity: 0;
  animation: arrowAppear 0.6s ease 2s forwards, arrowPulse 3s ease-in-out 2.6s infinite;
}

.down-arrow span {
  display: block;
  width: 24px;
  height: 24px;
  margin: 5px auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

.content-river {
  display: grid;
  grid-template-columns: 1fr min(38em, 90%) 1fr;
}

.design-ledger {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.content-river > * { grid-column: 2; }
.full-bleed { grid-column: 1 / -1; }

.narrative-station {
  position: relative;
  margin: clamp(120px, 15vh, 200px) 0;
  min-height: 70vh;
  box-shadow: inset 0 0 120px 40px #1e141015;
}

.section-rule {
  height: 1px;
  margin: 0 -10vw 72px;
  background: linear-gradient(90deg, transparent, #c8a96e, transparent);
  opacity: 0.65;
}

.station-frame, .closing-card, .archive-copy {
  position: relative;
  padding: clamp(28px, 5vw, 64px);
  background: #f0e6d4d9;
  border-radius: 4px;
  box-shadow: 0 8px 32px #3a251820;
}

.station-frame::before, .closing-card::before, .dark-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-top: 2px solid #c8a96e40;
  border-left: 2px solid #c8a96e40;
  pointer-events: none;
}

.label { color: var(--gold); margin: 0 0 18px; }

.organic-copy p, .dark-panel p, .archive-copy p, .closing-card p, .workbench-card p { max-width: 38em; }

.float-photo {
  float: left;
  width: min(42vw, 280px);
  height: 360px;
  margin: 10px 34px 20px -38px;
  shape-outside: ellipse(45% 50% at 50% 50%);
  clip-path: ellipse(45% 50% at 50% 50%);
  background: radial-gradient(ellipse at 50% 40%, #c8a96e 0 14%, #4a3f35 15% 30%, #a0522d 31% 58%, #d4956a 59% 100%);
}

.float-photo figcaption {
  position: absolute;
  bottom: 22px;
  left: 40px;
  color: var(--cream);
  z-index: 1;
}

.aperture-mark {
  position: absolute;
  inset: 28%;
  border: 2px solid #faf3e8aa;
  border-radius: 50%;
  background: repeating-conic-gradient(from 15deg, #1e141060 0 20deg, transparent 20deg 40deg);
}

.station-lines {
  width: 80%;
  margin: 50px 0 0 15%;
  opacity: 0.8;
}

.overlap-station {
  min-height: 780px;
}

.dark-panel {
  position: relative;
  width: min(620px, 90vw);
  margin-left: -8vw;
  padding: clamp(32px, 6vw, 74px);
  background: linear-gradient(135deg, #1e1410, #3a2518 70%, #a0522d);
  color: var(--cream);
  border-radius: 4px;
  box-shadow: 0 18px 50px #1e141050;
}

.dark-panel h2, .dark-panel p { color: var(--cream); }

.workbench-card {
  position: absolute;
  right: -10vw;
  bottom: 8vh;
  width: min(420px, 72vw);
  padding: 38px;
  background: linear-gradient(135deg, #f0e6d4, #d4956a55), repeating-linear-gradient(90deg, transparent 0 32px, #c8a96e24 32px 33px);
}

.archive-station { display: grid; gap: 48px; }

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transform: rotate(-1.5deg);
}

.frame {
  min-height: 260px;
  display: grid;
  place-items: end start;
  padding: 22px;
  background: radial-gradient(circle at 35% 30%, #faf3e8 0 12%, transparent 13%), linear-gradient(135deg, #a0522d, #d4956a 50%, #c8a96e);
  border: 10px solid var(--linen);
}

.frame span {
  font-family: var(--accent);
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.closing-station { min-height: 62vh; display: grid; place-items: center; }
.closing-card { text-align: left; }

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--sienna);
  font-family: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease, box-shadow 0.6s ease;
}

.text-link:hover { color: var(--gold); animation: hoverPulse 0.6s ease; }

.flare {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4956a 0%, #d4956a55 35%, transparent 72%);
  animation: flarePulse 4s ease-in-out infinite;
  pointer-events: none;
}

.flare-one { left: 18vw; top: 28vh; animation-delay: 0.2s; }
.flare-two { right: 24vw; bottom: 22vh; animation-delay: 1.4s; }
.flare-three { right: 10vw; top: 18vh; animation-delay: 2.1s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.in-view:nth-child(2) { transition-delay: 150ms; }
.reveal.in-view:nth-child(3) { transition-delay: 300ms; }

@keyframes titleIn { to { opacity: 1; } }
@keyframes photoArrive { 0% { opacity: 0; transform: scale(1.08) rotate(-2deg); } 18%, 100% { opacity: 0.5; transform: scale(1) rotate(-2deg); } }
@keyframes drawGrid { to { stroke-dashoffset: 0; } }
@keyframes arrowAppear { to { opacity: 1; } }
@keyframes arrowPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes flarePulse { 0%, 100% { opacity: 0.3; transform: scale(0.9); } 50% { opacity: 0.7; transform: scale(1.18); } }
@keyframes hoverPulse { 0% { box-shadow: 0 0 0 0 #c8a96e80; } 100% { box-shadow: 0 0 12px 4px #c8a96e00; } }

@media (max-width: 760px) {
  .studio-nav { right: 12px; left: 12px; justify-content: center; gap: 6px; padding: 10px; }
  .studio-nav span { width: 10px; }
  .float-photo { float: none; margin: 0 0 24px; width: 100%; clip-path: ellipse(48% 50% at 50% 50%); }
  .dark-panel { margin-left: 0; width: 100%; }
  .workbench-card { position: relative; right: auto; bottom: auto; margin-top: -30px; width: 92%; justify-self: end; }
  .contact-sheet { grid-template-columns: 1fr; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
