/* =========================================================
   VYROX — Edge-to-edge edition
   Brand: Red #DD1F26 · Gold #DDA627 · Stone #646459
   ========================================================= */
:root {
  /* Brand — roles: red = action & emphasis, gold = highlight on charcoal, stone = every neutral */
  --red: #DD1F26;              /* buttons (white text 4.6:1) */
  --red-700: #B8161C;          /* red text on light (5.9:1) and button hover */
  --gold: #DDA627;             /* accents on charcoal (8.4:1) */
  --stone: #646459;            /* logo grey; muted text on light (5.4:1) */
  /* Charcoal */
  --ink: #121210;
  --ink-2: #1B1B18;
  /* Neutrals derived from stone */
  --bone: #F1F1EC;             /* light sections */
  --bone-2: #E4E4DD;
  --stone-200: #D2D2C9;        /* soft text on photos */
  --text-dark: #121210;
  --muted-dark: var(--stone);
  --text-light: #F1F1EC;
  --muted-light: #B4B4A9;      /* on charcoal 9:1 */
  --line-l: rgba(100,100,89,.24);
  --line-d: rgba(241,241,236,.15);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 88px);
  --sec: clamp(96px, 11vw, 176px);
  --header-h: 84px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; font-weight: 400; color: var(--text-light); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.pad { padding-inline: var(--pad); }

.light { background: var(--bone); color: var(--text-dark); }
.dark { background: var(--ink); color: var(--text-light); }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.015em; text-wrap: balance; }
.display em { font-style: italic; color: var(--gold); }
.light .display em { color: var(--red-700); }
h1.display { font-size: clamp(3.2rem, 1.6rem + 7vw, 10rem); }
.display--lg { font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem); }
.display--md { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.6rem); }
.display--sm { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.05; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker--dark { color: var(--red-700); }
.lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.7; color: var(--muted-light); max-width: 46ch; font-weight: 300; }
.light .lead { color: var(--muted-dark); }
.section-head { display: grid; gap: 28px; padding-block: var(--sec) clamp(48px, 6vw, 88px); }
.section-head .display { margin-top: 20px; }
@media (min-width: 960px) { .section-head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 28px; border-radius: 999px; font-size: .9rem; font-weight: 600; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); }
.btn--glass { background: rgba(241,241,236,.08); color: var(--text-light); border-color: rgba(241,241,236,.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: var(--bone); color: var(--ink); }
.btn--line { border-color: rgba(241,241,236,.4); color: var(--text-light); min-height: 44px; padding: 10px 22px; }
.btn--line:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--red-700); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--pad); color: var(--text-light); transition: background-color .4s, transform .45s var(--ease), height .4s var(--ease); }
.header.is-scrolled { --header-h: 70px; background: rgba(18,18,16,.82); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); border-bottom: 1px solid var(--line-d); }
/* Top fade so the nav stays readable over bright hero photography; hidden once the solid scrolled header takes over */
.header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 110px); z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(18,18,16,.82) 0%, rgba(18,18,16,.55) 40%, rgba(18,18,16,.2) 72%, rgba(18,18,16,0) 100%); transition: opacity .4s var(--ease); }
.header.is-scrolled::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.logo img { height: 52px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .logo img { height: 44px; }
.nav { display: none; gap: 36px; }
.nav__link { position: relative; font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: rgba(241,241,236,.86); text-shadow: 0 1px 12px rgba(0,0,0,.35); transition: color .3s; padding-block: 8px; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text-light); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__end { display: flex; align-items: center; gap: 20px; }
.header__phone { display: none; font-size: .85rem; color: var(--muted-light); }
.header__phone:hover { color: var(--gold); }
.header__end .btn--line { display: none; }
.menu-btn { width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; position: relative; z-index: 61; }
.menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__end .btn--line { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1360px) { .header__phone { display: inline; } }

/* Full-screen menu */
.drawer { position: fixed; inset: 0; z-index: 49; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--pad) calc(32px + env(safe-area-inset-bottom)); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
.drawer.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.drawer__nav { display: grid; }
.drawer__nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1.15; border-bottom: 1px solid var(--line-d); padding-block: 6px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .3s; }
.drawer__nav a small { font-family: var(--sans); font-size: .75rem; color: var(--gold); letter-spacing: .1em; }
.drawer__nav a:hover { color: var(--gold); }
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * 60ms); }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted-light); font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__shot { opacity: 0; transition: opacity 1.3s cubic-bezier(.45,0,.25,1); }
.hero__shot.is-active { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(18,18,16,.55) 0%, rgba(18,18,16,0) 26%),
  linear-gradient(0deg, rgba(18,18,16,.92) 0%, rgba(18,18,16,.45) 42%, rgba(18,18,16,0) 70%),
  linear-gradient(90deg, rgba(18,18,16,.5) 0%, rgba(18,18,16,0) 60%); }
