/* Qubba marketing site, proposal v5. Near black, ivory and champagne gold; Manrope throughout.
   Written phone first: the base rules are the phone layout, wider screens are added on top.
   Light is the recurring idea: the hero hall lights up as you scroll, and every picture below it switches on as it arrives.
   No WebGL: images, video and CSS only. */

@font-face { font-family: "Manrope"; src: url(fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #08090b; --panel: #0d0f13; --panel-2: #12141a;
  --ivory: #f4f2ec; --soft: #b0b0b6; --muted: #7d7d85;
  --gold: #e4c25c; --gold-soft: #dcc57f; --gold-lt: #f1e2a0;
  --line: rgba(255, 255, 255, .09); --line-gold: rgba(228, 194, 92, .38);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--bg); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lock, html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--bg); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--bg); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; }
.h { font-size: clamp(2rem, 9.6vw, 3rem); line-height: 1.04; margin-bottom: 28px; }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: block; }
.ln--b { color: var(--gold-soft); }
.js .ln > span { transform: translateY(108%); transition: transform 1.05s var(--ease); }
.js .ln--b > span { transition-delay: .09s; }
.js .h.in .ln > span { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .4s var(--ease), box-shadow .4s, background-color .3s, color .3s, border-color .3s; }
.btn svg { transition: transform .4s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--gold { background: linear-gradient(120deg, #cfae4c, #f0dd94 48%, #d8ba60); color: #0b0b0c; }
.btn--line { border-color: rgba(255, 255, 255, .22); background: rgba(8, 9, 11, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.link { display: inline-block; padding: 8px 0; font-weight: 600; text-decoration: none; color: var(--gold-soft); background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: background-color .3s, color .3s, border-color .3s, opacity .3s; }
.circle:disabled { opacity: .3; cursor: default; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: .8125rem; font-weight: 500; color: var(--soft); }
.ticks { display: grid; gap: 10px; width: 100%; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.45; color: var(--ivory); }
.ticks svg { margin-top: 2px; color: var(--gold); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover svg { transform: translate(2px, -2px); }
  .btn--gold:hover { box-shadow: 0 12px 50px -8px rgba(228, 194, 92, .65); }
  .btn--line:hover { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
  .link:hover { background-size: 0 1px; background-position: 100% calc(100% - 4px); }
  .circle:not(:disabled):hover { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
}

/* Progress and nav */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; background: linear-gradient(90deg, #cfae4c, #f0dd94); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
/* A solid colour once the page has moved on: iOS Safari tints its own top bar from it, so nothing scrolls visibly above the header */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(var(--g), calc((100vw - var(--max)) / 2)); background-color: transparent; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.nav.is-stuck { background-color: var(--bg); border-bottom-color: var(--line); }
.nav-logo { position: relative; z-index: 1; display: block; padding: 8px 0; }
.nav-logo img { width: 98px; height: auto; }
.nav-links { display: none; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-end .btn svg { display: none; }
.burger { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(8, 9, 11, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.burger i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: 2px; background: var(--ivory); transition: transform .45s var(--ease); }
.burger i:first-child { transform: translateY(-4px); }
.burger i:last-child { transform: translateY(4px); }
.menu-open .burger i:first-child { transform: rotate(45deg); }
.menu-open .burger i:last-child { transform: rotate(-45deg); }
.menu-open .nav { background-color: var(--bg); border-bottom-color: transparent; }
.menu-open .nav-end .btn { opacity: 0; pointer-events: none; }
.nav-end .btn { transition: opacity .3s, transform .4s var(--ease), box-shadow .4s; }

/* Phone menu */
.menu { position: fixed; inset: 0; z-index: 48; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--nav-h) + 20px) var(--g) max(28px, calc(env(safe-area-inset-bottom) + 20px)); background: radial-gradient(120% 60% at 50% 110%, rgba(228, 194, 92, .2), transparent 70%), var(--bg); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(2.2rem, 11.5vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; text-decoration: none; opacity: 0; transform: translateY(26px); transition: opacity .3s, transform .3s; }
.menu nav a span { font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--gold); }
.menu-open .menu nav a { opacity: 1; transform: none; transition: opacity .6s, transform .8s var(--ease); transition-delay: calc(.08s + var(--i, 0) * 60ms); }
.menu-foot { display: grid; gap: 10px; justify-items: center; }
.menu-foot .btn { width: 100%; }

/* HERO */
.hero-wrap { height: 200vh; height: 200svh; background: #020203; }
html:not(.js) .hero-wrap, .reduce .hero-wrap { height: auto; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: #020203; isolation: isolate; }
html:not(.js) .hero { --v: 1 !important; }
/* Phones and touch screens: no pinned scene. The picture runs the full height of the screen, so no black band shows when the browser bar shrinks, and it melts into the page below */
.hero-auto .hero-wrap { height: auto; }
.hero-auto .hero { position: relative; height: 100vh; height: 100lvh; }
.hero-auto .hero::after { background: linear-gradient(to top, var(--bg), rgba(8, 9, 11, .55) 14%, rgba(8, 9, 11, 0) 34%), linear-gradient(to bottom, rgba(2, 2, 3, .6), transparent 20%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; transform: scale(calc(1.08 - var(--v) * .08)); will-change: transform; }
.hero-bg picture, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 32%; }
.hero-bg .off img { filter: brightness(1.9) contrast(1.05); }
.hero-bg .on { opacity: var(--v); will-change: opacity; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(2, 2, 3, .86), transparent 38%), linear-gradient(to bottom, rgba(2, 2, 3, .6), transparent 20%); }
/* The headline hugs the arch: --arch is half the arch's width on screen, for wide and for tall windows */
.hero { --arch: max(10vw, 14.6svh); }
.hero h1 { position: absolute; inset: 0; pointer-events: none; font-size: clamp(2.6rem, 5.4vw, 7rem); line-height: .98; letter-spacing: -.05em; }
.h-a, .h-b { position: absolute; top: 42%; transform: translateY(-50%); }
.h-a { right: calc(50% + var(--arch) + 2.4vw); text-align: right; }
.h-b { left: calc(50% + var(--arch) + 2.4vw); text-align: left; color: var(--gold-soft); opacity: clamp(0, calc(var(--v) * 1.8 - .8), 1); filter: blur(calc((1 - var(--v)) * 16px)); transform: translateY(-50%) translateX(calc((1 - var(--v)) * 3vw)); text-shadow: 0 0 70px rgba(228, 194, 92, .4); }
/* One centred column: the line, the buttons, the scroll cue */
.hero-foot { position: absolute; left: var(--g); right: var(--g); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); display: grid; justify-items: center; gap: 14px; text-align: center; }
.hero-l { font-size: 1rem; font-weight: 500; color: var(--ivory); max-width: 26ch; text-wrap: balance; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 22px rgba(0, 0, 0, .95), 0 0 44px rgba(0, 0, 0, .8); }
.hero-cta { display: flex; gap: 10px; width: 100%; max-width: 440px; }
.hero-cta .btn { flex: 1; padding: 0 14px; }
.cue { display: grid; justify-items: center; gap: 6px; padding: 4px 12px 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--soft); text-decoration: none; opacity: clamp(.001, calc(1.15 - var(--v) * 1.5), 1); }
.cue i { position: relative; width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .55); }
.cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--gold); animation: cue 1.7s var(--ease) infinite; }
/* The two hero buttons sit on a bright, busy crowd: the gold one glows, the second one is a solid dark pill with a gold rim (no see-through glass) */
.hero-cta .btn--gold { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 44px -8px rgba(228, 194, 92, .75), 0 2px 10px rgba(0, 0, 0, .5); }
.hero-cta .btn--line { background: rgba(8, 9, 11, .88); border: 1.5px solid rgba(241, 226, 160, .8); color: var(--ivory); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-auto .hero-foot { bottom: calc(100lvh - 100svh + max(18px, env(safe-area-inset-bottom) + 12px)); isolation: isolate; }
/* Phones: a shade behind the line and the buttons, so they read against the crowd, and larger buttons */
.hero-auto .hero-foot::before { content: ""; position: absolute; z-index: -1; inset: -72px calc(var(--g) * -1) -60vh; pointer-events: none; background: linear-gradient(to bottom, rgba(8, 9, 11, 0), rgba(8, 9, 11, .74) 68px, rgba(8, 9, 11, .9) 150px, var(--bg) 230px); }
.hero-auto .hero-l { font-size: 1.0625rem; font-weight: 600; }
.hero-auto .hero-cta .btn { min-height: 58px; font-size: 1rem; }
.hero-auto .cue { display: none; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }
@media (min-aspect-ratio: 2/1) { .hero-bg img { object-position: 50% 60%; } }
@media (max-aspect-ratio: 4/5) { .hero-bg img { object-position: 50% 25%; } }
/* Not enough room beside the arch: the headline sits above it instead */
@media (max-aspect-ratio: 11/10) {
  .hero h1 { inset: auto var(--g) auto var(--g); top: calc(var(--nav-h) + 2.5svh); font-size: clamp(1.8rem, min(10vw, 8.6svh), 7.5rem); line-height: 1.02; text-align: center; }
  .hero h1 br { display: none; }
  .h-a, .h-b { position: static; display: block; transform: none; text-align: center; }
  .h-b { transform: translateY(calc((1 - var(--v)) * 1.5svh)); }
}
@media (max-aspect-ratio: 11/10) and (min-width: 600px) {
  .hero h1 { font-size: clamp(2.5rem, min(9.2vw, 8svh), 7.5rem); }
}

/* Sections */
/* Sections sit close together: long stretches of empty black read as dead space */
section { position: relative; padding: 48px var(--g); }
section > * { max-width: var(--max); margin-inline: auto; }
.hero > * { max-width: none; margin-inline: 0; }

/* (The .vsl rules wait for the film to come back.) */
.vsl { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; max-width: 820px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-gold); background: radial-gradient(90% 80% at 50% 118%, rgba(228, 194, 92, .34), transparent 70%), radial-gradient(60% 60% at 50% 50%, rgba(228, 194, 92, .07), transparent 70%), var(--panel); box-shadow: 0 0 130px -44px rgba(228, 194, 92, .5), 0 50px 90px -50px #000; }
.orbit { position: absolute; width: min(46%, 300px); aspect-ratio: 1; z-index: -1; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-gold); opacity: .55; animation: spin 40s linear infinite; }
.orbit i::after { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.orbit i:nth-child(2) { inset: 16%; opacity: .4; animation-duration: 26s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: -22%; opacity: .22; animation-duration: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }
.vsl-play { display: grid; place-items: center; width: clamp(62px, 17vw, 96px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(120deg, #cfae4c, #f0dd94 48%, #d8ba60); color: #0b0b0c; box-shadow: 0 0 0 10px rgba(228, 194, 92, .12), 0 0 70px rgba(228, 194, 92, .5); transition: transform .4s var(--ease), box-shadow .4s; }
.vsl-play svg { width: 40%; height: 40%; margin-left: 6%; }
.vsl--soon .vsl-play { cursor: default; }
.vsl-play[hidden] { display: none; }
.vsl-cap { position: absolute; inset: auto 18px 14px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8125rem; color: var(--soft); text-align: left; }
.vsl-cap b { font-size: .9375rem; font-weight: 600; color: var(--ivory); }
.vsl:not(.vsl--soon) .vsl-note { display: none; }
.vsl video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (hover: hover) { .vsl:not(.vsl--soon) .vsl-play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(228, 194, 92, .14), 0 0 90px rgba(228, 194, 92, .7); } }

/* Brands that trust us: the bar straight under the hero. Every mark in one ivory tone, drifting slowly */
.logos { display: grid; gap: 18px; padding-block: 34px 32px; overflow: hidden; background: linear-gradient(to bottom, rgba(228, 194, 92, .05), transparent 70%); }
.logos + .goals { padding-top: 48px; }
.logos > * { max-width: none; margin: 0; }
.logos-t { text-align: center; font-size: .875rem; font-weight: 500; color: var(--muted); }
.marquee { --lh: 40px; --lw: 150px; margin-inline: calc(var(--g) * -1); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 22px; }
.marquee-track li { flex: none; display: flex; align-items: center; gap: 12px; height: var(--lh); padding-inline: clamp(20px, 3.4vw, 46px); opacity: .62; transition: opacity .35s; }
.marquee-track img { width: auto; height: var(--lh); max-width: var(--lw); object-fit: contain; }
.marquee-track .named img { border-radius: 50%; }
.marquee-track .named span { font-size: calc(var(--lh) * .42); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; color: var(--ivory); }
.marquee.run .marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: drift-x var(--t, 40s) linear infinite; }
.marquee.held .marquee-track { animation-play-state: paused; }
@keyframes drift-x { to { transform: translateX(calc(var(--set, 0px) * -1)); } }
@media (hover: hover) {
  .marquee.run:hover .marquee-track { animation-play-state: paused; }
  .marquee-track li:hover { opacity: 1; }
}

/* Goals: an accordion on phones, a list beside one picture on wide screens */
.goal { border-bottom: 1px solid var(--line); }
.goal:first-child { border-top: 1px solid var(--line); }
.goal-btn { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 70px; padding: 18px 2px; text-align: left; font-size: clamp(1.25rem, 5.6vw, 1.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; color: var(--muted); transition: color .35s, padding .45s var(--ease); }
.goal-btn span { font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); transition: color .35s; }
.goal-btn svg { width: 22px; height: 22px; opacity: .5; transition: opacity .35s, transform .5s var(--ease), color .35s; }
.goal.is-on .goal-btn { color: var(--ivory); }
.goal.is-on .goal-btn span { color: var(--gold); }
.goal.is-on .goal-btn svg { opacity: 1; color: var(--gold); transform: rotate(90deg); }
.goal-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.goal.is-on .goal-panel, html:not(.js) .goal-panel { grid-template-rows: 1fr; }
.goal-in { min-height: 0; overflow: hidden; }
.goal-card { position: relative; isolation: isolate; margin-bottom: 20px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.goal-card img { width: 100%; height: clamp(230px, 68vw, 340px); object-fit: cover; object-position: 50% 50%; }
.goal-copy { position: relative; display: grid; gap: 12px; justify-items: start; padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.goal-copy h3 { font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1.08; max-width: 14em; }
.goal-copy p { color: var(--soft); max-width: 38ch; }

/* Services rail */
.services { overflow: hidden; padding-bottom: 36px; }
.rail-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); width: calc(100% + var(--g) * 2); }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--soft); transition: background-color .3s, color .3s, border-color .3s; }
.filters button i { font-style: normal; margin-left: 6px; opacity: .6; }
.filters button[aria-pressed="true"] { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.rail-nav { display: none; gap: 10px; }
#rail-prev svg { transform: rotate(180deg); }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: none !important; margin-inline: calc(var(--g) * -1) !important; padding-inline: var(--g); scroll-padding-inline: var(--g); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.dragging .card { pointer-events: none; }
.card { position: relative; flex: 0 0 min(78vw, 340px); scroll-snap-align: start; display: grid; align-content: start; text-align: left; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .5s, transform .6s var(--ease); animation: cardin .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 55ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(24px); } }
.card-img { position: relative; aspect-ratio: 4 / 4.3; overflow: hidden; background: #000; }
.card-shot, .sheet-img figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgba(8, 9, 11, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: .75rem; font-weight: 500; color: var(--ivory); }
.sheet-img figcaption { left: 14px; top: 14px; bottom: auto; }
.sheet-img figcaption:empty { display: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.001); transition: filter .7s var(--ease), transform 1.4s var(--ease); }
.rail.has-lit .card:not(.lit) .card-img img { filter: brightness(.55) saturate(.7); }
.card.lit .card-img img { transform: scale(1.06); }
.card.lit { border-color: var(--line-gold); }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 18px 18px 22px; }
.card-group { grid-column: 1 / -1; font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-soft); }
.card-title { font-size: 1.3125rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.card-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-gold); color: var(--gold); transition: background-color .3s, color .3s, border-color .3s; }
.card.lit .card-arrow, .card:active .card-arrow { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.card-sum { grid-column: 1 / -1; font-size: .9375rem; color: var(--soft); line-height: 1.45; }
.rail-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px !important; }
.rail-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 30%; background: var(--gold); border-radius: 2px; transform: translateX(var(--x, 0)); }
.rail-count { font-size: .8125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-count b { font-weight: 600; color: var(--ivory); }

/* Service detail: bottom sheet on phones */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: auto; max-height: 92vh; max-height: 92dvh; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line-gold); border-radius: 26px 26px 0 0; background: var(--panel); color: var(--ivory); overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheetup .6s var(--ease); }
.sheet.closing { animation: sheetdown .3s ease-in forwards; }
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes sheetdown { to { transform: translateY(100%); } }
.sheet::backdrop { background: rgba(4, 4, 5, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .4s; }
.sheet-x { position: sticky; top: 14px; z-index: 2; width: 44px; height: 44px; margin: 14px 14px -58px auto; background: rgba(8, 9, 11, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-img { position: relative; height: min(30vh, 260px); overflow: hidden; background: #000; touch-action: none; }
.sheet-img::before { content: ""; position: absolute; left: 50%; top: 10px; z-index: 1; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.sheet-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--panel), transparent 45%); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.sheet-body { display: grid; gap: 16px; justify-items: start; padding: 4px 22px 18px; }
.sheet-group { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-soft); }
.sheet h3 { font-size: clamp(1.9rem, 8vw, 2.75rem); line-height: 1.04; }
.sheet-body > p { color: var(--soft); }
.sheet-fit { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .9375rem; }
.sheet-foot { position: sticky; bottom: 0; padding: 22px 22px max(18px, calc(env(safe-area-inset-bottom) + 12px)); background: linear-gradient(to top, var(--panel) 62%, rgba(13, 15, 19, 0)); }
.sheet-foot .btn { width: 100%; }

/* Results: four numbers from the last 12 months, counted up as the row arrives. Kept calm on purpose: the lamp of the next section is the light here, so no glows and no looping shine */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.proof { overflow: hidden; padding-block: 22px 54px; text-align: center; }
.proof-t { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 24px; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; color: var(--soft); }
/* A small red light before the label, breathing like a "live" lamp: the numbers are current */
.live { position: relative; flex: none; width: 7px; height: 7px; }
.live::before, .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.live::before { background: #f0534a; box-shadow: 0 0 9px rgba(240, 83, 74, .5); animation: live 2s ease-in-out infinite; }
.live::after { border: 1px solid rgba(240, 83, 74, .55); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 75%, 100% { transform: scale(3.4); opacity: 0; } }
.stats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 0; }
/* Phones: a fine cross between the four numbers. Wider screens: a line between neighbours */
.stats::before, .stats::after, .stat + .stat::before { content: ""; position: absolute; pointer-events: none; }
.stats::before { left: 50%; top: 4%; bottom: 4%; width: 1px; background: linear-gradient(to bottom, transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent); }
.stats::after { top: 50%; left: 6%; right: 6%; height: 1px; background: linear-gradient(to right, transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent); }
.stat + .stat::before { display: none; }
.stat { position: relative; display: grid; gap: 8px; justify-items: center; align-content: start; padding-inline: 6px; }
.stat-n { font-size: min(13.5vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
/* Gold lettering. One soft band of light crosses each number once, as its count lands; the gradient starts and ends on the same thirds, so nothing jumps */
.stat-fig { display: inline-block; padding: .05em .1em .09em .03em; color: var(--gold-soft); background: linear-gradient(100deg, #d2b356 0%, #e6cf84 16.6%, #d2b356 33.3%, #e6cf84 43%, #f6ebbd 50%, #e6cf84 57%, #d2b356 66.6%, #e6cf84 83.3%, #d2b356 100%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat.done .stat-fig { animation: sheen 1.8s ease-in-out 1 both; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.stat-p { font-size: .5em; vertical-align: .72em; margin-left: .04em; letter-spacing: 0; }
.stat-x { font-size: .62em; margin-left: .03em; letter-spacing: 0; }
.stat-c { font-size: .5em; vertical-align: .72em; margin-right: .06em; letter-spacing: 0; }
.stat-l { font-size: .9375rem; font-weight: 500; line-height: 1.3; color: var(--ivory); }
.proof-cta { margin-top: 30px; }

/* Work */
.work { overflow: hidden; isolation: isolate; padding-top: 48px; border-top: 1px solid var(--line); }
/* A ceiling lamp at the top of the section: it strikes when the section arrives, then dust drifts through the beam */
.work-light { position: absolute; left: 50%; top: 0; z-index: -1; width: max(100%, 900px); max-width: none; height: clamp(520px, 150vw, 980px); margin: 0; transform: translateX(-50%); pointer-events: none; opacity: 0; }
.work-light::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 146deg at 50% 0, transparent 0deg, rgba(228, 194, 92, .2) 20deg, rgba(241, 226, 160, .34) 34deg, rgba(228, 194, 92, .2) 48deg, transparent 68deg, transparent 360deg); -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .5) 45%, transparent 96%); mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .5) 45%, transparent 96%); }
.work-light::after { content: ""; position: absolute; left: 50%; top: 0; width: clamp(90px, 12vw, 170px); height: 3px; margin: 0; transform: translateX(-50%); border-radius: 0 0 4px 4px; background: var(--gold-lt); box-shadow: 0 0 22px 3px rgba(241, 226, 160, .75), 0 0 110px 26px rgba(228, 194, 92, .42); }
.work-light i { position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 8px rgba(241, 226, 160, .9); opacity: 0; animation: mote var(--t, 9s) linear var(--w, 0s) infinite; animation-play-state: paused; }
.work-light i:nth-child(1) { --x: -3%; --y: 22%; --t: 9s; --w: -1s; }
.work-light i:nth-child(2) { --x: 5%; --y: 34%; --t: 12s; --w: -5s; --s: 2px; }
.work-light i:nth-child(3) { --x: -9%; --y: 48%; --t: 11s; --w: -3s; }
.work-light i:nth-child(4) { --x: 11%; --y: 56%; --t: 14s; --w: -8s; --s: 2px; }
.work-light i:nth-child(5) { --x: 1%; --y: 14%; --t: 10s; --w: -6s; --s: 2px; }
.work-light i:nth-child(6) { --x: -15%; --y: 64%; --t: 13s; --w: -2s; }
.work-light i:nth-child(7) { --x: 16%; --y: 70%; --t: 15s; --w: -10s; --s: 2px; }
.work-light.in { animation: strike 1.7s linear .15s forwards; }
.work-light.in i { animation-play-state: running; }
@keyframes strike { 0% { opacity: 0; } 7% { opacity: .85; } 12% { opacity: .1; } 20% { opacity: .7; } 27% { opacity: .3; } 44%, 100% { opacity: 1; } }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .75; } 85% { opacity: .5; } 100% { transform: translate(26px, -90px); opacity: 0; } }
html:not(.js) .work-light { opacity: 1; }
.work-lead { display: grid; gap: 6px; margin-bottom: 26px; color: var(--soft); }
.work-lead b { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(228, 194, 92, .08); font-size: .8125rem; font-weight: 600; color: var(--gold-lt); }
.work-lead b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.show { position: relative; display: grid; max-width: 1120px; margin-bottom: 34px; }
.screen-d { position: relative; aspect-ratio: 1120 / 700; border-radius: clamp(10px, 1.6vw, 22px); overflow: hidden; background: #f3efe9; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 140px -30px rgba(228, 194, 92, .42), 0 70px 120px -50px #000; }
.screen-m { position: relative; justify-self: center; width: 54%; margin-top: -15%; aspect-ratio: 432 / 934; border-radius: clamp(22px, 7vw, 34px); overflow: hidden; background: #f3efe9; border: 6px solid #18191c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 40px 80px -24px #000, 0 0 80px -20px rgba(228, 194, 92, .35); }
.show video { width: 100%; height: 100%; object-fit: cover; }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.work-name { color: var(--soft); }
.work-name b { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; color: var(--ivory); }
.work-foot .btn { width: 100%; }

/* Process: a deck of four cards on phones, four panels that open on wide screens */
.steps { display: grid; gap: 14px; }
.step { position: sticky; top: calc(var(--nav-h) + 10px + var(--i, 0) * 12px); isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 -22px 44px -20px rgba(0, 0, 0, .9); }
/* The picture wrapper must not count as a row of the card: neither it nor its <source> may take a place in the layout */
.step picture { display: contents; }
.step source { display: none; }
.step img { position: relative; z-index: -2; width: calc(100% + 44px); max-width: none; height: clamp(200px, min(70vw, 34svh), 330px); margin: -22px -22px 0; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.step::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(8, 9, 11, .7), transparent 90px); }
.step-top { position: absolute; left: 22px; top: 20px; display: flex; align-items: baseline; gap: 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; text-align: left; pointer-events: none; }
.step-no { font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--gold); }
.step-body { position: relative; display: grid; gap: 12px; margin-top: -14px; }
.step h3 { font-size: clamp(1.6rem, 6.6vw, 2.2rem); line-height: 1.08; max-width: 13em; }
.step p { color: var(--soft); max-width: 44ch; }
@media (max-height: 560px) { .step { position: relative; top: auto; } }
.steps-dots { display: none; }

