@font-face {
  font-family: "Bricolage";
  src: url(fonts/bricolage.woff2) format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url(fonts/dmsans.woff2) format("woff2-variations");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --dusk-950: #09121a;
  --dusk-900: #0d1822;
  --dusk-800: #14222e;
  --dusk-700: #1c2d3b;
  --dusk-600: #2a3f50;
  --stone-50: #f4f4f0;
  --stone-100: #e9e8e2;
  --stone-200: #dbd9d0;
  --stone-300: #c6c3b8;
  --ink: #eef1ee;
  --ink-soft: #b3bfc5;
  --ink-faint: #75868f;
  --paper-ink: #13202a;
  --paper-soft: #4f5d66;
  --paper-faint: #7c878d;
  --paper-line: rgb(19 32 42 / 0.12);
  --gold: #e3c04f;
  --gold-soft: #f0d98e;
  --gold-deep: #8a6c10;
  --pool: #2f7480;
  --ok: #3f8a62;
  --radius: 14px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone-100);
  color: var(--paper-ink);
  font: 400 16px/1.5 var(--text);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--dusk-950); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s var(--ease), border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-gold { background: var(--gold); color: #1a1505; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgb(238 241 238 / .35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--dusk-900); color: var(--ink); }
.btn-dark:hover { background: var(--dusk-700); }
.btn-quiet { border-color: var(--paper-line); background: transparent; color: var(--paper-ink); }
.btn-quiet:hover { border-color: var(--paper-soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; }

/* nav */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; gap: 28px;
  padding: 22px clamp(16px, 4vw, 56px);
  color: var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); font-stretch: 88%; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

/* hero film: one scene at a time (film.js). Time of day of the settled scene
   is data-tod on .film; each scene block carries its own for its cards. */
@property --glass { syntax: "<color>"; inherits: true; initial-value: rgb(13 24 34 / .5); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #f0d98e; }
@property --scrim { syntax: "<number>"; inherits: true; initial-value: .55; }
@property --on { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --cin { syntax: "<number>"; inherits: false; initial-value: 0; }

.film {
  --edge: rgb(238 241 238 / .22);
  --film-ink: #f3f1ea;
  --film-soft: rgb(238 241 238 / .84);
  --gut: clamp(16px, 4vw, 56px);
  position: relative; height: 100svh; min-height: 560px;
  background: var(--dusk-950); color: var(--film-ink);
  transition: --glass .9s ease, --accent .9s ease, --scrim .9s ease;
}
.film:focus { outline: none; }
.film[data-tod="morning"], .beat[data-tod="morning"] { --glass: rgb(13 24 34 / .5); --accent: #f0d98e; --scrim: .52; --edge: rgb(238 241 238 / .26); }
.film[data-tod="golden"], .beat[data-tod="golden"] { --glass: rgb(36 25 12 / .56); --accent: #e3c04f; --scrim: .62; --edge: rgb(255 228 180 / .24); }
.film[data-tod="night"], .beat[data-tod="night"] { --glass: rgb(5 10 17 / .64); --accent: #e3c04f; --scrim: .74; --edge: rgb(227 192 79 / .24); }

.film-stage { position: relative; height: 100%; overflow: clip; }
.film-media, .film-media > *, .film-still img { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-still img, .film-transit, .film-loop { object-fit: cover; }
.film-still { opacity: 0; transition: opacity .3s ease; }
.film-still[data-on] { opacity: 1; }
.film-transit { opacity: 0; }
.film-transit[data-on] { opacity: 1; }
.film-loop { opacity: 0; transition: opacity .42s ease; }
.film[data-loop] .film-loop { opacity: 1; }

/* Shade only where text sits: under the nav, behind the headline, under the cards. */
.film-shade {
  background:
    linear-gradient(to bottom, rgb(9 18 26 / calc(var(--scrim) * .8)) 0%, rgb(9 18 26 / 0) 18%),
    radial-gradient(70% 85% at 0% 100%, rgb(9 18 26 / calc(var(--scrim) * 1.3)) 0%, rgb(9 18 26 / calc(var(--scrim) * 1)) 35%, rgb(9 18 26 / calc(var(--scrim) * .35)) 65%, rgb(9 18 26 / 0) 88%),
    radial-gradient(45% 45% at 100% 100%, rgb(9 18 26 / calc(var(--scrim) * .75)) 0%, rgb(9 18 26 / 0) 100%),
    linear-gradient(to top, rgb(9 18 26 / calc(var(--scrim) * .6)) 0%, rgb(9 18 26 / 0) 30%);
}

.film-copy { position: absolute; inset: 0; pointer-events: none; }
.film-copy a, .film-copy button { pointer-events: auto; }
.beat {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: 132px var(--gut) 28px;
}
.beat[inert] { visibility: hidden; }
.ch-still { display: none; }
.ch-lead { max-width: 40rem; }
.ch-title {
  margin: 0; max-width: 13ch;
  font: 700 clamp(42px, 1.2rem + 4vw, 76px)/.98 var(--display); font-stretch: 84%;
  letter-spacing: -0.03em; text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 2px 28px rgb(0 0 0 / .38);
}
.ch-line {
  margin: clamp(14px, .5rem + .8vw, 22px) 0 0; max-width: 33rem;
  color: var(--film-soft); font-size: clamp(16px, .94rem + .3vw, 19px); line-height: 1.55;
  text-wrap: pretty; text-shadow: 0 1px 14px rgb(0 0 0 / .4);
}
.beat .eyebrow { color: var(--accent); text-shadow: 0 1px 10px rgb(0 0 0 / .4); }
.ch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(20px, .9rem + 1vw, 30px); }
.ch-btn {
  display: inline-flex; align-items: center; gap: 16px; min-height: 54px; padding: 6px 6px 6px 24px;
  border-radius: 999px; background: var(--gold); color: #1a1505; font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / .55); transition: background .18s ease;
}
.ch-btn:hover { background: var(--gold-soft); }
.ch-btn-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--dusk-900); color: var(--gold); transition: transform .22s ease; }
.ch-btn:hover .ch-btn-ic { transform: translateX(2px); }
.ch-btn-ic svg { width: 17px; height: 17px; }
.ch-ghost {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--glass); color: var(--film-ink); font-size: 15.5px; text-decoration: none;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .18s ease;
}
.ch-ghost:hover { border-color: rgb(238 241 238 / .5); }

.ch-cards { display: flex; gap: 14px; }
.ch-card {
  --cin: 0;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  width: 264px; min-height: 152px; padding: 17px 19px 18px; border-radius: 22px;
  border: 1px solid var(--edge); background: var(--glass); color: var(--film-ink);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 18px 40px -22px rgb(0 0 0 / .6);
  opacity: var(--cin); transform: translate3d(calc((1 - var(--cin)) * 2.4rem), 0, 0);
}
.ch-card-title { margin: 0; font: 650 21px/1.12 var(--display); font-stretch: 88%; letter-spacing: -0.01em; }
.ch-card-text { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--film-soft); }
.ch-formats { display: flex; align-items: flex-end; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ch-formats li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--film-soft); }
.ch-formats i { display: block; height: 46px; border: 1.5px solid var(--accent); border-radius: 6px; }
.ch-formats [data-shape="tall"] i { width: 26px; }
.ch-formats [data-shape="square"] i { width: 46px; }
.ch-formats [data-shape="wide"] i { width: 82px; }
.ch-names { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.ch-names li { display: flex; align-items: center; gap: 9px; }
.ch-names li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ch-names .more { color: var(--film-soft); }
.ch-names .more::before { background: transparent; border: 1px solid var(--film-soft); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ch-card, .ch-ghost, .film-rail, .film-skip { background: rgb(9 18 26 / .86); }
}

/* rail */
.film-rail {
  position: absolute; z-index: 2; top: 92px; left: var(--gut);
  display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.film-rail ol { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.film-dial {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc((1 + var(--rail, 0) * 2) / 3 * 1turn), rgb(255 255 255 / .18) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.film-dot {
  position: relative; display: flex; align-items: center; height: 34px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--film-ink); font: inherit; font-size: 13.5px; cursor: pointer;
}
.film-dot img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; opacity: .62; box-shadow: 0 0 0 1px rgb(255 255 255 / .25); transition: opacity .3s ease, box-shadow .3s ease; }
.film-dot:hover img { opacity: .9; }
.film-dot-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film-dot[aria-current] { padding-right: 13px; background: rgb(255 255 255 / .1); }
.film-dot[aria-current] img { opacity: 1; box-shadow: 0 0 0 1.5px var(--accent); }
.film-dot[aria-current] .film-dot-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin-left: 9px; }
.film-dot:focus-visible { outline-offset: 2px; border-radius: 999px; }

.film-skip {
  position: absolute; z-index: 2; top: 92px; right: var(--gut);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); color: var(--film-ink);
  font-size: 14px; text-decoration: none;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.film-skip svg { width: 16px; height: 16px; }
.film-skip:hover { border-color: rgb(238 241 238 / .5); }

.film-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; margin: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--film-soft);
  transition: opacity .4s ease; pointer-events: none;
}
.film-hint i { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgb(238 241 238 / .25); }
.film-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: hint 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes hint { to { top: 100%; } }
.film:not([data-chapter="pool"]) .film-hint, .film:not([data-snap="settled"]) .film-hint { opacity: 0; }

