@font-face {
  font-family: "Atelier Serif";
  src: local("Iowan Old Style"), local("Palatino Linotype"), local("Book Antiqua");
  font-display: swap;
}

:root {
  --ink: #f7f0e2;
  --muted: #d4c8b5;
  --coal: #17130f;
  --panel: rgba(22, 17, 12, 0.78);
  --panel-deep: rgba(17, 13, 9, 0.91);
  --line: rgba(247, 240, 226, 0.28);
  --clay: #c97855;
  --sage: #9bab87;
  --camera-x: 0px;
  --camera-y: 0px;
  --camera-z: 1;
  --camera-turn: 0deg;
  --foreground-x: 0px;
  --head-bob: 0px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--coal); }
body {
  margin: 0;
  background: #1c1712;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #18130f;
  background: #fffaf0;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 48px);
  background: linear-gradient(to bottom, rgba(12, 9, 7, 0.9), transparent);
  pointer-events: none;
}
.site-header a { pointer-events: auto; }
.wordmark { width: clamp(138px, 13vw, 205px); }
.wordmark img, .footer-wordmark img { width: 100%; height: auto; }
.back-link, .site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.72rem/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.back-link { justify-self: start; }
.site-nav { justify-self: end; display: flex; gap: 22px; }
.site-nav a { position: relative; }
.site-nav a::after, .back-link::after {
  content: "";
  position: absolute;
  inset: auto 0 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after,
.back-link:hover::after, .back-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.station-progress {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: clamp(10px, 2vw, 30px);
  width: 122px;
  transform: translateY(-50%);
  padding: 14px 12px 13px;
  border: 1px solid var(--line);
  background: var(--panel-deep);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.station-progress p { margin: 0 0 10px; }
.station-progress p span,
.station-progress p strong {
  display: block;
  font-family: Arial, sans-serif;
}
.station-progress p span { color: var(--muted); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; }
.station-progress p strong { margin-top: 3px; font-size: 0.72rem; }
.station-progress ol { list-style: none; padding: 0; margin: 0; position: relative; }
.station-progress ol::before {
  content: "";
  position: absolute;
  top: 21px;
  bottom: 21px;
  left: 21px;
  width: 1px;
  background: var(--line);
}
.station-progress li { position: relative; }
.station-progress li:nth-child(even) a { padding-left: 34px; }
.station-progress a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px 5px 14px;
  text-decoration: none;
  font: 700 0.58rem/1.1 Arial, sans-serif;
  letter-spacing: 0.04em;
}
.station-progress a i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #261e17;
  transition: transform 180ms ease, background 180ms ease;
}
.station-progress a[aria-current="step"] i { background: var(--clay); transform: scale(1.5); }
.station-progress a[aria-current="step"] span { color: #fff; }
.station-progress .route-exit a i { border-radius: 0; transform: rotate(45deg); }

.station {
  position: relative;
  min-height: 280svh;
  contain: layout paint;
  background: #16120e;
}
.scene-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  perspective: 1200px;
  isolation: isolate;
}
.scene-picture,
.scene-picture img,
.scene-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-picture {
  z-index: -3;
  overflow: hidden;
  background: #17130f;
  transform: translate3d(var(--camera-x), calc(var(--camera-y) + var(--head-bob)), 0) rotate(var(--camera-turn)) scale(var(--camera-z));
  transform-origin: center;
  will-change: transform;
}
.scene-picture img { object-fit: cover; }
.scene-vignette {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 9, 6, 0.56) 0%, transparent 34%, transparent 69%, rgba(12, 9, 6, 0.48) 100%),
    linear-gradient(0deg, rgba(12, 9, 6, 0.52) 0%, transparent 30%, rgba(10, 8, 6, 0.24) 100%);
}
.photo-panel {
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(145deg, var(--panel), rgba(18, 14, 10, 0.9));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(9px);
}
.entrance-copy, .station-copy {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 7vw, 110px);
  bottom: clamp(28px, 8vh, 100px);
  width: min(560px, calc(100vw - 200px));
  padding: clamp(22px, 3vw, 42px);
  transform: translate3d(calc(var(--foreground-x) * -0.34), calc(var(--head-bob) * -0.25), 70px);
  will-change: transform;
}
.station:nth-of-type(even) .station-copy { left: auto; right: clamp(155px, 12vw, 210px); }
.station-kicker, .category {
  margin: 0 0 9px;
  color: #dfcbbb;
  font: 700 0.68rem/1.35 Arial, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; font-family: "Atelier Serif", Georgia, serif; font-weight: 400; line-height: 0.95; text-wrap: balance; }