/* Very wide, short frames (a phone on its side, a short window): fit the whole picture instead of filling the frame, so the object is never cut */
.step img { background-color: var(--bg); }
@media (max-width: 760.98px) and (min-aspect-ratio: 9/10) { .step img { object-fit: contain; } }
@media (max-width: 760.98px) and (min-aspect-ratio: 7/10), (min-width: 620px) and (max-width: 760.98px), (min-width: 761px) and (max-height: 520px) { .sheet-img img { object-fit: contain; } }

/* Pictures switch on as they arrive */
.js .lamp img, .js .step img { filter: brightness(.1) saturate(.4); transition: filter 1.6s var(--ease) .15s; }
.js .lamp.in img, .js .step.in img { filter: none; }

/* FAQ: rows slide in one after another; answers open and close smoothly */
.faq { display: grid; gap: 4px; }
.faq > * { max-width: none; margin-inline: 0; }
.faq-list { border-bottom: 1px solid var(--line); }
.qa { position: relative; border-top: 1px solid var(--line); }
.qa::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(228, 194, 92, 0)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease); }
.qa.is-on::before { transform: scaleX(1); }
.qa h3 { font: inherit; letter-spacing: 0; }
.qa-q { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 20px 0; text-align: left; font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; color: var(--ivory); transition: padding .5s var(--ease), color .3s; }
.qa-n { font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); transition: color .35s; }
.qa.is-on .qa-n { color: var(--gold); }
.qa-q i { position: relative; width: 16px; height: 16px; transition: transform .6s var(--ease); }
.qa-q i::before, .qa-q i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--gold); transition: transform .5s var(--ease); }
.qa-q i::after { transform: rotate(90deg); }
.qa.is-on .qa-q i { transform: rotate(180deg); }
.qa.is-on .qa-q i::after { transform: rotate(0); }
.qa-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s .6s; }
.qa.is-on .qa-a, html:not(.js) .qa-a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.qa-a > div { min-height: 0; overflow: hidden; }
.qa-a p { padding: 0 0 24px 44px; color: var(--soft); max-width: 58ch; opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .6s var(--ease); }
.qa.is-on .qa-a p, html:not(.js) .qa-a p { opacity: 1; transform: none; transition-delay: .12s; }
@media (hover: hover) {
  .qa-q:hover { padding-left: 10px; color: var(--gold-lt); }
  .qa-q:hover .qa-n { color: var(--gold); }
}