/* snapping: overlay follows the settled scene; the stage leans while a push builds */
@media (prefers-reduced-motion: no-preference) {
  .film[data-snap] .film-media {
    transform: translate3d(0, calc(var(--ny, 0) * -.5px), 0) scale(calc(1 + var(--nz, 0)));
    transition: transform .32s var(--ease), opacity .24s ease;
  }
  .film[data-snap] .film-copy { transform: translate3d(0, calc(var(--ny, 0) * -1px), 0); transition: transform .32s var(--ease); }
  .film[data-snap="cut"] .film-media { opacity: 0; }
  .film[data-snap] .beat {
    opacity: var(--on); transform: translate3d(0, calc((1 - var(--on)) * 1.4rem), 0);
    transition: --on .36s ease, visibility 0s linear 0s;
  }
  .film[data-snap] .beat[inert] { transition: --on .36s ease, visibility 0s linear .38s; }
  .film[data-snap] .ch-card { transition: --cin .28s ease; }
  .film[data-snap="settled"][data-chapter="pool"] .ch-pool,
  .film[data-snap="settled"][data-chapter="living"] .ch-living,
  .film[data-snap="settled"][data-chapter="return"] .ch-return {
    --on: 1; transition: --on .64s cubic-bezier(.2, .7, .2, 1) 60ms;
  }
  .film[data-snap="settled"][data-chapter="pool"] .ch-pool .ch-card,
  .film[data-snap="settled"][data-chapter="living"] .ch-living .ch-card,
  .film[data-snap="settled"][data-chapter="return"] .ch-return .ch-card {
    --cin: 1; transition: --cin .7s cubic-bezier(.2, .7, .2, 1) calc(200ms + var(--i) * 110ms);
  }
}
html.film-top { overscroll-behavior-y: none; }
html.film-lock { touch-action: none; overscroll-behavior: none; }

