@font-face { font-family: Geist; src: url("./geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("./geistmono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --paper: #030304;          /* matches the dark render's backdrop */
  --raised: #0f0f12;
  --ink: #f2efed;
  --muted: #9a959a;
  --line: rgb(255 255 255 / .09);
  --accent: #ff3b7f;
  --accent-ink: #ff6f9f;
  --button: #f2efed;
  --button-ink: #0b0b0d;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: min(100% - 2 * clamp(20px, 4vw, 56px), 1280px);
  --header: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f8eef0;
  --raised: #fffafb;
  --ink: #18161a;
  --muted: #6c6469;
  --line: rgb(24 22 26 / .1);
  --accent: #d1105a;
  --accent-ink: #b30d4c;
  --button: #18161a;
  --button-ink: #fffafb;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.shell { width: var(--page); margin-inline: auto; }
main { overflow-x: clip; } /* the hero's glow and signal lines run past the edges */
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 40; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); }

/* ── type ── */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow-mark { width: 7px; height: 7px; background: var(--accent); }
h1 { font-size: clamp(56px, 6.6vw, 110px); font-weight: 800; line-height: .88; letter-spacing: -.04em; text-transform: uppercase; }
h1 span { display: block; }
h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 620; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.accent { color: var(--accent); }
.lede { max-width: 30ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; letter-spacing: -.012em; color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }

/* ── buttons ── */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.button span { transition: transform .2s var(--ease); }
.button:hover span { transform: translateX(3px); }
.button-primary { background: var(--button); color: var(--button-ink); }
.button-primary:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .18); transform: translateY(-1px); }
.button-quiet { border: 1px solid var(--line); }
.button-quiet:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { width: var(--page); min-height: var(--header); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #151417; border: 1px solid rgb(255 255 255 / .12); }
.brand-symbol svg { width: 21px; height: 21px; overflow: visible; color: #f4f2ec; }
.brand .brand-wordmark { width: 108px; height: 22px; color: var(--ink); }
.qf-o { fill: none; stroke: currentColor; stroke-width: .165; stroke-linejoin: miter; }
.qf-c { fill: currentColor; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav > a, .nav-disclosure > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--ink) 78%, var(--paper)); transition: color .2s, background-color .2s; }
.desktop-nav > a:hover, .nav-disclosure > summary:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-disclosure { position: relative; }
.nav-disclosure summary { list-style: none; cursor: pointer; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure summary span { font-size: 12px; color: var(--muted); }
.nav-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); box-shadow: 0 18px 40px rgb(0 0 0 / .22); }
.nav-popover a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.nav-popover a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: color-mix(in srgb, var(--ink) 80%, var(--paper)); transition: color .2s, border-color .2s; }
.icon-link:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.icon-link svg { width: 17px; height: 17px; }
[data-theme="light"] .theme-sun, [data-theme="dark"] .theme-moon { display: none; }
.mobile-nav { display: none; }
.mobile-nav .nav-popover { left: auto; right: 0; }

