/* Fonts: self-hosted, SIL Open Font License (see /fonts) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Layout: a developer's working sheet. 12-col grid, mono annotations in the margins,
   oversized grotesk headlines. One signature moment: an X-ray lens over the hero
   that shows the source under the page. */
:root {
  --bg: #eceeec;
  --bg-2: #e2e5e2;
  --ink: #111513;
  --muted: #5f6762;
  --line: rgba(17,21,19,.14);
  --line-2: rgba(17,21,19,.32);
  --accent: #fdb913;
  --on-accent: #111513;
  --accent-text: #8a5d00;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.65,0,.35,1);
  --out: cubic-bezier(.16,1,.3,1);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --pad: clamp(16px, 3vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1110; --bg-2: #161a18; --ink: #e7ebe8; --muted: #8d9691;
    --line: rgba(231,235,232,.12); --line-2: rgba(231,235,232,.3);
    --accent-text: #fdc640; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1110; --bg-2: #161a18; --ink: #e7ebe8; --muted: #8d9691;
  --line: rgba(231,235,232,.12); --line-2: rgba(231,235,232,.3);
  --accent-text: #fdc640; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.5; }
.muted { color: var(--muted); }
.wrap { padding-left: var(--gut); padding-right: var(--gut-r); }
.inner { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--bg);
  display: grid; align-content: end; gap: 24px;
  padding-block: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  animation: loader-failsafe .01s 4s forwards;
}
.loader.done { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader .log { display: grid; gap: 2px; min-height: 8em; align-content: end; }
.loader .log span { opacity: .55; }
.loader .log span:last-child { opacity: 1; }
.loader .row { display: flex; justify-content: space-between; align-items: end; gap: 16px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
:root[data-theme="dark"] .loader .row { border-color: rgba(0,0,0,.2); }
.loader .pct { font-family: var(--font); font-weight: 700; font-size: clamp(64px, 16vw, 220px); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader .bar { height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.hdr .inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: auto; flex: none; color: var(--ink); overflow: visible; }
.logo-mark rect { transform-box: fill-box; transform-origin: left center; }
.logo:hover .logo-mark rect, .logo.typed .logo-mark rect { animation: type .45s var(--out) backwards; animation-delay: var(--d); }
@keyframes type { from { transform: scaleX(0); } }
.wordmark { font-family: var(--font); font-size: 23px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.ftr .logo { margin-bottom: 12px; gap: 12px; }
.ftr .logo-mark { width: 56px; }
.ftr .wordmark { font-size: 34px; }
.logo-text { display: grid; line-height: 1.15; }
.logo-text b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; display: flex; gap: 6px; align-items: baseline; position: relative; padding-block: 4px; }
.nav a sup { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--out); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; gap: 8px; align-items: center; }
.kbd { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; transition: background .2s, color .2s; }
.kbd:hover { background: var(--ink); color: var(--bg); }
.sq { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .2s, color .2s; }
.sq:hover { background: var(--ink); color: var(--bg); }
.sq svg { width: 16px; height: 16px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--out); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--on-accent); }
.btn .arr { transition: transform .5s var(--out); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.menu-btn { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--bg); display: grid; align-content: space-between;
  padding-block: max(20px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden; }
.mnav.open { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mnav a { text-decoration: none; font-size: clamp(40px, 12vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; display: flex; gap: 12px; align-items: baseline; }
.mnav a sup { font-family: var(--mono); font-size: 12px; opacity: .5; letter-spacing: 0; }
.mnav .top { display: flex; justify-content: space-between; align-items: center; }


/* ---------- Sections ---------- */
section { position: relative; }
.sec { border-top: 1px solid var(--line); }
.sec .inner { padding-block: clamp(64px, 10vw, 140px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; align-items: baseline; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head .tag { grid-column: span 3; display: flex; gap: 10px; }
.sec-head .tag b { color: var(--accent-text); font-weight: 500; }
.sec-head h2 { grid-column: 4 / span 9; margin: 0; font-size: clamp(36px, 6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); touch-action: pan-y; }
.hero .inner { position: relative; padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px); display: grid; gap: clamp(28px, 5vw, 56px); }
.meta-row { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; }
.meta-row > div { grid-column: span 3; display: grid; gap: 2px; min-width: 0; }
.meta-row > div:last-child { grid-column: span 3 / -1; text-align: right; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.h1 { margin: 0; font-weight: 800; letter-spacing: -.07em; line-height: .82; font-size: clamp(96px, 24vw, 380px); display: flex; align-items: flex-end; position: relative; }
.h1 .ch { display: inline-block; }
.h1 .mask { display: inline-flex; overflow: hidden; padding: 0 .12em .06em 0; margin-right: -.12em; }
.h1 .dot { color: var(--accent); }
.dim { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.hero-lower { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; align-items: end; }
.hero-lower .intro { grid-column: 1 / span 7; margin: 0; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 500; text-wrap: balance; }
.hero-lower .intro em { font-style: normal; color: var(--muted); }
.hero-lower .ctas { grid-column: 9 / span 4; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* X-ray lens */
.xray {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--accent); color: var(--on-accent);
  clip-path: circle(var(--r, 0px) at var(--x, 50%) var(--y, 50%));
  transition: clip-path .5s var(--out);
}
.xray.moving { transition: clip-path .5s var(--out), --r .5s; }
.xray pre { margin: 0; padding: clamp(24px, 4vw, 48px) calc(var(--gut) + var(--pad)); font-family: var(--mono); font-size: clamp(12px, 1.4vw, 18px); line-height: 1.75; white-space: pre-wrap; word-break: break-word; columns: 2; column-gap: 48px; }
@media (max-width: 900px) { .xray pre { columns: 1; } }
.xray pre .c { opacity: .55; }
.xray pre .k { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.xray-ring { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; left: var(--x); top: var(--y); }
.xray-ring span { position: absolute; left: 14px; top: 14px; white-space: nowrap; font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--bg); padding: 3px 6px; opacity: 0; transform: translateY(4px); transition: .3s var(--out); }
.hero.lens .xray-ring span { opacity: 1; transform: none; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; }
.about-side { grid-column: span 3; display: grid; gap: 22px; align-content: start; }
.fact { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.fact b { font-size: 32px; letter-spacing: -.04em; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.statement { grid-column: 4 / span 9; margin: 0; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.statement .w { color: color-mix(in srgb, var(--ink) 22%, var(--bg)); transition: color .25s; }
.statement .w.on { color: var(--ink); }
.statement .w.hl { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 0 .32em; transition: background-size .8s var(--out), color .25s; }
.statement .w.hl.on { background-size: 100% .32em; }

/* Stack */
 margin: 0; font-size: 12px; font-family: var(--mono); font-weight: 400; color: var(--muted); padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; transition: background .2s, color .2s, border-color .2s; }
.chip:hover, .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Stack: six layers in a plain grid */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.layer { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: clamp(18px, 2vw, 26px); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg); min-width: 0; }
.layer-top { color: var(--muted); font-size: 12px; }
.layer-top b { color: var(--accent-text); font-weight: 500; }
.layer .art { width: 100%; height: 92px; color: var(--ink); overflow: visible; }
.layer-text { display: grid; gap: 10px; align-content: start; min-width: 0; }
.layer h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.layer p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.layer ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.layer li { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.layer li:last-child { border-bottom: 0; }
.layer li b { font-size: 16px; letter-spacing: -.01em; }
.layer li .mono { color: var(--muted); font-size: 11.5px; }
.art * { vector-effect: non-scaling-stroke; }
.art .st { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.art .f { fill: currentColor; opacity: .1; }
.art .s { fill: currentColor; opacity: .45; }
.art .a { fill: var(--accent); }
.art .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.art .led { animation: blink 1.4s steps(1) infinite; }
.art .led:nth-of-type(2n) { animation-delay: -.7s; }
.art .travel { animation: travel 3.2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(188px); } }

/* Services */
.svc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.svc li { border-top: 1px solid var(--line); }
.svc-row { position: relative; width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; align-items: center; padding: clamp(18px, 2.4vw, 28px) 0; text-align: left; isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--out); }
.svc-row:hover::before, .svc-row[aria-expanded="true"]::before { transform: scaleY(1); }
.svc-row:hover, .svc-row[aria-expanded="true"] { color: var(--on-accent); }
.svc-row .n { grid-column: span 1; }
.svc-row .t { grid-column: 2 / span 7; font-size: clamp(26px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: transform .5s var(--out); }
.svc-row:hover .t { transform: translateX(12px); }
.svc-row .s { grid-column: 9 / span 3; }
.svc-row .pm { grid-column: 12; justify-self: end; width: 34px; height: 34px; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .5s var(--out); }
.svc-row[aria-expanded="true"] .pm { transform: rotate(45deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--out); }
.svc-body > div { overflow: hidden; }
.svc-row[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-body .in { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; padding: 24px 0 36px; }
.svc-body p { grid-column: 2 / span 6; margin: 0; font-size: 19px; line-height: 1.45; max-width: 36em; }
.svc-body .types { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }


/* Contact */
.contact .inner { padding-block: clamp(72px, 12vw, 160px) clamp(48px, 6vw, 80px); }
.big-cta { font-size: clamp(64px, 15vw, 240px); font-weight: 800; letter-spacing: -.07em; line-height: .84; margin: 0 0 clamp(36px, 5vw, 64px); text-wrap: balance; }
.big-cta .cta-link { text-decoration: none; display: inline-block; position: relative; font: inherit; letter-spacing: inherit; line-height: inherit; }
.big-cta .cta-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .07em; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--out); }
.big-cta .cta-link:hover::after { transform: scaleX(1); }
.contact-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.crow { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); min-width: 0; }
.crow .val.hidden { color: var(--muted); font-weight: 500; user-select: none; }
.crow .val { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; user-select: all; }
.crow .acts { display: flex; gap: 8px; }

/* Footer */
.ftr { border-top: 1px solid var(--line); }
.ftr .inner { padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; }
.ftr .inner > div { grid-column: span 4; display: grid; gap: 4px; min-width: 0; align-content: start; }
.ftr .inner > div:last-child { text-align: right; }
.ftr kbd { font-family: var(--mono); border: 1px solid var(--line-2); padding: 1px 5px; font-size: 11px; }


/* About extras */
.about-main { grid-column: 4 / span 9; display: grid; gap: 28px; min-width: 0; }
.about-main .statement { grid-column: auto; }
.about-note { margin: 0; max-width: 40em; font-size: 19px; line-height: 1.5; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--accent); }

/* AI & MCP */
.ai-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; align-items: start; }
.ai-copy { grid-column: span 4; display: grid; gap: 18px; min-width: 0; }
.ai-lede { margin: 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; letter-spacing: -.01em; }
.ai-sub { margin: 0; font-size: 16px; }
.mcp { grid-column: 6 / span 7; margin: 0; border: 1px solid var(--line-2); background: var(--bg-2); min-width: 0; }
.mcp-cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mcp-board { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(18px, 3vw, 32px); }
.mcp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mcp-lines path { fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: stroke .3s; }
.mcp-lines path.on { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 5; animation: flow .7s linear infinite; }
.mcp-lines circle { fill: var(--accent); stroke: var(--ink); stroke-width: 1; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.node { position: relative; z-index: 1; display: grid; gap: 2px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); text-align: left; min-width: 0; }
.node b { font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.node .mono { font-size: 11px; }
.node.server { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.node.server .muted { color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
.tools { display: grid; gap: 8px; }
.tool { padding: 9px 12px; transition: background .25s, border-color .25s, transform .4s var(--out); }
.tool:hover { border-color: var(--ink); }
.tool.on { background: var(--accent); color: var(--on-accent); border-color: var(--ink); transform: translateX(-4px); }
.tool.on .muted { color: inherit; opacity: .7; }
.console { border-top: 1px solid var(--line); padding: 14px; min-height: 7.6em; display: grid; gap: 4px; align-content: start; font-size: 12px; overflow-wrap: anywhere; }
.console .u { color: var(--ink); }
.console .r { color: var(--accent-text); }
.console .ok { color: var(--muted); }
.console span { opacity: 0; transform: translateY(4px); animation: line-in .45s var(--out) forwards; }
@keyframes line-in { to { opacity: 1; transform: none; } }

.contact-note { margin: -16px 0 clamp(28px, 4vw, 48px); font-size: 19px; }

@media (max-width: 900px) {
  .about-main { grid-column: 1 / -1; }
  .ai-copy, .mcp { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mcp-board { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 28px; }
  .mcp-board .client { grid-column: 1; }
  .mcp-board .server { grid-column: 1; }
  .mcp-board .tools { grid-column: 2; grid-row: 1 / span 2; }
}

/* Toast */
.toast { position: fixed; z-index: 85; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; font-family: var(--mono); font-size: 12px; transition: .4s var(--out); pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a sup { display: none; }
}
@media (max-width: 900px) {
  .nav, .hdr .btn.sm { display: none; }
  .hdr .menu-btn { display: inline-flex; }
  .hdr .tools { margin-left: auto; }
  .meta-row > div { grid-column: span 6; }
  .meta-row > div:last-child { grid-column: span 6; text-align: left; }
  .meta-row > div:nth-child(3) { display: none; }
  .hero-lower .intro, .hero-lower .ctas { grid-column: 1 / -1; justify-content: flex-start; }
  .sec-head .tag, .sec-head h2 { grid-column: 1 / -1; }
  .about-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .statement { grid-column: 1 / -1; }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row .t { grid-column: 2 / span 10; }
  .svc-row .s { display: none; }
  .svc-body p, .svc-body .types { grid-column: 2 / -1; }
  .cert .yr, .cert .what { grid-column: 1 / -1; }
  .contact-rows { grid-template-columns: minmax(0, 1fr); }
  .ftr .inner > div { grid-column: 1 / -1; text-align: left !important; }
}
@media (max-width: 560px) {
  .layers { grid-template-columns: minmax(0, 1fr); }
  .layer .art { height: 68px; }
  .about-side { grid-template-columns: minmax(0, 1fr); }
  .svc-row .n { display: none; }
  .svc-row .t { grid-column: 1 / span 10; }
  .svc-body p, .svc-body .types { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .loader { display: none; }
}

/* 404 */
.nf { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.nf-main { display: grid; align-content: center; gap: 28px; padding-block: 48px; }
.nf-main .h1 { font-size: clamp(120px, 30vw, 420px); }
.nf-main p { margin: 0; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; max-width: 22em; }

