/* Gravia Motion v3: one world, liquid glass.
   System: 12-column grid · 8-pt spacing · six type steps · one accent (violet) for actions, lilac for highlights.
   Brand kit: Geist, the colours, the logo. */

@font-face { font-family: 'Geist'; src: url('../media/Geist-Variable-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
	--bg: #041116;
	--ink: #e3f1f2;
	--sub: #9db6ba;          /* 7.9:1 on the ground */
	--light: #bfeff0;
	--violet: #7c3aed;
	--violet-2: #6a2bd8;
	--lilac: #c4a5ff;

	/* glass */
	--glass: rgba(16, 44, 52, .42);
	--glass-hi: rgba(227, 241, 242, .16);
	--glass-rim: rgba(191, 239, 240, .2);

	/* type: six steps */
	--t-display: clamp(56px, 8.4vw, 132px);
	--t-h2: clamp(40px, 5.2vw, 80px);
	--t-h3: clamp(22px, 1.9vw, 28px);
	--t-lead: clamp(18px, 1.35vw, 21px);
	--t-body: 17px;
	--t-small: 14px;

	/* space: 8-pt */
	--s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
	--section: clamp(96px, 12vw, 176px);
	--pad: clamp(20px, 4vw, 64px);
	--max: 1360px;
	--radius: 28px;
	--radius-s: 18px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	/* a damped spring (stiffness 260, damping 22): settles in .65s with a 5% overshoot, after Motion's springs */
	--spring: linear(0, 0.078, 0.251, 0.452, 0.641, 0.796, 0.91, 0.985, 1.029, 1.049, 1.053, 1.048, 1.038, 1.027, 1.018, 1.01, 1.004, 1, 0.998, 0.997, 0.997, 0.998, 0.998, 0.999, 1);
	--spring-d: .65s;
	--font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--ink); font: 400 var(--t-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; background: transparent; }
main, footer { overflow-x: clip; position: relative; }
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.045em; line-height: .96; text-wrap: balance; }
h3 { font-weight: 500; font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.2; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
/* the parts the browser draws carry the palette too */
html { scrollbar-color: #3b1580 var(--bg); }
input, textarea { caret-color: var(--lilac); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--s2); top: -80px; z-index: 300; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: 999px; }
.skip:focus { top: var(--s2); }

/* The world sits behind everything */
canvas.world { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; }
.world-fallback { position: fixed; inset: 0; z-index: -1; background: radial-gradient(40% 40% at 50% 50%, #1a0d3d, var(--bg) 70%); }
/* a fine, still grain over everything: the page feels printed rather than rendered */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; 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='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)); }
.section { padding-top: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); }
.h2 { font-size: var(--t-h2); }
.lead { font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; }
.sub { color: var(--sub); }
.line-mask { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.line-mask > span { display: inline-block; will-change: transform; }

/* ---------- Liquid glass ---------- */
.glass {
	position: relative; isolation: isolate;
	background: linear-gradient(160deg, rgba(227, 241, 242, .09), rgba(227, 241, 242, .02) 42%, rgba(124, 58, 237, .06));
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	border-radius: var(--radius);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .28),
		inset 0 -1px 0 rgba(255, 255, 255, .05),
		inset 0 0 0 1px var(--glass-rim),
		0 40px 80px -40px rgba(0, 0, 0, .7);
}
.glass.thin { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px var(--glass-rim); }
/* light that follows the cursor across the glass */
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 165, 255, .16), transparent 60%); }
@media (hover: hover) { .glass:hover::before { opacity: 1; } }
/* a bright rim, thicker at the top: the edge of a thick lens */
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .04) 30%, rgba(191, 239, 240, .12) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass:not(.bar) { contain: paint; }
.low-end .glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(10, 32, 39, .85); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(10, 32, 39, .92); } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 0 var(--s4); border-radius: 999px; border: 0; background: var(--violet); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform var(--spring-d) var(--spring), color .3s; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lilac); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); color: var(--bg); } }
@media (hover: hover) { .btn:hover::before { transform: none; } }
.btn:active { transform: scale(.97); transition-duration: .16s; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; transition: transform .5s var(--ease); }
@media (hover: hover) { .btn:hover .dot { transform: translateY(4px); } }
/* a slow beam of light runs round the main button's edge (after Vengeance UI's border beam, MIT) */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn.beam::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--beam), transparent 0 62%, rgba(196, 165, 255, .2) 72%, #fff 80%, rgba(196, 165, 255, .2) 86%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 4.5s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.btn.glass { background: linear-gradient(160deg, rgba(227, 241, 242, .12), rgba(227, 241, 242, .03)); color: var(--ink); }
.btn.glass::before { background: var(--ink); }
@media (hover: hover) { .btn.glass:hover { color: var(--bg); } }
.link { text-decoration: underline; text-decoration-color: var(--lilac); text-decoration-thickness: 1.5px; text-underline-offset: .28em; transition: color .3s; }
@media (hover: hover) { .link:hover { color: var(--lilac); } }

