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

:root {
  --font-display: 'Geist', 'Helvetica Neue', sans-serif;
  --font-body: 'Geist', 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --text-hero: clamp(2.6rem, 0.8rem + 5.2vw, 5.6rem);

  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem;
  --space-12: 3rem; --space-16: 4rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease);

  --accent: #4169e1;
  --accent-hover: #3154bd;
  --complement: #ac741b;
  --complement-text: #865608;
  --complement-soft: #fff4d9;
  --complement-line: #dfbf80;
  --color-primary: var(--accent);
  --maxw: 1240px;
}

[data-theme='dark'] {
  --accent:#8aa7ff;
  --complement:#e6b452;
  --complement-text:#efc46d;
  --complement-soft:#302719;
  --complement-line:#695432;
  --color-bg: #0a0a0b;
  --color-surface: #111113;
  --color-surface-2: #17171a;
  --color-text: #f2f2f0;
  --color-muted: #9a9a9f;
  --color-faint: #85858d;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);
  --btn-bg: #4169e1; --btn-fg: #ffffff;
  --spot: rgb(65 105 225 / 0.12);
  --grain-opacity: .07;
  color-scheme: dark;
}
:root:not([data-theme]), [data-theme='light'] {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-2: #edf0f4;
  --color-text: #20262e;
  --color-muted: #535f6d;
  --color-faint: #637080;
  --line: rgb(32 50 72 / 0.10);
  --line-strong: rgb(32 50 72 / 0.20);
  --btn-bg: #4169e1; --btn-fg: #ffffff;
  --spot: rgb(61 96 133 / 0.04);
  --accent: #4169e1;
  --grain-opacity: .015;
  color-scheme: light;
}