.hero__content { width: 100%; padding: 0 var(--pad) clamp(48px, 7vw, 96px); }
.hero h1 { margin-top: 24px; max-width: 13ch; }
.hero__row { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); align-items: end; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); font-weight: 300; color: var(--stone-200); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .hero__row { grid-template-columns: 1fr auto; } }
.hero__widget { position: absolute; right: var(--pad); top: calc(var(--header-h) + 6vh); width: 280px; padding: 18px; border-radius: 18px; background: rgba(18,18,16,.38); border: 1px solid rgba(241,241,236,.18); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); display: none; }
@media (min-width: 1100px) and (min-height: 760px) { .hero__widget { display: block; } }
.widget__head { display: flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(221,31,38,.6); animation: livePulse 2s infinite; transition: background-color .3s; }
.live.is-off { background: var(--stone); animation: none; }
.widget__hint { margin-left: auto; font-size: .68rem; letter-spacing: .14em; color: var(--gold); }
.widget__list li { border-top: 1px solid var(--line-d); }
/* Each row is a real button */
.ctl { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 8px; padding: 12px 8px; margin-inline: -8px; width: calc(100% + 16px); border-radius: 10px; text-align: left; font-size: .88rem; color: var(--text-light); transition: background-color .25s; }
.ctl:hover { background: rgba(241,241,236,.07); }
.ctl:active { background: rgba(241,241,236,.12); }
.ctl:focus-visible { outline-offset: 0; }
.ctl svg { color: var(--gold); }
.ctl b { font-weight: 600; text-align: right; }
.ctl b.swap { animation: fadeSwap .4s var(--ease-out); }
/* Lighting: three-step indicator */
.ctl__steps { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ctl__steps i { height: 3px; border-radius: 2px; background: rgba(241,241,236,.16); transition: background-color .35s; }
.ctl__steps i.on { background: var(--gold); }
/* Perimeter: switch */
.ctl__switch { grid-column: 3; grid-row: 1; justify-self: end; display: none; }
.ctl[data-ctl="perimeter"] { grid-template-columns: 18px 1fr auto 34px; }
.ctl[data-ctl="perimeter"] .ctl__switch { display: block; grid-column: 4; position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(241,241,236,.2); transition: background-color .3s; }
.ctl[data-ctl="perimeter"] .ctl__switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.ctl[aria-checked="true"] .ctl__switch { background: var(--red); }
.ctl[aria-checked="true"] .ctl__switch::after { transform: translateX(14px); }
/* Solar: level bar */
.ctl__bar { grid-column: 2 / 4; height: 3px; border-radius: 2px; background: rgba(241,241,236,.16); overflow: hidden; }
.ctl__bar i { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width .6s var(--ease); }
.widget__demo { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 0 2px; border-top: 1px solid var(--line-d); font-size: .82rem; font-weight: 600; color: var(--gold); }
.widget__demo:hover .arrow { transform: translateX(4px); }
.widget__demo .arrow { transition: transform .3s var(--ease); }
.scroll-cue { position: absolute; right: var(--pad); bottom: clamp(48px, 7vw, 96px); width: 1px; height: 72px; background: rgba(241,241,236,.25); overflow: hidden; display: none; }
.scroll-cue span { position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: cue 2.2s var(--ease) infinite; }
@media (min-width: 960px) { .scroll-cue { display: block; } .hero__row { padding-right: 48px; } }

/* ---------- Intro / figures ---------- */
.intro { padding-top: var(--sec); }
.statement { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.1; letter-spacing: -.01em; max-width: 24ch; margin-top: 28px; text-wrap: balance; }
.statement em { color: var(--red-700); }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: var(--sec); border-top: 1px solid var(--line-l); }
.figures > div { padding: clamp(28px, 4vw, 56px) var(--pad); border-bottom: 1px solid var(--line-l); }
.figures > div:nth-child(odd) { border-right: 1px solid var(--line-l); }
.figures dt { font-family: var(--serif); font-size: clamp(3.2rem, 2rem + 4vw, 6.5rem); line-height: 1; }
.figures dt span { font-size: .5em; color: var(--red); }
.figures dd { margin-top: 12px; font-size: .9rem; color: var(--muted-dark); max-width: 22ch; }
@media (min-width: 960px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
  .figures > div { border-right: 1px solid var(--line-l); border-bottom: 0; padding-inline: clamp(24px, 3vw, 48px); }
  .figures > div:first-child { padding-left: var(--pad); }
  .figures > div:last-child { border-right: 0; }
}

