/* ==========================================================
   Makon — full-screen scrolling room (landing) + auth
   ========================================================== */
:root {
  --night: #121614;          /* page background (dark) */
  --cream: #f0eadf;          /* light panels */
  --paper: #f7f3ec;
  --ink: #18201d;            /* text / buttons on light */
  --white: #fbf8f2;
  --soft: rgba(251, 248, 242, .72);
  --faint: rgba(251, 248, 242, .45);
  --accent: #e2a964;         /* honey gold (italic words, numbers) */
  --accent-deep: #b9783a;
  --window: #8fb6d0;         /* window line in plan */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 3vw, 44px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night); color: var(--white);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--white); color: var(--ink); padding: 10px 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* small caps label used everywhere */
.label {
  font-family: var(--serif); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.accent { color: var(--accent); }
.ital { font-style: italic; color: var(--accent); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 900; background: #0d100f; display: grid; place-items: center; transition: opacity .9s ease, visibility .9s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader .label { color: var(--faint); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* ---------- fixed stage with the room ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; background: #0d100f; }
/* .frame is always the "cover" box of a 16:9 photo, so overlays line up with the picture */
.frame {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  transform: translate(calc(-50% + var(--px, 0px)), -50%);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.frame > img, .frame > svg, .frame > .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame > img { object-fit: cover; transition: filter 1s ease, opacity 1s ease, transform 8s ease; }
#img-after { clip-path: inset(0 100% 0 0); }
.shade { position: absolute; inset: 0; pointer-events: none; transition: background 1s ease; }
.vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.45) 100%),
              linear-gradient(to top, rgba(0,0,0,.55), transparent 38%),
              linear-gradient(to bottom, rgba(0,0,0,.35), transparent 18%); }
.divider { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.85); left: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }

/* overlays fade by step */
.ov { opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.ov.on { opacity: 1; }
.ov.on .hit { pointer-events: auto; }

/* understand overlay */
.trace { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.6; }
.trace.dash { stroke-dasharray: 10 8; stroke: rgba(255,255,255,.7); }
.ray { stroke: rgba(255,226,180,.75); stroke-width: 1.4; stroke-dasharray: 14 10; fill: none; }
.pin { fill: var(--accent); }
.note-t { font: 600 15px var(--sans); fill: #fff; }
.note-s { font: 600 11px var(--serif); letter-spacing: .2em; fill: rgba(255,255,255,.7); text-transform: uppercase; }
.note-bg { fill: rgba(18,22,20,.55); }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.brand-box { width: 30px; height: 30px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.count { color: var(--soft); }
.count b { color: var(--accent); font-weight: 600; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 26px; }
.top-link { color: var(--soft); transition: color .2s; white-space: nowrap; }
.top-link:hover { color: var(--white); }
.cta-top { display: inline-flex; gap: 8px; align-items: center; color: var(--white); transition: color .2s; }
.cta-top:hover { color: var(--accent); }

/* right rail */
.rail { position: fixed; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rail button { background: none; border: 0; padding: 7px 0; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--faint); }
.rail button i { display: block; width: 14px; height: 1px; background: currentColor; transition: width .4s, background .4s; }
.rail button span { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s; white-space: nowrap; }
.rail button.on { color: var(--white); }
.rail button.on i { width: 46px; background: var(--accent); }
.rail button.on span, .rail button:hover span { opacity: 1; transform: none; }

/* corner captions */
.corner { position: fixed; bottom: 18px; z-index: 40; color: var(--soft); pointer-events: none; }
.corner.l { left: var(--pad); } .corner.r { right: var(--pad); }

/* ---------- scrolling chapters ---------- */
.chapters { position: relative; z-index: 10; }
.chapter { height: 135vh; position: relative; }
.chapter:first-child { height: 120vh; }
.panel {
  position: fixed; z-index: 20; opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
}
.panel.on { opacity: 1; visibility: visible; transform: none; }
.panel .label { color: var(--white); display: block; margin-bottom: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.panel h1, .panel h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: .98; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.panel h1 { font-size: clamp(44px, 6.4vw, 104px); }
.panel h2 { font-size: clamp(36px, 4.4vw, 70px); }
.panel h2.small { font-size: clamp(30px, 3.1vw, 50px); line-height: 1.08; letter-spacing: -.025em; }
.panel p { color: var(--soft); max-width: 46ch; margin: 18px 0 0; font-size: 14.5px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.bl { left: var(--pad); bottom: clamp(56px, 9vh, 100px); max-width: min(760px, 90vw); }
.tr { right: calc(var(--pad) + 30px); top: clamp(80px, 12vh, 130px); text-align: right; }
.tl { left: var(--pad); top: clamp(78px, 11vh, 120px); max-width: 520px; }
.tr p { margin-left: auto; }

.links { display: flex; gap: 28px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.link-line { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.75); transition: color .2s, border-color .2s, gap .2s; }
.link-line:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.link-plain { color: var(--soft); display: inline-flex; gap: 8px; padding-bottom: 7px; }
.link-plain:hover { color: var(--white); }

/* compare bar (design) */
.compare-bar { position: fixed; left: 50%; bottom: clamp(26px, 5vh, 56px); transform: translateX(-50%); width: min(560px, 82vw); z-index: 30; text-align: center; }
.compare-bar .label { color: var(--white); margin-bottom: 12px; display: block; }
.cb-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; color: var(--soft); }
.cb-track { position: relative; height: 28px; }
.cb-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.5); }
.cb-knob { position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; }
.cb-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* refine tags */
.tagpin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; }
.tagpin .ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); transition: transform .3s, background .3s; }
.tagpin:hover .ring, .tagpin.open .ring { transform: scale(1.15); background: rgba(255,255,255,.18); }
.tagpin .tagname { background: var(--paper); color: var(--ink); padding: 3px 7px; }
.tagpin .tip { position: absolute; top: 100%; margin-top: 10px; width: 200px; background: rgba(18,22,20,.86); color: #fff; padding: 10px 12px; text-align: left; font: 13px/1.45 var(--sans); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; pointer-events: none; backdrop-filter: blur(6px); }
.tagpin.open .tip, .tagpin:focus-visible .tip { opacity: 1; transform: none; }

/* plan diagram */
.plan { position: fixed; z-index: 25; right: clamp(80px, 9vw, 150px); top: 50%; transform: translateY(-46%); width: min(560px, 46vw); }
.plan-head { display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 10px; margin-bottom: 26px; color: var(--soft); font-size: 12px; }
.plan-head .label { color: var(--white); margin: 0; }
.plan svg { width: 100%; height: auto; overflow: visible; }
.p-wall { fill: none; stroke: #efe6d4; stroke-width: 5; }
.p-obj { fill: rgba(255,255,255,.06); stroke: rgba(239,230,212,.8); stroke-width: 1.5; transition: fill .3s; }
.p-obj:hover { fill: rgba(226,169,100,.25); }
.p-win { stroke: var(--window); stroke-width: 5; }
.p-door { stroke: var(--accent); stroke-width: 5; }
.p-arch { fill: rgba(226,169,100,.12); stroke: var(--accent); stroke-width: 1.5; }
.p-dim { font: 600 13px var(--sans); fill: var(--accent); opacity: 0; transition: opacity .5s; }
.plan.scaled .p-dim { opacity: 1; }
.scale-btn { display: block; width: 100%; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.35); margin-top: 14px; padding: 12px 0 0; color: var(--white); cursor: pointer; text-align: center; }
.scale-btn:hover { color: var(--accent); }
.scale-form { display: none; gap: 10px; justify-content: center; align-items: center; margin-top: 12px; color: var(--soft); font-size: 13px; }
.scale-form.open { display: flex; }
.scale-form input { width: 90px; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.6); color: #fff; padding: 6px 2px; font: inherit; text-align: center; }
.scale-form button { background: var(--white); color: var(--ink); border: 0; padding: 8px 14px; cursor: pointer; }

/* build hotspots */
.spot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.18); backdrop-filter: blur(4px); color: #fff; cursor: pointer; font: 600 10px var(--serif); letter-spacing: .08em; }
.spot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.spot.open { background: var(--accent); border-color: var(--accent); }
.spot-card { position: absolute; z-index: 2; width: 230px; background: var(--paper); color: var(--ink); padding: 14px 16px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.spot-card.show { opacity: 1; transform: none; }
.spot-card .label { color: var(--accent-deep); }
.spot-card strong { display: block; font: 500 22px/1.15 var(--serif); margin: 4px 0 6px; }
.spot-card span { font-size: 13px; color: #4a524e; }
.inspect { position: fixed; left: 50%; bottom: clamp(34px, 6vh, 64px); transform: translateX(-50%); z-index: 30; background: var(--paper); color: var(--ink); padding: 7px 12px; white-space: nowrap; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 74px; transform: translate(-50%, -20px); z-index: 800; background: var(--paper); color: var(--ink); padding: 10px 16px; font-size: 13.5px; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .rail { display: none; }
  .count { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .tr { left: var(--pad); right: var(--pad); text-align: left; }
  .tr p { margin-left: 0; }
  .plan { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: 70px; transform: none; }
  .plan-head span:last-child { display: none; }
  .corner.r { display: none; }
  .tl p { display: none; }
  .note-t { font-size: 22px; } .note-s { font-size: 16px; }
}
@media (max-width: 560px) {
  .cta-top span.full { display: none; }
  .inspect { white-space: normal; text-align: center; width: max-content; max-width: 90vw; }
  .bl { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
}

/* ==========================================================
   AUTH (sign in / sign up) — split screen
   ========================================================== */
body.auth { background: var(--cream); color: var(--ink); }
.auth-wrap { display: grid; grid-template-columns: 45% 55%; min-height: 100vh; }
.auth-side { position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--white); padding: 32px clamp(20px, 3vw, 40px); display: flex; flex-direction: column; }
.auth-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 30% 50%; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,17,15,.78), rgba(14,17,15,.45)), linear-gradient(to top, rgba(14,17,15,.6), transparent 50%); }
.auth-side .brand { color: var(--white); }
.auth-side .mid { margin-top: auto; margin-bottom: auto; }
.auth-side .label { color: var(--white); display: block; margin-bottom: 18px; }
.auth-side h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.6vw, 74px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.auth-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 16px; margin-top: 8px; }
.auth-steps .label { margin: 0; display: inline; }
.auth-steps sup { color: var(--accent); font-size: 8px; margin-right: 4px; letter-spacing: 0; }
.auth-note { color: var(--soft); font-size: 12px; margin: 14px 0 0; max-width: 52ch; }