/* desktop: headline left, cards bottom right */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .beat { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: clamp(32px, 1rem + 3vh, 56px); }
  .ch-lead { padding-bottom: clamp(8px, 2vh, 32px); }
  .ch-cards { align-items: stretch; flex: none; }
}

/* phones and portrait: one card above the headline, CTA under the thumb */
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .film-shade {
    background:
      linear-gradient(to bottom, rgb(9 18 26 / calc(var(--scrim) * .8)) 0%, rgb(9 18 26 / 0) 16%),
      linear-gradient(to top, rgb(9 18 26 / calc(var(--scrim) * 1.35)) 0%, rgb(9 18 26 / calc(var(--scrim) * 1.05)) 34%, rgb(9 18 26 / calc(var(--scrim) * .45)) 54%, rgb(9 18 26 / 0) 70%);
  }
  .beat { gap: 14px; padding: 120px var(--gut) 56px; }
  .ch-cards { order: -1; }
  .ch-card:nth-child(n + 2) { display: none; }
  .ch-card { width: auto; max-width: 21rem; min-height: 0; gap: 8px; padding: 13px 16px; border-radius: 18px; background: color-mix(in srgb, var(--glass) 70%, rgb(9 18 26 / .8)); }
  .ch-card-title { font-size: 18px; }
  .ch-card-text { font-size: 14px; }
  .ch-formats i { height: 36px; }
  .ch-formats [data-shape="tall"] i { width: 20px; }
  .ch-formats [data-shape="square"] i { width: 36px; }
  .ch-formats [data-shape="wide"] i { width: 64px; }
  .ch-title { font-size: clamp(34px, 1.2rem + 5.4vw, 52px); max-width: 14ch; }
  .ch-line { font-size: 15.5px; }
  .beat .eyebrow { font-size: 13px; margin-bottom: 12px; }
  .ch-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .ch-btn { justify-content: space-between; }
  .ch-ghost { display: none; }
  .film-rail { top: 80px; }
  .film-dial, .film-dot img { width: 30px; height: 30px; }
  .film-dot { height: 30px; font-size: 13px; }
  .film-skip { top: 80px; width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .film-skip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .film-hint { display: none; }
}
@media (max-width: 560px) {
  .beat .eyebrow { display: none; }
}
@media (max-height: 640px) and (min-aspect-ratio: 1/1) {
  .film-hint { display: none; }
}