/* Daylight edition: white surfaces, soft elevation and no dark feature band. */
[data-theme='light'] .nav__inner { background:rgb(255 255 255 / .9); box-shadow:0 4px 24px rgb(32 50 72 / .04); }
[data-theme='light'] .language-menu,
[data-theme='light'] .mobile-nav { box-shadow:0 12px 32px rgb(32 50 72 / .10); }
[data-theme='light'] .hero::before,
[data-theme='light'] .cta::before { display:none; }
[data-theme='light'] .hero__grid { opacity:.55; }
[data-theme='light'] .console { background:#fff; box-shadow:0 24px 64px -24px rgb(32 50 72 / .22); }
[data-theme='light'] .console__bar { background:#f0f3f6; }
[data-theme='light'] .card,
[data-theme='light'] .service,
[data-theme='light'] .scanner-card,
[data-theme='light'] .contact-form { box-shadow:0 6px 24px rgb(32 50 72 / .035); }
[data-theme='light'] .btn--primary:hover { background:var(--accent-hover); }
[data-theme='light'] .security {
  background:#edf1f5; color:var(--color-text);
  --line:rgb(32 50 72 / .10); --line-strong:rgb(32 50 72 / .20);
  border-block:1px solid var(--line);
}
[data-theme='light'] .security::before { display:none; }
[data-theme='light'] .security .index,
[data-theme='light'] .security .red,
[data-theme='light'] .layers span { color:var(--accent); }
[data-theme='light'] .security .section__lead,
[data-theme='light'] .layers em { color:var(--color-muted); }
[data-theme='light'] .quote { color:var(--color-text); border-color:var(--accent); }
[data-theme='light'] .layers li { background:#fff; border-color:var(--line-strong); box-shadow:0 4px 12px rgb(32 50 72 / .035); }
[data-theme='light'] .layers li:last-child { background:var(--complement-soft); border-color:var(--complement-line); }
[data-theme='light'] .layers li:hover { border-color:var(--accent); }
[data-theme='light'] .footer { background:#fff; }
[data-theme='light'] .code s { color:#126c3c; }

body { background: var(--color-bg); color: var(--color-text); overflow-x: hidden; font-feature-settings: 'ss01', 'tnum'; transition: background .4s var(--ease), color .4s var(--ease); }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.red { color: var(--accent); }
.hero .red { color:var(--complement); }
.eyebrow .dot { background:var(--complement); }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: .5rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; opacity: var(--grain-opacity); mix-blend-mode: overlay; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; font-size: var(--text-sm); font-weight: 550; padding: .85em 1.3em; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; min-height: 44px; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--color-text); }
.btn--sm { padding: .55em 1.05em; min-height: 38px; }
.btn--lg { font-size: var(--text-lg); padding: .9em 1.5em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; padding: .75rem 0; }
.nav__inner { width: min(100% - 1.5rem, calc(var(--maxw) + 2rem)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .6rem .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklab, var(--color-bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-weight: 650; letter-spacing: -.01em; font-size: var(--text-sm); }
.brand__name sup { font-size: .55em; color: var(--color-muted); }
.nav__links { display: flex; gap: .25rem; list-style: none; }
.nav__links a { display: flex; gap: .45rem; align-items: baseline; padding: .5rem .8rem; border-radius: 999px; font-size: var(--text-sm); color: var(--color-muted); }
.nav__links a span { font-family: var(--font-mono); font-size: .7rem; color: var(--color-faint); }
.nav__links a:hover, .nav__links a.is-active { color: var(--color-text); background: var(--line); }
.nav__links a.is-active span { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: .4rem; }
.brand__mark { width:44px; height:44px; object-fit:contain; }
.language-picker { position:relative; flex:none; font-family:var(--font-mono); font-size:var(--text-xs); }
.language-picker:not([open]) > .language-menu { display:none; }
.language-picker summary { list-style:none; display:flex; align-items:center; gap:6px; padding:10px; cursor:pointer; min-height:44px; }
.language-picker summary::-webkit-details-marker { display:none; }
.language-menu { position:absolute; z-index:100; right:0; top:calc(100% + 12px); width:180px; max-width:calc(100vw - 32px); padding:8px; background:var(--color-surface); border:1px solid var(--line-strong); border-radius:12px; box-shadow:0 12px 40px rgb(0 0 0 / .25); }
.language-menu a { display:flex; align-items:center; gap:14px; padding:12px; border-radius:6px; }
.language-menu a span { color:var(--color-muted); }
.language-menu a:hover,.language-menu a[aria-current] { background:var(--line); color:var(--accent); }
.menu-toggle { display:none; font-size:22px; width:44px; height:44px; }
.mobile-nav { width:calc(100% - 24px); margin:8px auto 0; padding:12px; border:1px solid var(--line); border-radius:16px; background:var(--color-surface); box-shadow:0 16px 32px rgb(0 0 0 / .3); }
.mobile-nav:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; }
.mobile-nav a { padding:12px; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--color-muted); }
.theme-toggle:hover { color: var(--color-text); background: var(--line); }

/* Eyebrow / index */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 999px; }
.dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.pulse { background: #33d17a; box-shadow: 0 0 0 0 rgb(51 209 122 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(51 209 122 / 0); } 100% { box-shadow: 0 0 0 0 rgb(51 209 122 / 0); } }
.index { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: var(--space-6); display: flex; align-items: center; gap: .75rem; }
.index::after { content: ''; height: 1px; width: 48px; background: var(--line-strong); }

/* Hero */
.hero { position: relative; padding-top: clamp(3rem, 8vw, 6.5rem); overflow: hidden; }
.hero__grid { position: absolute; inset: -1px 0 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%); pointer-events: none; }
.hero::before { content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -15vw; top: -20vw; background: radial-gradient(circle, rgb(65 105 225 / .16), transparent 60%); filter: blur(20px); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 650; letter-spacing: -.045em; line-height: .95; margin: var(--space-6) 0; }
.hero__title > span { display: block; white-space: nowrap; }
.accent-line { color: var(--color-muted); }
.hero__lead { font-size: var(--text-lg); color: var(--color-muted); max-width: 46ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-8); }

/* Console */
.console { background: color-mix(in oklab, var(--color-surface) 88%, transparent); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); padding: 0; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .02) inset; backdrop-filter: blur(8px); }
.console__bar { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: var(--text-xs); color: var(--color-muted); }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console__dots i:first-child { background: var(--complement); }
.status { margin-left: auto; display: flex; align-items: center; gap: .45rem; font-family: var(--font-mono); }
.console__metrics { display: grid; grid-template-columns: 1fr 1fr; }
.metric { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.metric:nth-child(odd) { border-right: 1px solid var(--line); }
.metric__label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-faint); }
.metric__value { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric__value small { font-size: .5em; color: var(--color-muted); margin-left: .15em; font-weight: 500; }
.console__chart { height: 72px; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.console__chart svg { width: 100%; height: 100%; }
.spark { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.console__log { list-style: none; padding: .9rem 1.2rem .4rem; font-size: .75rem; line-height: 1.7; height: 8.4em; overflow: hidden; color: var(--color-muted); display: flex; flex-direction: column; justify-content: flex-end; }
.console__log li { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .5s var(--ease); }
.console__log .ok { color: #33d17a; } .console__log .warn { color: var(--accent); } .console__log .t { color: var(--color-faint); }
[data-theme='light'] .console__log .ok,
[data-theme='light'] .mock-pay__ok { color:#0f8045; }
.redacted { filter:blur(3px); -webkit-filter:blur(3px); user-select:none; -webkit-user-select:none; display:inline-block; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.console__note { font-size: .68rem; color: var(--color-faint); padding: 0 1.2rem .9rem; }

/* Marquee */
.marquee { margin-top: clamp(3rem, 7vw, 6rem); border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-muted); padding: 1.1rem 2rem; display: flex; align-items: center; gap: 2rem; }
.marquee span::after { content: '/'; color: var(--complement); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.fact { padding: 2rem 1.25rem 2rem 0; display: flex; flex-direction: column; gap: .35rem; }
.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.fact__num { font-size: var(--text-xl); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.fact__label { font-size: var(--text-xs); color: var(--color-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }

/* Sections */
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section h2, .security h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 620; letter-spacing: -.035em; line-height: 1.02; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.section__lead { color: var(--color-muted); font-size: var(--text-base); margin-top: var(--space-6); max-width: 54ch; }
.section__head--split .section__lead { margin-top: 0; }

/* Cards / Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; background: var(--color-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card--xl { grid-column: span 2; grid-row: span 2; }
.card--tall { grid-column: span 2; grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card--xl h3, .card--tall h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.card p { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.55; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.tag { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); border: 1px solid var(--line); padding: .3rem .55rem; border-radius: 999px; }
.tag--accent { color: var(--complement-text); background:var(--complement-soft); border-color:var(--complement-line); }
.arrow { color: var(--color-faint); transition: transform .35s var(--ease), color .35s var(--ease); }
.card:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-top: auto; padding-top: .6rem; }
.chips li { font-family: var(--font-mono); font-size: .72rem; color: var(--color-muted); background: var(--line); padding: .3rem .6rem; border-radius: var(--radius-sm); }

/* spotlight */
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--spot), transparent 60%); opacity: 0; transition: opacity .4s var(--ease); }
.spot:hover::before { opacity: 1; }

/* TWINT mock */
.mock-pay { margin-top: 1.2rem; background: var(--color-surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem; display: flex; flex-direction: column; gap: .75rem; font-size: var(--text-sm); }
.mock-pay__row { display: flex; justify-content: space-between; color: var(--color-muted); }
.mock-pay__btn { background: #000; color: #fff; border-radius: 8px; padding: .85rem; text-align: center; font-weight: 600; display: flex; justify-content: center; gap: .5rem; border: 1px solid rgb(255 255 255 / .12); }
.tw { font-weight: 800; letter-spacing: .02em; background: linear-gradient(90deg, #ff6b00, #ffd000, #00b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-pay__ok { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; color: #33d17a; }
.check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgb(51 209 122 / .15); font-size: .7rem; }

/* QR */
.qr { position: relative; width: min(200px, 60%); aspect-ratio: 1; margin: 1rem auto .4rem; padding: 12px; background: #fff; border-radius: var(--radius-md); }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.qr__cross { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); background: #000; border: 3px solid #fff; }
.qr__cross::before, .qr__cross::after { content: ''; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.qr__cross::before { width: 60%; height: 18%; } .qr__cross::after { width: 18%; height: 60%; }

/* Suite */
.suite { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; height: 100%; }
.suite > div:first-child { display: flex; flex-direction: column; gap: .6rem; }
.score { position: relative; width: 96px; height: 96px; flex: none; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 9; }
.score__bg { stroke: var(--line); }
.score__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s var(--ease); }
.score__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; width: 120px; flex: none; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(to top, color-mix(in oklab, var(--accent) 30%, transparent), var(--accent)); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(.1); transition: transform 1.2s var(--ease); }
.bars i:nth-child(n) { transition-delay: calc(var(--d, 0) * 1ms); }
.bars i:nth-child(1) { --h:38%; }.bars i:nth-child(2) { --h:52%; }.bars i:nth-child(3) { --h:46%; }
.bars i:nth-child(4) { --h:68%; }.bars i:nth-child(5) { --h:61%; }.bars i:nth-child(6) { --h:84%; }.bars i:nth-child(7) { --h:96%; }
.is-in .bars i { transform: scaleY(1); }

.link-more { display: inline-flex; gap: .6rem; margin-top: 2rem; font-size: var(--text-sm); color: var(--color-muted); border-bottom: 1px solid var(--line-strong); padding-bottom: .3rem; }
.link-more:hover { color: var(--color-text); border-color: var(--accent); }

/* Projects */
.projects { list-style: none; border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 70px 1.3fr 1fr auto 40px; align-items: center; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2.2rem) .5rem; border-bottom: 1px solid var(--line); position: relative; }
.project::before { content: ''; position: absolute; inset: 0; background: var(--color-surface); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.projects li { position: relative; z-index: 0; max-width: none; }
.project:hover::before { transform: scaleY(1); }
.project__idx { font-size: var(--text-xs); color: var(--color-faint); }
.project__name { font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; transition: transform .45s var(--ease); }
.project:hover .project__name { transform: translateX(10px); }
.dim { color: var(--color-faint); }
.project__meta { color: var(--color-muted); font-size: var(--text-sm); }
.project__state { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); display: flex; align-items: center; gap: .5rem; }
.project__arrow { font-size: 1.4rem; color: var(--color-faint); transition: transform .35s var(--ease), color .35s; justify-self: end; }
.project:hover .project__arrow { color: var(--accent); transform: translate(3px, -3px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service { position: relative; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--color-surface); display: flex; flex-direction: column; gap: .8rem; overflow: hidden; isolation: isolate; transition: border-color .3s var(--ease); }
.service:hover { border-color: var(--line-strong); }
.service--wide { grid-column: span 2; }
.service__split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.service__split > div { display: flex; flex-direction: column; gap: .8rem; }
.service__head { display: flex; justify-content: space-between; font-size: .75rem; color: var(--color-faint); margin-bottom: .6rem; }
.service__head .num { color: var(--accent); }
.service h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.02em; }
.service p { color: var(--color-muted); font-size: var(--text-sm); }
.code { margin-top: auto; font-family: var(--font-mono); font-size: .76rem; line-height: 1.7; background: var(--color-bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: .9rem 1rem; overflow-x: auto; color: var(--color-muted); }
.code b { color: var(--color-text); font-weight: 500; } .code s { color: #33d17a; text-decoration: none; } .code i { color: var(--accent); font-style: normal; } .code em { color: #7aa7ff; font-style: normal; }
[data-theme='light'] .code s { color: #126c3c; } [data-theme='light'] .code em { color: #2956c7; }

/* Security */
.security { background: #0a0a0b; color: #f2f2f0; position: relative; overflow: hidden; --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .18); }
.security::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 85% 50%, rgb(65 105 225 / .18), transparent 70%); pointer-events: none; }
[data-theme='dark'] .security { background: #0c101b; border-block: 1px solid rgb(65 105 225 / .2); }
.security .index { color: var(--accent); }
.security__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.security .section__lead { color: #a8a8ad; }
.security .red { color: var(--accent); }
.quote { margin-top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--accent); color: #d6d6d9; font-size: var(--text-base); }
.layers { list-style: none; display: flex; flex-direction: column; gap: .6rem; perspective: 900px; }
.layers li { display: grid; grid-template-columns: 40px 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 1.2rem; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-md); background: rgb(255 255 255 / .03); backdrop-filter: blur(6px); max-width: none; margin-left: calc(var(--i) * 18px); margin-right: calc((4 - var(--i)) * 18px); transition: transform .5s var(--ease), border-color .3s, background .3s; }
.layers li:hover { transform: translateX(-6px); border-color: rgb(65 105 225 / .5); background: rgb(65 105 225 / .07); }
.layers li:last-child { border-color:var(--complement-line); background:var(--complement-soft); }
.layers li:nth-child(1) { --i:0; }.layers li:nth-child(2) { --i:1; }.layers li:nth-child(3) { --i:2; }.layers li:nth-child(4) { --i:3; }.layers li:nth-child(5) { --i:4; }
.layers span { color:var(--accent); font-size: .75rem; }
.layers strong { font-weight: 550; font-size: var(--text-sm); }
.layers em { font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #7c7c82; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stack > div { padding: 1.5rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.stack dt { font-weight: 600; font-size: var(--text-sm); margin-bottom: .45rem; letter-spacing: -.01em; }
.stack dd { font-size: var(--text-xs); color: var(--color-muted); line-height: 1.55; }

/* CTA */
.cta { padding-block: clamp(6rem, 12vw, 11rem); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; bottom: -40%; width: 80vw; height: 60vw; transform: translateX(-50%); background: radial-gradient(ellipse, rgb(65 105 225 / .14), transparent 60%); pointer-events: none; }
.cta__title { position: relative; font-size: clamp(2.25rem, 1rem + 5vw, 5.5rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; max-width: 16ch; }
.cta__row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-top: clamp(2rem, 5vw, 4rem); }
.cta__row p { color: var(--color-muted); max-width: 48ch; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.cta__addr { font-size: var(--text-xs); color: var(--color-faint); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 3.5rem; font-size: var(--text-sm); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer__brand { display:grid; grid-template-columns:64px minmax(0,1fr); gap:16px; align-items:start; }
.footer__brand-copy { min-width:0; }
.footer__brand p { color: var(--color-muted); margin-top: .6rem; max-width: 34ch; }
.footer__logo { width:64px; height:64px; object-fit:contain; margin:0; }
.brand-story { border-top:1px solid var(--line); padding-bottom:3rem; }
.brand-story__inner { display:grid; grid-template-columns:200px 1fr; gap:clamp(2rem,6vw,5rem); align-items:center; }
.brand-proof { color:var(--color-faint); font-size:var(--text-xs); margin-top:24px; }
.faq-section { padding-top:4rem; }
.faq-list { max-width:900px; }
.faq-list details { border-bottom:1px solid var(--line); padding:20px 0; }
.faq-list summary { display:flex; justify-content:space-between; align-items:center; gap:24px; cursor:pointer; font-size:var(--text-lg); font-weight:550; list-style:none; }
.faq-list summary::after { content:'+'; font-family:var(--font-mono); color:var(--accent); }
.faq-list details[open] summary::after { content:'−'; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list p { color:var(--color-muted); margin-top:16px; }
.contact-form { max-width:900px; margin-top:64px; padding:clamp(20px,4vw,40px); background:var(--color-surface); border:1px solid var(--line-strong); border-radius:20px; position:relative; }
.form-intro { margin-bottom:24px; }
.form-intro h3 { font-size:var(--text-lg); margin-bottom:8px; }
.form-intro p,.form-privacy,.form-status,.privacy-link { font-size:var(--text-sm); color:var(--color-muted); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-grid label { display:flex; flex-direction:column; gap:8px; font-size:var(--text-sm); }
.form-grid input,.form-grid textarea { width:100%; padding:12px; background:var(--color-bg); border:1px solid var(--line-strong); border-radius:8px; font-size:16px; }
.form-grid textarea { resize:vertical; min-height:140px; }
.form-full { grid-column:span 2; }
.honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.consent { display:flex; align-items:flex-start; gap:12px; margin-top:24px; font-size:var(--text-sm); }
.consent input { margin-top:5px; width:18px; height:18px; accent-color:var(--accent); flex:none; }
.form-privacy { margin-top:12px; }
.privacy-link { display:inline-block; text-decoration:underline; margin-top:8px; }
.form-status { margin-block:20px; padding:12px 16px; border-left:2px solid var(--accent); background:var(--line); }
.form-actions { display:flex; flex-wrap:wrap; gap:12px; }
.scanner-section { border-bottom:1px solid var(--line); }
.scanner-layout { display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(24px,4vw,60px); align-items:start; }
.scanner-card { background:var(--color-surface); border:1px solid var(--line-strong); border-radius:22px; padding:clamp(20px,3vw,32px); min-width:0; }
.scanner-title { display:flex; gap:12px; align-items:center; }
.scanner-title h2 { font-size:clamp(22px,2.1vw,28px); letter-spacing:-.03em; color:#246f3e; }
[data-theme=dark] .scanner-title h2 { color:#7ed69b; }
.scan-beacon { width:10px; height:10px; flex:none; border-radius:50%; background:#24954b; position:relative; }
.scan-beacon::after { content:''; position:absolute; inset:-5px; border:2px solid #24954b; border-radius:50%; animation:scan-beacon-pulse 2.8s ease-out infinite; pointer-events:none; }
@keyframes scan-beacon-pulse { 0% { transform:scale(.55); opacity:.7; } 80%,100% { transform:scale(1.5); opacity:0; } }
.scan-intro { color:var(--color-muted); font-size:var(--text-sm); line-height:1.65; margin-bottom:24px; }
.scanner-version { margin-left:auto; color:var(--color-faint); font-size:12px; }
.scan-tags { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.scan-tags li { border:1px solid var(--line); border-radius:30px; padding:5px 10px; color:var(--color-muted); font-size:12px; }
.scan-label { font-size:14px; display:block; margin-bottom:8px; }
.scan-input-row { display:flex; gap:8px; padding:6px; border-radius:14px; background:var(--color-bg); border:1px solid var(--line-strong); }
.scan-input-row input { min-width:0; width:100%; border:0; border-radius:8px; background:transparent; padding:10px 12px; font-size:16px; }
.scan-input-row .btn { border-radius:10px; flex:none; }
.scan-micro { color:var(--color-muted); font-size:12px; line-height:1.6; margin-top:10px; }
.scan-consent { display:flex; gap:10px; align-items:start; font-size:13px; color:var(--color-muted); margin-top:20px; }
.scan-consent input { accent-color:var(--accent); width:17px; height:17px; flex:none; margin-top:3px; }
.scan-verification { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:20px; }
.scan-verification .scan-micro { margin:0; }
.scan-status { color:var(--color-muted); padding:14px; background:var(--line); border-left:2px solid var(--accent); margin-top:22px; font-size:13px; }
.scan-demo { color:var(--color-text); text-decoration:underline; text-underline-offset:5px; min-height:44px; margin-top:8px; font-size:13px; }
#scan-result { margin-top:22px; }
#scan-result[hidden] { display:none; }
.scan-result-top { display:flex; gap:18px; align-items:center; border:1px solid var(--line); padding:18px; border-radius:14px; }
.scan-grade { display:grid; place-items:center; width:64px; height:72px; flex:none; background:var(--accent); color:white; font-size:32px; font-weight:650; border-radius:12px; }
.scan-score { font-weight:650; font-size:28px; line-height:1.2; }
.scan-score > span+span { font-size:14px; font-weight:450; color:var(--color-muted); }
#scan-result-domain { font-size:14px; overflow-wrap:anywhere; }
.scan-result-top .scan-micro { margin-top:3px; }
.scan-chips { display:flex; flex-wrap:wrap; gap:8px; margin-block:20px; }
.scan-chip { font-size:12px; padding:5px 9px; border-radius:24px; border:1px solid var(--line); color:var(--color-muted); }
.scan-chip[data-state=pass] { color:#57c591; background:rgb(51 209 122 / .08); }
.scan-chip[data-state=warn],.scan-chip[data-state=missing] { color:#ff857d; background:rgb(255 59 47 / .08); }
[data-theme=light] .scan-chip[data-state=pass] { color:#176f48; }
[data-theme=light] .scan-chip[data-state=warn],[data-theme=light] .scan-chip[data-state=missing] { color:#a02e25; }
.scan-details { border:1px solid var(--line); border-radius:12px; padding:16px; }
.scan-details summary { cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:550; gap:12px; min-height:24px; }
.scan-details h3 { font-size:14px; margin-top:20px; padding-top:14px; border-top:1px solid var(--line); }
.scan-check { padding-top:14px; margin-top:14px; border-top:1px solid var(--line); }
.scan-check-title { display:flex; justify-content:space-between; align-items:start; gap:14px; font-size:13px; }
.scan-check p { font-size:12px; color:var(--color-muted); margin-top:8px; }
.scan-result-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.scan-result-actions .btn { font-size:13px; }
.scanner-policy { margin-top:28px; border:1px solid var(--line); padding:24px; border-radius:16px; }
.scanner-policy h3 { font-size:16px; }
.scanner-policy ul { list-style:none; margin-top:16px; display:grid; gap:14px; }
.scanner-policy li { color:var(--color-muted); font-size:13px; padding-left:18px; position:relative; }
.scanner-policy li::before { content:'+'; color:var(--accent); position:absolute; left:0; }
.scanner-copy > .scan-micro { margin-top:22px; }
.scan-privacy-panel { margin-top:40px; padding:clamp(24px,3vw,36px); border:1px solid var(--line-strong); border-radius:16px; background:var(--color-surface); }
.scan-privacy-panel h3 { font-size:var(--text-lg); margin-bottom:16px; }
.scan-privacy-panel p { max-width:100ch; color:var(--color-muted); font-size:var(--text-sm); line-height:1.8; }
.scan-privacy-panel p + p { margin-top:16px; }
.scan-privacy-promises { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin-block:24px; }
.scan-privacy-promises li { font-size:var(--text-xs); font-weight:550; color:var(--color-text); border:1px solid var(--line-strong); border-radius:24px; padding:8px 12px; background:var(--color-bg); }
.scan-privacy-panel .scan-privacy-note { font-size:var(--text-xs); }
#scan-turnstile:not(:empty) { margin-top:16px; min-height:65px; }
@media(max-width:1200px) { .nav__links a { padding-inline:.5rem; } }
@media(max-width:1000px) { .scanner-layout { grid-template-columns:1fr; } }
@media(max-width:480px) { .scan-input-row { flex-direction:column; }.scanner-version { display:none; }.scan-verification { align-items:flex-start; flex-direction:column; } }
.btn:disabled { cursor:not-allowed; opacity:.45; }
#turnstile-widget { margin-top:16px; }
.hero__title > span { white-space:normal; }
.console__note,.tag,.file,.metric__label,.project__state,.layers em,.footer h4,.footer__bottom { font-size:var(--text-xs); }
.footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-faint); font-weight: 500; margin-bottom: .8rem; }
.footer__grid p { color: var(--color-muted); line-height: 1.7; }
.footer a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--color-faint); }

/* Reveal */
.reveal { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .menu-toggle { display:block; }
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 50px 1fr auto 30px; }
  .project__meta { display: none; }
}
@media (max-width: 760px) {
  .nav__actions { gap:0; }
  .nav__actions > .btn { display:none; }
  .brand-story__inner { grid-template-columns:1fr; }
  .brand-story__logo { width:140px; height:140px; }
  .form-grid { grid-template-columns:1fr; }
  .form-full { grid-column:auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento, .services { grid-template-columns: 1fr; }
  .card--xl, .card--tall, .card--wide, .service--wide { grid-column: auto; grid-row: auto; }
  .service__split { grid-template-columns: 1fr; }
  .section__head--split, .security__inner, .cta__row { grid-template-columns: 1fr; }
  .cta__actions { align-items: flex-start; }
  .layers li { margin-inline: 0; }
  .project { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .project__idx, .project__arrow { display: none; }
  .project__state { grid-column: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav .brand__name { display: none; }
  .suite { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stack { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .console__log { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-beacon::after { animation:none; opacity:.3; }
  body { transition:none; }
  .console__log li { animation:none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* === 2026-10 contact drawer + refinement pass === */
.section { padding-block: clamp(3.5rem, 6.5vw, 5.75rem); }
.cta { padding-block: clamp(4.5rem, 8vw, 7rem); }
.cta__email { color:var(--accent); font-size:var(--text-sm); text-decoration:underline; text-underline-offset:5px; }
.cta__email:hover { color:var(--accent-hover); }
.mobile-contact-link { text-align:left; padding:12px; color:var(--color-text); }

body.contact-open { overflow:hidden; }
.contact-drawer { position:fixed; inset:0; z-index:120; pointer-events:none; visibility:hidden; transition:visibility 0s linear .48s; }
.contact-drawer.is-open { pointer-events:auto; visibility:visible; transition-delay:0s; }
.contact-drawer__backdrop { position:absolute; inset:0; width:100%; height:100%; background:rgb(15 23 42 / .48); opacity:0; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); transition:opacity .38s var(--ease); }
.contact-drawer.is-open .contact-drawer__backdrop { opacity:1; }
.contact-panel { position:absolute; inset:0 0 0 auto; width:min(760px, calc(100vw - 48px)); height:100dvh; overflow:auto; overscroll-behavior:contain; background:var(--color-surface); border-left:1px solid var(--line-strong); box-shadow:-34px 0 80px rgb(0 0 0 / .18); transform:translateX(102%); transition:transform .48s var(--ease); }
.contact-drawer.is-open .contact-panel { transform:translateX(0); }
.contact-panel__header { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding:38px clamp(28px,5vw,48px) 30px; background:color-mix(in oklab,var(--color-surface) 92%,transparent); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-bottom:1px solid var(--line); }
.contact-panel__header .eyebrow { margin-bottom:14px; }
.contact-panel__header h2 { font-size:clamp(1.75rem,1.35rem + 1.2vw,2.35rem); letter-spacing:-.035em; }
.contact-panel__close { display:grid; place-items:center; width:52px; height:52px; flex:none; border:1px solid var(--line-strong); border-radius:14px; font-size:36px; font-weight:300; line-height:1; color:var(--color-muted); }
.contact-panel__close:hover { color:var(--color-text); border-color:var(--color-text); }
.contact-panel__body { padding:34px clamp(28px,5vw,48px) 54px; }
.contact-type { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:7px; margin-bottom:30px; border:1px solid var(--line-strong); border-radius:18px; background:var(--color-surface-2); }
.contact-type button { min-height:58px; padding:12px 18px; border:1px solid transparent; border-radius:13px; font-size:var(--text-base); font-weight:620; color:var(--color-muted); }
.contact-type button[aria-selected='true'] { background:var(--color-surface); color:var(--color-text); border-color:var(--line); box-shadow:0 5px 18px rgb(15 23 42 / .06); }
.contact-form { max-width:none; margin:0; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none !important; }
.contact-form .form-grid { gap:22px; }
.contact-form .form-grid label { gap:9px; font-size:var(--text-base); font-weight:590; }
.contact-form .form-grid input,
.contact-form .form-grid textarea { padding:15px 16px; background:var(--color-bg); border:1px solid var(--line-strong); border-radius:15px; font-size:16px; font-weight:430; outline:none; }
.contact-form .form-grid input { min-height:58px; }
.contact-form .form-grid textarea { min-height:180px; line-height:1.55; }
.contact-form .form-grid input:focus,
.contact-form .form-grid textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in oklab,var(--accent) 15%,transparent); }
.company-field[hidden] { display:none; }
.contact-form .consent { margin-top:24px; color:var(--color-muted); line-height:1.55; }
.contact-verification { margin-top:20px; }
.contact-verification #turnstile-widget { margin-top:0; }
.contact-verification .form-status { margin:14px 0 0; border-radius:8px; }
.contact-verification .form-status:empty { display:none; }
.contact-submit { width:100%; min-height:72px; margin-top:28px; display:flex; align-items:center; justify-content:center; gap:12px; border-radius:18px; background:#101927; color:#fff; font-size:var(--text-lg); font-weight:650; box-shadow:0 18px 32px -18px rgb(16 25 39 / .6); }
.contact-submit:hover:not(:disabled) { background:#1a2940; transform:translateY(-1px); }
.contact-submit:disabled { opacity:.46; cursor:not-allowed; }
.contact-panel__meta { padding-top:30px; }
.contact-panel__meta .form-privacy { max-width:58ch; line-height:1.7; }
.contact-panel__links { display:flex; flex-wrap:wrap; gap:18px; align-items:center; margin-top:10px; }
.contact-email-draft { color:var(--accent); text-decoration:underline; text-underline-offset:4px; font-size:var(--text-sm); }
.contact-email-draft:hover { color:var(--accent-hover); }

@media (max-width:760px) {
  .nav__inner { gap:.45rem; padding-left:.65rem; }
  .nav .brand__mark { width:38px; height:38px; }
  .nav .brand__name { display:inline; font-size:.78rem; white-space:nowrap; }
  .language-picker summary { padding-inline:7px; }
  .theme-toggle { width:38px; height:38px; }
  .menu-toggle { width:40px; height:40px; }
  .hero { padding-top:2.5rem; }
  .console__bar { padding:.65rem .8rem; gap:.65rem; }
  .console__metrics .metric { padding:.78rem .85rem; }
  .metric__value { font-size:1.45rem; }
  .console__chart { height:50px; }
  .console__log { height:5.4em; padding:.65rem .85rem .25rem; line-height:1.55; }
  .console__note { padding:0 .85rem .7rem; }
  .contact-panel { width:100%; }
  .contact-panel__header { padding:24px 20px 20px; }
  .contact-panel__body { padding:24px 20px 40px; }
  .contact-panel__close { width:46px; height:46px; border-radius:12px; font-size:31px; }
  .contact-type button { min-height:52px; padding-inline:10px; font-size:var(--text-sm); }
  .contact-submit { min-height:64px; border-radius:15px; }
}

@media (max-width:480px) {
  .nav .brand__name { font-size:.72rem; }
  .nav .brand__mark { width:34px; height:34px; }
  .contact-form .form-grid { grid-template-columns:1fr; gap:18px; }
  .contact-form .form-full { grid-column:auto; }
  .contact-type { margin-bottom:24px; }
}

@media (prefers-reduced-motion:reduce) {
  .contact-panel,.contact-drawer__backdrop { transition:none; }
}