/* ---------- Navigation: no box. Clear over the world at the top; a feathered veil once you scroll ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 200; padding-top: var(--s2); pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0 0 -56px; z-index: -1; background: linear-gradient(180deg, rgba(4, 17, 22, .9), rgba(4, 17, 22, .55) 60%, rgba(4, 17, 22, 0)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); opacity: 0; transition: opacity .8s ease; }
.nav.scrolled::before { opacity: 1; }
.nav .bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 64px; }
.nav .logo img { width: 156px; height: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
/* two hairlines draw in under a link, one each way (after Vengeance UI's line-hover link, MIT) */
.nav ul a { position: relative; display: block; padding: var(--s1) var(--s2); border-radius: 999px; text-decoration: none; font-size: var(--t-small); color: var(--sub); transition: color .3s; }
.nav ul a::before, .nav ul a::after { content: ""; position: absolute; left: var(--s2); right: var(--s2); height: 1px; background: currentColor; transform: scale3d(0, 1, 1); transition: transform .3s cubic-bezier(.7, 0, .2, 1); }
.nav ul a::before { bottom: 4px; transform-origin: 100% 50%; }
.nav ul a::after { bottom: 0; transform-origin: 0% 50%; }
.nav ul a:hover::before, .nav ul a:focus-visible::before { transform: none; transform-origin: 0% 50%; transition-timing-function: cubic-bezier(.4, 1, .8, 1); }
.nav ul a:hover::after, .nav ul a:focus-visible::after { transform: none; transform-origin: 100% 50%; transition-timing-function: cubic-bezier(.4, 1, .8, 1); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
.nav ul a[aria-current]::before { transform: none; background: var(--lilac); }
.nav .right { display: flex; align-items: center; gap: var(--s1); }
.nav .chip { display: inline-flex; align-items: center; gap: var(--s1); min-height: 48px; padding: 0 var(--s2); color: var(--ink); border-radius: 999px; border: 0; background: rgba(227, 241, 242, .08); font-size: var(--t-small); cursor: pointer; }
.nav .menu { display: none; }
.nav .btn { min-height: 48px; padding: 0 var(--s3); font-size: var(--t-small); }
dialog.menu-dlg { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 120px var(--pad) var(--s5); border: 0; background: rgba(4, 17, 22, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); color: var(--ink); opacity: 0; transition: opacity .24s var(--ease), overlay .24s allow-discrete, display .24s allow-discrete; }
dialog.menu-dlg::backdrop { background: transparent; }
/* the menu fades in over the page and out again, instead of cutting */
dialog.menu-dlg[open] { opacity: 1; }
@starting-style { dialog.menu-dlg[open] { opacity: 0; } }
dialog.menu-dlg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
dialog.menu-dlg ul a { font-size: var(--t-h2); letter-spacing: -.04em; line-height: 1.15; text-decoration: none; display: block; }
dialog.menu-dlg .close { position: absolute; right: var(--pad); top: 28px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding-block: 140px var(--s5); }
.hero h1 { font-size: var(--t-display); max-width: 9.2ch; }
.hero .fw { display: inline-block; white-space: nowrap; }
.hero .fl { display: inline-block; will-change: transform, filter; }
/* lit by the well: lilac light falls on the letters nearest the core, and moves as the core moves */
.hero h1.lit { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: radial-gradient(circle 620px at var(--lx, 120%) var(--ly, 50%), rgb(205 182 255 / calc(var(--lk, 0) * .95)), rgb(196 165 255 / 0) 78%), linear-gradient(var(--ink), var(--ink)); }
.hero .lead { margin-top: var(--s4); max-width: 38ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero .facts { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--glass-rim); font-size: var(--t-small); color: var(--sub); }
.hero .facts b { color: var(--ink); font-weight: 500; }
.work-hero { min-height: 68svh; align-items: center; text-align: center; padding-bottom: var(--s6); }
.work-hero h1 { max-width: none; margin-inline: auto; }
.work-hero .lead { margin-inline: auto; max-width: 46ch; }
.work-hero .jump { justify-content: center; max-width: 720px; margin-inline: auto; }
.jump { list-style: none; margin: var(--s6) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--glass-rim); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.jump a { font-size: var(--t-h3); letter-spacing: -.02em; text-decoration: none; transition: color .3s; }
.jump a span { color: var(--sub); font-size: var(--t-small); letter-spacing: 0; margin-left: var(--s1); }
@media (hover: hover) { .jump a:hover { color: var(--lilac); } }

/* ---------- Section head ---------- */
.head { align-items: end; margin-bottom: var(--s6); }
.head h2 { grid-column: 1 / span 7; }
.head p { grid-column: 8 / span 5; color: var(--sub); }

/* ---------- Work: 16:9 films ---------- */
.film .watch { display: block; width: 100%; padding: 0; background: none; text-align: left; border: 0; cursor: pointer; color: var(--ink); text-decoration: none; border-radius: var(--radius-s); }
.film .frame { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-s); background: #02090c; box-shadow: 0 0 0 1px rgba(196, 165, 255, .22), 0 30px 90px -50px rgba(0, 0, 0, .9); transition: box-shadow .6s var(--ease), transform var(--spring-d) var(--spring); }
.film .watch:hover .frame, .film .watch:focus-visible .frame { box-shadow: 0 0 0 1px rgba(196, 165, 255, .55), 0 40px 110px -50px rgba(124, 58, 237, .7); transform: translateY(-4px); }
/* the film card on the home page and the same film on the portfolio page share one transition name */
.teaser a[href$="#hoA"] .frame, #hoA .frame { view-transition-name: f-hoA; }
.teaser a[href$="#hoB"] .frame, #hoB .frame { view-transition-name: f-hoB; }
.teaser a[href$="#hoC"] .frame, #hoC .frame { view-transition-name: f-hoC; }
.teaser a[href$="#npA"] .frame, #npA .frame { view-transition-name: f-npA; }
.teaser a[href$="#npB"] .frame, #npB .frame { view-transition-name: f-npB; }
.teaser a[href$="#npC"] .frame, #npC .frame { view-transition-name: f-npC; }
/* arriving at a film by its link, it lands clear of the header */
.film[id] { scroll-margin-top: 112px; }
/* the home cards tilt instead (daisyUI hover-3d): hand the transform back to its layer */
.teaser .watch:hover .frame, .teaser .watch:focus-visible .frame { transform: revert-layer; }
/* home: three films, then the way in */
.teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.teaser .meta { flex-direction: column; gap: 2px; }
/* the two cards tilt toward the pointer (daisyUI hover-3d, MIT); still on touch, for reduced motion and when paused */
.teaser .hover-3d { display: grid; width: 100%; }
@media (hover: none), (prefers-reduced-motion: reduce) { .teaser .hover-3d > :first-child { transform: none; scale: 1; } }
.still .teaser .hover-3d > :first-child { transform: none; scale: 1; }
.teaser .tag { white-space: normal; }
.more { margin-top: var(--s6); }
/* work page: per product, one lead film and the others beside it */
.phead { text-align: center; max-width: 52ch; margin: 0 auto var(--s6); }
.phead .lead { margin-top: var(--s3); color: var(--sub); }
.phead .note { margin-top: var(--s2); }
.project .films { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--s3); align-items: start; }
.project .film { grid-column: span 5; }
.project .film.lead { grid-column: 2 / span 10; }
.project .film:nth-child(2) { grid-column: 2 / span 5; }
.project .film:not(.lead) .ft { font-size: 18px; }
.project .film:not(.lead) .fp { font-size: 15px; }
.project + .project .phead { padding-top: var(--s6); border-top: 1px solid var(--glass-rim); max-width: none; }
.project + .project .phead > * { max-width: 52ch; margin-inline: auto; }
.note { display: block; margin-top: var(--s1); font-size: var(--t-small); color: var(--sub); }
.next .h2 { grid-column: 1 / span 7; }
.next .ctas { grid-column: 8 / span 5; align-self: end; display: flex; flex-wrap: wrap; gap: var(--s2); }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { opacity: 0; transition: opacity .5s; }
.film.playing video { opacity: 1; }
.film .play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--bg); background: rgba(227, 241, 242, .94); transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.film .watch:hover .play, .film .watch:focus-visible .play { transform: none; opacity: 1; }
.film .meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-top: var(--s3); }
.film .ft { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.film .tag { color: var(--sub); font-size: var(--t-small); white-space: nowrap; }
.film .fp { display: block; margin-top: var(--s1); color: var(--sub); max-width: 60ch; }
.film .read { margin-top: var(--s2); font-size: var(--t-small); interpolate-size: allow-keywords; }
.film .read summary { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; cursor: pointer; color: var(--light); text-decoration: underline; text-decoration-color: rgba(191, 239, 240, .4); text-underline-offset: .3em; }
@media (hover: hover) { .film .read summary:hover { color: var(--lilac); } }
.film .read::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.film .read[open]::details-content { block-size: auto; }
.film .read p { max-width: 70ch; color: var(--ink); opacity: .88; line-height: 1.6; padding-top: var(--s1); }

/* ---------- Services: glass rows the sphere lands on ---------- */
.svc .intro { grid-column: 1 / span 5; position: sticky; top: 140px; align-self: start; }
.svc .intro .lead { margin-top: var(--s4); max-width: 30ch; }
.svc .intro .btn { margin-top: var(--s5); }
.svc ol { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.svc li { padding: var(--s4); transition: transform .6s var(--ease); }
.svc li .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s3); flex-wrap: wrap; }
.svc li h3 { letter-spacing: -.025em; transition: color .4s; }
.svc li.on h3 { color: var(--lilac); }
.svc li .tag { color: var(--light); font-size: var(--t-small); }
.svc li p { margin-top: var(--s2); max-width: 54ch; }
.svc li small { display: block; margin-top: var(--s2); color: var(--sub); font-size: var(--t-small); }

