/* ==========================================================================
   LINGENFELTER — "Luxury, as you frame it."
   Design system & components
   ========================================================================== */

:root {
  --ink: #0f0e0c;
  --ink-2: #161411;
  --ink-3: #221f1b;
  --dusk: #15131c;
  --dusk-2: #231f30;
  --dusk-3: #332c45;
  --limestone: #e9e2d4;
  --paper: #f3efe6;
  --stone-2: #d9d0bf;
  --stone-3: #b9ad97;
  --walnut: #6b4a33;
  --lamp: #f1b45e;
  --lamp-2: #ffd497;
  --rose: #e7a0a2;
  --steel: #8d9196;

  --fg: var(--limestone);
  --bg: var(--dusk);
  --muted: rgba(233, 226, 212, .58);
  --line: rgba(233, 226, 212, .16);
  --line-2: rgba(233, 226, 212, .32);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 2.6vw, 44px);
  --max: 1680px;
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-square: cubic-bezier(.76, 0, .24, 1);
  --radius: 2px;
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--lamp); color: var(--ink); }
:focus-visible { outline: 1px solid var(--lamp); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* film grain over everything — tactile, like a print */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
.mono, .eyebrow, .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.label { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .9em; }
.eyebrow::before {
  content: ""; width: 18px; height: 12px; flex: none;
  border-left: 1.5px solid currentColor; border-bottom: 2px solid currentColor; /* a tiny framing square */
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(54px, 10.4vw, 210px); line-height: .86; letter-spacing: -.035em;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.2vw, 118px); line-height: .92; letter-spacing: -.03em;
}
.h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 60px); line-height: 1; letter-spacing: -.02em;
}
.lede {
  font-family: var(--serif); font-size: clamp(22px, 2.15vw, 36px); line-height: 1.18; letter-spacing: -.01em;
}
.body-l { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; color: rgba(233, 226, 212, .82); max-width: 40em; }
em, .it { font-style: italic; }
.h2 em, .display em, .h3 em { color: var(--lamp); }
.is-light .h2 em, .is-stone .h2 em, .method .h2 em, .is-light .h3 em { color: var(--walnut); }
.amber { color: var(--lamp); }
.wide { font-variation-settings: "wdth" 125; }

/* line-mask reveal (JS splits lines) */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: block; will-change: transform; }
.no-js .split-line > span { transform: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 220px) 0; }
.section--tight { padding: clamp(64px, 8vw, 140px) 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.is-light { --fg: var(--ink); --bg: var(--paper); --muted: rgba(15, 14, 12, .56); --line: rgba(15, 14, 12, .14); --line-2: rgba(15, 14, 12, .3); background: var(--bg); color: var(--fg); }
.is-light .body-l { color: rgba(15, 14, 12, .78); }
.is-stone { --fg: var(--ink); --bg: var(--limestone); --muted: rgba(15, 14, 12, .56); --line: rgba(15, 14, 12, .14); --line-2: rgba(15, 14, 12, .3); background: var(--bg); color: var(--fg); }
.is-stone .body-l { color: rgba(15, 14, 12, .78); }
.is-ink { --bg: var(--ink); background: var(--ink); }

/* ---------- brand mark ---------- */
.mark { width: 36px; height: 24px; color: currentColor; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--sans); font-variation-settings: "wdth" 125; font-weight: 560;
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
}
.brand__sub { font-family: var(--mono); font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .62; margin-top: 6px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--limestone);
  transition: transform .7s var(--ease), color .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(16, 14, 22, .72), rgba(16, 14, 22, 0));
  opacity: 0; transition: opacity .5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.on-light { color: var(--ink); }