/* reduced motion: each scene is a still with its overlay, stacked */
@media (prefers-reduced-motion: reduce) {
  .film { height: auto; min-height: 0; }
  .film-stage { height: auto; }
  .film-media, .film-rail, .film-hint { display: none; }
  .film-copy { position: relative; inset: auto; }
  .beat { position: relative; inset: auto; min-height: 100svh; isolation: isolate; visibility: visible; }
  .beat::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgb(9 18 26 / .55) 0%, rgb(9 18 26 / 0) 22%), linear-gradient(to top, rgb(9 18 26 / .92) 0%, rgb(9 18 26 / .6) 40%, rgb(9 18 26 / 0) 72%);
  }
  .ch-still { display: block; position: absolute; inset: 0; z-index: -2; }
  .ch-still img { width: 100%; height: 100%; object-fit: cover; }
  .ch-card { --cin: 1; }
  .ch-card:nth-child(n + 2) { display: flex; }
  .ch-cards { flex-wrap: wrap; }
  .film-skip { top: 80px; }
}

/* how it works band */
.how { background: var(--dusk-950); color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; letter-spacing: .02em; color: var(--gold-soft); }
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow.dark { color: var(--gold-deep); margin-bottom: 6px; }
.phone-tag {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 999px;
  background: rgb(9 18 26 / .62); color: var(--ink); font-size: 11.5px; letter-spacing: .02em;
  backdrop-filter: blur(4px);
}
.hero-steps {
  list-style: none; margin: 0 auto; padding: 26px clamp(16px, 4vw, 56px) 32px; width: 100%; max-width: 1360px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.hero-steps li { display: flex; gap: 14px; font-size: 14.5px; color: var(--ink-soft); }
.hero-steps b { font: 600 13px/1.6 var(--display); color: var(--gold); }
.hero-steps strong { color: var(--ink); font-weight: 600; }

/* studio */
.studio { padding: clamp(28px, 5vw, 72px) clamp(12px, 3vw, 40px) 80px; }
.app {
  max-width: 1240px; margin: 0 auto; background: var(--stone-50);
  border-radius: 22px; box-shadow: 0 0 0 1px var(--paper-line), 0 24px 60px -30px rgb(19 32 42 / .35);
}
.appbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--paper-line);
}
.proj { display: flex; align-items: center; gap: 14px; min-width: 0; }
.proj-thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj h2 { margin: 0; font: 650 20px/1.2 var(--display); font-stretch: 90%; letter-spacing: -0.01em; }
.proj p { margin: 2px 0 0; font-size: 14px; color: var(--paper-soft); }
.credits {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px;
  border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; cursor: pointer; font-size: 14px;
}
.credits svg { width: 20px; height: 20px; color: var(--gold-deep); }
.credits b { font-variant-numeric: tabular-nums; font-weight: 700; }
.credits.bump b { animation: bump .5s var(--ease); display: inline-block; }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--gold-deep); } }