/* ---------- Process: glass stairs ---------- */
.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); align-items: end; height: min(62vh, 560px); }
.step { padding: var(--s3); align-self: end; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-s) var(--radius-s) var(--s1) var(--s1); min-height: 264px; transition: transform .4s var(--ease); }
.step:nth-child(1) { height: 100%; } .step:nth-child(2) { height: 86%; } .step:nth-child(3) { height: 72%; } .step:nth-child(4) { height: 60%; } .step:nth-child(5) { height: 50%; }
.step .n { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: rgba(191, 239, 240, .45); font-variant-numeric: tabular-nums; transition: color .4s; }
@media (hover: hover) { .step:hover .n { color: var(--lilac); } }
.step b { display: block; font-weight: 500; font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.2; margin-top: var(--s1); }
.step span { display: block; margin-top: var(--s1); color: var(--sub); font-size: var(--t-small); line-height: 1.5; }

/* ---------- About ---------- */
.about .h2 { grid-column: 1 / span 6; }
.about .story { grid-column: 7 / span 6; padding: var(--s5); display: grid; gap: var(--s3); font-size: var(--t-lead); line-height: 1.55; }
.about .story .sign { color: var(--lilac); font-size: var(--t-body); }
.contact .now { color: var(--sub); font-size: var(--t-small); margin-top: calc(-1 * var(--s2)); }
.contact .now time { color: var(--ink); font-variant-numeric: tabular-nums; }
.founders { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.founder { padding: var(--s5); display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); align-items: start; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); background: #10313a; box-shadow: 0 0 0 1px var(--glass-rim); }
.founder .profile { display: inline-block; margin-top: var(--s2); font-size: var(--t-small); }
.founder .role { display: block; color: var(--light); font-size: var(--t-small); margin: var(--s1) 0 var(--s2); }
.belief { padding-top: var(--s7); }
.belief figure { margin: 0 auto; max-width: 880px; padding: var(--s6) var(--s6) var(--s5); text-align: center; }
.belief blockquote { margin: 0; }
.belief blockquote p { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.3; letter-spacing: -.025em; font-weight: 400; text-wrap: balance; }
.belief figcaption { margin-top: var(--s4); color: var(--sub); font-size: var(--t-small); }
.belief .hl { color: var(--lilac); }