h1 { font-size: clamp(3.8rem, 7.5vw, 8.6rem); letter-spacing: -0.055em; }
.station-copy h2 { max-width: 12ch; font-size: clamp(3rem, 5.6vw, 7rem); letter-spacing: -0.05em; }
.station-copy p:not(.station-kicker, .category) { max-width: 52ch; margin: 20px 0 22px; color: #f2eadf; }
.entrance-copy > p:not(.station-kicker) { max-width: 48ch; margin: 18px 0 22px; }
.entrance-copy small { display: block; margin-top: 18px; color: var(--muted); font: 0.72rem/1.45 Arial, sans-serif; }
.category { margin-top: 14px; color: #cfbca7; letter-spacing: 0.1em; }
.primary-link, .project-link, .instagram-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font: 700 0.76rem/1 Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.primary-link:hover, .project-link:hover, .instagram-link:hover,
.primary-link:focus-visible, .project-link:focus-visible, .instagram-link:focus-visible {
  color: #1b1510;
  background: #fff7e8;
  border-color: #fff7e8;
}

.floor-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  text-shadow: 0 2px 10px #000;
}
.floor-cue span { width: 1px; height: 40px; background: rgba(255,255,255,0.7); }
.floor-cue b { font: 700 0.58rem/1 Arial, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }

.portfolio-surface {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #e8dfd0;
  box-shadow: 0 18px 35px rgba(0,0,0,0.48), 0 2px 5px rgba(0,0,0,0.65);
  transform-style: preserve-3d;
  transform: translate3d(var(--foreground-x), calc(var(--head-bob) * 0.55), 90px);
  will-change: transform;
}
.portfolio-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(67, 42, 20, 0.16);
  mix-blend-mode: multiply;
}
.portfolio-surface img { width: 100%; height: 100%; object-fit: cover; }
.worktable-faith {
  left: 38%; top: 46%; width: 38vw; height: 29vw;
  max-height: 43vh;
  transform: translate3d(var(--foreground-x), calc(var(--head-bob) * .55), 90px) perspective(850px) rotateX(63deg) rotateZ(-4deg) skewX(-3deg);
  transform-origin: 50% 100%;
}
.pinboard-breezy {
  left: 17.1%; top: 10.7%; width: 20.2vw; height: 31.4vh;
  transform: translate3d(calc(var(--foreground-x) * .42), calc(var(--head-bob) * .35), 50px) perspective(1000px) rotateY(1deg) rotateZ(-0.8deg);
}
.notebook-breezy {
  left: 34%; top: 78%; width: 31vw; height: 15vw;
  transform: translate3d(var(--foreground-x), calc(var(--head-bob) * .55), 100px) perspective(650px) rotateX(66deg) rotateZ(1deg);
  transform-origin: center bottom;
}
.passion-sheet {
  left: 11%; top: 54%; width: 25vw; height: 18vw;
  transform: translate3d(var(--foreground-x), calc(var(--head-bob) * .55), 90px) perspective(700px) rotateX(58deg) rotateZ(5deg);
}
.fitting-photo {
  left: 49%; top: 18%; width: 20vw; height: 51vh;
  padding: 7px;
  background: #e8e0d2;
  transform: translate3d(calc(var(--foreground-x) * .6), calc(var(--head-bob) * .35), 60px) perspective(900px) rotateY(-7deg) rotateZ(1.5deg);
}
.fitting-photo img { object-position: center top; }
.candy-board {
  left: 14%; top: 18%; width: 31vw; height: 44vh;
  padding: 7px;
  transform: translate3d(calc(var(--foreground-x) * .45), calc(var(--head-bob) * .35), 50px) perspective(900px) rotateY(-4deg) rotateZ(1deg);
}
.dangerous-left, .dangerous-right {
  top: 36%; width: 28.4vw; height: 35vw;
  max-height: 54vh;
  transform-origin: bottom center;
}
.dangerous-left {
  left: 20.5%;
  transform: translate3d(var(--foreground-x), calc(var(--head-bob) * .55), 100px) perspective(750px) rotateX(54deg) rotateZ(1deg) skewY(1deg);
}
.dangerous-right {
  left: 50%;
  transform: translate3d(var(--foreground-x), calc(var(--head-bob) * .55), 100px) perspective(750px) rotateX(54deg) rotateZ(-1deg) skewY(-1deg);
}