.steps { display: flex; align-items: center; gap: 10px; padding: 14px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--paper-line); overflow-x: auto; }
.steps button {
  display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 6px 4px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--paper-faint); white-space: nowrap;
}
.steps button i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; border: 1.5px solid currentColor; }
.steps button[aria-selected="true"] { color: var(--paper-ink); }
.steps button[aria-selected="true"] i { background: var(--dusk-900); border-color: var(--dusk-900); color: var(--gold); }
.steps button.done i { background: var(--gold); border-color: var(--gold); color: #1a1505; }
.steps button[disabled] { cursor: default; opacity: .6; }
.steps-line { flex: 0 1 60px; min-width: 16px; height: 1.5px; background: var(--paper-line); }

.panel { padding: clamp(18px, 2.4vw, 28px); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font: 650 clamp(24px, 2.4vw, 32px)/1.1 var(--display); font-stretch: 88%; letter-spacing: -0.02em; }
.panel-head p { margin: 8px 0 0; max-width: 60ch; color: var(--paper-soft); font-size: 15px; }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.analysis { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--paper-soft); }
.analysis li { display: flex; align-items: center; gap: 8px; }
.analysis svg { width: 16px; height: 16px; color: var(--ok); }
.analysis li:last-child svg { color: var(--pool); }

/* photos */
.photos { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stone-200);
  aspect-ratio: 3 / 2; cursor: grab; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 1px var(--paper-line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(9 18 26 / .45), transparent 35%, transparent 60%, rgb(9 18 26 / .6)); pointer-events: none; }
.ph-n { position: absolute; z-index: 1; left: 10px; top: 10px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--stone-50); font: 700 13px/1 var(--display); color: var(--paper-ink); }
.ph-room { position: absolute; z-index: 1; left: 12px; bottom: 10px; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.ph-room small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.ph-tools { position: absolute; z-index: 1; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.ph-tools button, .ph-grip {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgb(244 244 240 / .9); color: var(--paper-ink);
}
.ph-tools button svg, .ph-grip svg { width: 18px; height: 18px; }
.ph-tools button[disabled] { opacity: .35; cursor: default; }
.ph-grip { position: absolute; z-index: 1; right: 8px; top: 8px; cursor: grab; touch-action: none; }
.ph.drag { z-index: 10; cursor: grabbing; box-shadow: 0 0 0 2px var(--gold), 0 24px 50px -12px rgb(19 32 42 / .55); transition: box-shadow .2s; }
.ph.drag img { transform: scale(1.02); }
.ph.settle { transition: transform .28s var(--ease); }

/* pick */
.format { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--stone-100); font-size: 14px; }
.format span { padding: 0 8px 0 10px; color: var(--paper-soft); }
.format button { border: 0; background: none; padding: 7px 13px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--paper-soft); font-variant-numeric: tabular-nums; }
.format button[aria-pressed="true"] { background: var(--dusk-900); color: var(--gold); }