/* ---------- Spaces ---------- */
.spaces { display: grid; }
.spaces__media { position: relative; height: 62vh; overflow: hidden; background: var(--ink-2); }
.spaces__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 1.8s var(--ease-out); }
.spaces__media img.is-active { opacity: 1; transform: none; }
.spaces__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,18,16,.5), transparent 35%); pointer-events: none; }
.spaces__count { position: absolute; left: var(--pad); bottom: 24px; z-index: 1; font-size: .8rem; letter-spacing: .14em; color: var(--muted-light); }
.spaces__count b { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; color: var(--text-light); letter-spacing: 0; margin-right: 4px; }
.spaces__list { padding-block: clamp(56px, 8vw, 120px); }
.spaces__list .display { margin: 20px 0 clamp(32px, 4vw, 56px); }
@media (min-width: 1024px) {
  .spaces { grid-template-columns: 1fr 1fr; }
  .spaces__media { position: relative; height: auto; min-height: 100vh; align-self: stretch; } /* photo spans the full section height */
  .spaces__list { padding-block: var(--sec); }
}
.acc { border-top: 1px solid var(--line-d); }
.acc__item { border-bottom: 1px solid var(--line-d); }
.acc__btn { width: 100%; display: flex; align-items: baseline; gap: 18px; padding: 22px 0; text-align: left; font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--muted-light); transition: color .35s; }
.acc__btn small { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; color: var(--gold); min-width: 22px; }
.acc__btn .icon { margin-left: auto; align-self: center; transition: transform .45s var(--ease); }
.acc__btn:hover, .acc__item.is-open .acc__btn { color: var(--text-light); }
.acc__item.is-open .acc__btn .icon { transform: rotate(45deg); color: var(--gold); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc__body > div { overflow: hidden; padding-left: 40px; }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body p { color: var(--muted-light); max-width: 52ch; font-weight: 300; }
.acc__body .tags { margin: 12px 0 26px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ---------- Systems hairline grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-l); }
.grid > li { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line-l); transition: background-color .45s var(--ease), color .45s var(--ease); overflow: hidden; }
.grid > li:not(.grid__cta):hover { background: var(--ink); color: var(--text-light); }
.grid > li:not(.grid__cta):hover p { color: var(--muted-light); }
.grid > li:not(.grid__cta):hover .icon { color: var(--gold); transform: translateY(-4px); }
.grid .icon { width: 30px; height: 30px; color: var(--stone); transition: color .45s, transform .45s var(--ease); }
.grid__n { position: absolute; right: clamp(24px, 3vw, 40px); top: clamp(24px, 3vw, 40px); font-size: .72rem; letter-spacing: .14em; color: var(--stone); }
.grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + .8vw, 2.1rem); line-height: 1.1; margin-top: auto; }
.grid > li:not(.grid__cta) p { min-height: 3.2em; }
.grid p { font-size: .92rem; color: var(--muted-dark); max-width: 30ch; transition: color .45s; }
.grid__cta { background: var(--ink); color: var(--text-light); padding: 0 !important; }
.grid__cta a { display: flex; flex-direction: column; gap: 20px; height: 100%; padding: clamp(28px, 3.4vw, 48px); background: linear-gradient(120deg, rgba(221,31,38,.22), transparent 60%); transition: background-color .45s; }
.grid__cta a:hover { background-color: #1E1E1A; }
.grid__cta .link { margin-top: auto; align-self: flex-start; color: var(--gold); }
@media (min-width: 640px) and (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid > li:nth-child(odd) { border-right: 1px solid var(--line-l); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid > li { border-right: 1px solid var(--line-l); }
  .grid > li:nth-child(4n) { border-right: 0; }
  .grid__cta { grid-column: span 3; border-right: 0 !important; }
}

/* ---------- Experience (scene demo) ---------- */
.experience { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: stretch; color: var(--text-light); }
.experience__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #0E0D0B; }
/* The stage keeps the photos' 16:10 ratio; JS sizes it to "cover" the section. Without JS it simply fills. */
.stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; transition: opacity var(--fade, 1.8s) cubic-bezier(.45,0,.25,1); }
/* Dissolve: the outgoing scene stays fully visible underneath while the new one fades in on top,
   so the room never washes out to grey halfway through. */
.shot.is-prev { opacity: 1; z-index: 1; transition: none; }
.shot.is-active { opacity: 1; z-index: 2; }
.experience[data-scene="morning"] { --fade: 2.2s; }  /* sunrise is slow */
.experience[data-scene="night"]   { --fade: 2.4s; }  /* lights ease down */
.experience[data-scene="outage"]  { --fade: 1.4s; }
/* Grid off: the room cuts to black, then the solar-backed light fades up */
.stage__blackout { position: absolute; inset: 0; z-index: 3; background: #050504; opacity: 0; pointer-events: none; transition: opacity 1.4s ease .45s; }
.experience.is-cut .stage__blackout { opacity: 1; transition: opacity .08s linear; }
.experience::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(18,18,16,.74) 0%, rgba(18,18,16,.32) 40%, rgba(18,18,16,0) 62%), linear-gradient(0deg, rgba(18,18,16,.55), transparent 32%); }
.experience__inner { width: 100%; display: grid; gap: 40px; align-content: end; padding-block: var(--sec); }
.experience__copy .display { margin: 20px 0 24px; max-width: 14ch; }
@media (min-width: 1024px) { .experience__inner { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.panel { border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); background: rgba(18,18,16,.42); border: 1px solid rgba(241,241,236,.16); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); max-width: 520px; width: 100%; justify-self: end; }
.panel__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.scene { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(241,241,236,.22); font-size: .85rem; font-weight: 500; color: var(--muted-light); transition: all .35s var(--ease); }
.scene:hover { color: var(--text-light); border-color: rgba(241,241,236,.5); }
.scene[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.panel__desc { margin: 22px 0 8px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; min-height: 2.5em; }
.panel__devs li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-d); font-size: .9rem; }
.panel__devs svg { color: var(--gold); }
.panel__devs b { margin-left: auto; font-weight: 600; text-align: right; }