.nav.on-light::before { background: linear-gradient(to bottom, rgba(243, 239, 230, .9), rgba(243, 239, 230, 0)); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav__link { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__clock { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.nav__clock b { font-weight: 500; color: var(--lamp); }
.on-light .nav__clock b { color: var(--walnut); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 14px;
  border: 1px solid currentColor; border-radius: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s, color .4s;
}
.nav__cta:hover { background: var(--lamp); border-color: var(--lamp); color: var(--ink); }
.sound {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound.is-on .sound__bars i { animation: bars 1s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -.4s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.nav__menu { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; gap: 10px; align-items: center; }
.nav__menu i { display: block; width: 22px; height: 1px; background: currentColor; position: relative; }
.nav__menu i::after { content: ""; position: absolute; left: 6px; right: 0; top: 5px; height: 1px; background: currentColor; }

@media (max-width: 1100px) {
  .nav__clock { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .brand__sub { display: none; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 28px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-square), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-square), visibility 0s; }
.menu__close { position: absolute; top: 0; right: var(--gutter); height: var(--nav-h); display: flex; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(44px, 12vw, 84px); line-height: 1.02; border-bottom: 1px solid var(--line); padding: 10px 0; }
.menu__links a span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--lamp); }
.menu__foot { display: grid; gap: 6px; }

/* ---------- cursor (desktop only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 30px; height: 20px; margin: -10px 0 0 -15px;
  color: var(--lamp); mix-blend-mode: normal; opacity: 0; transition: opacity .3s;
}
.cursor.is-active { opacity: 1; }
.cursor__b { position: absolute; width: 8px; height: 6px; border-color: currentColor; border-style: solid; transition: all .45s var(--ease); }
.cursor__b--tl { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.cursor__b--br { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.cursor__dot { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: currentColor; transition: transform .3s; }
.cursor__label {
  position: absolute; left: 100%; top: 100%; margin: 6px 0 0 6px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-link .cursor__b { width: 12px; height: 9px; }
.cursor.is-link { width: 46px; height: 30px; margin: -15px 0 0 -23px; }
.cursor.is-frame { width: 54px; height: 36px; margin: -18px 0 0 -27px; color: #fff; }
.cursor.is-frame .cursor__dot { transform: scale(0); }
.cursor.is-frame::before, .cursor.is-frame::after { content: ""; position: absolute; background: currentColor; }
.cursor.is-frame::before { left: 50%; top: 50%; width: 11px; height: 1px; margin: 0 0 0 -5.5px; }
.cursor.is-frame::after { left: 50%; top: 50%; width: 1px; height: 11px; margin: -5.5px 0 0 0; }
.cursor.is-hidden { opacity: 0 !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 80; background: var(--dusk);
  display: grid; place-items: center; color: var(--limestone);
  transition: opacity .9s var(--ease), visibility 0s .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(560px, 82vw); display: grid; gap: 18px; }
.loader__row { display: flex; justify-content: space-between; align-items: baseline; }
.loader__count { font-family: var(--serif); font-size: clamp(64px, 10vw, 140px); line-height: .9; letter-spacing: -.03em; }
.loader__count sup { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; vertical-align: top; margin-left: 6px; color: var(--lamp); }
.loader__rule { position: relative; height: 22px; border-bottom: 1px solid var(--line-2); }
.loader__ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; }
.loader__ticks i { width: 1px; height: 6px; background: var(--line-2); }
.loader__ticks i:nth-child(4n+1) { height: 12px; }
.loader__fill { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--lamp); }

/* ---------- page transition ---------- */
.wipe { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.wipe__a, .wipe__b { position: absolute; background: var(--ink); }
.wipe__a { left: 0; bottom: 0; width: 100%; height: 100%; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.wipe__b { right: 0; top: 0; width: 100%; height: 100%; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.wipe__mark { position: absolute; left: 50%; top: 50%; width: 72px; height: 48px; margin: -24px 0 0 -36px; color: var(--lamp); opacity: 0; }

/* ==========================================================================
   HOME — hero
   ========================================================================== */
.hero { position: relative; height: 260vh; background: var(--dusk); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 12%, rgba(231, 160, 162, .16), transparent 60%),
    radial-gradient(90% 70% at 18% 90%, rgba(241, 180, 94, .08), transparent 60%),
    linear-gradient(180deg, #17141f 0%, #1d1928 45%, #121017 100%);
}
.hero__media { position: absolute; inset: 0; clip-path: inset(var(--ct, 30%) var(--cr, 20%) var(--cb, 30%) var(--cl, 20%)); will-change: clip-path; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 14, .1) 40%, rgba(10, 9, 14, .55)); opacity: var(--shade, 0); }
.hero__frame { position: absolute; color: var(--limestone); pointer-events: none; }
.hero__frame .piece { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.hero__frame.is-gl .piece { opacity: 0; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__title { position: absolute; inset: 0; pointer-events: none; }
.hero__l1, .hero__l2 { position: absolute; white-space: nowrap; }
.hero__l1 { left: var(--gutter); top: calc(var(--nav-h) + 4vh); }
.hero__l2 { right: var(--gutter); bottom: 7vh; text-align: right; }
.hero__l2 em { color: var(--lamp); }
.hero__meta {
  position: absolute; left: var(--gutter); bottom: 4.2vh; display: grid; gap: 8px; max-width: 330px;
}
.hero__meta p { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: rgba(233, 226, 212, .74); }
.hero__cue {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 4.4vh); display: flex; align-items: center; gap: 12px; text-align: right;
}
.hero__cue i { width: 1px; height: 34px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lamp); animation: cue 2.2s var(--ease-square) infinite; }
@keyframes cue { to { top: 110%; } }
.hero__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; opacity: 0;
}
.hero__caption .h3 { max-width: 12em; }
.hero__award { display: flex; align-items: center; gap: 14px; }
.hero__award img { width: 92px; height: auto; background: #fff; padding: 6px; }
.hero__award p { max-width: 15em; }
@media (max-width: 760px) {
  .hero { height: 220vh; }
  .hero__l1 { top: calc(var(--nav-h) + 3vh); }
  .hero__l2 { bottom: auto; top: calc(var(--nav-h) + 3vh + 1.05em); right: auto; left: var(--gutter); text-align: left; }
  .hero__meta { bottom: 3.2vh; right: var(--gutter); max-width: none; }
  .hero__cue { display: none; }
  .hero__caption { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto { background: var(--dusk); }
.manifesto__title { grid-column: 1 / span 10; }
.manifesto__title em { color: var(--lamp); }
.manifesto__body { grid-column: 7 / span 5; margin-top: clamp(48px, 7vw, 120px); display: grid; gap: 28px; }
.manifesto__stats { grid-column: 1 / -1; margin-top: clamp(72px, 10vw, 160px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 22px 22px 0 0; border-right: 1px solid var(--line); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 22px; }
.stat__n { font-family: var(--serif); font-size: clamp(54px, 6vw, 104px); line-height: .9; letter-spacing: -.03em; }
.stat__n sup { font-size: .32em; vertical-align: top; margin-left: 4px; font-family: var(--mono); letter-spacing: .08em; color: var(--lamp); }
@media (max-width: 900px) {
  .manifesto__title, .manifesto__body { grid-column: 1 / -1; }
  .manifesto__stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* the drawn square under the manifesto title */
.square-draw { width: clamp(120px, 14vw, 220px); height: auto; color: var(--lamp); margin-top: 36px; overflow: visible; }

/* ==========================================================================
   FRAME IT — component
   ========================================================================== */
.fi { position: relative; }
.fi__stage {
  position: relative; width: 100%; aspect-ratio: var(--ar, 1.5); overflow: hidden;
  background: #0b0a0d; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  -webkit-touch-callout: none;
}
.fi.is-full .fi__stage { touch-action: none; }
.fi__layer { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.fi__img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; pointer-events: none;
}
.fi__veil { position: absolute; inset: 0; background: rgba(10, 9, 13, .45); opacity: 0; pointer-events: none; transition: opacity .4s; }
.fi.is-drawing .fi__veil { opacity: 1; }
.fi__sel {
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 200vmax rgba(10, 9, 13, .0);
}
.fi.is-drawing .fi__sel { opacity: 1; }
.fi__sel::before, .fi__sel::after {
  content: ""; position: absolute; width: 22px; height: 15px; border: 0 solid var(--lamp);
}
.fi__sel::before { left: -1px; top: -1px; border-width: 2px 0 0 1.5px; }
.fi__sel::after { right: -1px; bottom: -1px; border-width: 0 1.5px 2px 0; }
.fi__sel-box { position: absolute; inset: 0; border: 1px solid rgba(241, 180, 94, .55); background: rgba(241, 180, 94, .04); }
.fi__sel-tag {
  position: absolute; left: 0; top: 100%; margin-top: 8px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp);
}
.fi__marks { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.fi.show-marks .fi__marks { opacity: 1; }
.fi__mark { position: absolute; }
.fi__mark::before, .fi__mark::after { content: ""; position: absolute; width: 10px; height: 7px; border: 0 solid rgba(255, 255, 255, .85); }
.fi__mark::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.fi__mark::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.fi__mark.is-found::before, .fi__mark.is-found::after { border-color: var(--lamp); }
.fi__mark span { position: absolute; left: 4px; top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.fi__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; white-space: nowrap;
  background: rgba(14, 12, 18, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  transition: opacity .5s, transform .5s var(--ease);
}
.fi.is-zoomed .fi__hint, .fi.is-drawing .fi__hint { opacity: 0; transform: translate(-50%, 8px); }
.fi__hint svg { width: 18px; height: 12px; color: var(--lamp); }
.fi__unframe {
  position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: rgba(14, 12, 18, .7); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease);
}
.fi.is-zoomed .fi__unframe { opacity: 1; pointer-events: auto; transform: none; }
.fi__card {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; width: min(420px, calc(100% - 28px));
  padding: 18px 20px 20px; background: rgba(243, 239, 230, .96); color: var(--ink);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s, transform .6s var(--ease);
}
.fi.is-zoomed .fi__card { opacity: 1; transform: none; pointer-events: auto; }
.fi.is-zoomed .fi__card.is-new { animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fi__card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.fi__card-top .mono { color: rgba(15, 14, 12, .6); }
.fi__card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; background: var(--ink); color: var(--paper); }
.fi__card-title { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 36px); line-height: 1; letter-spacing: -.015em; margin-bottom: 10px; }
.fi__card-text { font-size: 14.5px; line-height: 1.5; color: rgba(15, 14, 12, .8); }
.fi__card-src { margin-top: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(15, 14, 12, .5); }
.fi__card.is-miss .fi__card-tag { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.fi__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  /* on phones the card sits under the photo so it never covers the detail you framed */
  .fi__card { position: relative; left: auto; bottom: auto; width: 100%; padding: 14px 16px 16px; display: none; }
  .fi.is-zoomed .fi__card { display: block; }
  .fi__card-text { font-size: 13.5px; }
  .fi__hint { bottom: 10px; font-size: 9.5px; }
  .fi.is-full .fi__card { position: absolute; left: 0; right: 0; bottom: 0; }
}

.teaser .fi, .viewer .fi:not(.is-full) { width: 100%; max-width: min(100%, calc((100vh - 190px) * var(--ar, 1.5))); margin-inline: auto; }
.teaser .rooms { justify-content: center; }

/* the progress ruler — 24 graduations, one per detail */
.ruler { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; height: 46px; border-bottom: 1px solid var(--line-2); }
.ruler__t { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.ruler__t i { display: block; width: 1px; height: 9px; background: var(--line-2); transition: height .5s var(--ease), background .3s, width .3s; }
.ruler__t:nth-child(4n) i { height: 16px; }
.ruler__t span { position: absolute; left: 4px; bottom: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted); opacity: 0; transition: opacity .3s; }
.ruler__t:nth-child(4n) span { opacity: 1; }
.ruler__t.is-found i { height: 30px; width: 2px; background: var(--lamp); }
.ruler__t.is-found span { opacity: 1; color: var(--lamp); }
.ruler__t.is-new i { animation: tick 1s var(--ease); }
@keyframes tick { 0% { height: 0; } 60% { height: 40px; } 100% { height: 30px; } }

/* ==========================================================================
   HOME — Frame-it teaser
   ========================================================================== */
.teaser { background: var(--ink); }
.teaser__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.teaser__head .h2 { grid-column: 1 / span 7; }
.teaser__head .teaser__how { grid-column: 9 / span 4; display: grid; gap: 18px; }
.teaser__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 26px; align-items: end; }
.teaser__foot .ruler { grid-column: 1 / span 8; }
.teaser__foot .teaser__count { grid-column: 9 / span 2; }
.teaser__foot .teaser__go { grid-column: 11 / span 2; justify-self: end; }
.count { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 60px); line-height: 1; letter-spacing: -.02em; }
.count small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-left: 8px; }
@media (max-width: 900px) {
  .teaser__head .h2, .teaser__head .teaser__how { grid-column: 1 / -1; }
  .teaser__head .teaser__how { margin-top: 24px; }
  .teaser__foot .ruler, .teaser__foot .teaser__count, .teaser__foot .teaser__go { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
  .teaser__foot .ruler { justify-self: stretch; }
}

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 20px 16px 18px; overflow: hidden;
  border: 1px solid currentColor; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--lamp); transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--ink); border-color: var(--lamp); }
.btn svg { width: 15px; height: 10px; }
.btn--solid { background: var(--lamp); border-color: var(--lamp); color: var(--ink); }
.btn--solid::before { background: var(--limestone); }
.link-u { position: relative; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 4px; }
.link-u::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.link-u:hover::after { transform: scaleX(.3); }

/* ==========================================================================
   HOME — Proof: two juries
   ========================================================================== */
.proof__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: clamp(48px, 7vw, 110px); }
.proof__head .h2 { grid-column: 1 / span 8; }
.proof__head .body-l { grid-column: 9 / span 4; align-self: end; }
.juries { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); position: relative; }
.jury { position: relative; background: #fff; color: var(--ink); padding: clamp(22px, 2.6vw, 40px); display: grid; grid-template-rows: auto 1fr auto; gap: 26px; min-height: 520px; }
.jury__top { display: flex; justify-content: space-between; align-items: center; }
.jury__logo { height: clamp(120px, 12vw, 190px); width: auto; object-fit: contain; justify-self: start; align-self: center; }
.jury__cat { font-family: var(--serif); font-size: clamp(30px, 3vw, 52px); line-height: .98; letter-spacing: -.02em; }
.jury__meta { display: grid; gap: 6px; border-top: 1px solid rgba(15, 14, 12, .14); padding-top: 16px; }
.jury__meta p { font-size: 14px; color: rgba(15, 14, 12, .72); }
.juries__link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: clamp(64px, 6vw, 96px); height: clamp(64px, 6vw, 96px); border-radius: 50%; background: var(--lamp); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.25; }
.proof__quote { margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.proof__quote blockquote { grid-column: 3 / span 8; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; text-align: center; }
.proof__quote figcaption { grid-column: 3 / span 8; text-align: center; margin-top: 20px; }
@media (max-width: 900px) {
  .proof__head .h2, .proof__head .body-l { grid-column: 1 / -1; }
  .proof__head .body-l { margin-top: 24px; }
  .juries { grid-template-columns: 1fr; }
  .juries__link { top: 50%; }
  .jury { min-height: 420px; }
  .proof__quote blockquote, .proof__quote figcaption { grid-column: 1 / -1; }
}

/* ==========================================================================
   HOME — index of homes
   ========================================================================== */
.homes__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 80px); flex-wrap: wrap; }
.homes__filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--line-2); transition: background .3s, color .3s, border-color .3s; }
.chip.is-on, .chip:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.homes__list { border-top: 1px solid var(--line); }
.home-row {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 3.6fr) minmax(0, 1.5fr) minmax(0, 4.4fr) 30px; gap: var(--gutter);
  align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left;
  transition: padding .5s var(--ease), color .3s, opacity .4s;
}
.home-row__award > span:last-child { font-size: 13.5px; line-height: 1.45; color: rgba(233, 226, 212, .8); }
.home-row__n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.home-row__name { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 56px); line-height: 1; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.home-row__place { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home-row__award { font-size: 14px; line-height: 1.4; display: flex; align-items: center; gap: 12px; }
.home-row__award img { width: 54px; height: auto; background: #fff; padding: 3px; flex: none; }
.home-row__award .pill { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 4px 7px; white-space: nowrap; }
.home-row__arrow { justify-self: end; width: 18px; height: 12px; opacity: .5; transition: transform .5s var(--ease), opacity .3s; }
.home-row:hover .home-row__name { transform: translateX(14px); }
.home-row:hover .home-row__arrow { transform: translateX(6px); opacity: 1; }
.home-row.is-dim { opacity: .28; }
.home-row__thumb { display: none; }
.preview {
  position: fixed; left: 0; top: 0; z-index: 55; width: clamp(260px, 22vw, 380px); aspect-ratio: 3 / 2; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s, transform .5s var(--ease);
}
.preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview__in { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0); }
.preview__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.preview::before, .preview::after { content: ""; position: absolute; z-index: 2; width: 30%; height: 30%; border: 0 solid var(--lamp); }
.preview::before { left: -8px; bottom: -8px; border-width: 0 0 3px 2px; }
.preview::after { right: -8px; top: -8px; border-width: 3px 2px 0 0; }
@media (max-width: 900px) {
  .home-row { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .home-row__place, .home-row__award { grid-column: 2; }
  .home-row__arrow { display: none; }
  .home-row__thumb { display: block; grid-column: 1 / -1; aspect-ratio: 3 / 2; overflow: hidden; max-height: 0; transition: max-height .6s var(--ease); }
  .home-row.is-open .home-row__thumb { max-height: 80vw; }
  .home-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .preview { display: none; }
}

/* ==========================================================================
   HOME — Canyon Crest / private estate card
   ========================================================================== */
.private { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.private__frame { grid-column: 1 / span 6; position: relative; aspect-ratio: 3 / 2; color: var(--fg); }
.private__frame svg { width: 100%; height: 100%; }
.private__veil { position: absolute; left: 6.25%; right: 6.25%; top: 12.5%; bottom: 12.5%; display: grid; place-items: center; text-align: center; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(233, 226, 212, .05) 0 1px, transparent 1px 11px),
    radial-gradient(80% 90% at 50% 100%, rgba(241, 180, 94, .18), transparent 70%),
    linear-gradient(180deg, #1c1826, #121017);
}
.private__veil p { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.private__veil .h3 { margin: 10px 0 14px; color: var(--limestone); font-family: var(--serif); font-size: clamp(30px, 3.4vw, 56px); letter-spacing: -.02em; text-transform: none; }
.private__copy { grid-column: 8 / span 5; display: grid; gap: 24px; }
.private__logos { display: flex; gap: 12px; flex-wrap: wrap; }
.private__logos img { width: 120px; height: auto; background: #fff; padding: 6px; }
.private__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.private__list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.private__list li span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); white-space: nowrap; }
@media (max-width: 900px) {
  .private__frame, .private__copy { grid-column: 1 / -1; }
  .private__copy { margin-top: 40px; }
}

/* ==========================================================================
   HOME — Method on the square
   ========================================================================== */
.method { background: var(--limestone); color: var(--ink); --fg: var(--ink); --bg: var(--limestone); --muted: rgba(15, 14, 12, .56); --line: rgba(15, 14, 12, .14); --line-2: rgba(15, 14, 12, .3); }
.method .body-l { color: rgba(15, 14, 12, .75); }
.method__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.method__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); margin-bottom: clamp(30px, 4vw, 64px); }
.method__track { display: flex; gap: 0; padding-left: var(--gutter); will-change: transform; }
.step { flex: none; width: clamp(300px, 30vw, 480px); padding: 0 clamp(20px, 2.2vw, 36px) 0 0; position: relative; }
.step__scale { position: relative; height: 54px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.step__scale::before { content: ""; position: absolute; left: 0; bottom: 0; width: 2px; height: 100%; background: var(--ink); }
.step__scale i { position: absolute; bottom: 0; width: 1px; background: var(--ink); height: 10px; }
.step__no { position: absolute; left: 10px; top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.step__title { font-family: var(--serif); font-size: clamp(34px, 3.2vw, 56px); line-height: .98; letter-spacing: -.02em; margin-bottom: 18px; max-width: 8em; }
.step__text { font-size: 15.5px; line-height: 1.55; color: rgba(15, 14, 12, .75); max-width: 24em; }
.step--end { width: clamp(300px, 34vw, 560px); }
.method__note { display: flex; gap: 18px; align-items: baseline; padding: 0 var(--gutter); margin-top: clamp(36px, 5vw, 72px); }
.method__note blockquote { font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.15; max-width: 30em; }
@media (max-width: 900px) {
  .method__pin { height: auto; padding: 110px 0; }
  .method__track { flex-direction: column; gap: 56px; padding-right: var(--gutter); transform: none !important; }
  .step, .step--end { width: 100%; padding-right: 0; }
  .method__head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   HOME — Founder
   ========================================================================== */
.founder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.founder__title { grid-column: 1 / span 7; }
.founder__title em { color: var(--lamp); }
.founder__quote { grid-column: 8 / span 5; align-self: end; border-left: 1px solid var(--line-2); padding-left: 24px; }
.founder__quote p { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.2; }
.founder__time { grid-column: 1 / -1; margin-top: clamp(56px, 8vw, 130px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.tl { padding: 22px 22px 0 0; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.tl:last-child { border-right: 0; }
.tl + .tl { padding-left: 22px; }
.tl__y { font-family: var(--serif); font-size: clamp(40px, 4vw, 70px); line-height: .9; letter-spacing: -.03em; }
.tl__t { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tl__t b { color: var(--fg); font-weight: 500; }
.founder__body { grid-column: 7 / span 6; margin-top: clamp(40px, 5vw, 80px); }
@media (max-width: 900px) {
  .founder__title, .founder__quote, .founder__body { grid-column: 1 / -1; }
  .founder__quote { margin-top: 36px; }
  .founder__time { grid-template-columns: 1fr; }
  .tl, .tl + .tl { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
}

/* ==========================================================================
   HOME — voices
   ========================================================================== */
.voices { overflow: hidden; }
.voices__rail { display: flex; gap: var(--gutter); will-change: transform; }
.voice { flex: none; width: clamp(300px, 34vw, 560px); border-top: 1px solid var(--line-2); padding-top: 24px; display: grid; gap: 22px; align-content: start; }
.voice p { font-family: var(--serif); font-size: clamp(24px, 2.1vw, 36px); line-height: 1.12; letter-spacing: -.01em; }
.voice cite { font-style: normal; }
.voices__g { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.voices__g img { height: 40px; width: auto; background: #fff; padding: 4px 8px; }

/* ==========================================================================
   CTA + footer
   ========================================================================== */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--dusk); }
.cta__bg { position: absolute; inset: 0; opacity: .32; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(21, 19, 28, .2), rgba(21, 19, 28, .95)); }
.cta__in { position: relative; display: grid; justify-items: center; gap: 30px; padding: 120px var(--gutter); }
.cta__title em { color: var(--lamp); }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta__mark { width: 96px; height: 64px; color: var(--lamp); }

.footer { background: var(--ink); padding: clamp(64px, 8vw, 120px) 0 32px; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.footer__brand { grid-column: 1 / span 5; display: grid; gap: 26px; align-content: start; }
.footer__brand .mark { width: 72px; height: 48px; color: var(--lamp); }
.footer__col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.footer__col a, .footer__col p { font-size: 15px; color: rgba(233, 226, 212, .78); }
.footer__col a:hover { color: var(--lamp); }
.footer__assoc { margin-top: clamp(56px, 7vw, 110px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logos { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); flex-wrap: wrap; }
.footer__logos a { opacity: .8; transition: opacity .3s; }
.footer__logos a:hover { opacity: 1; }
.footer__logos img { width: 120px; height: 50px; object-fit: contain; }
.footer__base { margin-top: 30px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.footer__word { margin-top: clamp(40px, 6vw, 90px); font-family: var(--sans); font-variation-settings: "wdth" 125; font-weight: 600; font-size: clamp(36px, 9.6vw, 190px); letter-spacing: .02em; line-height: .8; color: rgba(233, 226, 212, .08); white-space: nowrap; overflow: hidden; }
@media (max-width: 900px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; }
}

/* ==========================================================================
   GRANDSTONE page
   ========================================================================== */
.gs-hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 6vw, 90px)) 0 clamp(60px, 7vw, 110px); background: var(--dusk); }
.gs-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: end; }
.gs-hero__title { grid-column: 1 / -1; }
.gs-hero__title .display { font-size: clamp(60px, 12.4vw, 250px); }
.gs-hero__title em { color: var(--lamp); }
.gs-hero__film { grid-column: 1 / span 8; position: relative; aspect-ratio: 3 / 2; }
.gs-hero__film svg.frame-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--limestone); z-index: 2; pointer-events: none; }
.gs-hero__film .ap { position: absolute; left: 6.25%; right: 6.25%; top: 12.5%; bottom: 12.5%; overflow: hidden; }
.gs-hero__film video { width: 100%; height: 100%; object-fit: cover; }
.gs-hero__side { grid-column: 9 / span 4; display: grid; gap: 28px; align-self: stretch; align-content: space-between; }
.gs-awards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gs-award { background: #fff; color: var(--ink); padding: 14px; display: grid; gap: 12px; align-content: start; }
.gs-award img { width: 100%; height: 110px; object-fit: contain; }
.gs-award p { font-size: 12.5px; line-height: 1.35; }
.gs-award .mono { font-size: 9.5px; color: rgba(15, 14, 12, .55); }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 18px 18px 0 0; border-right: 1px solid var(--line); display: grid; gap: 8px; }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 18px; }
.fact__v { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 44px); line-height: 1; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .gs-hero__film, .gs-hero__side { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(2n+1) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.gs-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.gs-intro .lede { grid-column: 3 / span 8; }
.gs-intro .lede em { color: var(--lamp); }
@media (max-width: 900px) { .gs-intro .lede { grid-column: 1 / -1; } }

.viewer { background: var(--ink); padding: calc(var(--nav-h) + 18px) 0 clamp(80px, 9vw, 140px); scroll-margin-top: 0; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.rooms { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rooms::-webkit-scrollbar { display: none; }
.room-tab { flex: none; display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: all .3s; }
.room-tab b { font-weight: 500; color: var(--lamp); opacity: .7; }
.room-tab:hover { color: var(--fg); border-color: var(--line-2); }
.room-tab[aria-selected="true"] { color: var(--ink); background: var(--limestone); border-color: var(--limestone); }
.room-tab[aria-selected="true"] b { color: var(--walnut); opacity: 1; }
.room-tab .dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.room-tab .dots i { width: 4px; height: 4px; border: 1px solid currentColor; display: block; }
.room-tab .dots i.on { background: var(--lamp); border-color: var(--lamp); }
.viewer__tools { display: flex; gap: 8px; align-items: center; }
.tool { display: inline-flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.tool[aria-pressed="true"] { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
.viewer__main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gutter); align-items: start; }
.viewer__side { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 16px); }
.viewer__room { display: grid; gap: 10px; }
.viewer__room .h3 { font-size: clamp(30px, 2.6vw, 44px); }
.viewer__room p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.viewer__list { display: grid; border-top: 1px solid var(--line); }
.viewer__list button { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; color: var(--muted); }
.viewer__list button .q { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.viewer__list button.is-found { color: var(--fg); }
.viewer__list button.is-found .q { color: var(--lamp); }
.viewer__list button:hover { color: var(--fg); }
.viewer__progress { display: grid; gap: 14px; }
.viewer__progress .count { font-size: clamp(44px, 4vw, 66px); }
.viewer__full { display: none; }
@media (max-width: 1100px) {
  .viewer__main { grid-template-columns: 1fr; }
  .viewer__side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .viewer__side { grid-template-columns: 1fr; }
  .viewer__full { display: inline-flex; }
}
/* full-screen frame mode (touch) */
.fi.is-full { position: fixed; inset: 0; z-index: 75; background: #08070a; display: flex; flex-direction: column; justify-content: center; }
.fi.is-full .fi__stage { max-height: 100%; }
.fi__exit { display: none; position: absolute; left: 12px; top: 12px; z-index: 4; padding: 10px 12px; background: rgba(14, 12, 18, .7); color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.fi.is-full .fi__exit { display: inline-flex; position: fixed; left: 16px; top: max(16px, env(safe-area-inset-top)); border: 1px solid rgba(255, 255, 255, .3); }
.fi__tip { display: none; }
.fi.is-full .fi__tip { display: block; position: fixed; left: 16px; right: 16px; top: calc(max(16px, env(safe-area-inset-top)) + 58px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7; color: rgba(233, 226, 212, .6); }
@media (orientation: landscape) { .fi.is-full .fi__tip { display: none; } }

/* field notes */
.notes__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.note { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.note__img { position: absolute; inset: 0; background-repeat: no-repeat; filter: grayscale(1) brightness(.5); transition: filter .6s; }
.note.is-found .note__img { filter: none; }
.note__lbl { position: absolute; left: 8px; bottom: 7px; right: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.note__q { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--serif); font-size: 30px; color: rgba(255, 255, 255, .5); }
.note.is-found .note__q { display: none; }
.note:not(.is-found) .note__lbl { opacity: .6; }
@media (max-width: 900px) { .notes__grid { grid-template-columns: repeat(3, 1fr); } }

/* materials */
.mats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mat { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--gutter); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mat__name { font-family: var(--serif); font-size: clamp(40px, 4vw, 72px); line-height: .9; letter-spacing: -.03em; }
.mat__name small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mat__crops { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.mat__crops::-webkit-scrollbar { display: none; }
.crop { position: relative; flex: none; width: clamp(150px, 13vw, 220px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.crop__img { position: absolute; inset: 0; background-repeat: no-repeat; transition: transform .8s var(--ease); }
.crop:hover .crop__img { transform: scale(1.06); }
.crop__lbl { position: absolute; left: 8px; bottom: 7px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (max-width: 760px) { .mat { grid-template-columns: 1fr; } }

/* plan sheet */
.sheet { position: relative; background: #f7f4ec; color: var(--ink); padding: clamp(18px, 2vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(18px, 2vw, 30px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.sheet__draw { position: relative; border: 1px solid rgba(15, 14, 12, .5); padding: clamp(12px, 2vw, 30px); display: grid; place-items: center; background: #fbf9f3; overflow: hidden; }
.sheet__draw img { max-height: 76vh; width: auto; mix-blend-mode: multiply; filter: contrast(1.15); }
.sheet__block { border: 1px solid rgba(15, 14, 12, .5); display: grid; grid-template-rows: auto 1fr auto; }
.sheet__block > div { padding: 14px; border-bottom: 1px solid rgba(15, 14, 12, .5); }
.sheet__block > div:last-child { border-bottom: 0; }
.sheet__block .mark { width: 60px; height: 40px; color: var(--ink); }
.sheet__rows { display: grid; gap: 10px; }
.sheet__rows p { font-size: 13.5px; line-height: 1.4; }
@media (max-width: 900px) { .sheet { grid-template-columns: 1fr; } .sheet__draw img { max-height: none; width: 100%; } }

.spec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.spec__title { grid-column: 1 / span 4; }
.spec__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); columns: 2; column-gap: var(--gutter); }
.spec__list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec__list li span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.spec__src { grid-column: 6 / span 7; margin-top: 18px; color: var(--muted); }
@media (max-width: 900px) { .spec__title, .spec__list, .spec__src { grid-column: 1 / -1; } .spec__list { columns: 1; margin-top: 30px; } }

/* next */
.next { position: relative; display: block; min-height: 70vh; overflow: hidden; background: var(--ink); }
.next__bg { position: absolute; inset: 0; opacity: .5; transition: opacity .8s, transform 1.4s var(--ease); }
.next__bg img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__bg { opacity: .7; transform: scale(1.03); }
.next__in { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px) var(--gutter); }

/* ==========================================================================
   IDENTITY page
   ========================================================================== */
.id-cover { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; background: var(--dusk); padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; }
.id-cover__mark { width: min(64vw, 820px); height: auto; color: var(--limestone); overflow: visible; }
.id-cover__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.id-cover__title { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 30px); }
.id-sec { padding: clamp(80px, 10vw, 170px) 0; border-top: 1px solid var(--line); }
.id-sec__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: clamp(40px, 5vw, 80px); }
.id-sec__no { grid-column: 1 / span 2; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--lamp); padding-top: 12px; }
.id-sec__title { grid-column: 3 / span 6; }
.id-sec__text { grid-column: 9 / span 4; align-self: end; }
@media (max-width: 900px) { .id-sec__no, .id-sec__title, .id-sec__text { grid-column: 1 / -1; } .id-sec__text { margin-top: 18px; } }
.plate { position: relative; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.plate--light { background: var(--paper); color: var(--ink); border-color: transparent; }
.plate--stone { background: var(--limestone); color: var(--ink); border-color: transparent; }
.plate--lamp { background: var(--lamp); color: var(--ink); border-color: transparent; }
.plate__cap { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.id-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.id-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-mock { min-width: 0; overflow: hidden; }
@media (max-width: 900px) { .id-grid-2, .id-grid-3 { grid-template-columns: 1fr; } }
.swatch { aspect-ratio: 3 / 4; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.swatch .h3 { font-size: clamp(30px, 2.6vw, 44px); }
.swatches { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr .8fr; gap: 10px; }
@media (max-width: 900px) { .swatches { grid-template-columns: 1fr 1fr; } .swatch { aspect-ratio: auto; min-height: 220px; } }
.spec-type { display: grid; gap: 10px; padding: 26px; }
.spec-type__big { font-size: clamp(64px, 9vw, 160px); line-height: .9; letter-spacing: -.03em; }
.card-mock { aspect-ratio: 3.5 / 2; padding: clamp(14px, 2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.datestone {
  aspect-ratio: 3 / 2; display: grid; place-items: center; position: relative; color: rgba(70, 60, 45, .9);
  background:
    radial-gradient(100% 80% at 30% 20%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(180deg, #e7dcc6, #d6c8ad);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -18px 40px rgba(80, 60, 30, .18), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.datestone::before { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.045 .09' numOctaves='5' seed='7'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .48  0 0 0 0 .38  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>"); }
.datestone__in { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; }
.datestone .mark { width: clamp(70px, 9vw, 120px); height: auto; color: rgba(70, 58, 42, .82); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)) drop-shadow(0 -1px 0 rgba(0, 0, 0, .25)); }
.datestone__t { font-family: var(--sans); font-variation-settings: "wdth" 125; font-weight: 600; letter-spacing: .3em; font-size: clamp(12px, 1.2vw, 18px); text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(0, 0, 0, .25); }
.datestone__y { font-family: var(--serif); font-size: clamp(28px, 3vw, 46px); letter-spacing: .1em; text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(0, 0, 0, .25); }
.motion-demo { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.motion-demo svg { width: 46%; height: auto; overflow: visible; color: var(--lamp); }

/* reveal helpers */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
