/* Sandra Strømme — site styles. Tokens from the design handoff README. */
:root {
  --head: "Cormorant Garamond", Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --hdr: 80px;

  /* light (paper) theme */
  --bg: #f2f2f3;
  --surface: #ffffff;
  --text: #1d1f20;
  --divider: rgba(29, 31, 32, 0.12);
  --n400: #a7aab0;
  --n600: #6b7078;
  --n700: #555a62;
  --n800: #33373c;
  --gold: #a87a26;

  /* night palette */
  --night: #0b1424;
  --night-mid: #122147;
  --night-light: #1b2f58;
  --night-4: #1d3360;
  --gold-dark: #d9a948;
  --gold-hi: #e6c26a;
  --cream: #f3ecdc;
}
.theme-dark, .hdr-blue {
  --bg: #0b1424;
  --surface: #13203a;
  --text: #ece7dd;
  --divider: rgba(236, 231, 221, 0.14);
  --n400: #5d6676;
  --n600: #8b94a4;
  --n700: #a3abb9;
  --n800: #cdd1d8;
  --gold: #d9a948;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.snap { scroll-snap-type: y mandatory; scroll-padding-top: var(--hdr); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  transition: background-color 700ms ease, color 700ms ease;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--text); transition: color 300ms ease; }
a:hover { color: var(--gold); }
button { font: inherit; color: inherit; }
.u-btn { all: unset; cursor: pointer; box-sizing: border-box; }
.u-btn:focus-visible, a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
img, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--n700); font-family: var(--body); font-weight: 400; }
.kicker::before { content: ""; display: block; width: 22px; height: 1px; background: var(--gold); }
.rule { display: block; width: 44px; height: 1px; background: var(--gold); }
.serif-i { font-family: var(--head); font-style: italic; font-weight: 400; }
.page-in { animation: pageIn 600ms ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Contained images */
.frame { position: relative; width: 100%; }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.frame.missing { background: repeating-linear-gradient(135deg, transparent 0 14px, var(--divider) 14px 15px); display: flex; align-items: center; justify-content: center; }
.frame.missing span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--n700); background: var(--bg); padding: 6px 12px; }

/* ---------- Header ---------- */
#ssHeader { position: sticky; top: 0; z-index: 30; background: var(--bg); color: var(--text); transition: background-color 700ms ease, color 700ms ease; }
.hdr-inner { max-width: 1400px; margin: 0 auto; padding: 22px var(--pad); display: flex; align-items: center; gap: 32px; }
.brand { margin-right: auto; font-family: var(--head); font-size: clamp(30px, 3vw, 36px); line-height: 1; letter-spacing: 0.01em; text-decoration: none; color: var(--text); transition: color 300ms ease, opacity 600ms ease; }
.brand.hidden { opacity: 0; pointer-events: none; }
.nav-desk { display: flex; align-items: center; gap: 30px; }
.nav-desk a, .nav-desk button.nav-item { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; text-decoration: none; }
.nav-desk .active { border-bottom-color: var(--gold); }
.nav-desk .nav-item:hover { color: var(--gold); }
.lang { display: flex; gap: 6px; font-size: 12px; letter-spacing: 0.12em; }
.lang a { text-decoration: none; opacity: 0.45; }
.lang a.on { opacity: 1; }
.lang .sep { opacity: 0.35; }
.nav-mob-btn { all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 0; display: none; }
@media (max-width: 859px) {
  .nav-desk { display: none; }
  .nav-mob-btn { display: block; }
}

/* Works dropdown (desktop) */
.works-menu {
  position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 100%); overflow-y: auto;
  background: #fff; color: #1d1f20; border-bottom: 1px solid rgba(29,31,32,.12);
  --bg: #fff; --text: #1d1f20; --n600: #6b7078; --n700: #555a62; --gold: #a87a26; --divider: rgba(29,31,32,.12);
}
.works-menu[hidden] { display: none; }
.wm-grid { max-width: 1400px; margin: 0 auto; padding: 28px var(--pad) 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.wm-list { display: flex; flex-direction: column; }
.wm-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 5px 0; color: var(--n600); text-decoration: none; transition: transform 300ms ease, color 300ms ease; }
.wm-item.on { color: var(--text); transform: translateX(14px); }
.wm-item:hover { color: var(--text); }
.wm-num { font-family: var(--head); font-size: 14px; letter-spacing: 0.08em; color: #a87a26; }
.wm-title { font-family: var(--head); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.series-tag { font-style: normal; font-size: 0.42em; letter-spacing: 0.18em; text-transform: uppercase; color: #a87a26; margin-left: 0.7em; vertical-align: 0.35em; font-family: var(--body); }
.wm-preview { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; }
.wm-stage { position: relative; width: 100%; height: min(68vh, 640px); }
.wm-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 350ms ease; pointer-events: none; }
.wm-stage img.on { opacity: 1; }
.wm-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--n700); }