/* Contact */
.contact { min-height: 84vh; min-height: 84svh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; max-width: none; }
.contact-bg picture, .contact-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-bg img { object-fit: cover; object-position: 50% 32%; animation: drift 26s ease-in-out infinite alternate; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(8, 9, 11, .55), rgba(8, 9, 11, .88) 75%), linear-gradient(to bottom, var(--bg), transparent 22%, transparent 78%, var(--bg)); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.contact-in { display: grid; justify-items: center; width: 100%; }
.contact .h { font-size: clamp(1.75rem, 7.7vw, 6.4rem); margin-bottom: 28px; }
.cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px 30px; width: 100%; }
.cta .btn { width: 100%; max-width: 420px; }

/* Footer */
.footer { padding: 6px max(var(--g), calc((100vw - var(--max)) / 2)) max(24px, calc(env(safe-area-inset-bottom) + 14px)); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px 40px; padding-top: 22px; font-size: .875rem; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 2px 26px; }
.footer nav a { text-decoration: none; padding: 10px 0; color: var(--soft); }
.footer nav a:hover { color: var(--ivory); }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .h-a, .js .hero-foot { animation: fade 1.2s var(--ease) .15s both; }
.js .hero-foot { animation-delay: .5s; }
@keyframes fade { from { opacity: 0; } }

