/* =========================================================
   FERRIER — LOOK CLOSER
   Daylight palette + a secret infrared palette.
   ========================================================= */

:root {
  --ink: #12110E;
  --ink-2: #1C1A16;
  --ink-3: #2A2722;
  --caliche: #ECE6DA;
  --caliche-2: #E2DACB;
  --paper: #F4EFE6;
  --stone: #8A8478;
  --stone-2: #B3AC9F;
  --cedar: #B8743F;
  --granite: #A24B36;

  --ir-0: #0C0522;
  --ir-1: #2B0F6B;
  --ir-2: #5A168F;
  --ir-3: #9A1B8C;
  --ir-4: #D02F66;
  --ir-5: #F15A2E;
  --ir-6: #FF9D1E;
  --ir-7: #FFD978;
  --ir-8: #FFF4D6;
  --cool: #5C46D6;
  --ramp: linear-gradient(90deg, var(--ir-1), var(--ir-2), var(--ir-3), var(--ir-4), var(--ir-5), var(--ir-6), var(--ir-7));

  --bg: var(--caliche);
  --fg: var(--ink);
  --muted: var(--stone);
  --line: rgba(18, 17, 14, .14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { 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 {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ir-6); color: var(--ink); }

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .07; mix-blend-mode: multiply;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-2%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: .95; margin: 0; }
.display em, h1 em, h2 em, h3 em { font-style: italic; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.kicker, .chapter { color: var(--muted); margin: 0 0 28px; }
.chapter span { display: inline-block; min-width: 2.4em; padding: 3px 6px; margin-right: 10px; border: 1px solid currentColor; border-radius: 99px; text-align: center; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; max-width: 36em; color: color-mix(in srgb, var(--fg) 82%, transparent); }
h2.display { font-size: clamp(48px, 7.4vw, 132px); max-width: 15ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 99px;
  padding: 16px 26px; background: var(--ink); color: var(--caliche);
  font: 500 15px/1 var(--sans); text-decoration: none; transition: transform .4s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--ir-2); }
.btn--small { padding: 11px 18px; font-size: 13px; }
.btn--light { background: var(--caliche); color: var(--ink); }
.btn--light:hover { background: var(--ir-7); }

/* ============ LOADER ============ */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: var(--caliche); }
.loader__slats { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); perspective: 1400px; }
.loader__slats i { background: var(--ink); transform-origin: 50% 50%; backface-visibility: hidden; }
.loader__center { position: relative; display: grid; justify-items: center; gap: 34px; width: min(560px, 80vw); }
.loader__logo { width: 100%; fill: var(--caliche); overflow: visible; }
.loader__logo .wm-mark { opacity: 0; }
.loader__meta { display: grid; justify-items: center; gap: 6px; min-height: 60px; color: var(--stone-2); text-align: center; }
.loader__line { opacity: 0; }
.loader__sun { color: var(--ir-7); }
.loader__count { position: absolute; right: var(--pad); bottom: var(--pad); display: flex; align-items: baseline; gap: 8px; color: var(--stone-2); }
.loader__count span { font-family: var(--serif); font-size: 64px; letter-spacing: -.02em; text-transform: none; color: var(--caliche); }
.loader.is-done { pointer-events: none; }