/* Mobile drawer */
.mob-menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); color: var(--text); display: flex; flex-direction: column; padding: 22px var(--pad); overflow: auto; animation: pageIn 250ms ease both; }
.mob-menu[hidden] { display: none; }
.mm-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; }
.mm-top span { font-family: var(--head); font-size: 32px; line-height: 1; }
.mm-big { font-family: var(--head); font-size: 34px; line-height: 1.2; text-decoration: none; display: block; }
.mm-works { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 18px 4px; }
.mm-works a { display: flex; gap: 14px; align-items: baseline; padding: 4px 0; font-family: var(--head); font-size: 22px; font-style: italic; line-height: 1.25; text-decoration: none; }
.mm-works .n { font-style: normal; font-size: 12px; letter-spacing: 0.08em; min-width: 34px; color: var(--n700); font-family: var(--body); }
.mm-works .series-tag { font-size: 0.5em; vertical-align: 0.25em; margin-left: 0.6em; color: var(--gold); }
.mm-lang { display: flex; gap: 24px; margin-top: auto; padding-top: 40px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.mm-lang a { text-decoration: none; opacity: 0.45; }
.mm-lang a.on { opacity: 1; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--midnight, #050a16); display: flex; align-items: center; justify-content: center; }
.intro-box { --h: min(100vh, 177.78vw); --h: min(100dvh, 177.78vw); position: relative; height: var(--h); aspect-ratio: 720 / 1280; flex: none; }
/* The video's own black surround becomes midnight blue: 'lighten' keeps whichever is lighter, the door or the blue. */
.intro-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; mix-blend-mode: lighten; }
.intro-box { background: var(--midnight, #050a16); }
.intro-sheen { position: absolute; left: 18.06%; top: 17.97%; width: 65.28%; height: 14.84%; pointer-events: none; mix-blend-mode: screen; transition: opacity 400ms ease;
  background: linear-gradient(105deg, transparent 38%, rgba(255,236,180,.25) 45%, rgba(255,250,225,.95) 50%, rgba(255,236,180,.25) 55%, transparent 62%);
  background-size: 220% 100%; background-repeat: no-repeat;
  -webkit-mask-image: url('/assets/media/intro-name-mask.png'); mask-image: url('/assets/media/intro-name-mask.png');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  animation: ssSheen 4.5s ease-in-out infinite; }
.intro-enter { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; left: 50%; top: 62.35%; transform: translate(-50%, -50%); width: 30%; height: 5.4%;
  display: flex; align-items: center; justify-content: center; gap: calc(var(--h) * 0.012);
  background: #0d1626; color: #efcd7c; border: 1px solid #d9a948;
  box-shadow: inset 0 0 0 3px #0d1626, inset 0 0 0 4px rgba(217,169,72,.75), 0 0 0 1px rgba(0,0,0,.6), 0 6px 22px rgba(0,0,0,.55);
  font-family: var(--head); font-size: calc(var(--h) * 0.0175); letter-spacing: 0.42em; text-transform: uppercase; overflow: hidden;
  transition: opacity 500ms ease, background 300ms ease, color 300ms ease; }
.intro-enter:hover { background: #d9a948; color: #0d1626; }
.intro-enter .orn { font-size: 0.5em; letter-spacing: 0; }
.intro-enter .lbl { padding-left: 0.42em; }
.intro-enter .sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,232,170,.22) 47%, rgba(255,246,215,.5) 50%, rgba(255,232,170,.22) 53%, transparent 60%); background-size: 220% 100%; background-repeat: no-repeat; animation: ssSheen 4.5s ease-in-out 1.2s infinite; }
.intro.playing .intro-enter { opacity: 0; pointer-events: none; }
.intro.playing .intro-sheen { opacity: 0; }
.intro-skip { all: unset; cursor: pointer; position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,.6); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.intro-skip:hover { color: #fff; }
.veil { position: fixed; inset: 0; z-index: 99; pointer-events: none; background: #050a16; animation: ssVeil 2300ms ease-in-out forwards; }

@keyframes ssTwinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes ssSheen { 0% { background-position: 150% 0; } 55%, 100% { background-position: -50% 0; } }
@keyframes ssVeil { 0% { background: #050a16; opacity: 1; } 22% { background: #050a16; opacity: 1; } 55% { background: #0b1424; opacity: .9; } 80% { background: #1b2a44; opacity: .45; } 100% { background: #1b2a44; opacity: 0; } }
@keyframes ssBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-1.2deg); } }
@keyframes ssDrip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }

/* ---------- Home hero ---------- */
.hero { scroll-snap-align: start; position: relative; height: calc(100svh - var(--hdr)); min-height: 540px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 40%, #1b2f58 0%, #122147 38%, #0b1424 78%); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky span { position: absolute; }
.moon { position: absolute; right: 12%; top: 11%; width: clamp(44px, 5vw, 70px); aspect-ratio: 1; pointer-events: none; }
.moon .glow { position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(circle at 42% 46%, rgba(230,194,106,.22) 0%, rgba(230,194,106,.08) 38%, transparent 66%); filter: blur(6px); }
.moon .body { position: absolute; inset: 0; border-radius: 47% 53% 51% 49% / 52% 48% 53% 47%;
  background: radial-gradient(circle at 30% 34%, #f7e3a6 0%, transparent 34%), radial-gradient(circle at 46% 70%, #c99a46 0%, transparent 30%), radial-gradient(circle at 22% 62%, #efd28a 0%, transparent 26%), radial-gradient(circle at 40% 50%, #e8c56f 0%, #d6ab55 62%, #b98a3d 100%);
  -webkit-mask-image: radial-gradient(circle at 74% 34%, transparent 47%, rgba(0,0,0,.55) 51%, #000 55%); mask-image: radial-gradient(circle at 74% 34%, transparent 47%, rgba(0,0,0,.55) 51%, #000 55%);
  filter: blur(.6px) drop-shadow(0 0 10px rgba(230,194,106,.35)); transform: rotate(-14deg); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.4vw, 16px); padding: 0 24px; margin-top: -8vh; }
.hero-welcome { font-family: var(--head); font-style: italic; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.2; color: var(--gold-hi); letter-spacing: 0.03em; }
.hero-name { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(46px, 8vw, 124px); line-height: 1; letter-spacing: 0.01em; color: var(--cream);
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.28em; text-shadow: 0 0 30px rgba(230,194,106,.18); }
.hero-name .w { display: inline-flex; white-space: nowrap; }
.hero-name .ch { display: inline-block; }
.hero-orn { display: flex; align-items: center; gap: 14px; margin-top: clamp(6px, 1vw, 12px); color: var(--gold-dark); }
.hero-orn i { display: block; width: clamp(40px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, #d9a948); }
.hero-orn i:last-child { background: linear-gradient(90deg, #d9a948, transparent); }
.hero-orn b { font-size: 9px; font-weight: 400; }
.hero-waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(110px, 24vh, 240px); display: block; }
.hero-cue { all: unset; cursor: pointer; position: absolute; left: 50%; bottom: clamp(28px, 6vh, 56px); transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #cfc6b4; padding: 8px 16px; transition: color 300ms ease; }
.hero-cue:hover { color: var(--gold-hi); }
.hero-cue .t { padding-left: 0.3em; }
.hero-cue .line { position: relative; display: block; width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(217,169,72,.15), rgba(217,169,72,.5)); }
.hero-cue .drop { position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #e6c26a; box-shadow: 0 0 8px rgba(230,194,106,.9); animation: ssDrip 2.4s ease-in-out infinite; }

/* ---------- Home works carousel ---------- */
.track { position: relative; }
.carousel { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); min-height: 520px; z-index: 1; display: flex; flex-direction: row-reverse; flex-wrap: wrap; overflow: hidden; }
.track-step { height: max(520px, calc(100svh - var(--hdr))); scroll-snap-align: start; }
/* The carousel itself is the first screen of the track (so it unpins at the end instead of covering the footer); this marks its snap point. */
.track-snap0 { position: absolute; left: 0; top: 0; width: 1px; height: max(520px, calc(100svh - var(--hdr))); scroll-snap-align: start; pointer-events: none; }
.c-img { position: relative; flex: 1000 1 420px; min-height: 55%; overflow: hidden; background: radial-gradient(55% 60% at 50% 0%, #fffaf0 0%, #ffffff 70%); }
.c-img .wave-top { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(28px, 4.5vw, 56px); z-index: 3; pointer-events: none; display: block; }
.c-img .wave-bottom { display: none; }
.c-img .wave-side { position: absolute; left: -22px; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none; background: var(--bg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2272%22%20height%3D%221000%22%20viewBox%3D%220%200%2072%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%200%20L38%200%20C41.7%2030.0%2059.0%2071.7%2056%20120%20C53.0%20168.3%2019.0%20231.7%2020%20290%20C21.0%20348.3%2060.7%20416.7%2062%20470%20C63.3%20523.3%2029.7%20561.7%2028%20610%20C26.3%20658.3%2053.0%20711.7%2052%20760%20C51.0%20808.3%2024.0%20860.0%2022%20900%20C20.0%20940.0%2038.0%20973.3%2040%201000%20L0%201000%20Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2272%22%20height%3D%221000%22%20viewBox%3D%220%200%2072%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%200%20L38%200%20C41.7%2030.0%2059.0%2071.7%2056%20120%20C53.0%20168.3%2019.0%20231.7%2020%20290%20C21.0%20348.3%2060.7%20416.7%2062%20470%20C63.3%20523.3%2029.7%20561.7%2028%20610%20C26.3%20658.3%2053.0%20711.7%2052%20760%20C51.0%20808.3%2024.0%20860.0%2022%20900%20C20.0%20940.0%2038.0%20973.3%2040%201000%20L0%201000%20Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.c-stage { position: absolute; top: clamp(56px, 7vw, 96px); bottom: clamp(28px, 4vw, 56px); left: clamp(36px, 5vw, 88px); right: clamp(20px, 4vw, 72px); display: block; text-decoration: none; }
.c-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 800ms cubic-bezier(.4,0,.2,1), transform 800ms cubic-bezier(.4,0,.2,1); pointer-events: none; }
.c-slide img { width: 100%; height: 100%; object-fit: contain; display: block; transition: filter 400ms ease; }
.c-stage:hover .c-slide.on img { filter: drop-shadow(0 0 18px rgba(217,169,72,.55)); }
.c-info { position: relative; flex: 1 0 clamp(200px, 30vw, 380px); max-width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(14px, 2vw, 28px);
  padding: clamp(22px, 5vw, 72px) clamp(20px, 3.4vw, 52px) clamp(18px, 4vw, 48px);
  background: radial-gradient(75% 50% at 0% 100%, rgba(60,120,140,.22), transparent 70%), radial-gradient(70% 40% at 0% 0%, rgba(118,150,204,.16), transparent 70%), var(--bg); }
.c-head { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); font-size: clamp(9px, 1.1vw, 11px); letter-spacing: 0.26em; text-transform: uppercase; }
.c-head .num { color: var(--gold); white-space: nowrap; flex: none; }
.c-head .bar { display: block; flex: none; width: clamp(16px, 2.2vw, 28px); height: 1px; background: var(--gold); opacity: .6; }
.c-head .k { color: var(--n700); font-size: 9px; letter-spacing: 0.2em; }
.c-texts { display: grid; }
.c-text { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; opacity: 0; pointer-events: none; transition: opacity 800ms cubic-bezier(.4,0,.2,1), transform 800ms cubic-bezier(.4,0,.2,1); }
.c-text.on { opacity: 1; pointer-events: auto; }
.c-text h2 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(27px, 3.4vw, 50px); line-height: 1.08; text-wrap: balance; }
.c-text h2 a { text-decoration: none; }
.c-text .meta { font-size: 13px; line-height: 1.6; color: var(--n800); }
.c-text .meta > span { display: block; }
.song-btn { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 14px; border: 1px solid #d9a948; border-radius: 999px; color: #e6c26a; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: background 300ms ease, color 300ms ease; }
.song-btn:hover { background: #d9a948; color: #0b1424; }
.song-btn .ic { width: 26px; height: 26px; border-radius: 50%; background: #d9a948; color: #0b1424; display: flex; align-items: center; justify-content: center; }
.c-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.view-link { white-space: nowrap; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--divider); text-decoration: none; transition: color 300ms ease, border-color 300ms ease; }
.view-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.dots { display: flex; align-items: center; gap: 4px; }
.dots button { all: unset; cursor: pointer; width: 22px; height: 30px; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--n600); transition: all 400ms ease; }
.dots button.on span { width: 9px; height: 9px; background: var(--gold); }
@media (max-width: 859px) {
  .carousel { flex-direction: column; flex-wrap: nowrap; }
  .c-img .wave-side { display: none; }
  .c-img .wave-bottom { display: block; position: absolute; left: 0; bottom: -1px; width: 100%; height: 30px; z-index: 3; pointer-events: none; }
  /* Mobile: the artwork takes most of the screen, the text panel stays compact. */
  .c-img { flex: 1 1 auto; min-height: 0; }
  .c-img .wave-top { height: 22px; }
  .c-img .wave-bottom { height: 22px; }
  .c-stage { top: 24px; bottom: 26px; left: 6px; right: 6px; } /* clears the 22px waves */
  .c-info { flex: 0 0 auto; gap: 10px; padding: 12px 18px 10px; }
  .c-head { font-size: 9px; }
  .c-head .k { font-size: 7px; }
  .c-text { gap: 6px; }
  .c-text h2 { font-size: 24px; line-height: 1.1; }
  .c-text .rule { display: none; }
  .c-text .meta { font-size: 12px; line-height: 1.45; color: var(--n700); }
  .c-text .meta > span { display: inline; }
  .c-text .meta > span + span::before { content: " · "; }
  .song-btn { margin-top: 4px; padding: 6px 14px 6px 8px; gap: 8px; font-size: 10px; }
  .song-btn .ic { width: 20px; height: 20px; }
  .song-btn .ic svg { width: 9px; height: 9px; }
  .view-link { font-size: 10px; padding-bottom: 2px; }
  .dots button { width: 16px; height: 22px; }
}

/* ---------- Generic page wrappers ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(64px, 8vw, 120px); }
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--pad) clamp(64px, 8vw, 120px); }
.back-link { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--n700); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ---------- Single work ---------- */
.work-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px clamp(32px, 5vw, 72px); padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px); align-items: end; }
.work-head h1 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; }
.work-title-col { display: flex; flex-direction: column; gap: 18px; }
.work-details { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.work-details .muted { color: var(--n700); }
.views { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); }
.views figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.views .frame { cursor: zoom-in; flex: 0 0 auto; }
.views figcaption { font-size: 13px; color: var(--n700); }
/* Special view sizes from the prototype */
.views .v-narrow-620 { width: min(100%, 620px); margin-left: calc((100% - min(100%, 620px)) / 2); }
@media (min-width: 860px) {
  .views .v-fl-wide { width: min(calc(100vw - 48px), 1640px, calc(82vh * 75 / 51)); margin-left: calc(50% - min(calc(50vw - 24px), 820px, calc(41vh * 75 / 51))); }
  .views .v-narrow-560 { width: min(100%, 560px); margin-left: calc((100% - min(100%, 560px)) / 2); }
}
@media (max-width: 859px) {
  .views .v-bleed { width: calc(100% + 2 * var(--pad)); margin-left: calc(-1 * var(--pad)); }
}
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--divider); }
.prevnext a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.prevnext a:last-child { text-align: right; align-items: flex-end; }
.prevnext .label { color: var(--n700); }
.prevnext .t { font-family: var(--head); font-size: 22px; font-style: italic; line-height: 1.2; }
.prevnext a:hover .t { color: var(--gold); }

/* ---------- Series ---------- */
.series-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; padding-bottom: clamp(24px, 3vw, 40px); }
.series-head h1 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; }
.series-head h1 .series-tag { font-size: 0.26em; vertical-align: 0.6em; }
.series-head .label { color: var(--n700); }
.series-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.series-work { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
a.series-work { transition: opacity 300ms ease; }
a.series-work:hover { opacity: .85; color: inherit; }
a.series-work:hover .st { color: var(--gold); }
.series-work .more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.series-work .more .frame { max-height: 70vh; cursor: zoom-in; }
.series-work .main.zoomable { cursor: zoom-in; }
.series-work .cap { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.series-work .st { font-family: var(--head); font-size: clamp(24px, 2.6vw, 30px); font-style: italic; line-height: 1.2; transition: color 300ms ease; }
.series-work .si { font-size: 14px; line-height: 1.6; color: var(--n700); }

/* ---------- Music ---------- */
.music-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: min(calc(100vh - 140px), 760px); }
.music-left { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 30px); }
.music-left h1 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(44px, 6vw, 84px); line-height: 0.98; text-wrap: balance; }
.player { padding: clamp(34px, 4.4vw, 48px) clamp(24px, 3vw, 36px); background: linear-gradient(120deg, #0b1424 0%, #16294f 55%, #1d3360 100%); color: #f3ecdc; display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); flex-wrap: wrap;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221000%22%20height%3D%22200%22%20viewBox%3D%220%200%201000%20200%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2018%20C120%204%20220%204%20340%2016%20C470%2030%20560%2032%20680%2018%20C800%204%20900%208%201000%2020%20L1000%20182%20C880%20196%20780%20194%20660%20184%20C530%20172%20430%20170%20300%20184%20C190%20196%2090%20194%200%20180%20Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221000%22%20height%3D%22200%22%20viewBox%3D%220%200%201000%20200%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2018%20C120%204%20220%204%20340%2016%20C470%2030%20560%2032%20680%2018%20C800%204%20900%208%201000%2020%20L1000%20182%20C880%20196%20780%20194%20660%20184%20C530%20172%20430%20170%20300%20184%20C190%20196%2090%20194%200%20180%20Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.play { all: unset; cursor: pointer; flex: 0 0 auto; width: clamp(72px, 8vw, 92px); height: clamp(72px, 8vw, 92px); border-radius: 50%; background: #f2f0eb; color: #0b1424; display: flex; align-items: center; justify-content: center; transition: transform 200ms ease, box-shadow 200ms ease; }
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 2px #d9a948, 0 0 0 12px rgba(217,169,72,.16); }
.p-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 14px; }
.p-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.p-row .l { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #b9bcc2; display: block; margin-bottom: 4px; }
.p-row .t { font-family: var(--head); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.p-row .time { font-size: 13px; letter-spacing: 0.08em; color: #b9bcc2; font-variant-numeric: tabular-nums; }
.seek { height: 20px; cursor: pointer; position: relative; touch-action: none; }
.seek .bg { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(242,240,235,.22); }
.seek .fg { position: absolute; left: 0; top: 9px; height: 2px; width: 0; background: #f2f0eb; }
.seek .knob { position: absolute; top: 4px; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #f2f0eb; }
.credits { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; }
.credits div { display: flex; flex-direction: column; gap: 4px; }
.credits dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--n700); }
.credits dd { margin: 0; font-size: 15px; }
.music-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.music-fig .frame { aspect-ratio: 4 / 3; max-height: 72vh; cursor: zoom-in; }
.music-fig figcaption { font-size: 13px; line-height: 1.5; color: var(--n700); }
.music-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(36px, 6vw, 96px); padding-top: clamp(48px, 7vw, 96px); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--divider); align-items: start; }
.song-intro { display: flex; flex-direction: column; gap: 18px; max-width: 52ch; }
.song-intro p:first-child { margin: 0; font-family: var(--head); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; text-wrap: pretty; }
.song-intro p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--n800); text-wrap: pretty; }
.poem { display: flex; flex-direction: column; gap: 22px; }
.poem h2 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: 24px; line-height: 1.2; }
.poem .ph { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.poem p { margin: 0; font-family: var(--head); font-size: 21px; line-height: 1.55; white-space: pre-line; }

/* ---------- Press ---------- */
.press-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: clamp(28px, 4vw, 48px); }
.press-head h1 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; }
.press-head .label { color: var(--n700); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 64px); }
.press-item { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: 16px; transition: opacity 300ms ease; }
.press-item:hover { opacity: .88; }
.press-item .frame { aspect-ratio: 4 / 3; }
.press-item .pc { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--divider); }
.press-item .o { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--n700); }
.press-item .h { font-family: var(--head); font-style: italic; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.3; text-wrap: pretty; }
.reader { position: fixed; inset: 0; z-index: 60; background: rgba(11,20,36,.96); display: flex; flex-direction: column; animation: pageIn 250ms ease both; }
.reader-bar { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); color: #ece7dd; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.reader-bar .ctl { display: flex; gap: 22px; align-items: center; }
.reader-bar button { all: unset; cursor: pointer; padding: 4px 8px; }
.reader-bar button.z { font-size: 20px; }
.reader-bar button:hover { color: var(--gold-hi); }
.reader-scroll { flex: 1; min-height: 0; overflow: auto; }
.reader-page { position: relative; margin: 0 auto; }
.reader-page img { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }

