/* =====================================================================
   CREATIVE ALCHEMY — waitlist  ·  "The Four Rooms"
   Restyle here first: every colour, font, radius and spacing lives in :root.
   ===================================================================== */
:root {
  /* Door colours (confirmed hex values; no gold, no copper) */
  --spark:  #F5E94B;
  --clear:  #6DB8EC;
  --build:  #86CF5A;
  --expand: #F99C58;

  /* Room palette (from the Four Rooms visual guide) */
  --ceiling:   #06100B;
  --wall:      #0F1411;
  --wall-lit:  #1A211D;
  --moss-base: #1F4A1C;
  --moss-mid:  #356B2C;
  --mist:      #E9EEE8;
  --star:      #E8EEF5;
  --green-deep:#0B1A13;   /* section behind the four doors */
  /* Imagery palette (from Treasure's brand imagery): forest, moss, mist, ocean, warm peach. No gold/copper. */
  --forest:     #06100B;
  --moss-deep:  #0B1C13;
  --moss:       #17301F;
  --moss-lit:   #2F5A34;
  --ocean:      #2C6E91;
  --sky:        #A9CDE2;
  --peach:      #F3CAAB;

  /* Text */
  --text:       #F3F6F1;
  --text-soft:  rgba(243,246,241,.74);
  --text-faint: rgba(243,246,241,.52);
  --accent-word:#F3CAAB;  /* italic accent word in headlines (warm peach) */

  /* Glass (nav, form card, pills) */
  --glass-bg:     rgba(8,20,14,.5);
  --glass-line:   rgba(255,255,255,.16);
  --glass-blur:   18px;

  /* Buttons */
  --btn-light-bg: #F3F6F1;
  --btn-light-fg: #0B1410;

  /* Type */
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Shape + space */
  --radius-card: 22px;
  --radius-pill: 999px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --max: 1240px;
  --section-pad: clamp(72px, 12vw, 150px);
}

/* ---------- fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ceiling); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-light-bg); color: var(--btn-light-fg); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
em.accent { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent-word); letter-spacing: 0; }

/* ---------- buttons + pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: 0 1.5rem; border-radius: var(--radius-pill); font: 600 .95rem/1 var(--font-sans); letter-spacing: .005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.btn--light { background: var(--btn-light-bg); color: var(--btn-light-fg); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(233,238,232,.18); }
.btn--ghost { background: var(--glass-bg); color: var(--text); border-color: var(--glass-line); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn[disabled] { opacity: .6; cursor: progress; }
.pill { display: inline-flex; align-items: center; gap: .5em; padding: .42rem .85rem; font-size: .82rem; line-height: 1; color: var(--text-soft); background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: var(--radius-pill); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; flex: none; opacity: .85; }

/* ---------- floating frosted nav (pill) ---------- */
.nav-wrap { position: fixed; inset: 14px 0 auto 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: min(100%, 860px); padding: 8px 8px 8px 20px; background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: var(--radius-pill); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2); backdrop-filter: blur(var(--glass-blur)) saturate(1.2); box-shadow: 0 8px 40px rgba(0,0,0,.35); }
.nav__brand img { height: 22px; width: auto; }
.nav__links { display: none; gap: 2rem; font-size: .9rem; color: var(--text-soft); }
.nav__links a { text-decoration: none; padding: .4rem 0; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 1.15rem; font-size: .88rem; white-space: nowrap; }
@media (min-width: 760px) { .nav__links { display: flex; } .nav__brand img { height: 24px; } }

