/* Nayansi — Obsidian-style placeholder build */
:root {
  --bg: #d3d1d2;
  --bg-hi: #e6e4e5;
  --bg-lo: #bdbabc;
  --ink: #0d0d0d;
  --ink-soft: #4a4748;
  --card: #141313;
  --card-ink: #ecebea;
  --gold: #c9a24a;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 2.2vw, 32px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: radial-gradient(120% 90% at 50% 30%, var(--bg-hi) 0%, var(--bg) 45%, var(--bg-lo) 100%) fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
ol, ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.label {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ───────── Loader ───────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-content: center; gap: 18px;
  padding: var(--pad);
}
.loader-name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(64px, 16vw, 260px); letter-spacing: -.06em; line-height: .8;
  clip-path: inset(0 0 0 0);
}
.loader-row { display: flex; justify-content: space-between; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.loader-bar { height: 1px; background: rgba(0,0,0,.15); }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

/* ───────── Top bar ───────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: start; gap: 16px;
  padding: calc(var(--pad) * .8) var(--pad);
  font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { text-decoration: none; }
.brand sup { font-size: 8px; }
.tb-mid { display: grid; justify-items: center; line-height: 1.5; }
.tb-mid .soft { color: var(--ink-soft); }
.tb-right { justify-items: end; padding-right: 36px; }
.menu-btn {
  width: 28px; height: 20px; background: none; border: 0; cursor: pointer;
  display: grid; gap: 4px; align-content: center;
}
.menu-btn span { display: block; height: 1.5px; background: var(--ink); transition: transform .4s cubic-bezier(.7,0,.2,1), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--card); color: var(--card-ink);
  display: grid; align-content: center; padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s cubic-bezier(.7,0,.2,1);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-open .topbar { color: var(--card-ink); }
.menu-open .menu-btn span { background: var(--card-ink); }
.menu ul { display: grid; gap: 4px; }
.menu a {
  font-family: var(--display); font-weight: 800; text-decoration: none;
  font-size: clamp(44px, 9vw, 130px); letter-spacing: -.05em; line-height: .95;
  display: inline-flex; align-items: flex-start; gap: 18px;
  transition: opacity .3s;
}
.menu a i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .1em; margin-top: 1.2em; opacity: .6; }
.menu ul:hover a { opacity: .35; }
.menu ul a:hover { opacity: 1; }
.menu-foot { position: absolute; left: var(--pad); bottom: var(--pad); font-size: 12px; opacity: .6; }

/* ───────── Hero ───────── */
.hero { position: relative; height: 560vh; } /* was 780vh, then 640vh; the stretch after her back view is short now (2026-11-16) */
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.giant {
  position: absolute; left: 0; right: 0; top: 9vh; z-index: 1;
  display: flex; justify-content: center; /* stays centred even if the word is wider than the screen */
  font-family: var(--display); font-weight: 900;
  font-size: 19.4vw; letter-spacing: -.065em; line-height: .78;
  text-align: center; white-space: nowrap;
  will-change: transform;
}
.giant-inner { display: inline-block; }
.giant-inner span { display: inline-block; will-change: transform; }

#muse { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
/* hidden until main.js fades her in once (2026-11-16): she used to show for an instant as the loader
   cleared, then restart her fade from invisible, so the background blinked over her */
#muse { opacity: 0; }
.muse-fallback { display: none; }

.beat { position: absolute; z-index: 3; opacity: 0; will-change: transform, opacity; }

.caption-bl { left: var(--pad); bottom: calc(var(--pad) * 1.2); max-width: 300px; }
.caption-bl.long { font-size: 13px; line-height: 1.45; max-width: 340px; font-weight: 500; }
.aside-r { right: var(--pad); bottom: calc(var(--pad) * 1.2); max-width: 280px; font-size: 13px; line-height: 1.45; text-align: right; font-weight: 500; }

.stack {
  left: calc(var(--pad) * .7); bottom: -1.6vw;
  font-family: var(--display); font-weight: 900;
  font-size: 12.5vw; line-height: .84; letter-spacing: -.06em;
  display: grid; z-index: 4;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; will-change: transform; }

.card {
  background: var(--card); color: var(--card-ink);
  padding: 18px 18px 20px; width: min(300px, 78vw);
  font-size: 12.5px; line-height: 1.5;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.card-k { font-family: var(--display); font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .55; margin-bottom: 10px; }
.card-r { right: 9vw; top: 26vh; }
.card-hand { left: 14vw; top: 46vh; }
.card-l { left: 9vw; top: 24vh; }

.side-big {
  right: var(--pad); top: 50%; translate: 0 -50%;
  font-family: var(--display); font-weight: 900; text-align: right;
  font-size: 6.2vw; line-height: .86; letter-spacing: -.055em;
  z-index: 1; /* behind her, like the title */
}

.rail { position: absolute; right: calc(var(--pad) * .6); top: 50%; translate: 0 -50%; width: 1px; height: 120px; background: rgba(0,0,0,.15); z-index: 5; }
.rail i { position: absolute; left: -1px; top: 0; width: 3px; height: 18px; background: var(--ink); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 5;
  font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* The dive: gold light blooming out of her wing joint */
.dive-flash {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at var(--fx, 60%) var(--fy, 30%), #fff8e4 0%, #f3c969 18%, #c9a24a 42%, #6b4a14 75%, #1a120a 100%);
}

/* ───────── The Machine Castle ───────── */
.castle-sec { position: relative; height: 900vh; background: #141c28; color: #efe9df; }
.castle-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.castle-canvas { position: absolute; inset: 0; }
.castle-still { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.castle-sec.is-still { height: 100vh; }
.castle-sec.is-still .castle-still { display: block; }
.castle-gold {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fff8e4 0%, #f3c969 18%, #c9a24a 42%, #6b4a14 75%, #1a120a 100%);
}
.castle-ui {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--pad) * 3.2) var(--pad) calc(var(--pad) * 1.2);
}
.castle-k { color: #f3c969; }
.castle-exit { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #ede6da 45%, var(--bg) 100%); }
.on-dark .topbar { color: #efe9df; transition: color .4s; }
.on-dark .tb-mid .soft { color: rgba(239,233,223,.55); }
.on-dark .menu-btn span { background: #efe9df; }
.castle-title { align-self: end; }
.castle-count { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: #f3c969; }
.castle-name {
  font-family: var(--display); font-weight: 900; font-size: clamp(54px, 9vw, 150px);
  letter-spacing: -.06em; line-height: .84; margin: 8px 0 10px;
}
.castle-name span, .castle-label { display: inline-block; transition: opacity .45s, transform .7s cubic-bezier(.2,.7,.2,1); }
.castle-name span.out, .castle-label.out { opacity: 0; transform: translateY(18px); }
.castle-label { font-size: 14px; opacity: .72; }
.castle-dots { display: flex; gap: 10px; margin-top: 18px; }
.castle-ui { grid-template-columns: 1fr auto; }
.castle-ui .castle-k { grid-column: 1 / -1; }
.castle-projects {
  grid-column: 2; grid-row: 2 / 4; align-self: end; justify-self: end; width: min(340px, 34vw);
  display: grid; gap: 2px; transition: opacity .4s, transform .6s cubic-bezier(.2,.7,.2,1);
}
.castle-projects.out { opacity: 0; transform: translateY(14px); }
.castle-projects li { background: rgba(14,11,9,.72); backdrop-filter: blur(6px); border-left: 2px solid #f3c969; padding: 10px 14px; display: grid; gap: 3px; }
.castle-projects b { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.castle-projects span { font-size: 12px; opacity: .72; line-height: 1.35; }
@media (max-width: 800px) { .castle-projects { display: none; } }
.castle-dots i { width: 34px; height: 3px; background: rgba(239,233,223,.25); }
.castle-dots i.on { background: #f3c969; }

/* ───────── Sections ───────── */
.sec { position: relative; padding: 18vh var(--pad); }
.sec-head { display: grid; gap: 22px; margin-bottom: 8vh; }
.h-xl {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(56px, 11vw, 190px); line-height: .84; letter-spacing: -.06em;
}
.h-xxl {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(72px, 17vw, 300px); line-height: .8; letter-spacing: -.065em;
  margin: 26px 0 6vh;
}

/* Index list */
.rows { border-top: 1px solid rgba(0,0,0,.2); }
.row {
  display: grid; grid-template-columns: 70px 1fr auto 140px 40px; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid rgba(0,0,0,.2);
  font-family: var(--display); cursor: pointer;
  transition: padding .5s cubic-bezier(.2,.7,.2,1), color .3s;
  position: relative;
}
.row::before { content: ""; position: absolute; inset: 0; background: var(--card); transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.7,0,.2,1); z-index: -1; }
.row:hover { color: var(--card-ink); padding-left: 18px; padding-right: 18px; }
.row:hover::before { transform: scaleY(1); }
.row .n { font-size: 11px; font-weight: 600; letter-spacing: .12em; opacity: .55; }
.row .t { font-size: clamp(22px, 3vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.row .tags { display: flex; gap: 6px; }
.row .tags b { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99px; padding: 5px 10px; opacity: .8; }
.row .m { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: right; }
.row .arrow { font-size: 22px; text-align: right; transition: transform .4s; }
.row:hover .arrow { transform: translateX(6px) rotate(-45deg); }
.index { isolation: isolate; }

.hover-card {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 250px; padding: 16px; background: var(--bg-hi); color: var(--ink);
  font-size: 12px; line-height: 1.45; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  opacity: 0; transform: translate(-50%, -120%) scale(.9);
  transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.hover-card.on { opacity: 1; transform: translate(-50%, -120%) scale(1); }
.hover-card .card-k { opacity: .5; }
.flow { position: relative; display: flex; justify-content: space-between; margin: 4px 2px 14px; height: 10px; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.3); }
.flow i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.flow i:nth-child(odd) { background: var(--gold); }
.flow::after { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: run 1.6s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes run { from { left: 0; } to { left: calc(100% - 8px); } }

/* Audience tabs */
.aud-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.aud-tabs button {
  font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: none; border: 1px solid rgba(0,0,0,.25); border-radius: 99px; padding: 10px 16px; cursor: pointer; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.aud-tabs button sup { font-size: 9px; margin-left: 4px; opacity: .6; }
.aud-tabs button[aria-selected="true"], .aud-tabs button:hover { background: var(--ink); color: var(--card-ink); border-color: var(--ink); }
.row .t small { display: block; font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: 0; opacity: .62; margin-top: 8px; }
.row .m { font-size: 10px; }
.row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Hover preview with the project image */
.hover-img { width: 300px; padding: 0; overflow: hidden; background: var(--card); color: var(--card-ink); }
.hover-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hover-img > div { padding: 12px 14px 14px; font-size: 12.5px; line-height: 1.45; }
.hover-img .card-k { color: var(--gold); opacity: 1; margin-bottom: 6px; }

/* Project drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(560px, 100vw);
  background: var(--card); color: var(--card-ink); overflow-y: auto;
  transform: translateX(100%); transition: transform .7s cubic-bezier(.7,0,.2,1);
  box-shadow: -40px 0 80px -40px rgba(0,0,0,.6);
}
.drawer-open .drawer { transform: translateX(0); }
.drawer-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 22px; cursor: pointer; }
.drawer-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.drawer-body { padding: 26px 28px 40px; display: grid; gap: 14px; }
.drawer-body .label { color: var(--gold); }
.drawer-body h3 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.05em; line-height: .9; }
.drawer-hook { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.drawer-body > p:not(.label) { font-size: 14.5px; line-height: 1.6; color: rgba(236,235,234,.82); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips b { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(243,201,105,.45); border-radius: 99px; padding: 6px 10px; }
.drawer-target { color: var(--gold) !important; font-weight: 500; }
.drawer .btn { justify-self: start; background: var(--gold); color: var(--card); margin-top: 6px; }
.drawer-note { font-size: 12px !important; opacity: .6; }

/* Field notes */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px; }
.note { background: rgba(255,255,255,.35); padding: 24px 22px 26px; display: grid; gap: 12px; align-content: start; min-height: 260px; transition: background .4s, color .4s; }
.note:hover { background: var(--card); color: var(--card-ink); }
.note .label span { color: var(--gold); margin-right: 6px; }
.note h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.035em; line-height: 1; }
.note p:not(.label) { font-size: 13.5px; opacity: .78; }
.note .soon { margin-top: auto; font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }

/* Offers */
.offers { display: grid; gap: 5vh; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.offer { background: var(--card); color: var(--card-ink); padding: 28px 22px; display: grid; gap: 16px; align-content: start; min-height: 320px; }
.offer i { font-style: normal; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.offer h3 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.05em; line-height: .92; }
.offer p { font-size: 13.5px; opacity: .8; }
.offer .label { margin-top: auto; color: var(--gold); }
@media (max-width: 800px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer { min-height: 0; }
}

/* Statement */
.statement { display: grid; gap: 30px; }
.big-quote {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 5.2vw, 88px); line-height: 1; letter-spacing: -.045em;
  max-width: 16ch;
}
.big-quote .w { opacity: .14; transition: opacity .2s; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding-top: 4vh; padding-bottom: 4vh; }
.num { background: var(--card); color: var(--card-ink); padding: 28px 22px; display: grid; gap: 40px; min-height: 240px; align-content: space-between; }
.num b { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 96px); letter-spacing: -.05em; line-height: .9; }
.num span { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }

/* Design work */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: grid; gap: 12px; cursor: pointer; }
.tile-img {
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, #e9e7e8, #b7b4b6);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.tile-img span { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .45; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile-img::after { content: ""; position: absolute; inset: 0; background: var(--card); transform: translateY(100%); transition: transform .7s cubic-bezier(.7,0,.2,1); }
.tile:hover .tile-img::after { transform: translateY(88%); }
.tile:hover .tile-img span { transform: scale(1.08); }
.tile h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.035em; line-height: 1; }

/* Process */
.process { display: grid; gap: 6vh; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0,0,0,.2); }
.step { padding: 26px 22px 0 0; display: grid; gap: 14px; align-content: start; border-right: 1px solid rgba(0,0,0,.12); padding-left: 0; }
.step + .step { padding-left: 22px; }
.step:last-child { border-right: 0; }
.step i { font-style: normal; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .12em; opacity: .55; }
.step h3 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4vw, 64px); letter-spacing: -.05em; line-height: .9; }
.step p { font-size: 13px; max-width: 26ch; color: var(--ink-soft); }

/* Contact */
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--card-ink); text-decoration: none;
  font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 18px 26px; border-radius: 99px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.btn span { transition: transform .4s; }
.btn:hover { transform: scale(1.04); }
.btn:hover span { transform: translateX(4px); }
.mail { font-family: var(--display); font-size: clamp(18px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; text-underline-offset: 6px; }

/* Footer */
.foot { padding: 0 var(--pad); overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(0,0,0,.2); font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.foot-giant {
  font-family: var(--display); font-weight: 900;
  font-size: 23.6vw; letter-spacing: -.07em; line-height: .74;
  text-align: center; margin-bottom: -2.4vw; white-space: nowrap;
}

/* ───────── Mobile ───────── */
@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr auto; }
  .tb-mid { display: none; }
  .giant { top: 12vh; font-size: 21vw; }
  .stack { font-size: 17vw; bottom: 10vh; }
  .card-r, .card-hand, .card-l { left: var(--pad); right: auto; top: 11vh; bottom: auto; }
  .side-big { font-size: 13vw; top: auto; bottom: 6vh; translate: 0 0; z-index: 3; }
  .scroll-cue { display: none; }
  .aside-r { display: none; }
  .row { grid-template-columns: 34px 1fr 24px; gap: 12px; }
  .row .tags, .row .m { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { min-height: 170px; }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .foot-row { flex-direction: column; }
  .hover-card { display: none; }
}

/* ───────── Reduced motion ─────────
   The statue still turns with the scroll: the visitor drives it, nothing moves on its own. (It used to
   become a one-screen still, which looked broken on phones with "reduce motion" on; user, 2026-11-16.)
   Only decorative motion is dropped: smooth scrolling, section reveals, the live layer. */
@media (prefers-reduced-motion: reduce) {
  .big-quote .w { opacity: 1; }
}

/* The Descent (film.js): two worlds for now; grows ~200vh per world */
.castle-sec.is-film { height: 420vh; background: #0d0a08; }
/* project plates inside the film: real product shot + mark */
.castle-sec.is-film .castle-projects { width: min(380px, 34vw); gap: 8px; }
.castle-projects li.plate { padding: 0; border-left: 0; grid-template-columns: 112px 1fr; gap: 0; overflow: hidden; border-radius: 6px; }
.castle-projects li.plate img { width: 112px; height: 100%; min-height: 74px; object-fit: cover; display: block; }
.castle-projects li.plate div { padding: 9px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 2px; align-items: center; }
.castle-projects li.plate .pmark { grid-row: span 2; }
.castle-projects li.plate b { font-size: 14.5px; }
.castle-projects li.plate span { font-size: 11.5px; grid-column: 2; }
@media (max-width: 800px) {
  .castle-sec.is-film .castle-projects { display: grid; grid-column: 1 / -1; grid-row: 2; align-self: end; justify-self: stretch; width: auto; gap: 6px; margin-bottom: 14px; }
  .castle-projects li.plate { grid-template-columns: 1fr; }
  .castle-projects li.plate img, .castle-projects li.plate span { display: none; }
  .castle-projects li.plate div { padding: 7px 10px; }
  .castle-projects li.plate .pmark { grid-row: auto; }
}

/* sections switched off with the hidden attribute must take no space (some .sec rules set display) */
[hidden] { display: none !important; }

/* Nothing may make the page wider than the screen (2026-11-16). On phones the cloud banks reach past both
   edges; that widened the page to about twice the phone's width, so the loader, the statue and the title
   were centred on the wider page and sat off to the side. `clip` (not `hidden`) keeps position: sticky working. */
html, body { overflow-x: clip; }