/* ── hero ── */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); align-items: center; gap: 16px; min-height: clamp(520px, calc(100svh - var(--header) - 250px), 700px); padding-block: 8px 12px; }
.hero::before { content: ""; position: absolute; inset: -10% -20% -20% 25%; z-index: -1; pointer-events: none; background: radial-gradient(42% 48% at 50% 55%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(30% 30% at 20% 80%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; }
.hero-copy .eyebrow { margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 226px; align-items: stretch; }
.hero-figure picture { justify-self: center; width: min(112%, 610px); margin-left: -6%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.label-text small { white-space: nowrap; }

/* ── product cards and partners, directly under the hero as in the concept ── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-block: 18px; }
.card { position: relative; display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 18px; padding: 4px 24px 4px 0; }
.card + .card { padding-left: 24px; border-left: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 17 / 11; object-fit: cover; border-radius: 12px; background: var(--raised); transition: transform .5s var(--ease); }
.card:hover img { transform: scale(1.03); }
.card-text { display: grid; gap: 4px; padding-bottom: 14px; }
.card-kicker { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.card-text strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.card-text small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.card-arrow { position: absolute; right: 24px; bottom: 6px; font-size: 18px; transition: transform .2s var(--ease); }
.card:last-child .card-arrow { right: 0; }
.card:hover .card-arrow { transform: translateX(3px); color: var(--accent-ink); }
.partners-strip { display: flex; align-items: center; justify-content: center; gap: 0; padding-block: 16px 22px; border-top: 1px solid var(--line); }
.partners-strip > * { padding-inline: 28px; }
.partners-strip > * + * { border-left: 1px solid var(--line); }
.strip-label { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partners-strip a { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: color-mix(in srgb, var(--ink) 80%, var(--paper)); }
.partners-strip a:hover { color: var(--ink); }
.hero-figure img { width: 100%; }
[data-theme="light"] .hero-figure::before { content: ""; position: absolute; left: 12%; right: 32%; bottom: 3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgb(60 20 40 / .22), transparent); filter: blur(6px); }
.hero-lines { position: absolute; inset: 6% 0 10% -10%; width: 110%; height: 84%; pointer-events: none; overflow: visible; }
.hero-lines path { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .4; }
.hero-lines g:last-child path { opacity: .32; }
.hero-figure picture { position: relative; grid-area: 1 / 1; }
.layer-labels { grid-area: 1 / 2; }
/* the same render with pink or unlit rings, cut in over the white one by home.js like a fluorescent tube */
.hero-ring { opacity: 0; pointer-events: none; }
.hero-figure[data-ring="pink"] .hero-ring-pink, .hero-figure[data-ring="off"] .hero-ring-off { opacity: 1; }
.layer-labels { position: relative; }
.layer-labels li { position: absolute; top: var(--y); left: -64px; transform: translateY(-50%); }
.layer-labels a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; transition: background-color .2s; }
.layer-labels a::before { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent)); }
.layer-labels a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.label-index { font: 500 12px/1 var(--mono); color: var(--accent-ink); }
.label-text { display: grid; gap: 2px; }
.label-text strong { font-size: 15px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.label-text small { font-size: 14px; line-height: 1.35; color: color-mix(in srgb, var(--ink) 70%, var(--paper)); }
.label-icon svg { display: block; width: 40px; height: 22px; fill: none; stroke: color-mix(in srgb, var(--accent) 60%, var(--muted)); stroke-width: 1.2; }
.label-index { align-self: start; margin-top: 2px; font-size: 15px; font-weight: 600; }

/* ── facts ── */
.facts { padding-block: clamp(48px, 6vw, 88px) 24px; }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts dl > div { padding: 28px 24px 26px 0; }
.facts dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 10px; font-size: clamp(30px, 3vw, 44px); font-weight: 650; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.facts dd small { margin-left: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.facts-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ── platform ── */
.platform { padding-block: clamp(80px, 10vw, 140px) 40px; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 88px); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.product-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product-flip .product-copy { order: 2; }
.product-copy { display: grid; gap: 20px; align-content: start; }
.product-copy > p:not(.product-index) { max-width: 42ch; font-size: 17px; color: color-mix(in srgb, var(--ink) 78%, var(--paper)); }
.product-index { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.specs { display: grid; border-top: 1px solid var(--line); }
.specs li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs span { color: var(--muted); }
.product-copy .button { justify-self: start; margin-top: 8px; }
.product-visual { overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
[data-theme="light"] .product-visual { background: linear-gradient(180deg, #fbf6f7, #f1e7ea); }
.product-visual img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product-visual img { transform: scale(1.02); }

/* ── index band, contact, footer ── */
.index-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-block: clamp(40px, 6vw, 96px); padding: clamp(32px, 4vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), var(--raised); }
.index-band > div { display: grid; gap: 14px; }
.index-band p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.contact { display: grid; gap: 14px; justify-items: start; padding-block: clamp(48px, 7vw, 110px); border-top: 1px solid var(--line); }
.contact-mail { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; border-bottom: 2px solid var(--accent); }
.partners { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.partners a { color: var(--ink); }
.partners a:hover, .site-footer a:hover { color: var(--accent-ink); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── entrance: content settles in once, never loops ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise .9s var(--ease) both; }
  .js .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .js .hero-figure { animation: settle 1.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── responsive ── */
@media (max-width: 1100px) {
  .desktop-nav > a, .nav-disclosure > summary { padding: 0 9px; }
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  :root { --header: 60px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .github-link { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 8px; }
  .hero-figure { grid-template-columns: 1fr; }
  .layer-labels { display: none; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card, .card + .card { padding: 0; border-left: 0; grid-template-columns: 120px 1fr; }
  .card-arrow, .card:last-child .card-arrow { right: 0; }
  .partners-strip { flex-wrap: wrap; gap: 10px 0; }
  .partners-strip > * { padding-inline: 16px; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .product, .product-flip { grid-template-columns: 1fr; }
  .product-flip .product-copy { order: 0; }
  .product-visual { order: -1; }
}
@media (max-width: 520px) {
  .brand .brand-wordmark { width: 96px; }
  .actions .button { flex: 1 1 auto; justify-content: center; }
  .specs li { grid-template-columns: 96px 1fr; }
  .index-band { border-radius: 18px; }
}