/* ---------- FAQ ---------- */
.faq .h2 { grid-column: 1 / span 5; }
.faq .list { grid-column: 6 / span 7; padding: var(--s2) var(--s4); }
.faq .q + .q { border-top: 1px solid var(--glass-rim); }
.faq dt button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: var(--t-h3); letter-spacing: -.015em; line-height: 1.3; }
@media (hover: hover) { .faq dt button:hover { color: var(--lilac); } }
.pm { position: relative; width: 16px; height: 16px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.pm::after { transform: rotate(90deg); }
.open .pm::after { transform: none; }
.faq dl { margin: 0; }
.faq dd { margin: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq dd > div { overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.faq .open dd { grid-template-rows: 1fr; }
.faq .open dd > div { visibility: visible; transition-delay: 0s; }
.faq dd p { padding-bottom: var(--s3); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact .side { grid-column: 1 / span 5; display: grid; gap: var(--s4); align-content: start; }
.contact .side small { display: block; color: var(--sub); font-size: var(--t-small); margin-bottom: 4px; }
.contact .mail { font-size: var(--t-h3); letter-spacing: -.02em; }
.next-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
/* two ways to start: a call (Calendly in a frame) or a written enquiry, as tabs */
.contact .ways { grid-column: 6 / span 7; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(227, 241, 242, .06); box-shadow: inset 0 0 0 1px var(--glass-rim); margin-bottom: var(--s3); }
.tab { min-height: 48px; padding: 0 var(--s4); border: 0; border-radius: 999px; background: none; color: var(--sub); font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s; }
.tab[aria-selected="true"] { background: var(--violet); color: #fff; }
@media (hover: hover) { .tab[aria-selected="false"]:hover { color: var(--ink); } }
.panel[hidden] { display: none; }
#panel-call { padding: var(--s4); }
.panel-intro { color: var(--sub); max-width: 52ch; margin-bottom: var(--s3); }
.calendly { display: block; width: 100%; height: 760px; border: 0; border-radius: var(--radius-s); background: #fff; }
/* preview builds only: the preview host can't frame Calendly, so a card links to it instead */
.cal-preview { display: grid; gap: var(--s3); justify-items: start; padding: var(--s5) var(--s4); border-radius: var(--radius-s); background: rgba(227, 241, 242, .05); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.cal-preview p { color: var(--sub); max-width: 46ch; }
.fallback { margin-top: var(--s2); font-size: var(--t-small); color: var(--sub); }
.needs { border: 0; margin: 0; padding: 0; min-width: 0; }
.needs legend { padding: 0; margin-bottom: var(--s1); font-size: var(--t-small); font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s1); }
.checks label { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 0 var(--s2); border-radius: 999px; border: 1px solid rgba(191, 239, 240, .32); font-size: var(--t-small); white-space: nowrap; cursor: pointer; transition: border-color .3s, background-color .3s; }
.checks label:has(:checked) { border-color: var(--lilac); background: rgba(124, 58, 237, .22); }
.checks label:has(:focus-visible) { outline: 2px solid var(--light); outline-offset: 2px; }
.checks input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); padding: var(--s5); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field .opt { color: var(--sub); font-weight: 400; }
.req { color: var(--lilac); font-weight: 500; }
.form .req-note { font-size: var(--t-small); color: var(--sub); }
.field input, .field select, .field textarea { width: 100%; font: 400 var(--t-body)/1.4 var(--font); color: var(--ink); background: rgba(4, 17, 22, .55); border: 1px solid rgba(191, 239, 240, .32); border-radius: var(--s2); padding: var(--s2); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field textarea { min-height: 136px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239db6ba' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 40px; }
.field select option { background: var(--bg); }
@media (hover: hover) { .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(191, 239, 240, .5); } }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(196, 165, 255, .5); background-color: rgba(4, 17, 22, .8); }
.field [aria-invalid="true"] { border-color: #ff9a9a; }
.field .err { color: #ffb4b4; font-size: var(--t-small); }
.field .hint { color: var(--sub); font-size: var(--t-small); }
.hp { position: absolute; left: -9999px; }
.form .privacy { font-size: var(--t-small); color: var(--sub); }
.form .send { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.form .status { font-size: var(--t-small); color: var(--light); display: flex; gap: var(--s2); align-items: center; }
.form .status:empty { display: none; }
.form .status span { animation: settle .4s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
.done-mark { width: 52px; height: 52px; flex: none; overflow: visible; }

/* ---------- Footer: the pile lands on the name ---------- */
.footer { padding-block: var(--section) var(--s4); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s3); font-size: var(--t-small); }
.footer .cols p { font-size: var(--t-lead); max-width: 22ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.footer ul li:first-child { color: var(--sub); }
.footer a { text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--lilac); } }
.legal { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); color: var(--sub); font-size: var(--t-small); }

/* ---------- Privacy notice: a readable column ---------- */
.legal-doc .container { max-width: 880px; }
.legal-doc .lead { margin-top: var(--s4); color: var(--sub); max-width: 60ch; }
.legal-doc .doc { margin-top: var(--s6); }
.legal-doc .doc h2 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.2; margin-top: var(--s6); }
.legal-doc .doc h2:first-child { margin-top: 0; }
.legal-doc .doc p, .legal-doc .doc ul { margin-top: var(--s2); max-width: 68ch; }
.legal-doc .doc ul { padding-left: 1.2em; display: grid; gap: var(--s1); }
.legal-doc .doc b { font-weight: 500; }

/* ---------- Player ---------- */
dialog.player { width: min(92vw, 1280px); max-width: none; padding: 0; border: 0; background: #000; border-radius: var(--radius-s); overflow: hidden; }
dialog.player::backdrop { background: rgba(2, 8, 10, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog.player video { width: 100%; aspect-ratio: 16 / 9; }
dialog.player .close { position: absolute; right: 14px; top: 14px; z-index: 2; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
	.nav { inset: 10px 0 auto; }
	.nav .bar { height: 60px; }
	.teaser { grid-template-columns: 1fr 1fr; }
	.project .film, .project .film:nth-child(2) { grid-column: span 6; }
	.project .film.lead { grid-column: 1 / -1; }
	.nav ul { display: none; }
	.nav .menu { display: inline-flex; }
}
@media (max-width: 480px) {
	.nav .logo img { width: 36px; height: 36px; }
	.nav .btn { padding: 0 16px; min-height: 44px; }
	.hero { padding-top: 54svh; }
	.hero .facts { flex-direction: column; gap: 6px; margin-top: var(--s5); }
	.head h2, .head p { grid-column: 1 / -1; }
	.head p { margin-top: var(--s3); }
	.teaser { grid-template-columns: 1fr; gap: var(--s5); }
	.project .film, .project .film:nth-child(2) { grid-column: 1 / -1; }
	.next .h2, .next .ctas { grid-column: 1 / -1; }
	.next .ctas { margin-top: var(--s4); }
	.svc .intro, .svc ol, .about .h2, .about .story, .faq .h2, .faq .list, .contact .side, .contact .ways { grid-column: 1 / -1; }
	.svc .intro { position: static; margin-bottom: var(--s5); }
	.svc li { padding: var(--s3); }
	.stairs { grid-template-columns: 1fr; height: auto; gap: var(--s5); }
	.step { height: auto !important; min-height: 0; gap: var(--s2); }
	.step .n { font-size: 40px; }
	.about .story { margin-top: var(--s5); padding: var(--s4); }
	.founders { grid-template-columns: 1fr; }
	.founder { padding: var(--s4); grid-template-columns: 88px 1fr; gap: var(--s3); }
	.belief figure { padding: var(--s5) var(--s3) var(--s4); }
	.faq .list { margin-top: var(--s5); padding: var(--s1) var(--s3); }
	.form { grid-template-columns: 1fr; padding: var(--s3); }
	.contact .ways { margin-top: var(--s5); }
	#panel-call { padding: var(--s3); }
	.calendly { height: 1000px; }
	.tab { padding: 0 var(--s3); }
	.footer .cols { grid-template-columns: 1fr 1fr; }
	.footer .cols > :first-child { grid-column: 1 / -1; }
}

/* paused by the visitor: looping effects hold still */
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }
.footer .pause { padding: 0; min-height: 24px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--lilac); text-underline-offset: .28em; }
@media (hover: hover) { .footer .pause:hover { color: var(--lilac); } }
dialog.menu-dlg .pause { margin-top: var(--s5); display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border: 0; border-radius: 999px; background: rgba(227, 241, 242, .08); color: var(--ink); font: inherit; font-size: var(--t-small); cursor: pointer; }

/* moving between pages: the film card you clicked grows into its place on the next page (cross-document View Transitions) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