/* ---------- Resilience panels ---------- */
.panels { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.panels::-webkit-scrollbar { display: none; }
.pnl { position: relative; flex: 0 0 82vw; height: 76svh; min-height: 480px; overflow: hidden; scroll-snap-align: start; isolation: isolate; }
.pnl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out), filter .8s; filter: brightness(.8); }
.pnl::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,18,16,.92) 0%, rgba(18,18,16,.2) 55%, transparent); }
.pnl__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); }
.pnl__n { font-size: .75rem; letter-spacing: .16em; color: var(--gold); }
.pnl h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem); line-height: 1.05; margin: 10px 0 12px; }
.pnl p { color: var(--stone-200); font-weight: 300; max-width: 38ch; }
@media (min-width: 1024px) {
  .panels { overflow: visible; }
  .pnl { flex: 1 1 0; height: 86vh; transition: flex-grow .9s var(--ease-out); }
  .pnl:hover { flex-grow: 2.1; }
  .pnl:hover img { transform: scale(1.05); filter: brightness(.95); }
  .pnl p { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease-out); }
  .pnl:hover p, .pnl:focus-within p { opacity: 1; transform: none; transition-delay: .2s; }
}

/* ---------- Process ---------- */
.steps { display: grid; border-top: 1px solid var(--line-l); }
.steps li { padding: clamp(28px, 3vw, 44px) var(--pad); border-bottom: 1px solid var(--line-l); display: grid; gap: 10px; align-content: start; position: relative; }
.steps__n { font-family: var(--serif); font-size: clamp(3rem, 2rem + 3vw, 5.5rem); line-height: 1; color: var(--red); }
.steps h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: .01em; }
.steps p { color: var(--muted-dark); font-size: .95rem; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease-out); transition-delay: calc(.2s + var(--i, 0) * 160ms); }
.steps.is-in li::before { transform: scaleX(1); }
.process { padding-bottom: var(--sec); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { border-bottom: 0; border-right: 1px solid var(--line-l); padding-inline: clamp(20px, 2.4vw, 40px); min-height: 360px; }
  .steps li:first-child { padding-left: var(--pad); }
  .steps li:last-child { border-right: 0; }
  .steps h3 { margin-top: auto; }
}