/* Cursor label: off unless a mouse is in use */
.cursor { display: none; }

/* ---------- Tablets and up ---------- */
@media (min-width: 761px) {
  :root { --nav-h: 76px; }
  section { padding-block: clamp(56px, 4.6vw, 76px); }
  .services { padding-bottom: clamp(44px, 4vw, 60px); }
  .work { padding-top: clamp(64px, 5.2vw, 84px); }
  .proof { padding-block: clamp(10px, 1.2vw, 18px) clamp(60px, 5vw, 84px); }
  .proof-t { margin-bottom: clamp(24px, 2.4vw, 36px); font-size: 1.125rem; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stats::before, .stats::after { display: none; }
  .stat { gap: 12px; padding-inline: 10px; }
  .stat + .stat::before { display: block; left: 0; top: 6%; bottom: 6%; width: 1px; background: linear-gradient(to bottom, transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent); }
  .stat-n { font-size: min(6.2vw, 5.75rem); }
  .stat-l { font-size: 1.0625rem; }
  .proof-cta { margin-top: clamp(34px, 3vw, 48px); }
  .h { font-size: clamp(3rem, 5.5vw, 5.4rem); line-height: 1.03; margin-bottom: clamp(36px, 5vw, 76px); }
  .btn--sm { min-height: 44px; padding: 0 20px; }

  .nav { gap: 20px; }
  .nav.is-stuck { background-color: rgba(8, 9, 11, .78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
  .nav-logo img { width: 108px; }
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: clamp(22px, 3vw, 44px); }
  .nav-links a { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: 10px 0; color: var(--soft); transition: color .25s; }
  .nav-links a:hover, .nav-links a.on { color: var(--gold-soft); }
  .nav-end .btn svg { display: block; }
  .burger, .menu { display: none; }

  .hero-wrap { height: 230vh; height: 230svh; }
  .hero-foot { gap: 16px; bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); }
  .hero-l { font-size: 1.0625rem; max-width: none; }
  .hero-cta { gap: 12px; width: auto; max-width: none; }
  .hero-cta .btn { flex: none; padding: 0 28px; }

  .vsl { border-radius: 28px; }
  .vsl-cap { inset: auto 26px 20px 26px; font-size: .875rem; }
  .logos { gap: 26px; padding-block: clamp(40px, 3.8vw, 58px) clamp(38px, 3.6vw, 54px); }
  .logos + .goals { padding-top: clamp(56px, 4.6vw, 76px); }
  .marquee { --lh: 52px; --lw: 196px; }
  .work-lead { grid-auto-flow: column; justify-content: start; align-items: center; gap: 16px; margin-top: calc(clamp(36px, 5vw, 76px) * -.55); margin-bottom: clamp(26px, 3vw, 40px); }

  .rail-tools { margin-bottom: clamp(22px, 3vw, 36px); }
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; width: auto; }
  .rail-nav { display: flex; }
  .rail { gap: clamp(12px, 1.4vw, 20px); scroll-snap-type: x proximity; padding-inline: max(var(--g), calc((100vw - var(--max)) / 2)); scroll-padding-inline: max(var(--g), calc((100vw - var(--max)) / 2)); cursor: grab; }
  .card { flex-basis: clamp(264px, 27vw, 372px); }
  .card-img { aspect-ratio: 4 / 4.5; }
  .card-body { padding: 20px 20px 24px; }
  .card-arrow { border-color: var(--line); color: inherit; }
  .rail-foot { margin-top: clamp(24px, 3vw, 40px) !important; }
  .rail-count { display: none; }

  /* Side panel instead of a bottom sheet */
  .sheet { inset: 0 0 0 auto; width: min(540px, 100%); height: 100vh; height: 100dvh; max-height: none; border-top: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .sheet[open] { animation: sheetin .55s var(--ease); }
  .sheet.closing { animation: none; }
  @keyframes sheetin { from { transform: translateX(60px); opacity: 0; } }
  .sheet-x { top: 18px; width: 48px; height: 48px; margin: 18px 18px -66px auto; }
  .sheet-img { height: min(44vh, 400px); touch-action: auto; }
  .sheet-img::before, .sheet-img::after { display: none; }
  .sheet-body { gap: 18px; padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 8px; }
  .sheet-foot { padding: 22px clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px); }
  .sheet-foot .btn { width: auto; }

  .show { display: block; margin-bottom: clamp(84px, 11vw, 150px); }
  .work-light { height: clamp(620px, 62vw, 1040px); }
  /* With a mouse the screen stands up as it scrolls into view (--k runs 0 to 1, set in site.js) */
  .tilt .screen-d { transform-origin: 50% 100%; transform: perspective(1600px) rotateX(calc((1 - var(--k, 1)) * 15deg)) scale(calc(.9 + var(--k, 1) * .1)); will-change: transform; }
  .tilt .screen-m { transform: translateY(calc((1 - var(--k, 1)) * 70px)); will-change: transform; }
  .screen-m { position: absolute; right: -3%; bottom: -11%; width: 19.5%; margin: 0; border-radius: clamp(14px, 2.4vw, 34px); border-width: clamp(4px, .5vw, 7px); }
  .work-foot { padding-top: 26px; }
  .work-foot .btn { width: auto; }

  /* Deck cards get the picture on the right */
  .step { justify-content: space-between; gap: 24px; min-height: 420px; padding: 32px; }
  .step img { position: absolute; inset: 0 0 0 auto; width: auto; height: 100%; margin: 0; aspect-ratio: 4 / 5; object-position: 50% 40%; -webkit-mask-image: none; mask-image: none; }
  .step-top { position: static; }
  .step::after { background: linear-gradient(90deg, var(--panel) 40%, rgba(13, 15, 19, 0) 74%); }
  .step h3 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
  .step-body { max-width: 56%; gap: 16px; margin-top: 0; }

  .qa-q { grid-template-columns: 44px minmax(0, 1fr) 16px; padding: 24px 0; }
  .qa-a p { padding: 0 40px 28px 54px; }
  .contact { min-height: 92vh; min-height: 92svh; }
  .contact .h { font-size: clamp(2.7rem, 6.6vw, 6.4rem); margin-bottom: clamp(28px, 3.4vw, 48px); }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .cta .btn { width: auto; }
  .footer { padding-top: 10px; }
  .footer-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .footer nav a { padding: 6px 0; }
}