.group { margin-top: 26px; }
.group:first-child { margin-top: 0; }
.group-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.group-h h4 { margin: 0; font: 650 18px/1.2 var(--display); font-stretch: 92%; }
.group-h span { font-size: 14px; color: var(--paper-soft); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px var(--paper-line); transition: box-shadow .2s, transform .2s var(--ease);
}
.card.added { box-shadow: 0 0 0 2px var(--gold-deep), 0 14px 30px -18px rgb(138 108 16 / .6); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--dusk-800); overflow: hidden; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgb(9 18 26 / .66); color: var(--ink); font-size: 12px; }
.card-media .badge svg { width: 13px; height: 13px; color: var(--gold); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px; flex: 1; }
.card-body h5 { margin: 0; font: 650 17px/1.2 var(--display); font-stretch: 92%; }
.card-body p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--paper-soft); }
.uses { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--paper-faint); margin-top: auto; padding-top: 4px; }
.uses img { width: 30px; height: 20px; border-radius: 4px; object-fit: cover; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--paper-line); }
.cr { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.cr svg { width: 16px; height: 16px; color: var(--gold-deep); }
.add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--paper-line); background: none; cursor: pointer; font-weight: 600; font-size: 14px;
}
.add svg { width: 16px; height: 16px; }
.add:hover { border-color: var(--paper-ink); }
.add[aria-pressed="true"] { background: var(--dusk-900); color: var(--gold); border-color: var(--dusk-900); }

.bar {
  position: sticky; bottom: 12px; z-index: 4; margin-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 22px; border-radius: 999px; background: var(--dusk-900); color: var(--ink);
  box-shadow: 0 18px 40px -16px rgb(9 18 26 / .6);
}
.bar-sum { display: grid; line-height: 1.3; min-width: 0; }
.bar-sum b { font: 650 16px/1.3 var(--display); }
.bar-sum span { font-size: 14px; color: var(--ink-soft); }
.bar-sum span.short { color: #f2a094; }

/* shots */
.shots-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fast-note { font-size: 13px; color: var(--paper-faint); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 12px 16px 12px 12px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--paper-line);
}
.row-thumb { position: relative; width: 74px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--dusk-800); border: 0; padding: 0; cursor: default; }
.row-thumb img, .row-thumb video { width: 100%; height: 100%; object-fit: cover; }
.row-thumb img { filter: saturate(.3) brightness(.7) blur(1.5px); transform: scale(1.06); transition: filter .6s; }
.row.done .row-thumb { cursor: pointer; }
.row.done .row-thumb img { filter: none; transform: none; }
.row-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .3s; }
.row-thumb .play svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5)); }
.row.done .row-thumb .play { opacity: 1; }
.row-main { min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.row-top h5 { margin: 0; font: 650 17px/1.2 var(--display); font-stretch: 92%; }
.row-top span { font-size: 13.5px; color: var(--paper-soft); }
.row-state { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--paper-soft); }
.row-state .eta { font-variant-numeric: tabular-nums; color: var(--paper-faint); white-space: nowrap; }
.prog { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--stone-100); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pool), #3f97a4); transition: width .25s linear; }
.row.done .prog i { background: var(--ok); }
.stages { display: flex; gap: 4px; margin-top: 8px; }
.stages i { flex: 1; height: 3px; border-radius: 9px; background: var(--stone-200); transition: background .3s; }
.stages i.on { background: var(--pool); }
.stages i.ok { background: var(--ok); }
.row-acts { display: flex; gap: 8px; }
.row-acts .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.row-ai { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--paper-faint); }
.row-ai svg { width: 12px; height: 12px; color: var(--gold-deep); }

