/* Harmony Launch. Original design, self-hosted open-source fonts (SIL OFL), no third-party requests.
   Display: Bricolage Grotesque. Body: Instrument Sans. Editorial accent: Fraunces Italic.
   Everything here works without JavaScript; js/site.js only adds motion on top. */
@font-face { font-family: "Bricolage"; src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../assets/fonts/instrument-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #07090f;
  --bg-2: #0d111c;
  --surface: #121726;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #a6adc0;
  --coral: #ff6a45;
  --sun: #ffc845;
  --violet: #a597ff;
  --mint: #5fe3c0;
  --paper: #f3eee5;
  --paper-ink: #12141c;
  --paper-muted: #4a4f5e;
  --coral-ink: #b3341a;
  --display: "Bricolage", "Arial Black", Impact, sans-serif;
  --body: "Instrument", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--coral); color: var(--bg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h2.big { font-size: clamp(2.2rem, 5.6vw, 4.6rem); max-width: 16ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); max-width: 54ch; color: var(--muted); }
.small { font-size: 0.92rem; color: var(--muted); }
.kicker { font: 600 0.78rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 106, 69, .18); }
.grad { background: linear-gradient(100deg, var(--coral) 10%, var(--sun) 55%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }

/* Scroll progress (set by JS, hidden without it) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--coral), var(--sun), var(--violet)); pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 15, .62); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 9, 15, .82); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.wordmark, .footer-sign { font-family: var(--display); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.03em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; margin: 0; }
.wordmark:hover { color: #fff; }
.wordmark b, .footer-sign b { font-weight: 800; }
.wordmark-mark { width: 30px; height: 30px; margin-right: 10px; border-radius: 8px; flex: none; box-shadow: 0 0 20px rgba(255, 106, 69, .35); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.wordmark:hover .wordmark-mark { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .wordmark:hover .wordmark-mark { transform: none; } }
nav { margin-left: auto; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0; padding: 0; }
nav a { display: block; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .08); }

/* Buttons */
.button { position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--coral); color: #12060a; text-decoration: none; padding: 16px 28px; border-radius: 999px; font: 650 1.05rem/1 var(--body); letter-spacing: -0.01em; box-shadow: 0 10px 40px -10px rgba(255, 106, 69, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s; will-change: transform; }
.button:hover { color: #12060a; background: #ff7d5c; box-shadow: 0 16px 50px -10px rgba(255, 106, 69, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.button .arrow { transition: transform .35s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }
.button-small { padding: 10px 18px; font-size: 0.92rem; box-shadow: 0 6px 24px -8px rgba(255, 106, 69, .7); }
.button-dark { background: var(--paper-ink); color: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.button-dark:hover { background: #000; color: #fff; }
.button-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.button-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.arrow { width: 18px; height: 18px; flex: none; }
.text-link { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.text-link:hover { color: #fff; border-color: var(--sun); }
.text-link.on-dark { color: var(--sun); }

.draft-banner { margin: 0; padding: 10px 24px; background: var(--sun); color: #1a1405; text-align: center; font-size: 0.92rem; }
.draft-banner strong { font-weight: 700; }

/* The shader field: a canvas over a CSS gradient that is the fallback when WebGL or JS is unavailable. */
.field { position: absolute; inset: 0; overflow: hidden; z-index: 0; background:
  radial-gradient(60% 70% at 78% 30%, rgba(165, 151, 255, .30), transparent 70%),
  radial-gradient(50% 60% at 60% 70%, rgba(255, 106, 69, .32), transparent 70%),
  radial-gradient(40% 50% at 90% 80%, rgba(255, 200, 69, .18), transparent 70%), var(--bg); }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.field canvas.ready { opacity: 1; }
.field::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 15, 0) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(7, 9, 15, .78) 0%, rgba(7, 9, 15, .25) 55%, rgba(7, 9, 15, 0) 100%); pointer-events: none; }

/* Sections */
main section { padding: 120px 0; position: relative; }
.page-head { position: relative; padding: 140px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 15ch; font-size: clamp(2.5rem, 6.4vw, 5.2rem); }

/* Hero */
.hero { min-height: min(92vh, 920px); display: flex; align-items: center; padding: 80px 0 100px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero h1 em { font-weight: 350; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .9rem; color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(95, 227, 192, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 227, 192, .55); } 70% { box-shadow: 0 0 0 10px rgba(95, 227, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 227, 192, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 32px 0 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 1; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Kinetic headline: words rise from a mask (classes added by JS) */
.kw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.kw > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.kinetic-in .kw > span { transform: none; }

/* Marquee */
.marquee { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; padding: 26px 0; white-space: nowrap; color: var(--text); display: flex; align-items: center; }
.marquee li::after { content: ""; width: 14px; height: 14px; margin: 0 40px; border-radius: 50%; background: conic-gradient(var(--coral), var(--sun), var(--violet), var(--coral)); }
.marquee li:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scroll-lit statement */
.statement { padding: 160px 0; }
.statement [data-lit] { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.1; letter-spacing: -0.035em; max-width: 22ch; margin: 0; }
.lit .w { opacity: .16; transition: opacity .25s linear; }
.lit .w.on { opacity: 1; }

/* Bento cards with a cursor spotlight */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 46px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 34px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .09), transparent 60%); }
.card:hover::before { opacity: 1; }
.card h2 { font-size: 1.6rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.bento .card { grid-column: span 2; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.bento .card p { font-size: 1.3rem; line-height: 1.35; letter-spacing: -0.01em; margin: 0; max-width: 24ch; }
.card-num { font: 500 .85rem/1 var(--body); letter-spacing: .14em; color: var(--muted); }
.orb { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; filter: blur(40px); opacity: .55; z-index: -1; }
.card-coral .orb { background: var(--coral); }
.card-sun .orb { background: var(--sun); opacity: .4; }
.card-teal .orb { background: var(--violet); }
.card-plain { background: var(--bg-2); }

/* Pinned steps (enhanced by JS on wide screens; a normal list otherwise) */
.steps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.steps-row { list-style: none; margin: 50px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps-row li { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.steps-row h3 { margin: 18px 0 10px; }
.steps-row p { margin: 0; color: var(--muted); font-size: 1rem; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--sun); }

.steps-pin.enhanced { padding: 0; height: 420vh; }
.steps-pin.enhanced .pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.steps-pin.enhanced .pin > .wrap { width: 100%; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.steps-pin.enhanced .steps-head { display: block; }
.steps-pin.enhanced .steps-row { position: relative; display: block; margin: 0; height: 360px; }
.steps-pin.enhanced .steps-row li { position: absolute; inset: 0; padding: 48px; opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .6s var(--ease), transform .8s var(--ease); background: linear-gradient(160deg, #171d31, #0f1322); }
.steps-pin.enhanced .steps-row li.active { opacity: 1; transform: none; }
.steps-pin.enhanced .steps-row li.past { opacity: 0; transform: translateY(-40px) scale(.98); }
.steps-pin.enhanced .steps-row h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: 26px; }
.steps-pin.enhanced .steps-row p { font-size: 1.3rem; max-width: 30ch; }
.steps-pin.enhanced .step-n { font-size: 5rem; }
.rail { display: none; }
.steps-pin.enhanced .rail { display: flex; gap: 8px; margin: 34px 0 28px; }
.rail span { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.rail span i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); background: linear-gradient(90deg, var(--coral), var(--sun)); }

/* Editorial paper band (light) */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .kicker { color: var(--paper-muted); }
.paper a:not(.button) { color: var(--coral-ink); }
.honest-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: end; }
.honest h2.big { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2.6rem, 6.6vw, 6rem); max-width: 12ch; margin: 0; }
.honest p { font-size: 1.15rem; color: var(--paper-muted); max-width: 46ch; }
.honest p:first-child::first-letter { font-family: var(--serif); font-style: italic; float: left; font-size: 4.4rem; line-height: .82; padding: 6px 10px 0 0; color: var(--paper-ink); }

/* Final call band */
.cta-band { padding: 150px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1100px; height: 700px; margin: -380px 0 0 -550px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 69, .42), rgba(165, 151, 255, .18) 55%, transparent); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.cta-inner h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; margin: 0; }
.cta-inner p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.cta-inner > div { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Inner pages */
.two-col, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card, .contact-grid .card { padding: 44px; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); }
.ticks li:first-child, .crosses li:first-child { border-top: 0; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ticks li::before { content: "\2713"; background: rgba(95, 227, 192, .16); color: var(--mint); }
.crosses li::before { content: "\2715"; background: rgba(255, 106, 69, .16); color: var(--coral); }
.tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--coral), var(--sun), var(--violet)); }
.timeline li { counter-increment: t; position: relative; padding: 0 0 54px 88px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: -4px; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: italic 400 1.15rem/1 var(--serif); color: var(--sun); }
.timeline h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.timeline p { color: var(--muted); margin: 0; max-width: 56ch; }
.company-note { margin-top: 40px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #c9cedb; }
.prose li { margin-bottom: 6px; }
.particulars { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; margin: 0 0 32px; border-top: 1px solid var(--line); }
.particulars dt, .particulars dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.particulars dt { color: var(--muted); font-size: .95rem; padding-right: 20px; }
.meta { color: var(--muted); font-size: .95rem; }
table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 50px; font-size: .95rem; background: var(--bg); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal-line { color: var(--muted); font-size: .86rem; max-width: 92ch; margin: 28px 0 0; }

/* Reveal on scroll (only when JS has marked the page) */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Phone and tablet */
@media (max-width: 960px) {
  .bento .card { grid-column: span 3; }
  .bento .card:last-child { grid-column: span 6; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .honest-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  main section { padding: 84px 0; }
  .wrap { padding: 0 16px; }
  .header-inner { gap: 8px 12px; }
  nav { order: 3; width: 100%; margin: 0 -12px; }
  nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav a { white-space: nowrap; font-size: .9rem; }
  .header-cta { margin-left: auto; }
  .hero { min-height: 0; padding: 70px 0 96px; }
  .field::after { background: linear-gradient(180deg, rgba(7, 9, 15, .35) 0%, rgba(7, 9, 15, .55) 50%, var(--bg) 100%); }
  .page-head { padding: 90px 0 60px; }
  .statement { padding: 100px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento .card, .bento .card:last-child { grid-column: auto; min-height: 200px; }
  .steps-row { grid-template-columns: 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .two-col .card, .contact-grid .card, .card { padding: 28px; }
  .marquee li::after { margin: 0 24px; }
  .cta-band { padding: 100px 0; }
  .particulars { grid-template-columns: 1fr; }
  .particulars dt { padding-bottom: 0; border-bottom: 0; }
  .timeline li { padding-left: 74px; }
}

/* Reduced motion: everything is shown at rest */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .kw > span { transform: none; }
  .lit .w { opacity: 1; }
}

/* ---------- v4: techniques taken from Paul's six reference sites (original code) ---------- */

/* Page-to-page fades (cross-document view transitions; browsers without support just load the page) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }

/* Gradient edge on cards */
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 40%, rgba(255, 106, 69, .35) 80%, rgba(165, 151, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .7; }
.paper .card::after { display: none; }

/* 3D tilt (set by JS on fine pointers) */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt.tilting { transition: transform .18s ease-out !important; }

/* Custom cursor ring (fine pointers only; the system cursor stays visible) */
.cursor { opacity: 0; position: fixed; left: 0; top: 0; z-index: 60; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); mix-blend-mode: difference; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s; }
.cursor.on { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .9); box-shadow: none; }

/* Giant outlined word, moved by scroll */
.mega { padding: 40px 0; overflow: hidden; border-top: 1px solid var(--line); }
.mega-track { display: flex; width: max-content; white-space: nowrap; transform: translateX(var(--x, 0)); will-change: transform; }
.mega span { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 17vw, 15rem); line-height: .9; letter-spacing: -0.05em; padding-right: .3em; color: transparent; -webkit-text-stroke: 1.5px rgba(238, 240, 246, .28); }
.mega span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; -webkit-text-stroke: 0; color: var(--coral); }

/* At a glance: a product-style spec grid */
.glance-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: 1px solid var(--line); }
.glance-grid div { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.glance-grid div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.glance-grid dt { font: 500 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.glance-grid dd { margin: 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; }

/* Phone booking bar */
.book-bar { display: none; }
@media (max-width: 700px) {
  .book-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(18, 23, 38, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 40px -10px rgba(0, 0, 0, .7); font-size: .92rem; color: var(--text); transition: transform .45s var(--ease), opacity .45s; }
  .js .book-bar { transform: translateY(140%); opacity: 0; }
  .js .book-bar.show { transform: none; opacity: 1; }
  .book-bar .button { padding: 11px 18px; font-size: .95rem; }
  body { padding-bottom: 84px; }
  .glance-grid { grid-template-columns: 1fr; }
  .glance-grid div, .glance-grid div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
}
@media (max-width: 960px) and (min-width: 701px) {
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .glance-grid div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .glance-grid div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .book-bar { transform: none; opacity: 1; }
  .mega-track { transform: none; }
}