.js [data-reveal] { opacity: 0; transition: opacity 550ms ease, translate 550ms ease; translate: 0 20px; }
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.no-js [data-reveal] { opacity: 1; }

.exit {
  position: relative;
  padding: clamp(110px, 14vw, 190px) max(6vw, 24px) 90px;
  color: #261c15;
  background:
    linear-gradient(rgba(239, 229, 211, 0.92), rgba(239, 229, 211, 0.97)),
    url("assets/entrance.webp") center / cover;
}
.exit-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 8vw, 110px); }
.exit-grid > * { min-width: 0; }
.exit .station-kicker { color: #765743; }
.exit h2 { font-size: clamp(3rem, 6.8vw, 7.4rem); letter-spacing: -0.05em; }
.bio { max-width: 62ch; font-size: clamp(1.12rem, 1.6vw, 1.42rem); line-height: 1.55; }
.exit dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
.exit dl div { padding-top: 13px; border-top: 1px solid rgba(38,28,21,0.35); }
.exit dt, .contact-preview label, .contact-preview legend { font: 700 0.68rem/1.3 Arial, sans-serif; letter-spacing: 0.13em; text-transform: uppercase; }
.exit dd { margin: 9px 0 0; }
.disclosure { max-width: 65ch; padding: 16px 18px; border: 1px solid rgba(38,28,21,0.3); background: rgba(255,250,239,0.62); font: 0.8rem/1.55 Arial, sans-serif; }
.contact-preview { align-self: start; padding: clamp(24px, 4vw, 48px); color: var(--ink); background: #292019; box-shadow: 0 30px 80px rgba(46,31,20,0.2); }
.contact-preview h2 { font-size: clamp(2.4rem, 4vw, 4.8rem); }
.instagram-link { width: 100%; margin: 28px 0 34px; }
.contact-preview fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-preview legend { margin-bottom: 20px; color: #d7c1aa; }
.contact-preview label { margin-top: 8px; color: #d7c1aa; }
.contact-preview input, .contact-preview textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,0.28); border-radius: 0; color: #fff; background: rgba(255,255,255,0.07); }
.contact-preview fieldset:disabled { opacity: 1; }
.contact-preview input:disabled, .contact-preview textarea:disabled { opacity: 1; -webkit-text-fill-color: #b9aa9c; }
#contact-note { color: #cbbcae; font: 0.75rem/1.5 Arial, sans-serif; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 30px;
  padding: 52px max(6vw, 24px);
  border-top: 1px solid rgba(255,255,255,0.14);
  background: #15110e;
}
.footer-wordmark { width: 170px; }
.site-footer p { margin: 0; }
.site-footer p span, .site-footer small { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; font: 700 0.7rem/1 Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.site-footer small { justify-self: end; max-width: 38ch; font: 0.7rem/1.5 Arial, sans-serif; }

:focus-visible { outline: 2px solid #fff4dc; outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .back-link { grid-column: 2; grid-row: 1; }
  .site-nav { display: none; }
  .station-progress { width: 64px; }
  .station-progress p span, .station-progress a span { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .station-progress p strong { text-align: center; font-size: 0.58rem; overflow-wrap: anywhere; }
  .station-progress li:nth-child(even) a, .station-progress a { justify-content: center; padding: 5px; }
  .station-progress ol::before { left: 50%; }
  .entrance-copy, .station-copy, .station:nth-of-type(even) .station-copy { left: 22px; right: auto; width: min(560px, calc(100vw - 115px)); }
  .exit-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer small { justify-self: start; }
}

@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  .site-header { min-height: 64px; padding: 10px 14px; background: rgba(18,14,10,0.88); }
  .wordmark { width: 130px; }
  .back-link { font-size: 0.6rem; }
  .station-progress {
    top: auto;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    transform: none;
    padding: 5px 7px;
  }
  .station-progress p { display: none; }
  .station-progress ol { display: flex; }
  .station-progress ol::before { top: 50%; bottom: auto; left: 22px; right: 22px; width: auto; height: 1px; }
  .station-progress a, .station-progress li:nth-child(even) a { width: 38px; min-height: 44px; padding: 5px; }
  .station-progress a i { width: 7px; height: 7px; }

  .station { min-height: auto; padding: 14px 0; background: #17130f; contain: none; }
  .station:first-child { padding-top: 64px; }
  .scene-frame {
    position: relative;
    top: auto;
    height: auto;
    min-height: min(760px, calc(100svh - 16px));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    perspective: none;
  }
  #fantasy-dress .scene-frame { min-height: 1120px; }
  #candy-land .scene-frame { min-height: 1050px; }
  .scene-picture {
    transform: none !important;
    opacity: 0.72;
    transition: opacity 500ms ease;
  }
  .station.is-active .scene-picture { opacity: 1; }
  .scene-picture img { object-position: center; }
  .scene-vignette { background: linear-gradient(0deg, rgba(12,9,6,0.9) 0%, rgba(12,9,6,0.12) 72%); }
  .entrance-copy, .station-copy, .station:nth-of-type(even) .station-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 36px);
    max-height: none;
    margin: 0 18px 38px;
    padding: 22px;
    transform: none !important;
  }
  h1 { font-size: clamp(3.3rem, 17vw, 5.5rem); }
  .station-copy h2 { font-size: clamp(2.65rem, 13vw, 4.8rem); }
  .station-copy p:not(.station-kicker, .category) { margin: 14px 0 18px; font-size: 0.92rem; line-height: 1.5; }
  .category { font-size: 0.6rem; }
  .primary-link, .project-link { width: 100%; }
  .floor-cue { display: none; }

  .portfolio-surface { transform: none !important; box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
  .worktable-faith { left: 38%; top: 23%; width: 53vw; height: 39vw; rotate: -4deg; }
  .pinboard-breezy { left: 25%; top: 12%; width: 47vw; height: 25vh; rotate: -1deg; }
  .notebook-breezy { display: none; }
  .passion-sheet { left: 45%; top: 18%; width: 46vw; height: 34vw; rotate: 4deg; }
  .fitting-photo { left: 20%; top: 8%; width: 60vw; height: 38vh; rotate: 1deg; }
  .candy-board { left: 14%; top: 8%; width: 72vw; height: 29vh; rotate: 1deg; }
  .dangerous-left { left: 7%; top: 20%; width: 41vw; height: 33vw; rotate: 1deg; }
  .dangerous-right { left: 49%; top: 20%; width: 41vw; height: 33vw; rotate: -1deg; }

  .exit { padding: 92px 20px 70px; background-image: linear-gradient(rgba(239,229,211,0.95), rgba(239,229,211,0.98)), url("assets/mobile/entrance.webp"); }
  .exit dl { grid-template-columns: 1fr; }
  .contact-preview { padding: 24px 20px; }
  .instagram-link { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 10px; padding-block:10px; }
  .instagram-link > span:first-child { grid-column:1; }
  .instagram-link strong { grid-column:1; min-width:0; overflow-wrap:anywhere; }
  .instagram-link > span:last-child { grid-column:2; grid-row:1 / 3; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 90px; }
  .site-footer small { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .station { min-height: auto; padding: 12px 0; }
  .scene-frame { position: relative; height: auto; min-height: 100svh; display: flex; align-items: flex-end; }
  .scene-picture, .entrance-copy, .station-copy, .portfolio-surface { transform: none !important; }
  .entrance-copy, .station-copy, .station:nth-of-type(even) .station-copy { position: relative; left: auto; right: auto; bottom: auto; margin: 100px 150px 50px max(24px, 6vw); }
  .js [data-reveal] { opacity: 1; translate: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .entrance-copy, .station-copy, .station:nth-of-type(even) .station-copy { margin: 0 18px 38px; }
}