/* player */
.player { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.player[hidden] { display: none; }
.player-back { position: absolute; inset: 0; background: rgb(9 18 26 / .78); backdrop-filter: blur(6px); animation: fade .25s; }
.player-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 360px); gap: 32px; align-items: center;
  max-height: calc(100svh - 32px); padding: 22px 28px 22px 22px; border-radius: 24px; background: var(--stone-50);
  animation: rise .35s var(--ease);
}
.player-x { position: absolute; right: 12px; top: 12px; background: var(--stone-100); color: var(--paper-ink); z-index: 2; }
.player-video { position: relative; height: min(76svh, 700px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--dusk-900); }
.player-video video { width: 100%; height: 100%; object-fit: cover; }
.player-toggle { position: absolute; right: 12px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(9 18 26 / .6); color: #fff; }
.player-toggle svg { width: 20px; height: 20px; }
.player-scrub { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 9px; background: rgb(255 255 255 / .25); overflow: hidden; }
.player-scrub i { display: block; height: 100%; width: 0; background: var(--gold); }
.player-info h3 { margin: 0; font: 700 34px/1.05 var(--display); font-stretch: 86%; letter-spacing: -0.02em; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 22px 0; }
.meta div { display: grid; gap: 2px; }
.meta dt { font-size: 12.5px; color: var(--paper-faint); }
.meta dd { margin: 0; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.player-uses { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--paper-soft); margin-bottom: 22px; }
.player-uses img { width: 48px; height: 32px; border-radius: 6px; object-fit: cover; }
.player-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.player-note { margin: 18px 0 0; font-size: 13px; color: var(--paper-faint); max-width: 40ch; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  padding: 12px 18px; border-radius: 12px; background: var(--dusk-900); color: var(--ink); font-size: 14px;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / .5); transition: transform .35s var(--ease), visibility .35s; max-width: calc(100vw - 32px);
}
.toast.on { transform: translate(-50%, 0); visibility: visible; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 40px; font-size: 13px; color: var(--paper-faint); }
.foot span:first-child { display: inline-flex; align-items: center; gap: 8px; font: 650 15px/1 var(--display); color: var(--paper-ink); }
.foot svg { width: 22px; height: 22px; color: var(--gold-deep); }

.ribbon {
  position: fixed; right: 12px; bottom: 12px; z-index: 70; padding: 6px 11px; border-radius: 8px;
  background: rgb(9 18 26 / .82); color: #eef1ee; font-size: 12px; text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgb(238 241 238 / .16);
}
.ribbon:hover { background: var(--dusk-950); }

/* responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero-steps { grid-template-columns: 1fr; gap: 14px; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .player-card { grid-template-columns: 1fr; gap: 16px; padding: 14px; max-height: calc(100svh - 24px); overflow-y: auto; width: min(420px, 100%); }
  .player-video { height: min(46svh, 540px); margin: 0 auto; }
  .player-info h3 { font-size: 26px; }
  .meta { margin: 14px 0; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .btn { padding: 0 16px; }
  .appbar { flex-wrap: wrap; }
  .proj h2 { font-size: 18px; }
  .panel-head { margin-bottom: 16px; }
  .ph-tools { top: 8px; bottom: auto; right: 46px; }
  .ph-tools button { width: 30px; height: 30px; }
  .ph-grip { width: 30px; height: 30px; }
  .ph-n { left: 8px; top: 8px; }
  .ph-room { font-size: 13px; left: 9px; }
  .ph-room small { display: none; }
  .card-body { padding: 11px; }
  .card-body p { font-size: 13px; }
  .card-row { flex-wrap: wrap; }
  .add { padding: 0 11px; }
  .bar { padding: 10px 10px 10px 18px; border-radius: 22px; }
  .bar .btn { padding: 0 14px; }
  .row { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .row-thumb { width: 58px; }
  .row-acts { grid-column: 1 / -1; }
  .row-acts .btn { flex: 1; }
  .format span { display: none; }
  .bar { bottom: 50px; }
  .toast { bottom: 54px; }
  .ribbon { right: 8px; bottom: 8px; }
}

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