:root {
  --ink: #111110;
  --paper: #f3f2ee;
  --line: #dddbd5;
  --muted: #9b9993;
  --accent: #e4572e;
  --accent-2: #d6602a;
  --display: 'Outfit', system-ui, sans-serif;
  --label: 'Jost', 'Outfit', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.label { font-family: var(--label); font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.dim { opacity: .6; }
em { font-style: normal; color: var(--accent); }

/* ---------- Grain + rail ---------- */
.grain { position: fixed; inset: -64px; z-index: 90; pointer-events: none; opacity: .05; background: url(../assets/grain.png) repeat; will-change: transform; animation: grain .9s steps(6) infinite; }
/* composited (transform-only) so it never repaints the page */
@keyframes grain { 0%{transform:translate3d(0,0,0)} 20%{transform:translate3d(-40px,30px,0)} 40%{transform:translate3d(30px,-50px,0)} 60%{transform:translate3d(-20px,-10px,0)} 80%{transform:translate3d(50px,40px,0)} 100%{transform:translate3d(0,0,0)} }
.low-power .grain { display: none; }
/* low-power: no backdrop blurs (each one re-samples everything behind it every frame) */
.low-power .pill, .low-power .cursor-pill { backdrop-filter: none; -webkit-backdrop-filter: none; }
.low-power .pill { background: rgba(40,20,70,.45); }
.rail { position: fixed; right: 12px; top: 50%; translate: 0 -50%; width: 2px; height: 140px; background: rgba(140,140,140,.25); z-index: 60; border-radius: 2px; overflow: hidden; mix-blend-mode: difference; }
.rail i { position: absolute; inset: 0 0 auto 0; height: 100%; background: #fff; transform-origin: top; transform: scaleY(0); }

/* ---------- Cursor label (native cursor stays visible) ---------- */
.cursor-pill { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; padding: 8px 14px 8px 16px; border-radius: 99px; background: rgba(17,17,16,.88); color: #fff; font-family: var(--label); font-size: 9px; letter-spacing: .28em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; scale: .85; transition: opacity .35s var(--ease), scale .45s var(--ease); white-space: nowrap; }
.cursor-pill.on { opacity: 1; scale: 1; }
@media (hover: hover) { .dn { cursor: none; } }
@media (hover: none) { .cursor-pill { display: none; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: #0d0a14; color: #f3f2ee; display: grid; grid-template-rows: auto 1fr auto; padding: 28px var(--gutter); }
.loader-top, .loader-bot { display: flex; justify-content: space-between; align-items: end; }
.loader-top .label { opacity: .55; }
.loader-mid { display: grid; place-items: center; }
.loader-word { display: flex; font-weight: 800; font-size: clamp(64px, 16vw, 260px); letter-spacing: -.02em; line-height: .8; overflow: hidden; }
.loader-word span { display: inline-block; transform: translateY(105%); }
.loader-num { font-weight: 200; font-size: clamp(56px, 10vw, 150px); line-height: .8; letter-spacing: -.04em; display: flex; align-items: flex-start; gap: 8px; font-variant-numeric: tabular-nums; }
.loader-num small { font-family: var(--label); font-size: 12px; letter-spacing: .3em; margin-top: 10px; opacity: .6; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.loader-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 80; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px var(--gutter); color: #fff; transition: color .5s var(--ease), transform .7s var(--ease); }
.nav.on-light { color: var(--ink); }
.nav.hide { transform: translateY(-110%); }
.logo { font-weight: 800; letter-spacing: .24em; font-size: 13px; justify-self: start; display: inline-block; }
.nav-links { display: flex; gap: 46px; }
.roll { font-family: var(--label); font-size: 10px; letter-spacing: .3em; overflow: hidden; display: inline-block; height: 1.3em; line-height: 1.3em; }
.roll span { display: block; position: relative; transition: transform .6s var(--ease); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.roll:hover span { transform: translateY(-100%); }
.viewings { justify-self: end; display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; border-radius: 99px; padding: 11px 20px; font-family: var(--label); font-size: 10px; letter-spacing: .28em; position: relative; overflow: hidden; isolation: isolate; }
.viewings::before { content: ''; position: absolute; inset: 0; background: currentColor; transform: translateY(101%); border-radius: 99px; transition: transform .6s var(--ease); z-index: -1; }
.viewings:hover::before { transform: none; }
.viewings:hover span:last-child { color: #111; }
.nav.on-light .viewings:hover span:last-child { color: #fff; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(228,87,46,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(228,87,46,0); } 100% { box-shadow: 0 0 0 0 rgba(228,87,46,0); } }

/* ---------- Hero ---------- */
.hero { height: 520vh; position: relative; background: #12082e; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#heroCanvas { will-change: transform; transform-origin: 50% 50%; }
/* CSS fallback for the day/night lens (no WebGL / software rendering) */
.dn-css, .dn-css .dn-night, .dn-css .dn-lens { position: absolute; inset: 0; }
.dn-css .dn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dn-css .dn-night { clip-path: inset(0 0 0 50%); }
.dn-css .dn-lens { clip-path: circle(0 at 50% 50%); filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 17vh; text-align: center; color: #fff; z-index: 3; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { font-weight: 700; font-size: clamp(46px, 8.6vw, 140px); line-height: .9; letter-spacing: -.04em; filter: drop-shadow(0 10px 40px rgba(40,6,90,.35)); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: inline-block; transform: translateY(110%); }
.hero-sub { margin-top: 26px; font-size: 15px; font-weight: 300; opacity: 0; letter-spacing: .01em; }
.pill { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px 12px 24px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--label); font-size: 10px; letter-spacing: .3em; opacity: 0; transition: background .5s var(--ease), color .5s var(--ease); }
.pill i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #4a1d8f; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; transition: transform .5s var(--ease); }
.pill:hover { background: #fff; color: #3a1690; }
.pill:hover i { transform: translateY(3px); background: var(--accent); color: #fff; }

.hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 0 var(--gutter) 30px; color: #fff; pointer-events: none; }
.hud-l, .hud-r { display: flex; flex-direction: column; gap: 8px; }
.hud-r { align-items: flex-end; }
.hud b { font-variant-numeric: tabular-nums; font-size: 11px; }
.hud-c { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hud-c i { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.facade-labels { position: absolute; inset: 0; z-index: 4; color: #fff; opacity: 0; pointer-events: none; }
.fl-l { position: absolute; left: var(--gutter); top: 40%; }
.fl-r { position: absolute; right: var(--gutter); top: 58%; }
.fl-rule { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.4); transform-origin: left; }
.fl-rule.a { top: 37%; } .fl-rule.b { top: 63%; transform-origin: right; }

.tagline { position: absolute; left: 0; right: 0; top: calc(46% + min(20.5vw, 34vh) * .52 + 22px); z-index: 7; display: flex; justify-content: center; font-weight: 600; font-size: clamp(12px, 1.4vw, 19px); letter-spacing: .38em; color: #6d4a3b; pointer-events: none; padding-left: .38em; }
.tagline span { display: inline-block; opacity: 0; transform: translateY(14px); }

/* ---------- Shared ---------- */
.eyebrow { display: flex; align-items: center; gap: 18px; color: var(--muted); margin-bottom: 7vh; }
.eyebrow i { flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.w { display: inline-block; }
.mask-lines .ml { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask-lines .ml > span { display: inline-block; }

/* ---------- Intro ---------- */
.intro { padding: 20vh var(--gutter) 14vh; background: var(--paper); position: relative; z-index: 2; }
.intro h2 { font-weight: 700; font-size: clamp(42px, 6.8vw, 116px); line-height: .96; letter-spacing: -.045em; max-width: 12.5em; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-top: 10vh; max-width: 1120px; margin-left: auto; }
.cols p { font-size: 16px; line-height: 1.75; color: #3b3a37; font-weight: 300; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14vh; }
.stat { padding-top: 28px; border-top: 1px solid var(--line); position: relative; }
.stat + .stat { padding-left: 24px; }
.stat b { display: block; font-weight: 500; font-size: clamp(40px, 4.6vw, 76px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .label { color: var(--muted); margin-top: 14px; display: block; font-size: 9px; }

/* ---------- Cards ---------- */
.quiet { padding: 12vh var(--gutter) 14vh; background: var(--paper); position: relative; z-index: 2; }
.quiet h2 { font-weight: 700; font-size: clamp(42px, 6vw, 100px); line-height: .96; letter-spacing: -.045em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2vw; margin-top: 12vh; align-items: start; perspective: 1400px; }
.card { will-change: transform; }
.card:nth-child(2) { margin-top: 110px; } .card:nth-child(3) { margin-top: 30px; } .card:nth-child(4) { margin-top: 150px; }
.card .num { font-weight: 200; font-size: clamp(40px, 4.4vw, 72px); color: #c9c7c1; letter-spacing: -.04em; margin-bottom: 16px; line-height: 1; }
.card .img { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #d6d4cf; position: relative; transform-style: preserve-3d; transition: transform .8s var(--ease), box-shadow .8s var(--ease); box-shadow: 0 30px 60px -34px rgba(0,0,0,.4); clip-path: inset(100% 0 0 0 round 16px); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.card .sheen { position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 45%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover .sheen { opacity: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; gap: 10px; }
.card h3 { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.card .meta .label { color: var(--muted); font-size: 8px; }
.foot-line { display: flex; justify-content: space-between; margin-top: 14vh; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); gap: 16px; }

/* ---------- Day / night ---------- */
.dn { height: 100vh; height: 100svh; position: relative; overflow: hidden; background: #05060c; z-index: 2; }
.dn-copy { position: absolute; z-index: 2; pointer-events: none; }
.dn h2 { font-weight: 800; font-size: clamp(42px, 6vw, 100px); line-height: .92; letter-spacing: -.045em; }
.dn .day { left: var(--gutter); top: 30vh; color: #0f131b; }
.dn .night { left: 54vw; top: 30vh; color: #fff; }
.dn-copy .label { display: block; margin-top: 22px; opacity: .7; font-size: 9px; }
.dn-tag { position: absolute; right: var(--gutter); bottom: 84px; z-index: 3; color: rgba(255,255,255,.7); }
.dn-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; z-index: 3; background: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); color: #555; }

/* ---------- Promise ---------- */
.promise { height: 260vh; position: relative; background: var(--paper); z-index: 2; }
.promise-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0 8vw; }
.promise p { font-weight: 700; font-size: clamp(36px, 5.8vw, 96px); line-height: 1.1; letter-spacing: -.045em; text-align: center; max-width: 13em; }
.pw { color: #d6d4ce; transition: color .5s var(--ease); }
.pw.on { color: var(--ink); }
.mark { position: relative; display: inline-block; }
.mark svg { position: absolute; overflow: visible; pointer-events: none; }
.mark path { fill: none; stroke: var(--accent); stroke-linecap: round; }
.circ svg { left: -9%; top: -16%; width: 118%; height: 132%; }
.circ path { stroke-width: 2.6; }
.under svg { left: -2%; bottom: -12%; width: 104%; height: 24%; }
.under path { stroke-width: 3.2; }

/* ---------- Sign ---------- */
.sign { background: var(--paper); padding: 10vh var(--gutter) 0; text-align: center; position: relative; z-index: 2; }
.sig { width: min(460px, 76vw); margin: 0 auto; display: block; }
.sig path { fill: none; stroke: #1b1b1b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sig-cap { color: #555; margin-top: 28px; display: block; }
.reserve { position: relative; display: block; margin: 12vh auto 0; width: min(600px, 88vw); }
.reserve svg { width: 100%; display: block; overflow: visible; }
.reserve .sky-shape { fill: #111; transition: fill .6s var(--ease); }
.reserve:hover .sky-shape { fill: #1b1310; }
.reserve .lit rect { fill: #ffcf6b; opacity: 0; transition: opacity .25s; }
.reserve:hover .lit rect { opacity: 1; }
.reserve .t { position: absolute; left: 0; right: 0; bottom: 20%; color: #fff; font-family: var(--label); font-size: 11px; letter-spacing: .32em; }
.reserve .t em { display: inline-block; color: var(--accent); transition: transform .6s var(--ease); }
.reserve:hover .t em { transform: translateX(8px); }
.flame { position: absolute; left: 50.9%; top: -7%; width: 24px; height: 34px; translate: -50% 0; }
.flame i { position: absolute; inset: 0; border-radius: 50% 50% 45% 45%; background: radial-gradient(50% 60% at 50% 70%, #fff 0, #ffd56b 35%, rgba(255,120,40,0) 75%); animation: flick 1.3s ease-in-out infinite alternate; filter: blur(.4px); }
.flame i + i { animation-duration: .9s; opacity: .6; transform-origin: bottom; }
@keyframes flick { 0% { transform: scale(1, 1) rotate(-4deg); } 50% { transform: scale(.88, 1.18) rotate(5deg); } 100% { transform: scale(1.05, .94) rotate(-2deg); } }
.sign-foot { display: flex; justify-content: space-between; padding: 9vh 0 30px; color: #666; gap: 16px; }

.footer { background: #0e0c12; color: #f3f2ee; padding: 9vh var(--gutter) 28px; position: relative; z-index: 2; overflow: hidden; }
.footer-word { font-weight: 800; font-size: 25.5vw; line-height: .78; letter-spacing: -.04em; text-align: center; background: linear-gradient(180deg, #f3f2ee 20%, rgba(243,242,238,.05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-row { display: flex; justify-content: space-between; margin-top: 6vh; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); gap: 16px; }
.to-top { color: #fff; }

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 1.45fr 1fr; visibility: hidden; }
.menu-left { background: #f4f3f0; padding: 26px var(--gutter); display: flex; flex-direction: column; }
.menu-right { background: var(--accent-2); padding: 7vh 2.6vw 0; display: flex; flex-direction: column; position: relative; }
.menu .logo { color: var(--ink); }
.menu ol { list-style: none; margin: auto 0; padding-left: 5vw; }
.menu li { display: flex; align-items: center; gap: 24px; overflow: hidden; }
.menu li small { font-family: var(--label); font-size: 9px; color: #9a9a96; letter-spacing: .2em; width: 20px; }
.menu li a { font-weight: 700; font-size: clamp(38px, 5.4vw, 86px); line-height: 1.1; letter-spacing: -.045em; display: inline-flex; align-items: center; gap: .3em; transition: color .4s; }
.menu li a .mi { display: inline-block; }
.menu li a .arr { font-weight: 300; opacity: 0; transform: translateX(-24px); transition: transform .6s var(--ease), opacity .4s; }
.menu li a:hover .arr, .menu li a.active .arr { opacity: 1; transform: none; }
.menu ol:hover a { color: #bcbab5; }
.menu ol:hover a:hover { color: var(--ink); }
.menu-foot { display: flex; gap: 40px; color: #888; }
.imgbox { position: relative; flex: 1; max-height: 80vh; overflow: hidden; border-radius: 3px; background: #7a3414; }
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.2); }
.imgbox img.on { z-index: 2; }
.close { position: absolute; right: 2.6vw; top: 2.2vh; width: 44px; height: 44px; z-index: 3; }
.close i { position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: #fff; transform: rotate(45deg); transition: transform .5s var(--ease); }
.close i + i { transform: rotate(-45deg); }
.close:hover i { transform: rotate(135deg); } .close:hover i + i { transform: rotate(45deg); }
.cap { color: rgba(255,255,255,.75); padding: 20px 0 24px; font-size: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hud-c { display: none; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card:nth-child(n) { margin-top: 0; } .card:nth-child(even) { margin-top: 70px; }
  .dn .day { top: 16vh; }
  .dn .night { left: auto; right: var(--gutter); top: auto; bottom: 22vh; text-align: right; }
  .dn-tag, .dn-bar .label:last-child { display: none; }
  .menu { grid-template-columns: 1fr; grid-template-rows: 1fr 38vh; }
  .menu ol { padding-left: 0; }
  .menu-right { padding: 16px; }
  .foot-line, .sign-foot, .footer-row { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}
.card .img img:not([src]) { visibility: hidden; }
