/* =========================================================================
   BEYOND SPACE — cinematic real estate · light, warm, vibrant
   ========================================================================= */
:root {
  --sky0: #fbf7f0; --sky1: #f3e7d3; --sky2: #dfe9f5;
  --ink: #15171b; --ink2: #2b2f36; --muted: #5a5f68; --line: rgba(21, 23, 27, .12);
  --gold: #b8894c; --gold2: #d9b57a; --gold3: #8f6532;
  --glass: rgba(255, 255, 255, .64); --glass-b: rgba(255, 255, 255, .75);
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", "SF Pro Display", "Helvetica Neue", Inter, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-weight: 300; color: var(--ink); line-height: 1.55;
  background: linear-gradient(180deg, var(--sky0), var(--sky1) 55%, var(--sky2));
  background-attachment: fixed; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 30px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
#site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px; padding: 18px clamp(16px, 3vw, 44px); pointer-events: none;
}
#site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; min-height: 42px; }
#brand-right { justify-content: flex-end; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-img { height: 40px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.brand-link.has-logo .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-text { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--ink); white-space: nowrap; }
#brand-right .brand-text { letter-spacing: .12em; font-weight: 400; font-size: 12px; text-transform: none; }
.hdr-nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 30px -12px rgba(70, 50, 20, .25); }
.hdr-nav button, .hdr-nav a { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; letter-spacing: .06em; text-decoration: none; transition: background .3s; white-space: nowrap; }
.hdr-nav button:hover, .hdr-nav a:hover { background: rgba(255, 255, 255, .9); }
.hdr-nav .btn-enq { background: var(--ink); color: #fff; }
.hdr-nav .btn-enq:hover { background: var(--gold3); }
.m-off { display: none; } .is-flat .m-on { display: none; } .is-flat .m-off { display: inline; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-size: 14px; letter-spacing: .08em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: linear-gradient(135deg, #1a1c20, #3a3226); color: #fff; box-shadow: 0 14px 30px -12px rgba(60, 40, 15, .55); }
.btn-solid:hover { background: linear-gradient(135deg, var(--gold3), var(--gold)); }
.btn-ghost { background: rgba(255, 255, 255, .6); border-color: rgba(21, 23, 27, .16); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- cinematic stage ---------- */
#stage-fixed, #journey { display: none; }
.is-cine #stage-fixed { display: block; position: fixed; inset: 0; z-index: 1; overflow: hidden; }
.is-cine #journey { display: block; position: relative; z-index: 0; }
#flat { display: none; }
.is-flat #flat { display: block; }
#sky { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 72% 18%, rgba(255, 246, 225, .95), rgba(255, 246, 225, 0) 60%),
  linear-gradient(180deg, var(--sky2) 0%, var(--sky0) 45%, var(--sky1) 100%); }
#gl, #css3d { position: absolute; inset: 0; }
#gl canvas { display: block; }
#css3d { pointer-events: none; }
#css3d > div { pointer-events: none; }
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, rgba(255, 255, 255, 0) 55%, rgba(255, 250, 240, .55) 100%); }

/* photographs in 3D */
.card3d { margin: 0; position: relative; overflow: hidden; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(120deg, #f1e6d4, #e1ecf8, #f6eadb); background-size: 300% 300%; animation: shimmer 3.2s ease-in-out infinite;
  box-shadow: 0 80px 140px -40px rgba(80, 55, 25, .38), 0 30px 60px -30px rgba(40, 60, 90, .25); outline: 1px solid rgba(255, 255, 255, .55); outline-offset: -1px; }
.card3d img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 2.4s var(--ease); filter: saturate(1.12) contrast(1.04) brightness(1.03); }
.card3d.ready { animation: none; }
.card3d.ready img { opacity: 1; transform: scale(1); }
.card3d.noimg img { opacity: 0; }
.card3d figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 34px 26px; font-size: 26px; letter-spacing: .04em; color: #fff; background: linear-gradient(0deg, rgba(20, 16, 10, .55), rgba(20, 16, 10, 0)); display: flex; gap: 16px; align-items: baseline; }
.card3d figcaption b { font-weight: 500; color: var(--gold2); letter-spacing: .12em; font-size: 22px; }
.card3d.lg figcaption { font-size: 34px; padding: 90px 46px 34px; }
.demo-tag { position: absolute; top: 22px; left: 22px; font-style: normal; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .88); color: var(--ink2); padding: 8px 16px; border-radius: 99px; }
.num3d { font-size: 1300px; font-weight: 100; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 3px rgba(184, 137, 76, .5); pointer-events: none; user-select: none; }
.pin3d { display: flex; align-items: center; gap: 16px; padding: 18px 30px 18px 22px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 40px; color: var(--ink2); box-shadow: 0 20px 40px -18px rgba(60, 40, 15, .4); white-space: nowrap; }
.pin3d i { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 10px rgba(184, 137, 76, .2); }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hud-panel { position: absolute; top: 50%; width: min(460px, 34vw); padding: 34px 36px 32px; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 40px 80px -40px rgba(70, 50, 20, .35); opacity: 0; visibility: hidden; transform: translateY(-46%) scale(.98);
  transition: opacity .8s var(--ease), transform 1.1s var(--ease), visibility 0s linear .8s; }