/* ============ CURSOR ============ */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: normal; }
.cursor__ring {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid var(--caliche); background: transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cursor__label { position: absolute; left: 22px; top: -7px; white-space: nowrap; color: var(--caliche); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.cursor.is-active .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ir-7); background: rgba(255, 217, 120, .06); }
.cursor.is-active .cursor__label { opacity: 1; transform: none; left: 42px; top: -8px; color: var(--ir-7); }
.cursor.is-down .cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(255,157,30,.25); }
.cursor.on-light .cursor__ring { border-color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.cursor.on-light .cursor__label { color: var(--ink); text-shadow: none; }
.cursor.on-light.is-active .cursor__ring { border-color: var(--ir-3); background: rgba(154, 27, 140, .06); }
.cursor.on-light.is-active .cursor__label { color: var(--ir-3); }
.cursor.is-link .cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(255,157,30,.18); border-color: var(--ir-6); }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad); color: var(--caliche); transition: color .4s, transform .6s var(--ease);
}
.nav.is-light { color: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__mark { height: 30px; width: auto; fill: currentColor; }
.nav__word { height: 14px; width: auto; fill: currentColor; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; opacity: .75; position: relative; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav .btn { background: var(--caliche); color: var(--ink); }
.nav.is-light .btn { background: var(--ink); color: var(--caliche); }
.nav .btn:hover { background: var(--ir-6); color: var(--ink); }

.ir-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid currentColor; border-radius: 99px; background: transparent; opacity: .85; }
.ir-toggle__dot { width: 22px; height: 10px; border-radius: 99px; background: var(--ramp); position: relative; }
.ir-toggle__dot::after { content: ""; position: absolute; top: -2px; left: -2px; width: 14px; height: 14px; border-radius: 50%; background: currentColor; transition: transform .45s var(--ease); }
.ir-toggle[aria-pressed="true"] .ir-toggle__dot::after { transform: translateX(14px); }
.live-sun { display: inline-flex; align-items: center; gap: 8px; opacity: .85; white-space: nowrap; }
.live-sun__glyph { width: 10px; height: 10px; border-radius: 50%; background: var(--ir-7); box-shadow: 0 0 0 3px rgba(255,217,120,.25), 0 0 16px var(--ir-6); }
.live-sun.is-night .live-sun__glyph { background: transparent; box-shadow: inset -3px -1px 0 0 var(--caliche-2); }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); color: var(--caliche); touch-action: pan-y; }
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { object-fit: cover; z-index: 0; }
.hero__canvas { z-index: 1; }
.hero.has-gl .hero__fallback { opacity: 0; }
#heroVideo, #slatsVideo { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sun__film #slatsVideo { position: static; width: 100%; height: 100%; opacity: 1; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
  linear-gradient(180deg, rgba(18,17,14,.55) 0%, rgba(18,17,14,0) 22%, rgba(18,17,14,0) 52%, rgba(18,17,14,.72) 100%); }