/* ---------- Wide screens ---------- */
@media (min-width: 1000px) {
  .goal-layout { --gap: clamp(16px, 2vw, 28px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); align-content: start; min-height: clamp(520px, 44vw, 640px); }
  .goal { grid-column: 1; }
  .goal-btn { grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 0; padding: clamp(16px, 1.9vw, 26px) 4px; font-size: clamp(1.4rem, 2.2vw, 2rem); }
  .goal-btn svg { opacity: 0; transform: translate(-8px, 8px); }
  .goal.is-on .goal-btn { padding-left: 14px; }
  .goal.is-on .goal-btn svg { transform: none; }
  .goal-btn:hover { color: var(--ivory); }
  .goal-panel { position: absolute; right: 0; top: 0; bottom: 0; width: calc(50% - var(--gap) / 2); display: block; opacity: 0; visibility: hidden; transition: opacity .55s, visibility 0s .55s; }
  .goal.is-on .goal-panel { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
  .goal-in { height: 100%; }
  .goal-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; margin: 0; border-radius: 26px; }
  .goal-card img { height: 100%; min-height: 0; transform: scale(1.07); transition: transform 1.6s var(--ease), filter 1.6s var(--ease) .15s; }
  .goal.is-on .goal-card img { transform: none; }
  .goal-copy { z-index: 1; gap: 12px; padding: clamp(20px, 2.2vw, 30px); background: var(--panel); }
  .goal-copy h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  .goal-copy p { max-width: 46ch; }

  .faq { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px clamp(32px, 6vw, 110px); align-items: start; padding-inline: max(var(--g), calc((100vw - var(--max)) / 2)); }
}