/* ---------- hero: moss "CA" fly-in over the ocean (plays once, holds on the still) ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: 104px 0 clamp(28px, 5vw, 56px); background: var(--forest); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--forest); }
.hero__media picture, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.hero .still--final { opacity: 0; transition: opacity 1.4s ease; }
.hero.is-final .still--final { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, rgba(6,16,11,1) 0%, rgba(6,16,11,.995) 18%, rgba(6,16,11,.7) 31%, rgba(6,16,11,.28) 46%, rgba(6,16,11,0) 62%),
  linear-gradient(to top, rgba(6,16,11,.96) 0%, rgba(6,16,11,0) 30%),
  linear-gradient(to bottom, rgba(6,16,11,.55) 0%, rgba(6,16,11,0) 18%); }
.hero__grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (min-width: 760px) {
  /* natural 16:9 framing (logo stays a sensible size); shifted right so the words sit on the dark moss side */
  .hero__media { bottom: auto; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
  .hero__media picture, .hero__media video { transform: translateX(17%); }
}
.hero__inner { position: relative; }
.hero__copy { max-width: 640px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4rem; }
h1 { text-shadow: 0 2px 40px rgba(0,0,0,.5); font-weight: 500; font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h1 em.accent { font-size: 1.1em; letter-spacing: -.01em; }
.lede { margin-top: 1.1rem; max-width: 32em; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--text-soft); }
.hero .card { margin-top: 1.4rem; max-width: 540px; }
.hero .card h2 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); }
.hero .field { margin-top: .8rem; } .hero fieldset { margin-top: .9rem; }
@media (max-width: 759px) {
  .hero { display: block; padding-top: 0; min-height: 0; }
  .hero__media { bottom: auto; height: min(100vw, 560px); -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
  .hero__media::after { background: linear-gradient(to bottom, rgba(6,16,11,.6) 0%, rgba(6,16,11,0) 22%); }
  .hero__inner { padding-top: calc(min(100vw, 560px) - 70px); padding-bottom: 36px; }
}
@keyframes mist { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* ---------- waitlist form (frosted card) ---------- */
.card { padding: clamp(20px, 2.6vw, 28px); background: rgba(10,16,12,.58); border: 1px solid var(--glass-line); border-radius: var(--radius-card); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); box-shadow: 0 30px 80px rgba(0,0,0,.45); scroll-margin-top: 100px; }
.card h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1.1; }
.card__sub { margin-top: .5rem; color: var(--text-soft); font-size: .95rem; }
.field { margin-top: 1.1rem; }
.field label, .field legend { display: block; margin-bottom: .45rem; font-size: .85rem; font-weight: 600; color: var(--text); padding: 0; }
.field .opt { font-weight: 400; color: var(--text-faint); }
.field input[type=email] { width: 100%; min-height: 50px; padding: 0 1.1rem; font: 400 1rem var(--font-sans); color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--glass-line); border-radius: 14px; transition: border-color .2s, background .2s; }
.field input[type=email]::placeholder { color: var(--text-faint); }
.field input[type=email]:focus { outline: none; border-color: var(--star); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(232,238,245,.18); }
.field.invalid input[type=email] { border-color: #ff9b8a; }
.card__sub { display: none; }

.err { margin-top: .4rem; font-size: .85rem; color: #ffb3a6; min-height: 0; }
fieldset { border: 0; margin: 1.1rem 0 0; padding: 0; min-width: 0; }
.rooms-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rooms-pick label { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: 0 .95rem; margin: 0; font-size: .88rem; font-weight: 500; color: var(--text-soft); background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); border-radius: var(--radius-pill); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.rooms-pick label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--star)); box-shadow: 0 0 10px var(--c, var(--star)); }
.rooms-pick label:hover { background: rgba(255,255,255,.12); }
.rooms-pick input:checked + label { color: var(--text); border-color: var(--c, var(--star)); background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px var(--c, var(--star)) inset; }
.rooms-pick input:focus-visible + label { outline: 2px solid var(--star); outline-offset: 2px; }
.pick--spark { --c: var(--spark); } .pick--clear { --c: var(--clear); } .pick--build { --c: var(--build); } .pick--expand { --c: var(--expand); } .pick--all { --c: var(--star); }
.row { display: flex; gap: 8px; }
.row input[type=email] { flex: 1 1 auto; min-width: 0; }
.row .btn { flex: none; min-height: 50px; padding-inline: 1.6rem; }
@media (max-width: 380px) { .row { flex-direction: column; } .row .btn { width: 100%; } }
.fine { margin-top: .9rem; font-size: .78rem; line-height: 1.5; color: var(--text-faint); }
.fine a { color: var(--text-soft); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin-top: .9rem; padding: .7rem .9rem; font-size: .88rem; color: #ffd2c9; background: rgba(255,120,100,.12); border: 1px solid rgba(255,155,138,.4); border-radius: 12px; }
.success { text-align: left; }
.success h2 { margin-top: .2rem; }
.success p { margin-top: .6rem; color: var(--text-soft); }
.success .dots { display: flex; gap: 8px; margin-bottom: 1rem; }
fieldset legend { display: block; margin-bottom: .55rem; padding: 0; font-size: .85rem; font-weight: 600; color: var(--text); }
fieldset legend .opt { font-weight: 400; color: var(--text-faint); }
.d-spark { color: var(--spark); } .d-clear { color: var(--clear); } .d-build { color: var(--build); } .d-expand { color: var(--expand); }
.success .dots span { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 14px currentColor; background: currentColor; }
[hidden] { display: none !important; }

/* ---------- intro ---------- */
.intro { padding-block: var(--section-pad); background: linear-gradient(to bottom, var(--forest), var(--moss-deep) 100%); }
.intro__grid { display: grid; gap: clamp(32px, 6vw, 80px); }
.intro h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.intro h2 em { font-style: italic; color: var(--accent-word); }
.intro__body { color: var(--text-soft); display: grid; gap: 1.1rem; max-width: 34em; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 1rem; }
.stat { padding: 1.1rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.03); }
.stat b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--text); }
.stat span { display: block; margin-top: .4rem; font-size: .82rem; color: var(--text-faint); }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* ---------- the four doors (fanned cards) ---------- */
.rooms { position: relative; overflow: hidden; padding-block: var(--section-pad); background: radial-gradient(80% 60% at 50% 0%, #163a25 0%, var(--moss-deep) 58%, var(--forest) 100%); text-align: center; }
.tag { display: inline-block; padding: .35rem .9rem; font-size: .8rem; letter-spacing: .04em; color: var(--text-soft); border: 1px solid rgba(255,255,255,.35); border-radius: 4px; background: rgba(255,255,255,.05); }
.rooms h2 { margin: 1.3rem auto 0; max-width: 16em; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.05; text-wrap: balance; }
.rooms h2 em { font-style: italic; color: var(--accent-word); }
.rooms__note { margin: 1.1rem auto 0; max-width: 34em; color: var(--text-soft); }
.fan { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 22px); margin-top: clamp(40px, 6vw, 72px); padding-block: 30px 40px; }
.door { --c: var(--star); --tilt: 0deg; --lift: 0px; position: relative; flex: 0 0 auto; width: clamp(210px, 21vw, 262px); aspect-ratio: 3 / 4.5; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; padding: 22px 20px; border-radius: var(--radius-card); border: 1px solid rgba(255,255,255,.12); background:
  linear-gradient(to top, color-mix(in srgb, var(--c) 80%, transparent) 0%, color-mix(in srgb, var(--c) 24%, transparent) 9%, transparent 30%),
  linear-gradient(to bottom, #151d18, #0c1210);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.4) inset; transform: translateY(var(--lift)) rotate(var(--tilt)); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; scroll-snap-align: center; overflow: hidden; }
.door::before { content: ""; position: absolute; inset: 12px 12px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; pointer-events: none; }
.door::after { content: ""; position: absolute; right: 26px; top: 52%; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px 3px var(--c); opacity: .9; }
.door:hover { transform: translateY(calc(var(--lift) - 14px)) rotate(0deg); box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 70px -10px var(--c); }
.door__no { position: relative; font-size: .85rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.door__name { position: relative; margin-top: auto; padding-bottom: 8px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; color: var(--c); }
.door__line { position: relative; font-size: .9rem; line-height: 1.4; color: var(--text); }
.door__meta { position: relative; margin-top: .9rem; margin-bottom: 1.7rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.door--spark  { --c: var(--spark);  --tilt: -5deg; --lift: 14px; }
.door--clear  { --c: var(--clear);  --tilt: -1.8deg; --lift: 0px; }
.door--build  { --c: var(--build);  --tilt: 1.8deg; --lift: 0px; }
.door--expand { --c: var(--expand); --tilt: 5deg; --lift: 14px; }
@media (max-width: 899px) {
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fan::-webkit-scrollbar { display: none; }
  .door { width: min(68vw, 250px); }
  .door--spark { --tilt: -3deg; } .door--clear { --tilt: -1deg; } .door--build { --tilt: 1deg; } .door--expand { --tilt: 3deg; }
}
.rooms__cue { margin-top: .5rem; font-size: .8rem; color: var(--text-faint); }
@media (min-width: 900px) { .rooms__cue { display: none; } }


/* ---------- product tease: deck box photography + the four deck cards ---------- */
.tease { position: relative; overflow: hidden; padding-block: var(--section-pad) 0; background: radial-gradient(70% 50% at 20% 20%, #14301f 0%, var(--moss-deep) 55%, #07110c 100%); }
.tease__grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.tease__photos { position: relative; margin: 0; padding-bottom: 12%; }
.photo { display: block; overflow: hidden; border-radius: var(--radius-card); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px rgba(0,0,0,.55); background: var(--forest); }
.photo img { width: 100%; height: auto; display: block; }
.photo--main { width: 82%; }
.photo--alt { position: absolute; right: 0; bottom: 0; width: 46%; transform: rotate(4deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.tease__photos:hover .photo--alt { transform: rotate(0deg) translateY(-8px); }
.tease__photos figcaption { max-width: 46%; margin-top: 14px; font-size: .78rem; color: var(--text-faint); }
.tease__copy { max-width: 30em; }
.tease__copy h2 { margin-top: 1.2rem; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; text-wrap: balance; }
.tease__copy h2 em { font-style: italic; color: var(--accent-word); }
.tease__copy p { margin-top: 1.1rem; color: var(--text-soft); font-size: 1.05rem; }
.tease__copy .btn { margin-top: 1.6rem; }
.tease .fan { margin-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(56px, 9vw, 110px); }
@media (min-width: 900px) { .tease__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- closing band: glass "CA" over the dew-drop field (seamless loop) ---------- */
.ambient { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); text-align: center; }
.ambient__media { position: absolute; inset: 0; z-index: -1; }
.ambient__media picture, .ambient__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.ambient__media img, .ambient__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.ambient__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,16,11,.94) 0%, rgba(6,16,11,.7) 28%, rgba(6,16,11,0) 58%), linear-gradient(to bottom, rgba(6,16,11,.7) 0%, rgba(6,16,11,0) 16%); }
.ambient__inner { min-height: min(100svh, 880px); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-block: 120px clamp(48px, 8vw, 96px); }
.ambient h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.ambient h2 em { font-style: italic; color: var(--accent-word); }
.ambient p { margin: 1.1rem auto 0; max-width: 30em; color: var(--text-soft); }
.ambient .btn { margin-top: 2rem; }
.mediabtn { position: absolute; right: var(--gutter); top: 96px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 50%; -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); cursor: pointer; }
.mediabtn:hover { background: rgba(255,255,255,.14); }
.mediabtn svg { width: 16px; height: 16px; fill: currentColor; }
.mediabtn .i-play { display: none; }
.mediabtn.is-paused .i-play { display: block; } .mediabtn.is-paused .i-pause { display: none; }
.mediabtn[hidden] { display: none !important; }
@media (max-width: 759px) {
  .ambient__media { bottom: auto; height: min(100vw, 560px); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
  .ambient__media::after { background: linear-gradient(to bottom, rgba(6,16,11,.5) 0%, rgba(6,16,11,0) 20%); }
  .ambient__inner { min-height: 0; justify-content: flex-start; padding-top: calc(min(100vw, 560px) - 60px); padding-bottom: 64px; }
  .mediabtn { top: 12px; }
}

/* ---------- soft footer ---------- */
.footer { position: relative; overflow: hidden; background:
  radial-gradient(60% 55% at 12% 100%, color-mix(in srgb, var(--build) 14%, transparent), transparent 70%),
  radial-gradient(55% 50% at 88% 100%, color-mix(in srgb, var(--clear) 12%, transparent), transparent 70%),
  radial-gradient(40% 40% at 50% 100%, color-mix(in srgb, var(--spark) 7%, transparent), transparent 70%),
  linear-gradient(to bottom, #0c1410, #101a15 100%);
  border-top: 1px solid rgba(255,255,255,.08); color: var(--text-soft); font-size: .86rem; }
.footer__top { display: grid; gap: 22px; align-items: center; padding-block: 34px 26px; text-align: center; }
.footer__brand img { height: 22px; width: auto; margin-inline: auto; }
.footer__brand small, .footer__tag small { display: block; margin-top: .5rem; color: var(--text-faint); font-size: .78rem; }
.footer__tag b { color: var(--text); font-weight: 600; font-size: .9rem; }
.social { display: inline-flex; gap: 4px; padding: 6px 8px; justify-self: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-pill); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-soft); transition: background .2s, color .2s; }
.social a:hover { background: rgba(255,255,255,.12); color: var(--text); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer__rows { border-top: 1px solid rgba(255,255,255,.07); padding-block: 22px; display: grid; gap: 14px; text-align: center; }
.footer__rows ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer__rows a { text-decoration: none; padding: .35rem 0; transition: color .2s; }
.footer__rows a:hover { color: var(--text); }
.links-small { font-size: .82rem; color: var(--text-faint); }
.links-nav { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.footer__hello { text-align: center; padding-block: clamp(40px, 7vw, 76px) clamp(30px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.07); }
.footer__hello .label { font-size: .85rem; color: var(--text-faint); }
.footer__hello a.mail { display: inline-block; margin-top: .9rem; font-weight: 500; font-size: clamp(1.45rem, 5.6vw, 3.4rem); letter-spacing: -.03em; line-height: 1.1; color: var(--text); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer__hello a.mail:hover { border-color: var(--text-soft); }
.footer__hello .sub { margin-top: .9rem; color: var(--text-faint); font-size: .85rem; }
.footer__note { display: inline-flex; margin-top: 1.4rem; padding: .5rem 1rem; font-size: .76rem; color: var(--text-soft); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-pill); }
.footer__big { position: relative; height: clamp(70px, 15vw, 210px); overflow: hidden; pointer-events: none; user-select: none; }
.footer__big span { display: block; text-align: center; white-space: nowrap; font-weight: 600; font-size: clamp(3rem, 13vw, 14rem); line-height: .9; letter-spacing: -.05em; color: rgba(233,238,232,.13); -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%); mask-image: linear-gradient(to bottom, #000 25%, transparent 92%); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr auto 1fr; text-align: left; }
  .footer__brand img { margin-inline: 0; }
  .footer__tag { text-align: right; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .still--final { transition: none; } .photo--alt { transition: none; }
  .door, .btn { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero .card { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .1s; } .hero__copy > :nth-child(3) { animation-delay: .2s; }
  .hero .card { animation-delay: .35s; }
}

/* ---------- legal / simple pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 130px var(--gutter) 90px; }
.page h1 { font-family: var(--font-serif); font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.01em; }
.page h2 { margin-top: 2rem; font-family: var(--font-serif); font-weight: 500; font-size: 1.6rem; }
.page p, .page li { margin-top: .8rem; color: var(--text-soft); }
.page ul { list-style: disc; padding-left: 1.2rem; }
.banner { margin-top: 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--expand); border-radius: 14px; background: rgba(249,156,88,.1); color: var(--text); font-size: .95rem; }

/* reduced motion: no video, stills only (script.js also checks this) */
@media (prefers-reduced-motion: reduce) {
  .hero .still--first { display: none; }
  .hero .still--final { opacity: 1; }
  .hero__media video, .ambient__media video, .mediabtn { display: none; }
}

/* Treasure 11/28: keep "higher" the same color as the headline */
#closing-title em { color: inherit; }