.hero__top { position: absolute; z-index: 3; top: 84px; left: var(--pad); right: var(--pad); display: flex; gap: 28px; opacity: .8; }
.hero__top span + span::before { content: "—"; margin-right: 28px; opacity: .5; }
.hero__headline { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(150px, 20vh, 220px); pointer-events: none; }
.hero__title { position: relative; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 9.4vw, 176px); line-height: .9; letter-spacing: -.02em; margin: 0; height: 1.82em; }
.hero__state { position: absolute; left: 0; top: 0; display: block; }
.hero__state .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__state .ch { display: inline-block; transform-origin: 50% 50% -.3em; backface-visibility: hidden; }
.hero__state[data-state="ir"] em { padding-right: .06em; }
.hero__sub { position: relative; margin: 26px 0 0; max-width: 34em; font-size: clamp(15px, 1.2vw, 18px); min-height: 3.2em; color: rgba(236,230,218,.82); }
.hero__sub-state { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .8s var(--ease); }
.hero__sub-state.is-on { opacity: 1; transform: none; }
.hero__callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout { position: absolute; left: var(--x); top: var(--y); display: grid; gap: 2px; padding-left: 18px; font-size: 13px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s var(--ease); max-width: 210px; }
.callout::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ir-6); box-shadow: 0 0 0 4px rgba(255,157,30,.25); }
.callout--cool::before { background: #8E7BFF; box-shadow: 0 0 0 4px rgba(142,123,255,.25); }
.callout b { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.callout span { color: rgba(236,230,218,.8); }
.hero.is-ir .callout { opacity: 1; transform: none; }
.hero.is-ir .callout:nth-child(2) { transition-delay: .12s; }
.hero.is-ir .callout:nth-child(3) { transition-delay: .24s; }
.hero__bottom { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.timedial { display: flex; align-items: flex-end; gap: 22px; user-select: none; touch-action: none; }
.timedial__label { display: grid; gap: 2px; min-width: 170px; }
.timedial__label small { font-size: 10px; opacity: .6; }
.timedial__track { position: relative; width: 300px; height: 70px; cursor: grab; }
.timedial__arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.timedial__arc path { stroke: rgba(236,230,218,.4); stroke-width: 1.2; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.timedial__sun { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ir-7); box-shadow: 0 0 0 5px rgba(255,217,120,.2), 0 0 24px var(--ir-6); }
.timedial__ticks { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: space-between; font-size: 9.5px; opacity: .55; }
.timedial__ticks i { font-style: normal; }
.hero__legend { display: grid; gap: 12px; justify-items: end; }
.legend-btn { border: 1px solid rgba(236,230,218,.5); background: rgba(18,17,14,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: inherit; border-radius: 99px; padding: 12px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; user-select: none; touch-action: none; transition: background .3s, color .3s; }
.legend-btn:hover, .legend-btn.is-down { background: var(--ir-6); color: var(--ink); border-color: var(--ir-6); }
.legend-ramp { display: flex; align-items: center; gap: 10px; font-size: 10px; }
.legend-ramp i { width: 120px; height: 6px; border-radius: 9px; background: var(--ramp); }
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 30px; transform: translateX(-50%); opacity: .5; display: none; }

/* ============ MANIFESTO ============ */
.manifesto { background: var(--caliche); }
.manifesto__text { font-size: clamp(36px, 4.7vw, 82px); line-height: 1.02; max-width: 25ch; }
.peek { position: relative; display: inline; font-style: italic; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 92%; background-repeat: no-repeat; cursor: zoom-in; transition: color .3s; }
.peek:hover { color: var(--ir-3); }
.peekcard { position: fixed; z-index: 120; left: 0; top: 0; width: 260px; aspect-ratio: 4/3; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .5s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.peekcard.is-on { opacity: 1; transform: none; }
.peekcard img { width: 100%; height: 100%; object-fit: cover; }
.peekcard span { position: absolute; left: 10px; bottom: 8px; color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.manifesto__cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(64px, 8vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.manifesto__cols p { margin: 0; color: #3b3832; }
.manifesto__stats { display: grid; gap: 20px; }
.manifesto__stats div { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.manifesto__stats b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .8; min-width: 1.6em; }
.manifesto__stats span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; will-change: transform; }

/* ============ SISTERS (3D) ============ */
.sisters { position: relative; height: 760vh; background: var(--caliche); }
.sisters__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sisters__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sisters__ui { position: absolute; inset: 0; z-index: 1; pointer-events: none; padding: 110px var(--pad) 40px; display: grid; grid-template-columns: minmax(280px, 440px) 1fr; grid-template-rows: auto 1fr auto; }
.sisters__ui::before { content: ""; position: absolute; inset: 0 auto 0 0; width: min(620px, 52%); z-index: -1; background: linear-gradient(90deg, rgba(236,230,218,.88) 0%, rgba(236,230,218,.6) 55%, rgba(236,230,218,0) 100%); transition: opacity .6s; }
.sisters.is-dark .sisters__ui::before { background: linear-gradient(90deg, rgba(12,5,34,.8) 0%, rgba(12,5,34,.5) 55%, rgba(12,5,34,0) 100%); }
.sisters__ui .chapter { grid-column: 1; color: var(--muted); transition: color .6s; }
.sisters__steps { grid-column: 1; position: relative; align-self: center; }
.step { position: absolute; left: 0; top: 50%; transform: translateY(-40%); opacity: 0; visibility: hidden; transition: opacity .6s, transform .9s var(--ease), visibility 0s .9s; }
.step.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .7s .1s, transform .9s var(--ease), visibility 0s; }
.step h3 { font-size: clamp(40px, 4.6vw, 76px); margin-bottom: 18px; }
.step p { margin: 0 0 18px; max-width: 30em; }
.step__tag { color: var(--granite); margin: 0 0 12px !important; }
.spec { display: grid; gap: 0; margin: 18px 0 0; }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.sisters__progress { grid-column: 1; display: flex; gap: 6px; }
.sisters__progress i { width: 22px; height: 3px; background: currentColor; opacity: .18; transition: opacity .4s, background .4s; }
.sisters__progress i.is-on { opacity: 1; background: var(--granite); }
.sisters__hold { position: absolute; right: var(--pad); bottom: 40px; pointer-events: auto; color: var(--ink); border-color: rgba(18,17,14,.4); background: rgba(236,230,218,.4); }
.sisters.is-ir { }
.sisters.is-dark .sisters__ui { color: var(--caliche); }
.sisters.is-dark .chapter, .sisters.is-dark .spec dt { color: var(--stone-2); }
.sisters.is-dark .spec div { border-color: rgba(236,230,218,.16); }
.sisters.is-dark .sisters__hold { color: var(--caliche); border-color: rgba(236,230,218,.4); background: rgba(18,17,14,.3); }
.sisters.is-dark .step__tag { color: var(--ir-7); }
.sisters.is-dark .sisters__progress i.is-on { background: var(--ir-7); }

/* ============ FIND THEM ============ */
.findthem { background: var(--ink); color: var(--caliche); padding-bottom: clamp(64px, 8vw, 120px); }
.findthem .kicker { color: var(--stone-2); }
.findthem__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 56px; }
.findthem__head .kicker { grid-column: 1 / -1; margin: 0; }
.findthem__head h2 { max-width: 12ch; }
.findthem__head .lead { color: rgba(236,230,218,.75); }
.findthem__stage { position: relative; width: min(100% - 2 * var(--pad), 1480px); margin: 0 auto; aspect-ratio: 4 / 3; max-height: 92vh; border-radius: 6px; overflow: hidden; touch-action: pan-y; }
.findthem__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hotspot { position: absolute; left: var(--x); top: var(--y); width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 0; background: transparent; padding: 0; z-index: 2; }
.hotspot span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink); background: #CFC4FF; transform: scale(0); transition: transform .6s cubic-bezier(.3,1.6,.4,1); }
.hotspot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid #CFC4FF; opacity: 0; transform: scale(.6); transition: opacity .5s, transform .8s var(--ease); }
.hotspot.is-found span { transform: scale(1); }
.hotspot.is-found::after { opacity: .7; transform: scale(1); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .8 } 100% { transform: scale(1.6); opacity: 0 } }
.findthem__hud { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; z-index: 3; color: var(--caliche); text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.findthem__note { opacity: .6; }
.findthem__win { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -40%); display: grid; justify-items: center; gap: 10px; padding: 34px 44px; border-radius: 6px; background: rgba(12,5,34,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .7s, transform .9s var(--ease); }
.findthem__win b { font-size: clamp(44px, 5vw, 80px); background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.findthem__win.is-on { opacity: 1; transform: translate(-50%, -50%); }

/* ============ WALLS ============ */
.walls { background: var(--caliche); }
.walls__grid { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.walls__intro h2 { font-size: clamp(48px, 6vw, 104px); margin-bottom: 26px; }
.spec--big { margin-top: 36px; }
.spec--big div { grid-template-columns: 130px 1fr; }
.walls__stage { touch-action: pan-y; position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #0d1530; position: sticky; top: 100px; }
.walls__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xspot { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; gap: 10px; align-items: flex-start; max-width: 220px; color: #DDF3FF; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .7s var(--ease); pointer-events: none; font-size: 13px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0,10,40,.9); }
.xspot b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #9EDCFF; font: 500 10px/1 var(--mono); }
.xspot.is-on { opacity: 1; transform: none; }
.xspot--left { flex-direction: row-reverse; text-align: right; translate: calc(-100% + 26px) 0; }
.walls__hint { position: absolute; left: 16px; bottom: 12px; z-index: 2; color: #fff; opacity: .8; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

.gallery { margin-top: clamp(80px, 10vw, 150px); overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.gallery.is-drag { cursor: grabbing; }
.gallery__track { display: flex; gap: 18px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.gallery__item { margin: 0; flex: none; height: clamp(300px, 46vh, 520px); aspect-ratio: 2 / 3; position: relative; overflow: hidden; border-radius: 4px; }
.gallery__item--w { aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); pointer-events: none; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.gallery__credit { color: var(--muted); padding: 18px var(--pad) 0; margin: 0; }

/* slat reveal mask */
.slatmask { position: absolute; inset: 0; z-index: 2; display: grid; pointer-events: none; perspective: 800px; }
.slatmask i { background: var(--caliche); transform-origin: 50% 50%; backface-visibility: hidden; }

/* ============ SUN ============ */
.sun { background: var(--paper); }
.sun__title { margin-bottom: clamp(40px, 6vw, 80px); }
.sun__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.sun__diagram { position: relative; background: var(--caliche); border-radius: 6px; padding: 12px; user-select: none; touch-action: none; }
#sunSvg { width: 100%; height: auto; color: var(--ink); }
.sun__arc path { stroke: rgba(18,17,14,.25); stroke-width: 1.2; stroke-dasharray: 3 6; }
#sunRays line { stroke: #E9A23B; stroke-width: 1.2; opacity: .55; }
.sec__ground { fill: var(--ink); }
.sec__earth { color: var(--ink); }
.sec__wall { fill: var(--ink); }
.sec__roof { fill: var(--ink); }
.sec__glass { fill: rgba(120, 170, 200, .35); stroke: var(--ink); stroke-width: 1; }
.sec__floor { fill: #C9BFAE; }
.sec__dims line { stroke: var(--granite); stroke-width: 1; }
.sec__dims text { fill: var(--granite); font-size: 13px; }
.sun__ends text { fill: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#sunDisc { fill: var(--ir-7); cursor: grab; }
#sunHalo { fill: rgba(255, 196, 80, .18); pointer-events: none; }
.sun__readout { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 12px; padding: 16px 10px 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.sun__readout small { display: block; font-size: 9.5px; color: var(--muted); margin-bottom: 4px; }
.sun__readout b { font-family: var(--serif); font-size: 34px; letter-spacing: -.01em; text-transform: none; font-weight: 400; }
.sun__verdict { align-self: end; justify-self: end; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--ir-7); }
.sun__film { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; margin: 32px 0 14px; background: #222; }
.sun__film span { position: absolute; left: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sun__mark { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.sun__mark svg { height: 26px; width: auto; fill: var(--ink); flex: none; }
.sun__mark a { color: var(--ink); }

/* ============ HERS ============ */
.hers { background: var(--ink); color: var(--caliche); overflow: hidden; }
.hers .chapter { color: var(--stone-2); }
.hers__lead { color: rgba(236,230,218,.72); margin: 26px 0 0; }
.hers__stage { margin-top: clamp(48px, 7vw, 100px); }
.hers__big { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); }
#hersNum { font-size: clamp(140px, 22vw, 380px); line-height: .72; letter-spacing: -.04em; background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 2.2ch; font-variant-numeric: tabular-nums; }
.hers__meta { display: grid; gap: 8px; padding-bottom: 12px; max-width: 26em; }
.hers__meta b { font: 400 clamp(28px, 2.6vw, 44px)/1 var(--serif); }
.hers__meta span { color: rgba(236,230,218,.7); }
.hers__scale { position: relative; height: 120px; margin-top: 48px; touch-action: none; cursor: grab; }
.hers__ramp { position: absolute; left: 0; right: 0; top: 56px; height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--ir-7), var(--ir-6), var(--ir-5), var(--ir-4), var(--ir-3), var(--ir-2), var(--ir-1)); }
.hers__ticks { position: absolute; inset: 0; }
.hers__tick { position: absolute; top: 0; bottom: 0; width: 0; }
.hers__tick::before { content: ""; position: absolute; left: -1px; top: 40px; width: 2px; height: 40px; background: rgba(236,230,218,.55); }
.hers__tick span { position: absolute; left: 0; top: 0; transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(236,230,218,.6); transition: color .3s; }
.hers__tick.is-low span { top: 88px; }
.hers__tick.is-on span { color: var(--ir-7); }
.hers__knob { position: absolute; top: 34px; left: 0; width: 4px; height: 52px; margin-left: -2px; background: var(--caliche); border-radius: 2px; box-shadow: 0 0 0 6px rgba(236,230,218,.12); }
.hers__knob span { position: absolute; left: 50%; top: -12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--caliche); }
.hers__axis { display: flex; justify-content: space-between; color: rgba(236,230,218,.45); margin-top: 18px; }

/* ============ PROOF ============ */
.proof { background: var(--caliche); }
.proof__title { max-width: 16ch; }
.proof__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(48px, 6vw, 90px) 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.pstat { padding: 26px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.pstat:last-child { border-right: 0; margin-right: 0; }
.pstat b { display: block; font-size: clamp(72px, 8vw, 140px); line-height: .8; margin-bottom: 18px; }
.pstat span { display: block; color: #4a463e; max-width: 22em; font-size: 15px; }
.proof__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.proof__filters button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 9px 14px; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background .3s, color .3s, border-color .3s; }
.proof__filters button.is-on, .proof__filters button:hover { background: var(--ink); color: var(--caliche); border-color: var(--ink); }
.slatwall { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: clamp(300px, 42vh, 460px); padding-top: 30px; border-bottom: 1px solid var(--ink); perspective: 900px; }
.slat { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; cursor: pointer; background: none; border: 0; padding: 0; margin: 0; appearance: none; -webkit-appearance: none; }
.slat:focus-visible { outline: 2px solid var(--ir-5); outline-offset: 3px; }
.slat__bar { position: relative; height: var(--h, 10%); min-height: 8px; background: linear-gradient(180deg, #C98A55, var(--cedar) 40%, #8F5528); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; transition: height .8s var(--ease), background .4s, transform .5s var(--ease); }
.slat__bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0,0,0,.08) 0 2px, transparent 2px 7px); border-radius: inherit; }
.slat.is-streak .slat__bar { box-shadow: inset 0 3px 0 var(--ink); }
.slat__year { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%) rotate(0deg); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.slat__n { position: absolute; left: 0; right: 0; bottom: calc(var(--h, 10%) + 6px); text-align: center; font-family: var(--mono); font-size: 10px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.slat:hover .slat__bar, .slat.is-on .slat__bar { background: linear-gradient(180deg, var(--ir-7), var(--ir-5) 45%, var(--ir-3)); transform: scaleX(1.12); }
.slat:hover .slat__n, .slat.is-on .slat__n { opacity: 1; color: var(--ink); }
.slat.is-dim .slat__bar { opacity: .2; }
.slatwall__streak { position: absolute; top: 6px; height: 14px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.slatwall__streak span { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); padding: 0 8px; background: var(--caliche); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.proof__panel { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-top: 56px; min-height: 230px; align-items: start; }
.proof__year { font-size: clamp(90px, 10vw, 170px); line-height: .8; }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.proof__list li { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; }
.proof__list li small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; text-align: right; }
.ledger { margin-top: 56px; border-top: 1px solid var(--ink); }
.ledger summary { cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; }
.ledger summary::after { content: "+"; font-size: 18px; }
.ledger[open] summary::after { content: "–"; }
.ledger__table { display: grid; }
.ledger__row { display: grid; grid-template-columns: 70px 1.4fr 1fr 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ledger__row span:first-child, .ledger__row span:nth-child(3), .ledger__row span:nth-child(4) { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.footnote { color: var(--muted); margin-top: 26px; }

/* ============ FAMILY ============ */
.family { background: var(--ink); color: var(--caliche); }
.family .chapter { color: var(--stone-2); }
.family__grid { display: grid; grid-template-columns: minmax(300px, 480px) 1fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.family .lead { color: rgba(236,230,218,.72); margin: 24px 0 36px; }
.gens { list-style: none; margin: 0; padding: 0; display: grid; }
.gen { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; gap: 2px 18px; padding: 16px 0; border-top: 1px solid rgba(236,230,218,.14); opacity: .32; transition: opacity .6s; }
.gen span { grid-row: 1 / 3; color: var(--stone-2); padding-top: 6px; }
.gen b { font: 400 30px/1.1 var(--serif); }
.gen p { margin: 0; color: rgba(236,230,218,.75); font-size: 15px; max-height: 0; overflow: hidden; transition: max-height .8s var(--ease); }
.gen.is-on { opacity: 1; }
.gen.is-on p { max-height: 8em; }
.gen.is-past { opacity: .6; }
.family__stage { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; touch-action: none; background: #222; }
.family__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.family__layer { position: absolute; left: 16px; top: 14px; display: flex; gap: 10px; align-items: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.family__layer b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #fff; font-weight: 500; }
.family__skip { position: absolute; right: 14px; bottom: 14px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.35); color: #fff; border-radius: 99px; padding: 9px 14px; font: inherit; letter-spacing: inherit; text-transform: inherit; backdrop-filter: blur(4px); }

/* ============ WORK ============ */
.work { background: var(--caliche); }
.work h2 { max-width: 14ch; margin-bottom: clamp(40px, 6vw, 80px); }
.worklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.worklist li { display: grid; grid-template-columns: 90px 1.2fr 1.4fr 110px; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding .5s var(--ease), color .3s; }
.worklist b { font: 400 clamp(32px, 3.6vw, 60px)/1 var(--serif); }
.worklist i { font-style: normal; color: var(--muted); }
.worklist em { font-style: normal; text-align: right; }
.worklist li:hover { padding-left: 18px; color: var(--ir-3); }
.workpeek { position: fixed; left: 0; top: 0; z-index: 60; width: 340px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .6s var(--ease); }
.workpeek.is-on { opacity: 1; transform: none; }
.workpeek img { width: 100%; height: 100%; object-fit: cover; }

/* ============ BEGIN ============ */
.begin { position: relative; min-height: 100vh; padding: clamp(110px, 14vw, 200px) 0 clamp(60px, 8vw, 110px); color: var(--caliche); overflow: hidden; }
.begin__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.begin__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,9,8,.86) 0%, rgba(10,9,8,.55) 50%, rgba(10,9,8,.35) 100%); }
.begin__grid { position: relative; display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(32px, 5vw, 90px); align-items: end; }
.begin .chapter { color: var(--stone-2); }
.begin__title { font-size: clamp(56px, 8vw, 150px); max-width: 10ch; }
.begin__title em { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.begin__addr { font-style: normal; margin-top: 40px; color: rgba(236,230,218,.8); line-height: 1.9; }
.brief { background: rgba(18,17,14,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(236,230,218,.14); border-radius: 8px; padding: 28px; display: grid; gap: 20px; }
.brief__title { margin: 0; color: var(--ir-7); }
.brief fieldset { border: 0; padding: 0; margin: 0; }
.brief legend { padding: 0; margin-bottom: 10px; color: var(--stone-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(236,230,218,.3); font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--caliche); color: var(--ink); border-color: var(--caliche); }
.chips input:focus-visible + span { outline: 2px solid var(--ir-6); outline-offset: 2px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--stone-2); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(236,230,218,.35); color: var(--caliche); font: 400 16px/1.4 var(--sans); padding: 8px 0; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ir-6); }
.brief .btn { justify-self: start; }
.brief__ok { margin: 0; color: var(--ir-7); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--caliche); padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 260px 1fr auto; gap: 48px; align-items: end; }
.footer__sundial svg { width: 200px; }
.fd-ground { stroke: rgba(236,230,218,.4); stroke-width: 1; }
.fd-shadow { fill: rgba(236,230,218,.12); }
.fd-mark { fill: var(--caliche); }
.footer__sundial p { color: var(--stone-2); margin: 12px 0 0; }
.footer__word { width: min(100%, 720px); fill: var(--caliche); }
.footer__brand p { color: var(--stone-2); margin: 18px 0 0; }
.footer__links { display: grid; gap: 8px; justify-items: end; text-align: right; color: var(--stone-2); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ir-7); }
.footer__links span { max-width: 22em; opacity: .6; margin-top: 10px; }

/* ============ INFRARED MODE (press I) ============ */
html.ir { --bg: var(--ir-0); --fg: #F4E9FF; --muted: #A99BD8; --line: rgba(244,233,255,.14); }
html.ir body { background: var(--ir-0); }
html.ir .manifesto, html.ir .walls, html.ir .proof, html.ir .work, html.ir .sun { background: #120830; color: #F4E9FF; }
html.ir .manifesto__cols p, html.ir .pstat span, html.ir .lead { color: #D8CCF5; }
html.ir .sun__diagram { background: #1B0D45; }
html.ir #sunSvg { color: #CFC4FF; }
html.ir .sec__wall, html.ir .sec__roof, html.ir .sec__ground { fill: #6B4BD8; }
html.ir .sun__verdict, html.ir .btn { background: var(--ir-6); color: var(--ink); }
html.ir .display em { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
html.ir .proof__filters button.is-on { background: var(--ir-6); color: var(--ink); border-color: var(--ir-6); }
html.ir .slatwall { border-color: #CFC4FF; }
html.ir .slatwall__streak, html.ir .slatwall__streak span { border-color: #CFC4FF; background: #120830; }
html.ir .slat__bar { background: linear-gradient(180deg, var(--ir-7), var(--ir-4) 50%, var(--ir-2)); }
html.ir .worklist { border-color: #CFC4FF; }
html.ir .nav.is-light { color: #F4E9FF; }
html.ir .gallery__item img, html.ir .workpeek img { filter: saturate(.2) contrast(1.1) sepia(.4) hue-rotate(220deg); }
html.ir .chapter span { border-color: var(--ir-6); color: var(--ir-6); }
html.ir .sun__mark svg, html.ir .sun__mark a { fill: #F4E9FF; color: #F4E9FF; }
html.ir .spec dt { color: #A99BD8; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .manifesto__cols { grid-template-columns: 1fr 1fr; }
  .manifesto__stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .proof__stats { grid-template-columns: 1fr 1fr; }
  .pstat { border-right: 0; margin-right: 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
  .walls__grid, .sun__grid, .family__grid, .begin__grid { grid-template-columns: 1fr; }
  .walls__stage { position: relative; top: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-items: start; text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .live-sun, .ir-toggle__txt { display: none; }
  .timedial__ticks i:nth-child(2) { display: none; }
  .nav { padding: 14px var(--pad); }
  .nav .btn { display: none; }
  .hero__top { top: 70px; flex-direction: column; gap: 2px; }
  .hero__top span + span::before { display: none; }
  .hero__headline { bottom: 190px; }
  .hero__bottom { flex-direction: column; align-items: stretch; }
  .timedial { justify-content: space-between; }
  .timedial__track { width: 52vw; }
  .hero__legend { justify-items: stretch; grid-template-columns: 1fr auto; align-items: center; }
  .legend-ramp i { width: 70px; }
  .callout { font-size: 11px; max-width: 150px; }
  .manifesto__cols { grid-template-columns: 1fr; }
  .manifesto__stats { grid-template-columns: 1fr; }
  .sisters__ui { grid-template-columns: 1fr; padding-top: 84px; grid-template-rows: auto auto 1fr auto; }
  .sisters__steps { grid-row: 3; align-self: end; min-height: 40vh; }
  .sisters__progress { grid-row: 4; margin-top: 12px; }
  .step { top: auto; bottom: 0; transform: translateY(10%); background: color-mix(in srgb, var(--caliche) 88%, transparent); padding: 18px; border-radius: 6px; backdrop-filter: blur(8px); }
  .sisters.is-dark .step { background: rgba(18,17,14,.7); }
  .step.is-on { transform: none; }
  .step h3 { font-size: 38px; }
  .step p { font-size: 15px; }
  .sisters__hold { bottom: auto; top: 118px; right: var(--pad); padding: 10px 14px; }
  .findthem__head { grid-template-columns: 1fr; }
  .findthem__stage { aspect-ratio: 3 / 4; width: 100%; border-radius: 0; }
  .hotspot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .proof__stats { grid-template-columns: 1fr; }
  .slatwall { gap: 3px; }
  .slat__year { font-size: 8px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); bottom: -40px; }
  .proof__panel { grid-template-columns: 1fr; margin-top: 70px; }
  .ledger__row { grid-template-columns: 50px 1fr; }
  .ledger__row span:nth-child(3), .ledger__row span:nth-child(4) { grid-column: 2; }
  .worklist li { grid-template-columns: 1fr auto; }
  .worklist li span { display: none; }
  .worklist li i { grid-column: 1; grid-row: 2; }
  .sun__readout { grid-template-columns: 1fr 1fr; }
  .sun__readout b { font-size: 26px; }
  .brief__row { grid-template-columns: 1fr; }
  .hers__tick span { font-size: 8.5px; }
  .hers__big { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