.auth-main { padding: 28px clamp(20px, 6vw, 96px) 60px; display: flex; flex-direction: column; }
.back { font-size: 12px; color: #4c5551; display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--ink); }
.auth-inner { width: 100%; max-width: 440px; margin: clamp(30px, 6vh, 70px) auto auto; }
.auth-inner .label { color: var(--accent-deep); display: block; margin-bottom: 16px; }
.auth-inner h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 5.4vw, 84px); line-height: .92; letter-spacing: -.04em; margin: 0; }
.rule { width: 36px; height: 1px; background: var(--accent-deep); margin: 22px 0; }
.auth-inner .lead { color: #59615d; font-size: 13.5px; margin: 0 0 30px; }
.u-field { margin-bottom: 22px; position: relative; }
.u-field .label { color: var(--ink); font-size: 9.5px; margin-bottom: 8px; }
.u-field input { width: 100%; border: 0; border-bottom: 1px solid #c9c1b3; background: transparent; padding: 8px 34px 10px 0; font: 14px var(--sans); color: var(--ink); border-radius: 0; transition: border-color .2s; }
.u-field input::placeholder { color: #9a9890; }
.u-field input:focus { outline: none; border-bottom-color: var(--accent-deep); }
.u-field .hint { font-size: 11px; color: #8a8a82; margin-top: 6px; }
.eye { position: absolute; right: 0; bottom: 8px; background: none; border: 0; cursor: pointer; color: #6b716d; padding: 4px; }
.eye svg { width: 17px; height: 17px; display: block; }
.btn-black { width: 100%; background: var(--ink); color: var(--white); border: 0; padding: 15px; cursor: pointer; transition: background .2s, letter-spacing .3s; margin-top: 8px; }
.btn-black:hover { background: #2a3530; letter-spacing: .26em; }
.btn-black:disabled { opacity: .6; cursor: wait; }
.btn-outline { width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 13px; cursor: pointer; margin-top: 10px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.form-error { color: #a12d22; font-size: 13px; min-height: 18px; margin: 0 0 6px; }
.switch { text-align: center; font-size: 12px; color: #59615d; margin-top: 18px; }
.switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { position: relative; height: auto; min-height: 380px; }
  .auth-side .mid { margin: 40px 0 20px; }
}

/* let clicks reach the room underneath the scroll spacers */
.chapters, .chapter { pointer-events: none; }
.panel.on { pointer-events: none; }
.panel.on a, .panel.on button, .panel.on input, .panel.on form, .panel.on svg { pointer-events: auto; }
#refine .panel.bl { max-width: min(600px, 90vw); }
.plan.panel { transition-delay: .25s; }
.cta-top .short { display: none; }
.auth-inner .btn-black.label { color: var(--white); margin-bottom: 0; display: block; }
.auth-inner .btn-outline.label { color: var(--ink); margin-bottom: 0; display: block; }
.auth-inner .btn-outline.label:hover { color: var(--white); }
@media (max-width: 560px) { .cta-top .short { display: inline; } }

/* ==========================================================
   Makon additions — after-story sections, mobile pins
   ========================================================== */
.cb-end { margin: 0 !important; color: var(--soft) !important; }
.m-pins { display: none; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.m-pins button { background: rgba(18,22,20,.55); border: 1px solid rgba(255,255,255,.55); color: #fff; padding: 9px 12px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.m-pins button.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.panel .m-pins .label { margin: 0; display: inline-block; }

body.past .rail, body.past .corner, body.past .count { opacity: 0; pointer-events: none; }
.rail, .corner, .count { transition: opacity .4s; }
.top { transition: background .4s, padding .4s; }
.top { z-index: 70; }

.after { position: relative; z-index: 60; background: var(--night); border-top: 1px solid rgba(255,255,255,.08); }
.sec { padding: clamp(72px, 11vw, 140px) var(--pad); max-width: 1280px; margin: 0 auto; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec .label.accent { display: block; margin-bottom: 18px; color: var(--accent); }
.sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.sec p { color: var(--soft); max-width: 60ch; }
.sec-head p { margin-top: 20px; font-size: 16px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.tool { background: var(--night); padding: clamp(22px, 2.6vw, 36px); transition: background .3s; }
.tool:hover { background: #18201c; }
.tool-n { color: var(--accent); display: block; margin-bottom: 26px; }
.tool h3 { font: 500 clamp(22px, 2vw, 28px)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 12px; }
.tool p { font-size: 14px; margin: 0 0 16px; }
.tool ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.1); }
.tool li { font-size: 13px; color: var(--faint); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.tool li::before { content: "— "; color: var(--accent); }

.sec-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sec-split p { font-size: 15.5px; }
.phone { margin: 0 auto; width: min(300px, 70vw); aspect-ratio: 9 / 19; border: 10px solid #222a26; border-radius: 38px; overflow: hidden; position: relative; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.phone figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; }
.phone figcaption .label { color: var(--accent-deep); font-size: 9.5px; }

.faq { max-width: 860px; border-top: 1px solid rgba(255,255,255,.14); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.14); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 500 clamp(18px, 1.8vw, 22px)/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 26px var(--sans); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; font-size: 14.5px; }

.cta-end { text-align: center; }
.cta-end h2 { font-size: clamp(40px, 6vw, 86px); }
.links.center { justify-content: center; margin-top: 40px; }
.btn-light { background: var(--white); color: var(--ink); padding: 16px 24px; transition: background .2s, letter-spacing .3s; display: inline-block; }
.btn-light:hover { background: var(--accent); letter-spacing: .26em; }

.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); color: var(--faint); font-size: 13px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--white); }

@media (max-width: 1000px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .m-pins { display: flex; }
  .top-link { display: none; }
  .sec-split { grid-template-columns: 1fr; }
  #build .inspect { display: none; }
  .spot-card { max-width: calc(100vw - 32px); }
  .tr h2 { font-size: clamp(34px, 9vw, 52px); }
}
@media (max-width: 620px) {
  .tools { grid-template-columns: 1fr; }
  .panel h1 { font-size: clamp(40px, 12vw, 60px); }
  .panel h2.small { font-size: clamp(26px, 7.4vw, 36px); }
  .compare-bar { bottom: calc(22px + env(safe-area-inset-bottom)); }
  .plan { bottom: calc(40px + env(safe-area-inset-bottom)); }
  .corner.l { display: none; }
}
@media (max-height: 560px) and (max-width: 900px) {
  .plan { display: none; }
  .panel h1 { font-size: 36px; } .panel p { display: none; }
}

/* auth extras */
.signed-note { margin-top: -14px !important; }
.signed-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.u-field .eye { bottom: 6px; }
.u-field:has(.strength) .eye { bottom: 26px; }
.strength { display: flex; gap: 4px; align-items: center; margin-top: 8px; height: 14px; }
.strength i { flex: 1; height: 3px; background: #ddd5c6; transition: background .3s; }
.strength span { font-size: 11px; color: #6b716d; min-width: 58px; text-align: right; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #b3261e; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #c98a2e; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #6f8f4e; }
.strength[data-level="4"] i { background: #2f6b4f; }
.or { display: flex; align-items: center; gap: 12px; color: #8a8a82; font-size: 11px; margin: 14px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #d6ccbb; }
.auth-main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) {
  .auth-side { min-height: 0; padding-bottom: 24px; }
  .auth-side h2 { font-size: clamp(34px, 9vw, 48px); }
  .auth-side .mid { margin: 28px 0 18px; }
  .auth-note { display: none; }
  .auth-inner { margin-top: 24px; }
  .auth-inner h1 { font-size: clamp(42px, 12vw, 60px); }
  .u-field input { font-size: 16px; } /* stops iOS zoom on focus */
}

.brand .wordmark { height: 30px; width: auto; display: block; }
@media (max-width: 560px) { .brand .wordmark { height: 26px; } }

/* ==========================================================
   Header v2 — announcement, frosted bar, progress, language, menu
   ========================================================== */
:root { --ann: 0px; }
body.has-announce { --ann: 38px; }
.announce { position: fixed; top: 0; left: 0; right: 0; z-index: 75; height: var(--ann); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 44px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.announce[hidden] { display: none; }
.announce i { font-style: normal; }
.announce-a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 50%; }
.announce-x:hover { background: rgba(0,0,0,.08); }

.top { top: var(--ann); padding: 20px var(--pad); transition: background .35s, padding .35s, border-color .35s, top .3s; border-bottom: 1px solid transparent; }
body.scrolled .top { background: rgba(18,22,20,.55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-top: 12px; padding-bottom: 12px; border-bottom-color: rgba(255,255,255,.08); }
body.past .top { background: rgba(18,22,20,.92); }
.rail { top: calc(50% + var(--ann) / 2); }

.chap { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--soft); transition: opacity .4s; }
.chap b { color: var(--accent); font-weight: 600; }
.prog { position: relative; width: 168px; height: 2px; background: rgba(255,255,255,.18); overflow: hidden; border-radius: 2px; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width .15s linear; }
body.past .chap { opacity: 0; pointer-events: none; }

.top-right { gap: 22px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 2px; }
.lang button { border: 0; background: none; color: var(--soft); font: 600 10px/1 var(--sans); letter-spacing: .08em; padding: 6px 8px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.lang.light { border-color: #c9c1b3; }
.lang.light button { color: #59615d; }
.lang.light button:hover { color: var(--ink); }
.lang.light button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.cta-btn { display: inline-flex; align-items: center; background: var(--white); color: var(--ink); padding: 12px 18px; transition: background .2s, letter-spacing .3s; white-space: nowrap; }
.cta-btn:hover { background: var(--accent); }
.cta-btn .short { display: none; }
.me-chip { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-deep); color: #fff; display: grid; place-items: center; font: 600 14px var(--sans); }
.me-chip[hidden] { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(18,22,20,.35); cursor: pointer; position: relative; }
.menu-toggle i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform .3s, top .3s; }
.menu-toggle i:first-child { top: 16px; } .menu-toggle i:last-child { top: 24px; }
body.menu-open .menu-toggle i:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .menu-toggle i:last-child { top: 20px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 65; background: var(--night); display: flex; flex-direction: column; padding: calc(96px + var(--ann)) var(--pad) calc(32px + env(safe-area-inset-bottom)); gap: 32px; overflow-y: auto; opacity: 0; transition: opacity .3s; }
.mnav[hidden] { display: none; }
body.menu-open .mnav { opacity: 1; }
body.menu-open { overflow: hidden; }
.mnav-links { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.12); }
.mnav-a { font: 500 34px/1.1 var(--serif); letter-spacing: -.02em; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mnav-a:hover { color: var(--accent); }
.mnav-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mnav-lang .label { color: var(--soft); }
.mnav-lang .lang button { font-size: 12px; padding: 9px 12px; }
.mnav-cta { margin-top: auto; text-align: center; padding: 18px; }

.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) { .top-right { gap: 16px; } .prog { width: 120px; } }
@media (max-width: 900px) {
  .top-link, .top-right > .lang, .signin-link:not(.mnav-a), .me-chip { display: none !important; }
  .menu-toggle { display: block; }
  .top-right { gap: 10px; }
  .top { grid-template-columns: 1fr auto; }
  .chap { display: flex; position: absolute; left: 0; right: 0; bottom: -1px; }
  .chap-t { display: none; }
  .prog { width: 100%; height: 2px; border-radius: 0; background: transparent; }
  .cta-btn { padding: 10px 14px; }
  .announce { justify-content: flex-start; padding: 0 44px 0 14px; font-size: 12px; gap: 10px; }
}
@media (max-width: 560px) {
  .cta-btn .full { display: none; } .cta-btn .short { display: inline; }
  .announce-t i { display: none; }
}

/* header v2 fixes: room for the announcement, true centring, anchor offsets */
.tr { top: calc(clamp(80px, 12vh, 130px) + var(--ann)); }
.tl { top: calc(clamp(78px, 11vh, 120px) + var(--ann)); }
.compare-bar { left: 0; right: 0; margin-inline: auto; transform: translateY(18px); }
.compare-bar.on { transform: none; }
.inspect { left: 0; right: 0; margin-inline: auto; width: max-content; max-width: 90vw; transform: translateY(18px); }
.inspect.on { transform: none; }
#tools, #faq { scroll-margin-top: 90px; }
@media (max-width: 1320px) {
  .top { grid-template-columns: auto 1fr; }
  .top-right { justify-self: end; }
  .chap { position: absolute; left: 0; right: 0; bottom: -1px; }
  .chap-t { display: none; }
  .prog { width: 100%; height: 2px; border-radius: 0; background: transparent; }
}
@media (max-width: 900px) {
  .tr { top: calc(96px + var(--ann)); }
  .tl { top: calc(92px + var(--ann)); }
}

/* ---------- phones: keep everything on screen ---------- */
.m-notes { display: none; list-style: none; padding: 0; margin: 18px 0 0; }
@media (max-width: 900px) {
  /* the photo's text notes don't fit a cropped portrait photo — show them as a list instead */
  #ov-understand .notes { display: none; }
  .m-notes { display: grid; gap: 8px; max-width: 320px; }
  .m-notes li { display: grid; gap: 2px; padding: 8px 12px; background: rgba(18,22,20,.6); border-left: 2px solid var(--accent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .m-notes b { font: 600 13.5px/1.3 var(--sans); color: #fff; }
  .m-notes span { font: 600 9.5px var(--serif); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); }
  /* photo markers only appear when you tap their chip, so they never sit on top of the text */
  #ov-refine .tagpin:not(.open), #ov-build .spot:not(.open) { opacity: 0; pointer-events: none; }
  .tagpin, .spot { transition: opacity .3s; }
}
@media (max-width: 900px) and (max-height: 600px) {
  .m-notes li:nth-child(n+3) { display: none; }
}
/* phones turned sideways: less chrome, smaller type */
@media (max-height: 500px) and (orientation: landscape) {
  body.has-announce { --ann: 0px; }
  .announce { display: none !important; }
  .top { padding-top: 10px; padding-bottom: 10px; }
  body.scrolled .top { padding-top: 8px; padding-bottom: 8px; }
  .bl { bottom: 18px; max-width: 62vw; }
  .tr, .tl { top: 70px; }
  .panel h1 { font-size: 34px; }
  .panel h2 { font-size: 30px; }
  .panel h2.small { font-size: 22px; }
  .panel p { display: none; }
  .panel .label { margin-bottom: 8px; }
  .links { margin-top: 14px; gap: 18px; }
  .m-pins { margin-top: 10px; }
  .m-pins button { padding: 6px 9px; }
  .m-notes { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .m-notes li:nth-child(n+3) { display: grid; }
  .compare-bar { bottom: 10px; }
  .corner { display: none; }
  .mnav { padding-top: 76px; gap: 18px; }
  .mnav-a { font-size: 24px; padding: 10px 0; }
}
@media (max-width: 900px) {
  .vignette { background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.4) 100%), linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.25) 45%, transparent 62%), linear-gradient(to bottom, rgba(0,0,0,.45), transparent 22%); }
}

/* ==========================================================
   Templates page (light, editorial)
   ========================================================== */
body.tplpage { background: var(--cream); color: var(--ink); }
body.tplpage.lb-open, body.tplpage.menu-open { overflow: hidden; }
.lhead { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); transition: background .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
.lhead.scrolled { background: rgba(240,234,223,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: #ddd3c2; padding-top: 12px; padding-bottom: 12px; }
.lnav { display: flex; align-items: center; gap: 22px; }
.lnav-a { font: 600 10.5px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #59615d; padding: 6px 0; border-bottom: 1px solid transparent; }
.lnav-a:hover, .lnav-a.on { color: var(--ink); border-bottom-color: var(--ink); }
.lcta { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); padding: 12px 18px; font: 600 10.5px var(--serif); letter-spacing: .2em; text-transform: uppercase; transition: background .2s; white-space: nowrap; }
.lcta:hover { background: var(--accent-deep); }
.lcta.inv { background: var(--white); color: var(--ink); }
.lcta.inv:hover { background: var(--accent); }
.lcta.big, .lcta.wide { width: 100%; padding: 17px; }
.lmenu { display: none; width: 42px; height: 42px; border: 1px solid #c9c1b3; border-radius: 50%; background: none; position: relative; cursor: pointer; }
.lmenu i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.lmenu i:first-child { top: 16px; } .lmenu i:last-child { top: 24px; }
body.menu-open .lmenu i:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .lmenu i:last-child { top: 20px; transform: rotate(-45deg); }
.lmnav { position: fixed; inset: 0; z-index: 65; background: var(--cream); padding: 92px var(--pad) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.lmnav[hidden] { display: none; }
.lmnav > a:not(.lcta) { font: 500 34px/1.1 var(--serif); letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid #ddd3c2; }
.lmnav .lang { align-self: flex-start; margin: 22px 0; }
.lmnav .lcta { margin-top: auto; }

.t-eyebrow { display: block; font: 600 10px var(--serif); letter-spacing: .22em; text-transform: uppercase; color: #6a6f6a; }
.t-eyebrow.light { color: rgba(251,248,242,.6); }
.t-hero { padding: clamp(120px, 16vh, 170px) var(--pad) 28px; max-width: 1500px; margin: 0 auto; }
.t-hero h1 { font: 500 clamp(54px, 10vw, 156px)/.9 var(--serif); letter-spacing: -.045em; margin: 22px 0 0; display: flex; align-items: flex-start; gap: 10px; }
.t-hero h1 sup { font: 500 clamp(13px, 1.3vw, 18px) var(--sans); letter-spacing: 0; color: var(--accent-deep); margin-top: .5em; }
.t-hero p { max-width: 54ch; color: #4d5551; font-size: 15px; margin: 24px 0 0; }
.t-filters { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 26px var(--pad) 16px; max-width: 1500px; margin: 0 auto; border-bottom: 1px solid #ddd3c2; }
.t-filters button { background: none; border: 0; padding: 8px 0; font: 500 14px var(--sans); color: #6a6f6a; cursor: pointer; border-bottom: 2px solid transparent; }
.t-filters button:hover { color: var(--ink); }
.t-filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.t-filters sup { font-size: 10px; margin-left: 3px; color: var(--accent-deep); }
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 5vw, 90px); padding: 48px var(--pad) clamp(90px, 12vw, 160px); max-width: 1500px; margin: 0 auto; align-items: start; }
.t-card.low { margin-top: clamp(60px, 10vw, 160px); }
.t-card { animation: tIn .6s ease both; }
@keyframes tIn { from { opacity: 0; transform: translateY(14px); } }
.t-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.t-img { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e2d9ca; }
.t-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.t-img .t-alt { opacity: 0; }
.t-open:hover .t-img img, .t-open:focus-visible .t-img img { transform: scale(1.035); }
.t-open:hover .t-alt, .t-open:focus-visible .t-alt { opacity: 1; }
.t-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 16px; }
.t-cat { font: 600 9.5px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #6a6f6a; }
.t-meta h3 { font: 500 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -.02em; margin: 8px 0 6px; }
.t-sub { font-size: 13px; color: #6a6f6a; }
.t-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #c9c1b3; background: none; font-size: 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; color: var(--ink); }
.t-arrow:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.t-dark { background: var(--night); color: var(--white); padding: clamp(80px, 10vw, 140px) var(--pad) clamp(60px, 8vw, 110px); }
.t-dark-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: 1500px; margin: 0 auto; }
.t-dark h2 { font: 500 clamp(44px, 6.5vw, 96px)/.95 var(--serif); letter-spacing: -.04em; margin: 0; }
.t-dark-p { max-width: 1500px; margin: 18px auto 34px; color: var(--soft); font-size: 15px; }
.t-eve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1500px; margin: 0 auto; }
.t-eve-card { position: relative; padding: 0; border: 0; background: #000; cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.t-eve-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.t-eve-card:hover img { transform: scale(1.05); }
.t-eve-card span { position: absolute; left: 14px; bottom: 12px; font: 600 10px var(--serif); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.t-end { background: var(--night); color: var(--white); padding: clamp(60px, 8vw, 120px) var(--pad) 0; border-top: 1px solid rgba(255,255,255,.08); }
.t-end h2 { font: 500 clamp(48px, 8vw, 128px)/.92 var(--serif); letter-spacing: -.045em; margin: 22px 0 36px; }
.t-end-row { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.t-link { font: 600 10.5px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 6px; }
.t-link:hover { color: var(--white); }
.t-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 110px); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); color: var(--faint); font-size: 13px; }
.t-foot .wordmark { height: 28px; width: auto; }
.t-foot nav { display: flex; gap: 20px; }
.t-foot nav a:hover { color: var(--white); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: #0e1110; color: var(--white); display: flex; flex-direction: column; opacity: 0; transition: opacity .25s; }
.lb[hidden] { display: none; }
.lb.show { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); font-size: 13px; color: var(--soft); }
.lb-close { background: none; border: 0; color: var(--white); font: 500 13px var(--sans); cursor: pointer; padding: 8px 0; }
.lb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 0 var(--pad) 24px; }
.lb-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; display: block; }
.lb-fig figcaption { font: 600 9.5px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(14,17,16,.55); color: #fff; font-size: 18px; cursor: pointer; }
.lb-arrow:hover { background: #fff; color: var(--ink); }
.lb-arrow.prev { left: 0; } .lb-arrow.next { right: 0; }
.lb-dots { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; justify-content: center; gap: 8px; }
.lb-dots button { width: 26px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.25); cursor: pointer; }
.lb-dots button[aria-pressed="true"] { background: var(--accent); }
.lb-info { overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 16px; }
.lb-info h2 { font: 500 40px/1.02 var(--serif); letter-spacing: -.03em; margin: 0; }
.lb-info p { color: var(--soft); font-size: 14.5px; margin: 0; }
.lb-facts { margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
.lb-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.lb-facts dt { color: var(--faint); } .lb-facts dd { margin: 0; text-align: right; }
.lb-pal { display: flex; height: 26px; }
.lb-pal i { flex: 1; }
.lb-nav { display: flex; justify-content: space-between; gap: 10px; }
.lb-nav button { background: none; border: 0; color: var(--soft); font: 500 13px var(--sans); cursor: pointer; padding: 6px 0; }
.lb-nav button:hover { color: var(--white); }

@media (max-width: 900px) {
  .lnav-a, .lnav > .lang { display: none !important; }
  .lnav .signin-link { display: none !important; }
  .lmenu { display: block; }
  .lnav { gap: 10px; }
  .lnav .lcta { padding: 10px 14px; }
  .t-grid { grid-template-columns: 1fr; gap: 44px; }
  .t-card.low { margin-top: 0; }
  .t-eve { grid-template-columns: 1fr 1fr; }
  .t-eve-card:nth-child(3) { display: none; }
  .t-filters { gap: 2px 18px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .t-filters::-webkit-scrollbar { display: none; }
  .t-filters button { white-space: nowrap; }
  .lb { overflow-y: auto; }
  .lb-body { display: block; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .lb-stage { height: auto; max-height: none; margin-bottom: 26px; display: block; }
  .lb-fig img { max-height: 54vh; }
  .lb-dots { position: static; margin-top: 12px; }
  .lb-arrow { top: calc(30vw - 20px) !important; transform: none !important; }
  .lb-arrow { width: 40px; height: 40px; }
  .lb-info h2 { font-size: 32px; }
}
@media (max-width: 560px) { .lnav .lcta .cta-txt { font-size: 9.5px; } .lhead .wordmark { height: 26px; } }

/* home: templates strip */
.tpl-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tpl-card { display: grid; gap: 6px; }
.tpl-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #1b201d; }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tpl-card:hover .tpl-img img { transform: scale(1.05); }
.tpl-card .tpl-k { color: var(--accent); margin-top: 8px; display: block; }
.tpl-card b { font: 500 22px/1.15 var(--serif); letter-spacing: -.01em; }
#templates .links { margin-top: 34px; }
#templates { scroll-margin-top: 90px; }
@media (max-width: 1000px) { .tpl-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .tpl-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; } .tpl-strip::-webkit-scrollbar { display: none; } .tpl-card { scroll-snap-align: start; } }

/* gallery: films on hover, the moving image, downloads */
.t-img .t-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; pointer-events: none; }
.t-open.playing .t-vid { opacity: 1; }
.t-play { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 9.5px/1 var(--serif); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: rgba(14,17,16,.55); padding: 7px 9px; backdrop-filter: blur(4px); transition: opacity .3s; }
.t-open.playing .t-play { opacity: 0; }
.t-film { padding: clamp(80px, 10vw, 140px) var(--pad) clamp(40px, 6vw, 80px); max-width: 1500px; margin: 0 auto; box-sizing: content-box; }
.t-film-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 10px 40px; align-items: end; margin-bottom: 34px; }
.t-film-head .t-eyebrow { grid-column: 1 / -1; }
.t-film h2 { font: 500 clamp(44px, 6.5vw, 96px)/.95 var(--serif); letter-spacing: -.04em; margin: 0; }
.t-film-head p { margin: 0; color: var(--muted, #6b6b66); font-size: 15px; line-height: 1.6; }
.t-films { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.t-filmcard { margin: 0; display: grid; gap: 10px; }
.t-filmcard.f0 { grid-column: 1 / 8; } .t-filmcard.f1 { grid-column: 8 / 13; margin-top: 90px; }
.t-filmcard.f2 { grid-column: 2 / 7; } .t-filmcard.f3 { grid-column: 7 / 13; margin-top: 60px; }
.t-film-open { display: block; padding: 0; border: 0; background: #14181a; cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; width: 100%; }
.t-film-open video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.t-film-open:hover video { transform: scale(1.02); }
.t-filmcard figcaption { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.t-filmcard figcaption span { font: 600 10px var(--serif); letter-spacing: .16em; color: var(--accent, #c4643a); }
.t-filmcard figcaption b { font: 500 21px/1.1 var(--serif); letter-spacing: -.01em; flex: 1; }
.t-filmcard figcaption a { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; }
.lb-fig video { max-width: 100%; max-height: calc(100vh - 150px); display: block; background: #000; }
.lb-dl { margin-top: 22px; display: grid; gap: 10px; }
.lb-dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lb-dl-row a, .lb-dl-row button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font: 500 12.5px var(--sans, inherit); cursor: pointer; text-align: left; }
.lb-dl-row a:hover, .lb-dl-row button:hover { background: #fff; color: #111; }
.lb-dl-row span { font-weight: 700; }
@media (max-width: 900px) {
  .t-film-head { grid-template-columns: 1fr; }
  .t-films { grid-template-columns: 1fr; gap: 34px; }
  .t-filmcard.f0, .t-filmcard.f1, .t-filmcard.f2, .t-filmcard.f3 { grid-column: auto; margin-top: 0; }
  .lb-fig video { max-height: 54vh; }
}

/* ---------- home: cinematic opening ---------- */
.loader { background: #0b0d0c; }
.intro-mark { display: grid; justify-items: center; gap: 18px; animation: markIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.intro-mark img { width: clamp(150px, 18vw, 236px); height: auto; }
.intro-mark .label { color: var(--faint); animation: none; letter-spacing: .3em; }
@keyframes markIn { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.intro-curtain { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: curtainLine 1.3s cubic-bezier(.6,0,.2,1) .15s forwards; }
@keyframes curtainLine { to { transform: scaleX(1); } }
.loader.done { opacity: 1; visibility: hidden; transform: translateY(-100%); transition: transform 1s cubic-bezier(.76,0,.24,1), visibility 0s 1s; }
body.landing:not(.intro-done) .frame > img { transform: scale(1.12); }
body.landing.intro-done .frame > img { transition: filter 1s ease, opacity 1s ease, transform 2.6s cubic-bezier(.2,.7,.2,1); }
/* headline lines rise into place */
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hero-h .ln:nth-child(2) > span { transition-delay: .14s; }
body.intro-done .hero-h .ln > span { transform: none; transition-delay: .35s; }
body.intro-done .hero-h .ln:nth-child(2) > span { transition-delay: .5s; }
#room .panel > .label, #room .panel > p, #room .panel > .links { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; }
body.intro-done #room .panel > .label { opacity: 1; transform: none; transition-delay: .2s; }
body.intro-done #room .panel > p { opacity: 1; transform: none; transition-delay: .75s; }
body.intro-done #room .panel > .links { opacity: 1; transform: none; transition-delay: .9s; }
/* the redesign sweeps across the room, then back */
#img-tease { object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(.65,0,.25,1) !important; pointer-events: none; }
body.teasing #img-tease { clip-path: inset(0 0 0 42%); }
.tease-line { position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; background: #fff; box-shadow: 0 0 22px rgba(255,255,255,.65); opacity: 0; transition: left 2.2s cubic-bezier(.65,0,.25,1), opacity .5s; pointer-events: none; }
body.teasing .tease-line { left: 42%; opacity: 1; }
.tease-line span { position: absolute; top: 24%; color: #fff; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tease-line span:first-child { right: 16px; } .tease-line span:last-child { left: 16px; }
@media (prefers-reduced-motion: reduce) { .hero-h .ln > span, #room .panel > * { transform: none !important; opacity: 1 !important; } }

/* ---------- home: template showreel + stats ---------- */
.reel { padding: clamp(90px, 11vw, 160px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.reel-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 14px 50px; align-items: end; padding: 0 var(--pad); max-width: 1500px; margin: 0 auto 46px; }
.reel-head .label.accent { grid-column: 1 / -1; }
.reel-head h2 { font: 500 clamp(40px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.035em; margin: 0; }
.reel-head p { margin: 0 0 14px; color: var(--soft); line-height: 1.65; }
.reel-head .link-line { grid-column: 2; justify-self: start; }
.reel-track { position: relative; overflow: hidden; }
.reel-track::before, .reel-track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 2; pointer-events: none; }
.reel-track::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.reel-track::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.reel-row { display: flex; gap: 18px; width: max-content; animation: reel 70s linear infinite; animation-play-state: paused; will-change: transform; }
.reel-track.on .reel-row { animation-play-state: running; }
.reel-track.on:hover .reel-row { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(calc(-50% - 9px)); } }
.reel-card { position: relative; flex: none; width: clamp(230px, 22vw, 360px); aspect-ratio: 4 / 5; overflow: hidden; background: #1b201d; }
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.reel-card .reel-eve { opacity: 0; }
.reel-card:hover .reel-eve { opacity: 1; }
.reel-card:hover img { transform: scale(1.04); }
.reel-card span { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font: 500 19px/1.1 var(--serif); text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.reel-card span small { display: block; margin-top: 6px; font: 600 9.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1500px; margin: clamp(60px, 8vw, 100px) auto 0; padding: 30px var(--pad) 0; border-top: 1px solid rgba(255,255,255,.1); }
.stats b { display: block; font: 500 clamp(48px, 6vw, 88px)/1 var(--serif); letter-spacing: -.03em; color: var(--accent); }
.stats span { display: block; margin-top: 10px; color: var(--soft); font-size: 14px; }
@media (max-width: 900px) {
  .reel-head { grid-template-columns: 1fr; }
  .reel-head .link-line { grid-column: 1; }
  .reel-card { width: 66vw; }
  .reel-row { animation-duration: 55s; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 34px; }
}
@media (prefers-reduced-motion: reduce) { .reel-row { animation: none; } .reel-track { overflow-x: auto; } }

.foot-credit a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.foot-credit a:hover { text-decoration-color: currentColor; }
.cta-note { margin-top: 22px; font-size: 13px; letter-spacing: .04em; color: var(--muted, #8a8174); }
.foot-ig { display: inline-flex; align-items: center; gap: 6px; }