.hud-panel.on { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); pointer-events: auto; transition: opacity .9s var(--ease) .15s, transform 1.2s var(--ease) .1s, visibility 0s; }
.hud-panel > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.hud-panel.on > * { opacity: 1; transform: none; }
.hud-panel.on > *:nth-child(2) { transition-delay: .22s; } .hud-panel.on > *:nth-child(3) { transition-delay: .32s; }
.hud-panel.on > *:nth-child(4) { transition-delay: .42s; } .hud-panel.on > *:nth-child(5) { transition-delay: .52s; } .hud-panel.on > *:nth-child(6) { transition-delay: .6s; }
.side-left { left: clamp(20px, 5vw, 80px); }
.side-right { right: clamp(60px, 7vw, 120px); }
.hud-k { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hud-n { color: var(--gold3); font-weight: 600; letter-spacing: .14em; }
.hud-sep { width: 34px; height: 1px; background: var(--gold); }
.hud-t { margin: 0 0 18px; font-weight: 200; font-size: clamp(34px, 3.5vw, 60px); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); }
.hud-b { margin: 0 0 18px; font-size: 16px; color: var(--ink2); max-width: 40ch; }
.hud-p { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hud-p li { font-size: 12.5px; letter-spacing: .06em; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(184, 137, 76, .28); color: var(--ink2); }
.hud-p.cats li b { color: var(--gold3); font-weight: 600; margin-right: 6px; }
.hud-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.hud-steps li { font-size: 13px; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); transition: color .5s, border-color .5s; }
.hud-steps li b { color: var(--muted); margin-right: 8px; font-weight: 600; font-size: 11px; letter-spacing: .1em; }
.hud-steps li.on, .hud-steps.static li { color: var(--ink); border-color: var(--gold); }
.hud-steps li.on b { color: var(--gold3); }
.hud-note { margin: 18px 0 0; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* hero */
.hero-panel { left: 50%; top: 50%; width: min(1300px, 92vw); text-align: center; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; transform: translate(-50%, -46%); }
.hero-panel.on { transform: translate(-50%, -50%); }
.hero-panel::before { content: ""; position: absolute; inset: -12% -6%; z-index: -1; pointer-events: none; background: radial-gradient(50% 50% at 50% 48%, rgba(255, 251, 243, .82), rgba(255, 251, 243, .45) 55%, rgba(255, 251, 243, 0) 75%); filter: blur(8px); }
.hero-title { text-shadow: 0 2px 30px rgba(255, 250, 240, .8); }
.hero-title .ln:nth-child(2) > span { text-shadow: none; filter: drop-shadow(0 2px 18px rgba(255, 250, 240, .9)); }
.hero-k { justify-content: center; color: var(--ink2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(184, 137, 76, .18); }
.hero-title { margin: 0; font-weight: 200; font-size: clamp(46px, 8.4vw, 150px); line-height: .96; letter-spacing: -.035em; color: var(--ink); }
.hero-title .ln { display: block; overflow: hidden; padding: .02em 0 .06em; }
.hero-title .ln > span { display: inline-block; }
.hero-title .ln:nth-child(2) > span { background: linear-gradient(100deg, #8f6532 0%, #d9b57a 40%, #b8894c 60%, #5e86c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 26px auto 0; font-size: clamp(15px, 1.35vw, 20px); color: var(--ink2); max-width: 60ch; }
.hero-panel .hero-ctas { justify-content: center; }
.scroll-cue { margin: 46px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
.finale-panel { left: 50%; width: min(980px, 90vw); text-align: center; transform: translate(-50%, -46%); }
.finale-panel.on { transform: translate(-50%, -50%); }
.finale-panel .hud-k { justify-content: center; }
.finale-panel .hud-t { font-size: clamp(34px, 5vw, 84px); }
.finale-panel .hud-b { margin: 0 auto 6px; font-size: 18px; }
.finale-panel .hero-ctas { justify-content: center; }

/* rail + counter */
#rail { position: absolute; right: clamp(14px, 1.6vw, 30px); top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.tick { position: relative; width: 26px; height: 14px; border: 0; background: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: flex-end; }
.tick::before { content: ""; width: 10px; height: 1.5px; background: rgba(21, 23, 27, .3); transition: width .5s var(--ease), background .5s; }
.tick:hover::before, .tick:focus-visible::before { width: 20px; background: var(--ink); }
.tick.on::before { width: 26px; background: var(--gold); height: 2px; }
.tick-l { position: absolute; right: 34px; top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .92); padding: 5px 10px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .35s var(--ease); }
.tick:hover .tick-l, .tick:focus-visible .tick-l { opacity: 1; transform: translateY(-50%); }
#counter { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vh, 34px); z-index: 6; font-size: 12px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
#counter b { font-weight: 300; font-size: 32px; letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }
#counter span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
html[data-stage="1"] #counter { opacity: 0; }
#counter { transition: opacity .6s; }

/* chapters panel */
#chapters { position: fixed; z-index: 60; top: 78px; left: 50%; transform: translateX(-50%); width: min(760px, 94vw); max-height: calc(100vh - 100px); overflow: auto; padding: 22px 26px 26px; border-radius: 24px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border: 1px solid #fff; box-shadow: 0 40px 90px -30px rgba(60, 40, 15, .4); }
#chapters[hidden] { display: none; }
.ch-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ch-head button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 16px; cursor: pointer; letter-spacing: .1em; }
#chapters-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
#chapters-list button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; display: flex; gap: 12px; transition: color .3s, padding .3s; }
#chapters-list button:hover { color: var(--gold3); padding-left: 12px; }
#chapters-list b { color: var(--gold3); font-weight: 600; font-size: 12px; letter-spacing: .1em; padding-top: 3px; }

/* ---------- footer (the final destination) ---------- */
#site-footer { position: relative; z-index: 10; padding: 160px clamp(20px, 6vw, 90px) 40px; background: linear-gradient(180deg, rgba(251, 248, 242, 0) 0, rgba(251, 248, 242, .96) 150px, #fbf8f2 100%); }
.ft-inner { max-width: 1320px; margin: 0 auto; }
.ft-top { max-width: 760px; margin-bottom: 70px; }
.ft-title { font-weight: 200; font-size: clamp(42px, 6vw, 96px); line-height: .98; letter-spacing: -.035em; margin: 0 0 18px; }
.ft-lead { font-size: 18px; color: var(--ink2); max-width: 54ch; margin: 0; }
.ft-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ft-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.ft-col h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold3); font-weight: 600; }
.ft-col a { text-decoration: none; color: var(--ink2); transition: color .3s; }
.ft-col a:hover { color: var(--gold3); }
.ft-col span { color: var(--muted); }
.ft-small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ft-brands { display: flex; align-items: baseline; gap: 10px; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.ft-b1 { font-weight: 500; } .ft-x { color: var(--gold); } .ft-b2 { font-weight: 300; letter-spacing: .12em; }
.ft-brand p { color: var(--muted); margin: 0; max-width: 34ch; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 26px; font-size: 12.5px; color: var(--muted); }
.ft-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-links a { text-decoration: none; } .ft-links a:hover { color: var(--gold3); }

/* ---------- simple layout (reduced motion / no WebGL / fallback) ---------- */
.flat-note:empty { display: none; }
.flat-note { margin: 96px auto 0; max-width: 900px; text-align: center; font-size: 13px; color: var(--muted); padding: 10px 18px; border-radius: 99px; background: rgba(255, 255, 255, .7); width: fit-content; }
.flat-sec { position: relative; padding: 120px clamp(20px, 6vw, 90px) 60px; max-width: 1440px; margin: 0 auto; }
.flat-sec:first-of-type { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.flat-head { max-width: 640px; margin-bottom: 38px; position: relative; z-index: 2; }
.flat-head h2 { font-weight: 200; font-size: clamp(36px, 4.6vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 0 0 18px; }
.flat-head p { font-size: 17px; color: var(--ink2); }
.side-right .flat-head { margin-left: auto; }
.flat-hero-title { font-weight: 200; font-size: clamp(44px, 8vw, 140px); line-height: .96; letter-spacing: -.035em; margin: 0; }
.flat-grid { display: grid; gap: 18px; }
.flat-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(120deg, #f1e6d4, #e1ecf8); box-shadow: 0 30px 60px -30px rgba(70, 50, 20, .35); }
.flat-grid img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; filter: saturate(1.1) contrast(1.03); transition: transform 1.4s var(--ease); }
.flat-grid figure:hover img { transform: scale(1.04); }
.flat-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-size: 13px; letter-spacing: .04em; background: linear-gradient(0deg, rgba(20, 16, 10, .55), transparent); }
.flat-grid .demo-tag { top: 12px; left: 12px; font-size: 10px; padding: 5px 10px; }
.g-hero3, .g-asym { grid-template-columns: 2fr 1fr; } .g-hero3 figure:first-child, .g-asym figure:first-child { grid-row: span 2; }
.g-hero3 figure:first-child img, .g-asym figure:first-child img { aspect-ratio: auto; height: 100%; }
.g-mosaic, .g-grid3, .g-swatch, .g-steps { grid-template-columns: repeat(3, 1fr); }
.g-mosaic figure:first-child { grid-column: span 2; grid-row: span 2; } .g-mosaic figure:first-child img { aspect-ratio: auto; height: 100%; }
.g-wide { grid-template-columns: repeat(4, 1fr); } .g-wide figure:first-child { grid-column: 1 / -1; } .g-wide figure:first-child img { aspect-ratio: 21 / 9; }
.g-tall { grid-template-columns: repeat(5, 1fr); } .g-tall img { aspect-ratio: 3 / 4; }
.g-two, .g-one { grid-template-columns: 1fr 1fr; }
.g-steps { grid-template-columns: repeat(4, 1fr); }
.g-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.g-gallery figure:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; } .g-gallery figure:nth-child(5n + 1) img { aspect-ratio: auto; height: 100%; }
.flat-map { border-radius: 14px; min-height: 280px; background:
  repeating-radial-gradient(circle at 30% 40%, rgba(184, 137, 76, .25) 0 1px, transparent 1px 28px),
  repeating-radial-gradient(circle at 75% 70%, rgba(95, 134, 196, .22) 0 1px, transparent 1px 34px),
  linear-gradient(135deg, #f5f1e8, #e5efe0); }
.flat-blueprint { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(rgba(60, 100, 190, .08) 1px, transparent 1px) 0 0 / 60px 60px,
  linear-gradient(90deg, rgba(60, 100, 190, .08) 1px, transparent 1px) 0 0 / 60px 60px; }
.flat-blueprint i { position: absolute; bottom: 0; width: 9%; border: 1px solid rgba(184, 137, 76, .5); border-bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(240, 228, 210, .5)); }
.flat-blueprint i:nth-child(1) { left: 6%; height: 46%; } .flat-blueprint i:nth-child(2) { left: 17%; height: 30%; } .flat-blueprint i:nth-child(3) { right: 18%; height: 38%; } .flat-blueprint i:nth-child(4) { right: 6%; height: 58%; } .flat-blueprint i:nth-child(5) { left: 30%; height: 20%; width: 6%; }
.flat-spatial { position: relative; height: 420px; }
.flat-spatial i { position: absolute; border-radius: 50%; border: 6px solid #e0875a; width: 300px; height: 300px; left: 10%; top: 40px; border-bottom-color: transparent; }
.flat-spatial i:nth-child(2) { border: 0; border-radius: 0; background: #ead7bb; width: 260px; height: 160px; left: 40%; top: 120px; transform: rotate(-12deg); }
.flat-spatial i:nth-child(3) { border-color: #5f8fd0; width: 180px; height: 180px; left: 62%; top: 30px; }
.flat-spatial i:nth-child(4) { border: 0; border-radius: 0; width: 0; height: 0; border-left: 90px solid transparent; border-right: 90px solid transparent; border-bottom: 160px solid #c39a5f; left: 74%; top: 200px; }
.flat-spatial i:nth-child(5) { border: 1px solid #15171b; border-radius: 0; width: 520px; height: 1px; left: 20%; top: 360px; }
.flat-spatial i:nth-child(6) { border-color: #f4c3a1; width: 90px; height: 90px; left: 32%; top: 260px; }

/* ---------- legal ---------- */
body.legal { background: #fbf8f2; }
.legal-main { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.legal-main h1 { font-weight: 200; font-size: 56px; letter-spacing: -.03em; margin: 20px 0; }
.legal-main h2 { font-weight: 400; font-size: 20px; margin-top: 34px; }
.legal-back { text-decoration: none; color: var(--gold3); letter-spacing: .08em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ft-cols { grid-template-columns: 1fr 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  #site-header { grid-template-columns: 1fr 1fr; padding: 12px 14px; row-gap: 8px; }
  .hdr-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .hdr-nav button, .hdr-nav a { padding: 8px 12px; font-size: 12px; }
  .brand-text { font-size: 11px; letter-spacing: .16em; }
  #brand-right .brand-text { font-size: 10.5px; letter-spacing: .04em; white-space: normal; text-align: right; max-width: 170px; line-height: 1.3; }
  .brand-img { height: 30px; max-width: 130px; }
  .hud-panel, .side-left, .side-right { left: 12px; right: 12px; width: auto; top: auto; bottom: 14px; padding: 20px 20px 18px; border-radius: 20px; max-height: 44vh; overflow: auto; transform: translateY(16px); }
  .hud-panel.on { transform: none; }
  .hud-t { font-size: 30px; margin-bottom: 10px; }
  .hud-b { font-size: 14px; margin-bottom: 12px; }
  .hud-k { margin-bottom: 10px; font-size: 10.5px; }
  .hud-p li { font-size: 11px; padding: 5px 10px; }
  .hud-steps li { font-size: 12px; padding: 4px 0; }
  .hero-panel { left: 50%; right: auto; width: 92vw; top: 52%; bottom: auto; max-height: none; overflow: visible; transform: translate(-50%, -46%); background: none; padding: 0; }
  .hero-panel.on { transform: translate(-50%, -50%); }
  .hero-title { font-size: clamp(38px, 11.5vw, 64px); }
  .hero-sub { font-size: 15px; }
  .br-d { display: none; }
  .finale-panel, .finale-panel.on { left: 12px; right: 12px; width: auto; top: auto; bottom: 14px; transform: none; }
  .finale-panel .hud-t { font-size: 28px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  #rail { display: none; }
  #counter { top: 112px; bottom: auto; left: 16px; font-size: 10px; }
  #counter b { font-size: 22px; }
  #counter span { display: none; }
  #chapters { top: 110px; }
  #chapters-list { columns: 1; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .flat-sec { padding: 90px 16px 40px; }
  .g-hero3, .g-asym, .g-mosaic, .g-grid3, .g-swatch, .g-wide, .g-tall, .g-two, .g-one, .g-steps, .g-gallery { grid-template-columns: 1fr 1fr; }
  .g-hero3 figure:first-child, .g-asym figure:first-child, .g-mosaic figure:first-child, .g-wide figure:first-child, .g-gallery figure:nth-child(5n + 1) { grid-column: 1 / -1; grid-row: auto; }
  .g-hero3 figure:first-child img, .g-asym figure:first-child img, .g-mosaic figure:first-child img, .g-gallery figure:nth-child(5n + 1) img { aspect-ratio: 3 / 2; height: auto; }
  .flat-spatial { transform: scale(.6); transform-origin: left top; height: 260px; }
}
@media (max-width: 480px) {
  .ft-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* footer + final reveal hand-off */
#hud, #rail, #counter { transition: opacity .8s var(--ease); }
.at-footer #hud, .at-footer #rail, .at-footer #counter { opacity: 0; pointer-events: none; }
.at-footer #hud * { pointer-events: none !important; }
.revealing .finale-panel.on { top: auto; bottom: clamp(20px, 5vh, 56px); transform: translate(-50%, 0); background: rgba(255, 255, 255, .5); padding: 22px 30px; }
.revealing .finale-panel .hud-t { font-size: clamp(26px, 2.8vw, 44px); margin-bottom: 8px; }
.revealing .finale-panel .hud-k, .revealing .finale-panel .hud-b { display: none; }
.revealing .finale-panel .hero-ctas { margin-top: 12px; }
@media (max-width: 820px) { .revealing .finale-panel.on { transform: none; left: 12px; right: 12px; bottom: 14px; } }

/* ===== Pearl Pavilion hero composition (left-weighted, sculpture on the right) ===== */
.hero-panel { left: clamp(24px, 6vw, 110px); right: auto; top: 50%; width: min(760px, 50vw); text-align: left; transform: translateY(-46%); }
.hero-panel.on { transform: translateY(-50%); }
.hero-panel::before { inset: -8% -10% -8% -30%; background: radial-gradient(55% 50% at 40% 50%, rgba(255, 252, 246, .62), rgba(255, 252, 246, .28) 55%, rgba(255, 252, 246, 0) 78%); }
.hero-k { justify-content: flex-start; }
.hero-title { font-size: clamp(44px, 6.3vw, 116px); line-height: .98; letter-spacing: -.035em; }
.hero-title .ln:nth-child(2) > span { background: linear-gradient(100deg, #8c5f26 0%, #c9974f 28%, #e7c48a 52%, #b8813f 76%, #d9a560 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 24px 0 0; max-width: 46ch; }
.hero-panel .hero-ctas { justify-content: flex-start; }
.hero-panel .scroll-cue { margin: 40px 0 0; align-items: flex-start; }
.hero-brands { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.hero-brands img { height: 58px; width: auto; display: block; filter: drop-shadow(0 6px 14px rgba(160, 80, 20, .18)); }
.hero-brands img + i + img, .hero-brands i + img { height: 64px; }
.hero-brands i { width: 1px; height: 44px; background: linear-gradient(transparent, rgba(184, 137, 76, .7), transparent); }
.hero-brands span { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.brand-img { height: 44px; }
#css3d { display: none; }
@media (max-width: 820px) {
  .hero-panel, .hero-panel.on { left: 18px; right: 18px; width: auto; top: 128px; bottom: auto; transform: none; text-align: left; }
  .hero-title { font-size: clamp(36px, 10.5vw, 60px); }
  .hero-brands img { height: 40px; } .hero-brands img + i + img, .hero-brands i + img { height: 44px; }
  .hero-brands { margin-bottom: 14px; gap: 14px; }
  .hero-panel .scroll-cue { display: none; }
  .brand-img { height: 30px; }
}