/* ---------- Projects (sticky stack) ---------- */
.projects { position: relative; background: var(--ink); }
.proj { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(var(--s, 1.08)); transition: transform .2s linear; }
.proj::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,18,16,.9) 0%, rgba(18,18,16,.25) 50%, rgba(18,18,16,.1)); }
.proj::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.proj__body { padding-bottom: clamp(48px, 7vw, 96px); width: 100%; }
.proj__body .display { margin: 18px 0 18px; }
.proj__meta { color: var(--stone-200); max-width: 44ch; font-weight: 300; font-size: 1.05rem; }
.proj__idx { position: absolute; right: var(--pad); bottom: clamp(48px, 7vw, 96px); font-size: .8rem; letter-spacing: .16em; color: var(--muted-light); }
.projects__note { padding-block: 20px; font-size: .78rem; color: var(--muted-light); background: var(--ink); position: relative; }
@media (max-width: 640px) { .proj__idx { top: calc(var(--header-h) + 16px); bottom: auto; } }

/* ---------- Studio ---------- */
.studio { display: grid; }
.studio__media { position: relative; min-height: 70vh; overflow: hidden; }
.studio__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio__body { padding-block: var(--sec); display: grid; gap: 28px; align-content: center; }
.studio__body .display { margin-top: -8px; }
.studio .q { font-family: var(--serif); font-size: 1.25em; color: var(--text-dark); }
@media (min-width: 1024px) {
  .studio { grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .studio__media { min-height: 100%; }
}
.mv { display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.mv > div { padding: 24px 0; border-bottom: 1px solid var(--line-l); }
.mv h3 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-700); margin-bottom: 8px; font-weight: 600; }
.mv p { color: var(--muted-dark); }
@media (min-width: 640px) { .mv { grid-template-columns: 1fr 1fr; } .mv > div:first-child { padding-right: 28px; border-right: 1px solid var(--line-l); } .mv > div:last-child { padding-left: 28px; } }
.values { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--serif); font-size: 1.4rem; }
.values li { display: inline-flex; align-items: center; gap: 22px; }
.values li:not(:last-child)::after { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.studio .btn { justify-self: start; }

/* ---------- Contact ---------- */
.contact { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center; color: var(--text-light); }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.4) brightness(.7); transform: scale(1.1) translateY(var(--py, 0)); }
.contact__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,18,16,.92), rgba(18,18,16,.7) 60%, rgba(18,18,16,.55)); }
.contact__inner { width: 100%; display: grid; gap: 48px; padding-block: var(--sec); }
@media (min-width: 1024px) { .contact__inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.contact__copy .display { margin: 20px 0 24px; }
.contact__list { margin-top: 36px; border-top: 1px solid var(--line-d); }
.contact__list li { border-bottom: 1px solid var(--line-d); }
.contact__list a, .contact__list span { display: flex; align-items: center; gap: 14px; padding: 16px 0; font-size: .98rem; transition: color .3s, padding-left .4s var(--ease); }
.contact__list svg { color: var(--gold); }
.contact__list a:hover { color: var(--gold); padding-left: 8px; }
.form { display: grid; gap: 26px; padding: clamp(24px, 3vw, 44px); border-radius: 20px; background: rgba(18,18,16,.5); border: 1px solid rgba(241,241,236,.14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 4px; }
.field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(241,241,236,.3); color: var(--text-light); font: inherit; font-size: 16px; border-radius: 0; transition: border-color .3s; }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23DDA627' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(241,241,236,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .error { display: none; font-size: .8rem; color: #FF8A8E; }
.field.has-error input, .field.has-error select { border-color: #FF8A8E; }
.field.has-error .error { display: block; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__note { font-size: .8rem; color: var(--muted-light); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-light); }
.band { height: 3px; background: var(--gold); }
.footer__top { display: grid; gap: 32px; align-items: end; padding-block: clamp(72px, 9vw, 140px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-d); }
.footer__big { font-size: clamp(3rem, 1.4rem + 7vw, 9.5rem); color: var(--text-light); }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1fr auto; } }
.footer__grid { display: grid; gap: 32px; padding-block: 48px; grid-template-columns: repeat(2, 1fr); }
.footer__grid img { height: 68px; width: auto; grid-column: 1 / -1; }
.footer__grid h4 { color: var(--text-light); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer__grid div { display: grid; gap: 10px; align-content: start; font-size: .92rem; }
.footer__grid a:hover { color: var(--gold); }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__grid img { grid-column: auto; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px calc(22px + 84px); border-top: 1px solid var(--line-d); font-size: .78rem; }
@media (min-width: 1100px) { .footer__bottom { padding-bottom: 26px; } }

/* ---------- Mobile action bar ---------- */
.actionbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 52px 52px 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(18,18,16,.86); border: 1px solid var(--line-d); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(150%); transition: transform .45s var(--ease); }
.actionbar.is-visible { transform: none; }
.actionbar a { min-height: 48px; display: grid; place-items: center; border-radius: 999px; color: var(--text-light); background: rgba(241,241,236,.08); }
.actionbar .actionbar__cta { background: var(--red); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
@media (min-width: 1100px) { .actionbar { display: none; } }


/* =========================================================
   Motion
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(221,31,38,.55); } 100% { box-shadow: 0 0 0 10px rgba(221,31,38,0); } }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.js [data-hero] { opacity: 0; }
.is-loaded [data-hero] { animation: rise 1s var(--ease-out) both; }
.is-loaded [data-hero="0"] { animation-delay: .3s; }
.is-loaded [data-hero="1"] { animation: none; opacity: 1; }
.is-loaded [data-hero="3"] { animation-delay: .9s; }
.is-loaded [data-hero="4"] { animation-delay: 1.3s; }
.hero__media img { transform: scale(1.04) translateY(var(--py, 0)); }
.is-loaded .hero__media img { animation: heroZoom 2.4s var(--ease-out) both; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(110%); }
.is-loaded .w > span { animation: wordUp 1.1s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 80ms); }

/* Statement words light up as you scroll */
[data-words] .sw { opacity: .18; transition: opacity .4s; }
[data-words] .sw.on { opacity: 1; }

/* Reveal + stagger */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), background-color .45s var(--ease), color .45s var(--ease), flex-grow .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-in > *:hover { transition-delay: 0s; }

/* Image curtain reveal */
.js .studio__media img, .js .spaces__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); }
.js .studio__media.is-in img, .js .spaces.is-in .spaces__media { clip-path: inset(0); }

.swap { animation: fadeSwap .45s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-hero], .js .reveal, .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .w > span { transform: none !important; }
  [data-words] .sw { opacity: 1; }
  .js .studio__media img, .js .spaces__media { clip-path: none !important; }
  .proj img { transform: none !important; }
}
