@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url(../fonts/instrument-serif-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #070605;
  --ink: #f4eee1;
  --mute: rgba(244, 238, 225, .64);
  --faint: rgba(244, 238, 225, .13);
  --hair: rgba(244, 238, 225, .1);
  --gold: #cfa850;
  --gold-2: #ecd08a;
  --panel: rgba(16, 13, 10, .78);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(16px, 6vw, 96px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote, fieldset, legend { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
em { font-style: italic; color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 40; background: var(--ink); color: #000; padding: 8px 14px; border-radius: 99px; }
.skip:focus { top: 12px; }

/* Layers */
.stage { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; background:
  radial-gradient(90vw 70vh at 75% 30%, #1a140a 0%, transparent 62%),
  radial-gradient(70vw 60vh at 12% 92%, #120e08 0%, transparent 60%), var(--bg); }
.stage canvas { width: 100%; height: 100%; display: block; }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .foot { position: relative; z-index: 2; }

/* Opening: the name in gold foil, then the curtain parts */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; overflow: hidden; transition: visibility 0s 1.5s; }
.lp { position: absolute; left: 0; right: 0; height: 50.2%; background: #070605; transition: transform 1.25s cubic-bezier(.76, 0, .18, 1) .22s; }
.lp-top { top: 0; } .lp-bot { bottom: 0; }
.l-stack { position: relative; display: grid; justify-items: center; gap: clamp(8px, 1.6vh, 18px); transition: opacity .5s var(--spring), transform 1s var(--spring); }
.l-stack::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130vmin; height: 90vmin; translate: -50% -50%; z-index: -1; background: radial-gradient(closest-side, rgba(207, 168, 80, .17), transparent); animation: l-glow 1.8s var(--spring) both; }
.l-logo { width: clamp(120px, min(24vw, 26vh), 210px); height: auto; border-radius: 50%; animation: l-logo 1.2s var(--spring) both; box-shadow: 0 0 70px -6px rgba(226, 186, 104, .55), inset 0 0 0 1px rgba(236, 208, 138, .3); }
.l-name { font: 400 clamp(62px, min(18.5vw, 25vh), 240px)/1.02 var(--serif); letter-spacing: -.012em; white-space: nowrap; padding: 0 .08em .08em; color: transparent;
  background: linear-gradient(105deg, #7c591b 0%, #c79a3e 16%, #f2d993 28%, #fff8dc 34%, #e6c26d 42%, #9a7227 56%, #d9b35c 70%, #fff3c4 78%, #c79a3e 88%, #7c591b 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%); mask-image: linear-gradient(100deg, #000 40%, transparent 60%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  animation: l-write 1.25s cubic-bezier(.3, .7, .2, 1) .2s both, l-foil 2.6s linear infinite; }
.l-line { position: relative; display: block; width: min(62vw, 720px); height: 1px; background: linear-gradient(90deg, transparent, #e6c26d 18%, #fff3c4 50%, #e6c26d 82%, transparent); transform-origin: center; animation: l-line 1.1s var(--spring) .55s both; }
.l-line b { position: absolute; top: -9px; left: 0; width: 19px; height: 19px; background: #fff6d8; clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); filter: drop-shadow(0 0 8px #ffe7a6); animation: l-star 1.7s cubic-bezier(.45, 0, .2, 1) .6s both; }
.l-sub { font: 500 clamp(11px, 1.5vw, 17px)/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2); text-align: center; animation: l-sub 1s var(--spring) 1s both; }
@keyframes l-glow { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes l-logo { from { opacity: 0; transform: scale(.72) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes l-write { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: translateY(16px); } to { -webkit-mask-position: 0 0; mask-position: 0 0; transform: none; } }
@keyframes l-foil { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes l-line { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes l-star { 0% { left: 0; opacity: 0; transform: scale(.4) rotate(0); } 25% { opacity: 1; } 70% { opacity: 1; transform: scale(1.5) rotate(90deg); } 100% { left: calc(100% - 19px); opacity: 0; transform: scale(.5) rotate(180deg); } }
@keyframes l-sub { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .34em; } }
.is-ready .loader { visibility: hidden; }
.is-ready .lp-top { transform: translateY(-101%); }
.is-ready .lp-bot { transform: translateY(101%); }
.is-ready .l-stack { opacity: 0; transform: scale(1.06); }

/* No 3D available: the logo stands in. */
.no-webgl .stage::after { content: ""; position: absolute; right: 8vw; top: 50%; width: min(38vw, 460px); aspect-ratio: 1; translate: 0 -50%; background: url(../assets/logo.png) center/contain no-repeat; opacity: .9; }
.no-webgl .sec:not(.hero) .stage { display: none; }

/* Nav island */
.nav { position: fixed; z-index: 30; top: 18px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 26px; padding: 7px 8px 7px 8px; border-radius: 99px; background: rgba(14, 11, 8, .86); box-shadow: inset 0 0 0 1px var(--hair), 0 18px 50px -24px #000;  transition: translate .7s var(--spring); }
.nav.away { translate: -50% -110px; }
.nav-logo img { border-radius: 50%; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--mute); transition: color .4s var(--spring); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(244, 238, 225, .07); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); top: 50%; transition: transform .55s var(--spring); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 25; background: rgba(7, 6, 5, .96); display: flex; flex-direction: column; justify-content: center; padding: 0 28px; gap: 8px; }
.menu[hidden] { display: none; }
.menu a { font: 400 clamp(38px, 11vw, 60px)/1.15 var(--serif); text-decoration: none; animation: rise .8s var(--spring) both; animation-delay: calc(var(--i) * 60ms + 60ms); }

/* Buttons */
.btn { --pad: 24px; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 7px 6px var(--pad); border-radius: 99px; border: 0; font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .5s var(--spring), background .5s var(--spring), box-shadow .5s var(--spring); color: inherit; text-align: left; }
.btn:active { transform: scale(.98); }
.btn .ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: transform .55s var(--spring); }
.btn:hover .ico { transform: translate(3px, -1px) scale(1.05); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.btn-gold { color: #120d04; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 44px -18px rgba(207, 168, 80, .75); }
.btn-gold .ico { background: rgba(18, 13, 4, .12); }
.btn-ghost { background: rgba(244, 238, 225, .06); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-ghost:hover { background: rgba(244, 238, 225, .1); }
.btn-ghost .ico { background: rgba(244, 238, 225, .08); color: var(--gold-2); }
.btn-ghost .ico svg { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.btn-sm { min-height: 44px; font-size: 14px; --pad: 18px; padding: 4px 5px 4px var(--pad); }
.btn-sm .ico { width: 34px; height: 34px; }
.btn-ghost.btn-sm:not(:has(.ico)) { padding: 4px 18px; }

/* Sections */
.sec { --pad: max(24px, calc(50vw - 560px)); position: relative; min-height: 100dvh; padding: clamp(72px, 9vh, 100px) var(--pad); display: flex; align-items: center; }
.left { justify-content: flex-start; }
.right { justify-content: flex-end; }
.copy { width: min(100%, 500px); position: relative; }
.wide { width: min(100%, 1120px); margin-inline: auto; }

.tag { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); padding: 8px 13px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .26); margin-bottom: 26px; }
.tag-ai { background: rgba(236, 208, 138, .08); }
h1.display { font: 400 clamp(54px, min(8.4vw, 14vh), 136px)/.96 var(--serif); letter-spacing: -.015em; margin-bottom: 30px; }
h2 { font: 400 clamp(40px, 4.5vw, 66px)/1.04 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
h3 { font: 400 clamp(25px, 2.3vw, 32px)/1.14 var(--serif); margin-bottom: 12px; }
.copy > p:not(.tag), .head > p:not(.tag) { color: var(--mute); margin-bottom: 16px; }
.lead { color: var(--mute); max-width: 500px; margin-bottom: 34px; font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Entrance */
.mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.mask > span { display: block; transform: translateY(112%); transition: transform 1.3s var(--spring); }
.mask:nth-child(2) > span { transition-delay: .44s; }
.mask:nth-child(3) > span { transition-delay: .53s; }
.is-ready .mask > span { transform: none; }
.mask > span { transition-delay: .35s; }
.rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--spring) var(--d, .3s), transform 1.2s var(--spring) var(--d, .3s); }
.tag.rise { --d: .4s; }
.is-ready .rise { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--spring) var(--d, 0s), transform 1.5s var(--spring) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; left: var(--gutter); bottom: 28px; font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--gold-2), transparent); animation: drip 2.4s var(--spring) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 821px) and (orientation: landscape), (min-width: 1081px) { .parts { display: none !important; } }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 30px; }
.parts li { padding: 14px 0 0; box-shadow: inset 0 1px 0 rgba(236, 208, 138, .3); }
.parts b { display: block; font: 400 22px/1.2 var(--serif); }
.parts span { font-size: 13px; color: var(--mute); }

/* Double-bezel panels */
.bezel { padding: 6px; border-radius: 30px; background: rgba(244, 238, 225, .045); box-shadow: inset 0 0 0 1px var(--hair), 0 40px 90px -50px #000; }
.core { border-radius: 24px; background: var(--panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09); padding: clamp(22px, 2.6vw, 38px); }

.why .wide { width: 100%; }
.why { align-items: center; }
.cascade { display: flex; flex-direction: column; gap: 12px; width: min(100%, 540px); }
.cascade .bezel:nth-child(2) { margin-left: 18px; margin-right: -18px; }
.cascade .bezel:nth-child(3) { margin-left: 36px; margin-right: -36px; }
.cascade .core { padding: 20px 26px; }
.cascade h3 { margin-bottom: 6px; }
.cascade .num { margin-bottom: 8px; }
.cascade p { color: var(--mute); font-size: 16px; }
.num { display: block; font-size: 12px; letter-spacing: .2em; color: var(--gold-2); margin-bottom: 14px; }
.head { margin-bottom: clamp(20px, 3vh, 34px); max-width: 720px; }
.head.center { margin-inline: auto; text-align: center; }

/* Planner */
.ai .wide { position: relative; }
.planner { width: min(100%, 780px); margin-inline: auto; }
.planner .core { background: rgba(14, 11, 8, .95); }
.progress { height: 2px; background: var(--faint); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.progress i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .8s var(--spring); }
.pstep legend { font: 400 clamp(26px, 3vw, 38px)/1.12 var(--serif); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips-sub { margin-top: 24px; align-items: center; }
.chips-sub p { width: 100%; color: var(--mute); font-size: 15px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: block; padding: 11px 18px; min-height: 44px; border-radius: 99px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--faint); cursor: pointer; transition: background .45s var(--spring), color .45s var(--spring), box-shadow .45s var(--spring), transform .45s var(--spring); }
.chips span:hover { box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .55); }
.chips input:checked + span { background: var(--gold-2); color: #120d04; box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13.5px; color: var(--mute); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/1.45 var(--sans); color: var(--ink); background: rgba(244, 238, 225, .05); border: 0; border-radius: 14px; padding: 13px 15px; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .4s var(--spring), background .4s var(--spring); }
.field select option { color: #111; }
.field :is(input, textarea, select):focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--gold-2); background: rgba(244, 238, 225, .08); }
.field textarea { resize: vertical; }
.field .bad, .bad { box-shadow: inset 0 0 0 1.5px #e0896f !important; }
.fine { font-size: 13px; color: var(--mute); margin-top: 14px; line-height: 1.5; }
.pnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
#plannerBack[hidden] + #plannerNext { margin-left: auto; }
.perr { color: #ecab96; font-size: 14px; margin-top: 12px; }
.presult:focus { outline: 0; }
.psummary { font: 400 clamp(22px, 2.3vw, 28px)/1.28 var(--serif); margin-bottom: 26px; }
.pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pcols h3 { font-size: 20px; color: var(--gold-2); }
.pcols li { font-size: 15px; color: var(--mute); padding: 9px 0; box-shadow: inset 0 1px 0 var(--hair); }
.thinking { display: flex; align-items: center; gap: 12px; color: var(--mute); margin-top: 22px; }
.thinking i, .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); animation: dot 1.2s var(--spring) infinite; display: inline-block; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }

/* Stories */
.stories { display: block; }
.stories .head { position: relative; z-index: 1; text-shadow: 0 2px 26px rgba(7, 6, 5, .95), 0 0 6px rgba(7, 6, 5, .7); }
.stories .tag { background: rgba(7, 6, 5, .8); }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px var(--pad) 30px; margin-inline: calc(var(--pad) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(84vw, 460px); scroll-snap-align: center; }
.quote .core { height: 100%; display: flex; flex-direction: column; gap: 26px; justify-content: space-between; background: rgba(14, 11, 8, .9); }
.quote blockquote { font: 400 clamp(21px, 2vw, 26px)/1.28 var(--serif); }
.quote figcaption b { display: block; font-weight: 500; font-size: 15px; }
.quote figcaption span { font-size: 13.5px; color: var(--gold-2); }

/* Book */
.formwrap { width: min(100%, 620px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#bookForm .row:first-child .field { margin-top: 0; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--mute); margin: 18px 0 20px; line-height: 1.45; cursor: pointer; }
.check input { accent-color: var(--gold); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.fstatus { font-size: 14.5px; margin-top: 14px; min-height: 22px; color: var(--gold-2); }
.fstatus.err { color: #ecab96; }

.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; padding: 44px var(--gutter); background: #050403; box-shadow: inset 0 1px 0 var(--hair); font-size: 15px; }
.foot p span { color: var(--mute); font-size: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--mute); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.copyr { grid-column: 1 / -1; color: var(--mute); font-size: 13px; }

/* WhatsApp: sits above the concierge button, in the brand's black and gold */
.wa-fab { position: fixed; z-index: 28; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 62px); display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 99px; background: #15110b; color: var(--ink); font: 500 15px var(--sans); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .4), 0 18px 50px -18px #000; transition: transform .55s var(--spring), opacity .4s var(--spring); }
.wa-fab svg, .chat-wa svg { width: 21px; height: 21px; fill: var(--gold-2); flex: none; }
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab.hide { opacity: 0; pointer-events: none; }
.chat-wa { display: flex; align-items: center; gap: 9px; margin: 0 18px 10px; padding: 9px 14px; min-height: 42px; border-radius: 14px; font-size: 13.5px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .3); }
.foot a { text-decoration: none; }

/* Concierge */
.chat-fab { position: fixed; z-index: 28; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 99px; background: var(--ink); color: #120d04; font: 500 15px var(--sans); cursor: pointer; box-shadow: 0 18px 50px -14px rgba(207, 168, 80, .6); transition: transform .55s var(--spring), opacity .4s var(--spring); }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab:active { transform: scale(.97); }
.chat-fab.hide { opacity: 0; pointer-events: none; transform: translateY(14px); }
.spark { width: 15px; height: 15px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: tw 3.4s var(--spring) infinite; }
@keyframes tw { 50% { transform: rotate(90deg) scale(1.2); } }
.chat { position: fixed; z-index: 31; right: 18px; bottom: 18px; width: min(calc(100vw - 32px), 410px); height: min(calc(100dvh - 36px), 640px); display: flex; flex-direction: column; border-radius: 26px; background: #0e0b08; box-shadow: inset 0 0 0 1px var(--faint), 0 40px 110px -30px #000; overflow: hidden; animation: pop .7s var(--spring); }
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.chat > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 14px 20px; box-shadow: inset 0 -1px 0 var(--hair); }
.chat > header b { display: block; font: 400 22px/1.1 var(--serif); }
.chat > header span { font-size: 12.5px; color: var(--gold-2); }
.chat button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
#chatClose { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(244, 238, 225, .07); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 11px; font-size: 15px; line-height: 1.5; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.a { background: rgba(244, 238, 225, .07); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.u { background: var(--gold-2); color: #120d04; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.sys { background: none; color: var(--mute); font-size: 13.5px; padding: 2px 4px; }
.dots { display: inline-flex; gap: 4px; padding: 5px 0; }
.chat-suggest { display: flex; flex-direction: column; gap: 6px; padding: 4px 18px 12px; align-items: flex-start; }
.chat-suggest button { background: none; border: 0; box-shadow: inset 0 0 0 1px var(--faint); color: var(--ink); border-radius: 99px; padding: 9px 14px; min-height: 40px; font: 400 13.5px var(--sans); cursor: pointer; text-align: left; transition: box-shadow .4s var(--spring); }
.chat-suggest button:hover { box-shadow: inset 0 0 0 1px var(--gold-2); }
#chatForm { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; box-shadow: inset 0 1px 0 var(--hair); }
#chatInput { flex: 1; resize: none; max-height: 110px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: rgba(244, 238, 225, .06); border: 0; border-radius: 16px; padding: 11px 14px; }
#chatInput:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--gold-2); }
#chatForm button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gold-2); color: #120d04; display: grid; place-items: center; cursor: pointer; }
.chat-fine { font-size: 11.5px; line-height: 1.4; color: var(--mute); padding: 2px 16px 12px; }

/* Labels pinned to the 3D parts */
.callouts { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.callout { position: absolute; left: 0; top: 0; padding-right: 62px; text-align: right; opacity: 0; visibility: hidden; will-change: transform; }
.callout::after { content: ""; position: absolute; right: 4px; top: 50%; width: 52px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.callout::before { content: ""; position: absolute; right: 0; top: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px 2px rgba(236, 208, 138, .6); }
.callout b { display: block; font: 400 21px/1.15 var(--serif); }
.callout span { font-size: 12.5px; color: var(--mute); white-space: nowrap; }

/* Chapter marker and progress */
@media (max-width: 1239px) { .chapters { display: none; } }
.chapters { position: fixed; z-index: 15; right: 20px; top: 50%; translate: 0 -50%; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.ch-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); writing-mode: vertical-rl; }
.ch-line { display: block; width: 1px; height: 150px; background: var(--faint); overflow: hidden; }
.ch-line i { display: block; width: 100%; height: 100%; background: var(--gold-2); transform-origin: top; transform: scaleY(0); }

/* Headings arrive word by word */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(110%); transition: transform 1.25s var(--spring); transition-delay: calc(var(--n) * 55ms + 80ms); }
.in .w > i { transform: none; }

/* A soft light follows the pointer across panels */
.core { position: relative; overflow: hidden; }
.core::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--glow, 0); background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 208, 138, .13), transparent 70%); transition: opacity .7s var(--spring); }
.core > * { position: relative; z-index: 1; }

/* Phones and tablets: the object floats on top, the words sit below. */
@media (max-width: 820px), (max-width: 1080px) and (orientation: portrait) {
  body { font-size: 16px; }
  .nav { left: 16px; right: 16px; translate: 0 0; justify-content: space-between; gap: 8px; }
  .nav.away { translate: 0 -110px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
  .sec { --pad: 16px; padding: 0 16px 44px; align-items: flex-end; min-height: 100dvh; }
  .chapters { display: none; }
  .cascade .bezel:nth-child(n) { margin-right: 0; }
  .hero { min-height: 100dvh; padding-bottom: 136px; }
  .left, .right { justify-content: center; }
  .copy { width: 100%; }
  h1.display { font-size: clamp(50px, 14.5vw, 86px); margin-bottom: 18px; }
  .lead { font-size: 16px; margin-bottom: 22px; }
  .scroll-hint { display: none; }
  .tag { margin-bottom: 16px; }
  /* The object sinks into darkness behind the words, so text is always readable over it */
  .copy, .why .wide { position: relative; z-index: 0; }
  .sec { overflow-x: clip; }
  .copy::before, .why .wide::before { content: ""; position: absolute; z-index: -1; top: -60px; bottom: -60px; left: 50%; width: 100vw; translate: -50% 0; background: linear-gradient(180deg, rgba(7, 6, 5, 0), rgba(7, 6, 5, .5) 40px, rgba(7, 6, 5, .94) 90px, rgba(7, 6, 5, .94) calc(100% - 60px), rgba(7, 6, 5, 0)); pointer-events: none; }
  .hero .btn-ghost { display: none; }
  .chat-fab { width: 52px; padding: 0; justify-content: center; }
  .wa-fab { width: 52px; padding: 0; justify-content: center; }
  .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chat-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* Long content scrolls over the object, so give it a solid base */
  .why, .ai, .stories, .book { min-height: 0; padding-top: 42dvh; }
  .ai, .stories { padding-top: 90px; }
  .why .head, .book .copy > h2, .book .copy > .tag, .book .copy > p { position: relative; }
  .cascade .bezel:nth-child(n) { margin-left: 0; }
  .pcols, .row { grid-template-columns: 1fr; gap: 0; }
  .pcols { gap: 22px; }
  .foot { grid-template-columns: auto 1fr; }
  .foot nav { grid-column: 1 / -1; }
  .chat { right: 16px; bottom: 16px; }
  .no-webgl .stage::after { right: 50%; translate: 50% 0; top: 90px; width: 62vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media (min-width: 821px) and (orientation: landscape), (min-width: 1081px) { .copy { width: min(46vw, 500px); } .hero .copy { width: min(52vw, 600px); } .hero .lead { max-width: 470px; } h1.display { font-size: clamp(52px, min(6.6vw, 13vh), 96px); } .formwrap { width: min(52vw, 540px); } .formwrap .core { padding: 22px 26px; } .cascade { width: min(50vw, 540px); } }

/* iPad upright: words centred, right under the object */
@media (min-width: 600px) and (max-width: 1080px) and (orientation: portrait) {
  .sec { --pad: 48px; padding: 0 48px 11vh; }
  .copy, .formwrap { width: min(100%, 640px); text-align: center; }
  .cta { justify-content: center; }
  .hero { padding-bottom: 11vh; }
  .hero .lead { margin-inline: auto; }
  .formwrap form { text-align: left; }
  .why .wide { max-width: 640px; }
  .why .head { text-align: center; margin-inline: auto; }
  .cascade { width: 100%; }
  .why, .book { padding-top: 46dvh; padding-bottom: 60px; }
  .ai, .stories { padding: 90px 48px 60px; }
}


/* Language switcher: a small gold globe in the nav */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px 0 10px; border: 0; border-radius: 99px; background: rgba(244, 238, 225, .06); color: var(--ink); font: 500 12.5px var(--sans); letter-spacing: .06em; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .22); transition: box-shadow .45s var(--spring), background .45s var(--spring); }
.lang-btn:hover, .lang.open .lang-btn { box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .7); background: rgba(236, 208, 138, .1); }
.lang-globe { width: 19px; height: 19px; fill: none; stroke: var(--gold-2); stroke-width: 1.3; transition: transform .9s var(--spring); }
.lang-btn:hover .lang-globe, .lang.open .lang-globe { transform: rotate(-24deg) scale(1.08); }
.lang.spin .lang-globe { animation: l-spin .9s var(--spring); }
@keyframes l-spin { to { transform: rotate(360deg); } }
.lang-pop { position: absolute; top: calc(100% + 12px); right: 0; width: 196px; padding: 7px; display: grid; gap: 2px; border-radius: 20px; background: #12100c; box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .22), 0 26px 70px -20px #000; animation: pop .55s var(--spring); z-index: 2; }
.lang-pop button { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 12px; border: 0; border-radius: 13px; background: none; color: var(--ink); cursor: pointer; animation: rise .55s var(--spring) both; animation-delay: calc(var(--i) * 28ms); transition: background .35s var(--spring); }
.lang-pop button:hover { background: rgba(236, 208, 138, .1); }
.lang-pop b { font: 400 19px/1 var(--serif); }
.lang-pop i { font: 500 10.5px var(--sans); letter-spacing: .12em; color: var(--mute); }
.lang-pop [aria-current="true"] { background: rgba(236, 208, 138, .16); }
.lang-pop [aria-current="true"] b { color: var(--gold-2); }
.lang-pop [aria-current="true"] i { width: 11px; height: 11px; overflow: hidden; color: transparent; background: var(--gold-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@media (max-width: 820px), (max-width: 1080px) and (orientation: portrait) { .lang-pop { right: auto; left: 0; } }
.lang-fixed { position: fixed; top: 18px; right: 18px; z-index: 30; }
.nav { flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 821px) { .nav-links { gap: 14px; font-size: 13px; } .nav { gap: 14px; } }
@media (max-width: 420px) { .nav .btn-sm { --pad: 12px; font-size: 13px; } .nav .btn-sm .ico { display: none; } .nav .btn-sm { padding-right: 12px; } .lang-btn { padding: 0 9px 0 8px; } }

/* Credit at the very end of the footer */
.made { grid-column: 1 / -1; font-size: 13px; color: var(--mute); }
.made a { color: var(--gold-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--spring); }
.made a:hover { background-size: 100% 1px; }