/* ---------- Roomy screens: the process becomes four panels ---------- */
@media (min-width: 1200px) {
  /* Four panels: the open one shows its picture and its story */
  .steps { display: flex; gap: 12px; height: clamp(440px, 38vw, 560px); }
  .step { position: relative; top: auto; flex: 1 1 0; min-width: 0; min-height: 0; padding: clamp(20px, 2vw, 30px); box-shadow: none; cursor: pointer; transition: flex-grow .9s var(--ease), border-color .5s; }
  .step.is-on { flex-grow: 5.4; border-color: var(--line-gold); cursor: default; }
  .step img { inset: 0 auto 0 auto; right: 50%; transform: translateX(50%); transition: right .9s var(--ease), transform .9s var(--ease), filter 1.1s var(--ease); }
  .step.is-on img { right: 0; transform: none; }
  .js .step.in:not(.is-on) img { filter: brightness(.4) saturate(.6); }
  .step::after { background: linear-gradient(to bottom, rgba(8, 9, 11, .75), transparent 30%); }
  .step::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--panel) 36%, rgba(13, 15, 19, 0) 70%); opacity: 0; transition: opacity .6s; }
  .step.is-on::before { opacity: 1; }
  .step-top { flex-direction: column; align-items: flex-start; gap: 2px; pointer-events: auto; font-size: clamp(1rem, 1.3vw, 1.25rem); color: var(--soft); transition: color .4s; }
  .step.is-on .step-top { color: var(--ivory); }
  .step-body { position: absolute; left: clamp(20px, 2vw, 30px); bottom: clamp(20px, 2vw, 30px); width: min(360px, 27vw); max-width: none; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s, transform .4s var(--ease); }
  .step.is-on .step-body { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s .35s, transform .8s var(--ease) .35s; }
  .step h3 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); }
  @media (hover: hover) { .step:not(.is-on):hover { border-color: rgba(255, 255, 255, .2); } }
  .steps-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .steps-dots i { width: 34px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .4s, width .6s var(--ease); }
  .steps-dots i.on { background: var(--gold); }
  .steps-dots i.now { width: 64px; }
}
/* The section holds still while scrolling opens step one, two, three, four in turn */
@media (min-width: 1200px) and (min-height: 640px) {
  .js:not(.reduce) .process { padding-block: 0; }
  .js:not(.reduce) .pin { height: 290vh; height: 290svh; }
  .js:not(.reduce) .pin-in { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 14px) 22px; }
  .js:not(.reduce) .pin-in .h { margin-bottom: clamp(18px, 3.4vh, 56px); }
  /* The panels grow to use a tall window, so no empty band is left above the heading or under the panels */
  .js:not(.reduce) .pin-in .steps { flex: 1 1 clamp(440px, 38vw, 560px); min-height: 300px; max-height: 740px; height: auto; }
}

/* ---------- Mouse only ---------- */
@media (hover: hover) and (pointer: fine) {
  body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
  /* A sideways-scrolling row also clips up and down, so the row gets spare room for the lifted card (taken back with the margin) */
  .rail { padding-block: 14px; margin-block: -14px; }
  .card:hover { transform: translateY(-6px); }
  /* The label rides exactly on the pointer: position is set per frame with no easing, only the size animates */
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 80; width: 0; height: 0; pointer-events: none; will-change: transform; }
  .cursor span { position: absolute; left: -38px; top: -38px; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--bg); font-size: .8125rem; font-weight: 700; letter-spacing: -.01em; transform: scale(0); transition: transform .28s var(--ease); }
  .cursor.on span { transform: scale(1); }
  .cursor.on.down span { transform: scale(.86); }
  .has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .ln > span { opacity: 1; transform: none; }
  .js .lamp img, .js .step img, .rail .card-img img { filter: none !important; }
  .work-light { opacity: 1; }
  .work-light i { display: none; }
  .tilt .screen-d, .tilt .screen-m { transform: none; }
  .step { position: relative; top: auto; }
  .qa-a p { opacity: 1; transform: none; }
}