/* ---------- About ---------- */
.about { background: radial-gradient(50% 45% at 78% 22%, rgba(118,150,204,.18), transparent 70%), radial-gradient(40% 40% at 10% 70%, rgba(60,120,140,.14), transparent 70%), var(--bg); }
.about-top { max-width: 1280px; margin: 0 auto; padding: clamp(24px, 3vw, 44px) var(--pad) clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-id { display: flex; flex-direction: column; gap: 28px; }
.about-id .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--n700); }
.about-id h1 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.01em; }
.about-id p { margin: 0; max-width: 34ch; font-family: var(--head); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--n800); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.about-links a { text-decoration: none; border-bottom: 1px solid var(--divider); padding-bottom: 4px; }
.portrait { margin: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 250px; justify-self: center; }
.portrait .frame { aspect-ratio: 3 / 4; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 110px 6px rgba(118,150,204,.22), 0 40px 100px rgba(0,0,0,.5); }
.portrait .frame img { object-fit: cover; }
.portrait figcaption { font-size: 12px; letter-spacing: 0.08em; color: var(--n700); }
.lead { border-top: 1px solid var(--divider); }
.lead div { max-width: 980px; margin: 0 auto; padding: clamp(24px, 3vw, 44px) var(--pad); }
.lead p { margin: 0; font-family: var(--head); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; text-align: center; text-wrap: balance; }
.texts { border-top: 1px solid var(--divider); }
.texts > div { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 100px) var(--pad) clamp(64px, 9vw, 130px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.texts .col { display: flex; flex-direction: column; gap: 18px; }
.texts h2 { margin: 0 0 8px; }
.texts p { margin: 0; font-size: 15px; line-height: 1.8; text-wrap: pretty; color: var(--n800); }

/* ---------- Footer ---------- */
footer { max-width: 1400px; width: 100%; margin: 0 auto; padding: 40px var(--pad) 32px; }
.f-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-top: 28px; border-top: 1px solid var(--divider); }
.f-news { display: flex; flex-direction: column; gap: 10px; }
.f-news .kicker { font-size: 12px; letter-spacing: 0.16em; }
.f-form { display: flex; border-bottom: 1px solid var(--text); min-width: min(320px, 80vw); }
.f-form input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 0; outline: none; color: var(--text); }
.f-form input::placeholder { color: var(--n600); }
.f-form button { all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0 8px 16px; }
.f-form button:hover { color: var(--gold); }
.f-legal { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--n700); }
.f-legal a { color: var(--n700); }

/* ---------- Zoom viewer ---------- */
.zoom { position: fixed; inset: 0; z-index: 120; background: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; color: #0b1424; animation: pageIn 250ms ease both; }
.zoom-img { position: absolute; inset: clamp(16px, 4vw, 56px); background-size: contain; background-position: center; background-repeat: no-repeat; transform-origin: center; will-change: transform; }
.zoom-ctl { position: absolute; left: 50%; bottom: clamp(16px, 3vw, 32px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; background: rgba(255,255,255,.92); border: 1px solid rgba(217,169,72,.6); box-shadow: 0 4px 18px rgba(11,20,36,.08); }
.zoom-ctl button { all: unset; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #0b1424; font-size: 22px; }
.zoom-ctl button:hover { color: #a87a26; }
.zoom-ctl span { min-width: 52px; text-align: center; font-size: 12px; letter-spacing: 0.12em; color: #5a5f66; }
.zoom-close { all: unset; cursor: pointer; position: absolute; top: clamp(14px, 2.4vw, 28px); right: clamp(14px, 2.4vw, 28px); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #0b1424; padding: 10px 4px; border-bottom: 1px solid rgba(217,169,72,.8); }
.zoom-close:hover { color: #a87a26; }
.zoom-title { position: absolute; left: clamp(16px, 3vw, 32px); top: clamp(18px, 2.6vw, 32px); font-family: var(--head); font-style: italic; font-size: 18px; max-width: 34vw; }
.zoom-hint { position: absolute; left: 50%; top: clamp(20px, 2.8vw, 34px); transform: translateX(-50%); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #8a8f96; white-space: nowrap; }
@media (max-width: 859px) { .zoom-hint { display: none; } .zoom-title { max-width: 60vw; } }

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

/* While the intro shows, the page is only the hero: nothing below it for a browser to restore a scroll position into. */
html.intro-active #ssWorksTrack,
html.intro-active footer { display: none; }
/* While the page is being held at the top (intro + reveal), turn snapping off. Otherwise iOS Safari
   re-snaps to the work it remembers from before the refresh and fights the reset to the top. */
html.snap.hold-top, html.snap.snap-pause { scroll-snap-type: none; }

/* ---------- Works overview ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.works-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.works-card .frame { transition: opacity 300ms ease; }
.works-card:hover .frame { opacity: .85; }
.works-card:hover .tt { color: var(--gold); }
.wc-cap { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--divider); }
.wc-cap .n { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); }
.wc-cap .tt { font-family: var(--head); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; transition: color 300ms ease; }
.wc-cap .sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n700); }
@media (max-width: 859px) {
  .works-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .wc-cap .tt { font-size: 18px; }
  .wc-cap .sub { font-size: 10px; letter-spacing: 0.1em; }
}

/* ---------- Press: link to the article online ---------- */
.press-entry { display: flex; flex-direction: column; gap: 12px; }
.press-link { align-self: flex-start; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--divider); transition: color 300ms ease, border-color 300ms ease; }
.press-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.reader-bar a { color: inherit; }

/* ---------- Homepage: vertical scroll cue (mobile) and a reachable footer ---------- */
.c-scroll { display: none; }
@media (max-width: 859px) {
  /* The dot row read as "swipe sideways"; on phones show a downward cue instead. */
  .dots { display: none; }
  .c-scroll { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); transition: opacity 400ms ease; }
  .c-scroll .ar { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); animation: ssNudge 1.8s ease-in-out infinite; }
  .c-scroll.done { opacity: 0; }
}
@keyframes ssNudge { 0%, 100% { transform: translateY(-2px) rotate(45deg); } 50% { transform: translateY(3px) rotate(45deg); } }
/* With mandatory snapping, the footer needs its own snap point or the page springs back before it. */
html.snap footer { scroll-snap-align: end; }

/* ---------- Homepage: make "scroll down for the next work" obvious on desktop ---------- */
.c-nav { display: none; }
@media (min-width: 860px) {
  .c-info { padding-right: clamp(48px, 4.6vw, 72px); }
  /* Progress as a vertical rail on the panel's edge, so the direction reads as up/down. */
  .dots { position: absolute; right: clamp(10px, 1.2vw, 20px); top: 50%; transform: translateY(-50%); flex-direction: column; gap: 0; }
  .dots::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1px; background: var(--divider); }
  .dots button { position: relative; width: 22px; height: 26px; }
  .dots span { background: var(--n700); }
  .c-nav { display: flex; align-items: center; gap: 10px; }
  .c-nav .t { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-right: 4px; transition: opacity 400ms ease; }
  .c-nav.moved .t { opacity: 0; }
  .c-step { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(217,169,72,.55); color: #e6c26a; display: flex; align-items: center; justify-content: center; transition: background 300ms ease, color 300ms ease, border-color 300ms ease; }
  .c-step:hover, .c-step:focus-visible { background: #d9a948; border-color: #d9a948; color: #0b1424; }
  .c-nav:not(.moved) #cNext svg { animation: ssNudgeSvg 1.8s ease-in-out infinite; }
}
@keyframes ssNudgeSvg { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Newsletter status line */
.f-msg { font-size: 12px; min-height: 1.4em; color: var(--n700); }
.f-msg.bad { color: #c0563a; }
.f-form button:disabled { opacity: .5; cursor: default; }
.f-captcha:not(:empty) { margin-top: 4px; }
@media (max-width: 359px) { .f-captcha { transform: scale(.9); transform-origin: 0 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: clamp(8px, 2vw, 24px); }
.contact-side { display: flex; flex-direction: column; gap: 32px; }
.contact-side h1 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; }
.contact-intro { margin: 0; max-width: 36ch; font-family: var(--head); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--n800); }
.contact-direct { display: flex; flex-direction: column; gap: 10px; }
.contact-mail, .contact-ig { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--divider); padding-bottom: 4px; transition: color 300ms ease, border-color 300ms ease; word-break: break-all; }
.contact-mail:hover, .contact-ig:hover { color: var(--gold); border-bottom-color: var(--gold); }
.contact-news { padding-top: 28px; border-top: 1px solid var(--divider); }
.contact-form { display: flex; flex-direction: column; gap: 26px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label > span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--n700); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--n600); border-radius: 0; padding: 8px 0; outline: none; resize: vertical; transition: border-color 200ms ease; }
.contact-form textarea { border: 1px solid var(--divider); border-bottom-color: var(--n600); padding: 10px 12px; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--gold); }
.contact-form label.err > span { color: #c0563a; }
.contact-form label.err input, .contact-form label.err textarea { border-bottom-color: #c0563a; }
.contact-form .req { color: var(--gold); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-send { all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding: 14px 34px; border: 1px solid var(--text); transition: background 300ms ease, color 300ms ease; }
.contact-send:hover { background: var(--text); color: var(--bg); }
.contact-send:disabled { opacity: .5; cursor: default; }
.contact-note { margin: 0; font-size: 12px; color: var(--n700); }
.contact-done { padding: 40px 0; display: flex; flex-direction: column; gap: 12px; }
.contact-done h2 { margin: 0; font-family: var(--head); font-weight: 400; font-style: italic; font-size: 40px; }
.contact-done p { margin: 0; font-size: 15px; color: var(--n800); }
@media (max-width: 859px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { order: -1; } /* form right after the intro on phones */
  .contact-side { display: contents; }
  .contact-side h1 { order: -3; } .contact-intro { order: -2; }
  .contact-grid { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
}

/* Contact in the site's night blue, like Home and About */
.contact-page { min-height: calc(100svh - var(--hdr, 80px) - 120px);
  background: radial-gradient(50% 45% at 82% 18%, rgba(118,150,204,.18), transparent 70%), radial-gradient(45% 45% at 8% 78%, rgba(60,120,140,.16), transparent 70%), var(--bg); }
.theme-dark .contact-side h1 { color: var(--cream); }
.theme-dark .contact-form-wrap { background: rgba(19, 32, 58, .55); border: 1px solid rgba(217,169,72,.22); padding: clamp(24px, 3.4vw, 44px); }
.theme-dark .contact-form input, .theme-dark .contact-form textarea { border-bottom-color: rgba(236,231,221,.35); }
.theme-dark .contact-form textarea { border-color: rgba(236,231,221,.16); border-bottom-color: rgba(236,231,221,.35); background: rgba(11,20,36,.35); }
.theme-dark .contact-form input:focus, .theme-dark .contact-form textarea:focus { border-bottom-color: var(--gold); }
.theme-dark .contact-send { border-color: var(--gold); color: var(--gold-hi); }
.theme-dark .contact-send:hover { background: var(--gold); color: #0b1424; }
.theme-dark .contact-mail, .theme-dark .contact-ig { color: var(--cream); }
.theme-dark .contact-form .req, .theme-dark .contact-mail:hover, .theme-dark .contact-ig:hover { color: var(--gold-hi); }
.theme-dark .f-form { border-bottom-color: rgba(236,231,221,.45); }
@media (max-width: 859px) { .theme-dark .contact-form-wrap { padding: 22px 18px; } }
.wm-all { align-self: flex-start; margin: 22px 0 0 44px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--text); padding-bottom: 4px; border-bottom: 1px solid var(--divider); transition: color 300ms ease, border-color 300ms ease; }
.wm-all:hover { color: #a87a26; border-bottom-color: #a87a26; }

/* ---------- Home hero: the forest ---------- */
.forest { position: absolute; inset: 0; pointer-events: none; background: #0b1424 url(/assets/media/hero-forest.webp) 30% 30% / cover no-repeat; transform-origin: 34% 40%; }
/* Stepping into the forest: a slow approach once the door intro has gone. */
/* Transform and opacity only (no filter): cheap enough for phones while the page is first shown. */
html:not(.intro-active) .forest { animation: ssEnterForest 9s cubic-bezier(.2,.6,.2,1) both; }
.forest::after { content: ''; position: absolute; inset: 0; background: #0b1424; opacity: 0; pointer-events: none; }
html:not(.intro-active) .forest::after { animation: ssEnterDim 6s ease-out both; }
@keyframes ssEnterForest { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes ssEnterDim { from { opacity: .45; } to { opacity: 0; } }
.forest-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.forest-gl.on { opacity: 1; }
.forest-veil { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 52% 36% at 50% 44%, rgba(11,20,36,.55) 0%, rgba(11,20,36,.22) 55%, transparent 80%),
              linear-gradient(to bottom, rgba(11,20,36,.35) 0%, transparent 20%, transparent 58%, rgba(11,20,36,.55) 100%); }
.hero .sky span { mix-blend-mode: screen; }
.hero-welcome, .hero-name { text-shadow: 0 0 24px rgba(11,20,36,.85), 0 0 40px rgba(230,194,106,.14); }
@media (max-aspect-ratio: 1/1) { .forest { background-position: 5% 30%; transform-origin: 30% 40%; } }
@media (prefers-reduced-motion: reduce) { html:not(.intro-active) .forest, html:not(.intro-active) .forest::after { animation: none; } }

/* iPhone: Safari's bar floats over the page, so the screen shows more than the hero's 100svh.
   This strip (the difference between the large and small screen heights; 0 elsewhere) keeps the
   white of the works below out of sight until the visitor scrolls. */
.hero-ext { height: calc(100lvh - 100svh); background: #0b1424; }
/* The newer floating Safari bar doesn't count as screen height at all, so the strip above can be 0.
   On touch screens, always leave enough dark blue to cover the area around that bar. */
@media (hover: none) and (pointer: coarse) { .hero-ext { height: max(calc(100lvh - 100svh), calc(150px + env(safe-area-inset-bottom, 0px))); } }

/* Back to top: a small, quiet circle in the corner of the works' white stage, once past the forest. */
.c-top { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; right: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 32px); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(11,20,36,.55); background: rgba(255,255,255,.55); border: 1px solid rgba(11,20,36,.16);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 400ms ease, transform 400ms ease, visibility 0s linear 400ms, color 250ms ease, border-color 250ms ease; }
.c-top::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; } /* a bigger target for fingers */
.c-top { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.c-top.show { opacity: .8; visibility: visible; transform: none; transition: opacity 400ms ease, transform 400ms ease, color 250ms ease, border-color 250ms ease; }
.c-top:hover, .c-top:focus-visible { opacity: 1; color: #a87a26; border-color: rgba(217,169,72,.7); }
/* Phones: the art fills the width, so the arrow sits in the footer row, between View work and Scroll. */
@media (max-width: 859px) { .c-top { right: auto; left: 50%; bottom: 4px; margin-left: -15px; width: 30px; height: 30px; color: rgba(242,234,216,.6); background: transparent; border-color: rgba(217,169,72,.32); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .c-top:hover, .c-top:focus-visible { color: #e6c26a; } } /* on the navy info panel */

/* Touch screens: a long trip up or down the homepage is an instant jump behind this quick fade. */
#app { transition: opacity 200ms ease; }
html.jump-fade #app { opacity: 0; }

/* Computer: back to top from the very bottom of the homepage, at the end of the footer's legal line. */
.f-legal { align-items: center; }
.f-top { all: unset; box-sizing: border-box; cursor: pointer; width: 38px; height: 38px; margin-left: 8px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--n700); border: 1px solid currentColor;
  transition: color 250ms ease, border-color 250ms ease, transform 250ms ease; }
.f-top:hover, .f-top:focus-visible { color: #d9a948; transform: translateY(-2px); }
@media (max-width: 859px) { .f-top { display: none; } }
