/* NorthWind Studio. White, airy and precise: Inter (as in Glidely), ink for the brand, one north blue for action. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-ext.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;
}

:root {
  --ink: #0f1115;
  --ink-2: #1b1e24;
  --text: #2a2e35;
  --muted: #5b616b;
  --faint: #868c96;
  --line: #e3e5e9;
  --line-2: #eef0f3;
  --bg: #fff;
  --soft: #f5f6f8;
  --soft-2: #eceef2;
  --blue: #1e56f0;
  --blue-d: #1645c9;
  --blue-50: #eef3ff;
  --blue-100: #dce6ff;
  --sky: #cfe0ff;
  --orange: #c2410c;
  --lime: #d2ef8a;
  --green: #15803d;
  --green-bright: #22c55e;
  --violet: #6b4eff;
  --amber: #f59e0b;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.eyebrow { display: inline-block; font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: clamp(2.625rem, 6.2vw, 4.75rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.048em; color: var(--ink); text-wrap: balance; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 650; line-height: 1.06; letter-spacing: -0.042em; color: var(--ink); text-wrap: balance; }
.h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.022em; color: var(--ink); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.center .lead { margin-inline: auto; }
.on-dark .h2, .on-dark .h3 { color: #fff; }
.on-dark .lead, .on-dark .eyebrow { color: #a8adb7; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg.go { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2e36; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9ecf1; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.8); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--blue); text-decoration: none;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow-link:hover svg { transform: translateX(3px); }
.on-dark .arrow-link { color: #9db7ff; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--soft); color: var(--muted);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: #e7f6ec; color: var(--green); }
.pill.wait { background: #fff4e5; color: #b45309; }
.pill.plain::before { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.3s;
}
.site-header.scrolled, .site-header.menu-open { box-shadow: 0 1px 0 var(--line); }
.nav { height: var(--header); display: flex; align-items: center; gap: 36px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 22px; width: auto; }
.menu { display: flex; align-items: center; gap: 2px; height: 100%; }
.menu > li { height: 100%; display: flex; align-items: center; }
.menu-link, .menu-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; text-decoration: none;
  font-size: 0.9688rem; font-weight: 500; color: var(--text); letter-spacing: -0.01em;
  transition: background-color 0.2s, color 0.2s;
}
.menu-link:hover, .menu-trigger:hover, .menu-trigger[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.menu-trigger svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.menu-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-trigger[aria-expanded="true"] { color: var(--blue); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(15, 17, 21, 0.22), 0 1px 0 var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s var(--ease), transform 0.3s var(--ease); }
.mega-grid { display: grid; grid-template-columns: 1.15fr 1fr 0.95fr; gap: 40px; padding-block: 32px 36px; }
.mega-h { margin: 0 0 14px 12px; font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.mega-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 12px;
  text-decoration: none; transition: background-color 0.2s;
}
.mega-item:hover { background: var(--soft); }
.mega-item b { display: block; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mega-item div > span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mega-item .tag { display: inline-block; margin: 0 0 0 6px; padding: 1px 7px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 0.6875rem; font-weight: 600; vertical-align: 1px; }
.mega-promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 200px; padding: 22px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.mega-promo b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.mega-promo span { font-size: 0.875rem; color: #a8adb7; }
.mega-promo .mark-bg { position: absolute; right: -54px; top: -46px; width: 200px; color: #1b1e24; }
.mega-promo > :not(.mark-bg) { position: relative; }
.mega-promo .arrow-link { color: #fff; margin-top: 6px; }

.icon-tile {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
  color: #fff; background: var(--ink);
}
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile.blue { background: var(--blue); }
.icon-tile.violet { background: var(--violet); }
.icon-tile.green { background: var(--green); }
.icon-tile.orange { background: #ea580c; }
.icon-tile.sky { background: #0284c7; }
.icon-tile.amber { background: var(--amber); }
.icon-tile.soft { background: var(--soft-2); color: var(--ink); }
.icon-tile.dashed { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1.5px var(--line); }
.g-tile { flex: none; width: 40px; height: 40px; border-radius: 10px; }
/* NorthWind tile and mark, drawn inline with the shared masks (#nw-cut, #nw-out) so they can take any colour */
.nw-tile { flex: none; color: var(--ink); }
.nw-tile .bg { fill: currentColor; }
.nw-tile .fg { fill: var(--tile-fg, #fff); stroke: var(--tile-fg, #fff); }
.nw-mark .fg { fill: currentColor; stroke: currentColor; }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.6px; margin: 5px auto; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header) 0 0; z-index: 59; overflow-y: auto;
  padding: 8px var(--gutter) 32px; background: #fff;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
.mobile-nav details, .mobile-nav > a.m-link { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav .m-link {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 4px;
  font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  list-style: none; cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.mobile-nav details[open] summary svg { transform: rotate(180deg); }
.mobile-nav details .mega-item { padding: 10px 4px; }
.mobile-nav details > div { padding-bottom: 12px; }
.mobile-nav .btn { width: 100%; margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); overflow: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 38%; width: 1400px; height: 900px; transform: translateX(-50%);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.announce {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 5px 14px 5px 5px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: box-shadow 0.2s;
}
.announce:hover { box-shadow: inset 0 0 0 1px var(--faint); }
.announce .tag { flex: none; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 0.75rem; font-weight: 600; }
.announce svg { width: 15px; height: 15px; color: var(--faint); }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
.hero .lead { max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 34px; }

/* The workbench: one panel, four scenes of how the studio works */
.bench {
  position: relative; margin-top: clamp(48px, 6vw, 72px);
  border-radius: 20px 20px 0 0; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -50px rgba(15, 17, 21, 0.35);
}
.bench::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, #fff); pointer-events: none; z-index: 3; }
.bench-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.bench-tabs::-webkit-scrollbar { display: none; }
.bench-tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 16px 15px; border: 0; background: none; cursor: pointer;
  font-size: 0.9688rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.2s;
}
.bench-tab svg { width: 18px; height: 18px; flex: none; }
.bench-tab:hover { color: var(--ink); }
.bench-tab[aria-selected="true"] { color: var(--blue); }
.bench-tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.bench-tab[aria-selected="true"]::after { transform: scaleX(1); }
.bench-tab .bar { position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; overflow: hidden; border-radius: 2px; opacity: 0; }
.bench-tab .bar::after { content: ""; position: absolute; inset: 0; background: var(--blue-100); transform-origin: right; transform: scaleX(1); }
[data-auto] .bench-tab[aria-selected="true"]::after { transform-origin: left; animation: fill var(--tab-time, 7s) linear forwards; }
[data-auto].paused .bench-tab[aria-selected="true"]::after { animation-play-state: paused; }
[data-auto] .bench-tab[aria-selected="true"] .bar { opacity: 1; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bench-stage { position: relative; height: clamp(440px, 46vw, 580px); }
.scene { position: absolute; inset: 0; }
.scene[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .scene:not([hidden]) { animation: scene-in 0.6s var(--ease); }
}
@keyframes scene-in { from { opacity: 0; transform: translateY(8px); } }

/* Scene: Design */
.scene-design { display: grid; grid-template-columns: 210px 1fr 250px; font-size: 0.8125rem; }
.sd-side { padding: 18px 14px; background: #fff; }
.sd-side.left { border-right: 1px solid var(--line); }
.sd-side.right { border-left: 1px solid var(--line); }
.sd-h { margin: 6px 8px 10px; font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.sd-h + ul, ul + .sd-h, .kv + .sd-h, .swatches + .sd-h { margin-top: 18px; }
.sd-side.left li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.sd-side.left li i { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.55; }
.sd-side.left li i.round { border-radius: 50%; }
.sd-side.left li.on { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.sd-side.left li.on i { opacity: 1; }
.kv { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 8px 10px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.kv b { font: 600 0.75rem/1.5 var(--mono); color: var(--ink); }
.swatches { display: flex; gap: 8px; padding: 0 2px; }
.swatches i { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.1); }
.sw-ink { background: var(--ink); }
.sw-paper { background: #f7f6f2; }
.sw-blue { background: var(--blue); }
.sw-lime { background: var(--lime); }
.sw-orange { background: var(--orange); }
.sd-canvas {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background-color: #f6f7f9; background-image: radial-gradient(#d5d9df 1px, transparent 1.2px); background-size: 20px 20px;
}
.sd-select { position: relative; margin-top: -40px; padding: 0; outline: 1.5px solid var(--blue); outline-offset: 10px; }
.sd-select > i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--blue); }
.sd-select > i:nth-of-type(1) { left: -15px; top: -15px; }
.sd-select > i:nth-of-type(2) { right: -15px; top: -15px; }
.sd-select > i:nth-of-type(3) { left: -15px; bottom: -15px; }
.sd-select > i:nth-of-type(4) { right: -15px; bottom: -15px; }
.sd-label { position: absolute; left: -11px; top: -38px; font-size: 0.75rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.sd-size { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); padding: 2px 8px; border-radius: 4px; background: var(--blue); color: #fff; font: 600 0.6875rem/1.6 var(--mono); white-space: nowrap; }
.ui-card { width: 320px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06), 0 14px 34px -14px rgba(15, 17, 21, 0.22); }
.ui-tags { display: flex; gap: 6px; }
.ui-tag { padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.ui-tag.blue { background: var(--blue-50); color: var(--blue); }
.ui-tag.orange { background: #fff1e8; color: var(--orange); }
.ui-title { margin: 12px 0 16px; font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.ui-progress { height: 6px; border-radius: 6px; background: var(--soft-2); overflow: hidden; }
.ui-progress span { display: block; width: 66%; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: left; }
.ui-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars b {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff; font-size: 0.6875rem; font-weight: 600; color: #fff; background: var(--ink);
}
.avatars b:nth-child(2) { background: var(--blue); }
.avatars b:nth-child(3) { background: #ea580c; }
.sd-cursor { position: absolute; left: 63%; top: 66%; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.sd-cursor svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }
.sd-cursor span { margin-top: 14px; padding: 3px 8px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .scene-design:not([hidden]) .sd-cursor { animation: wander 7s var(--ease-io) infinite; }
  .scene-design:not([hidden]) .ui-progress span { animation: grow 1.4s var(--ease) 0.3s both; }
}
@keyframes wander {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-150px, -70px); }
  55% { transform: translate(-60px, -150px); }
  80% { transform: translate(40px, -30px); }
}
@keyframes grow { from { transform: scaleX(0); } }

/* Scene: Build */
.scene-build { display: grid; grid-template-columns: 1.45fr 1fr; background: #0d1117; color: #c9d1d9; }
.sb-editor { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.sb-tabs { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 0.78rem/1 var(--mono); }
.sb-tabs span { padding: 14px 18px; color: #7d8590; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.sb-tabs span.on { color: #e6edf3; background: #161b22; box-shadow: inset 0 -2px 0 #4c8dff; }
.sb-code { padding: 22px 0; font: 0.95rem/1.95 var(--mono); counter-reset: ln; overflow: hidden; white-space: pre; }
.sb-code .l { display: block; padding-right: 24px; }
.sb-code .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 52px; padding-right: 22px; text-align: right; color: #3d444d; }
.sb-code .l.hl { background: rgba(56, 139, 253, 0.1); }
.k { color: #ff7b72; } .f { color: #d2a8ff; } .s { color: #a5d6ff; } .t { color: #7ee787; } .a { color: #79c0ff; } .p { color: #7d8590; } .v { color: #ffa657; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: #e6edf3; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sb-term { display: flex; flex-direction: column; min-width: 0; background: #0a0d12; }
.sb-term-bar { padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 0.78rem/1 var(--mono); color: #7d8590; }
.sb-term pre { padding: 22px 22px; font: 0.88rem/2.05 var(--mono); color: #c9d1d9; white-space: pre-wrap; }
.sb-term pre > span { display: block; }
.sb-term .dim { color: #7d8590; }
.sb-term .ok { color: #3fb950; }
@media (prefers-reduced-motion: no-preference) {
  .scene-build:not([hidden]) .sb-term pre > span { opacity: 0; animation: appear 0.3s var(--ease) forwards; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(1) { animation-delay: 0.3s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(2) { animation-delay: 0.9s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(3) { animation-delay: 1.3s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(4) { animation-delay: 1.8s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(5) { animation-delay: 2.4s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(6) { animation-delay: 3.2s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(7) { animation-delay: 3.8s; }
  .scene-build:not([hidden]) .sb-term pre > span:nth-child(8) { animation-delay: 4.8s; }
}
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Scene: Ship */
.scene-ship { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 32px clamp(20px, 4vw, 48px); background: var(--soft); }
.panel { padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ss-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ss-head b { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.ss-head span.sub { font-size: 0.875rem; color: var(--muted); }
.ss-head code { font: 0.8125rem var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--soft); color: var(--text); }
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.pipe li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pipe li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--line); }
.pipe li::after { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--green-bright); transform-origin: left; }
.pipe li:first-child::before, .pipe li:first-child::after { display: none; }
.pipe .pnode { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; background: var(--green-bright); color: #fff; }
.pipe .pnode svg { width: 18px; height: 18px; }
.pipe b { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.pipe span { font-size: 0.8125rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .scene-ship:not([hidden]) .pipe .pnode { animation: node-on 0.5s var(--ease) both; }
  .scene-ship:not([hidden]) .pipe li::after { animation: grow 0.6s var(--ease) both; }
  .scene-ship:not([hidden]) .pipe li:nth-child(1) .pnode { animation-delay: 0.3s; }
  .scene-ship:not([hidden]) .pipe li:nth-child(2)::after { animation-delay: 0.6s; }
  .scene-ship:not([hidden]) .pipe li:nth-child(2) .pnode { animation-delay: 1.1s; }
  .scene-ship:not([hidden]) .pipe li:nth-child(3)::after { animation-delay: 1.4s; }
  .scene-ship:not([hidden]) .pipe li:nth-child(3) .pnode { animation-delay: 1.9s; }
  .scene-ship:not([hidden]) .pipe li:nth-child(4)::after { animation-delay: 2.2s; }
  .scene-ship:not([hidden]) .pipe li:nth-child(4) .pnode { animation-delay: 2.7s; }
}
@keyframes node-on { from { background: var(--soft-2); color: transparent; transform: scale(0.8); } }
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.target { display: flex; align-items: center; gap: 14px; }
.target div { flex: 1; min-width: 0; }
.target b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.target span.sub { font-size: 0.8125rem; color: var(--muted); }

/* Scene: Run */
.scene-run { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 32px clamp(20px, 4vw, 48px); background: var(--soft); }
.sr-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.sr-title b { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.sr-title span { font-size: 0.8125rem; color: var(--muted); }
.sr-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.sr-list li:first-child { border-top: 0; }
.sr-list .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.sr-list .icon-tile svg { width: 17px; height: 17px; }
.sr-list div { flex: 1; min-width: 0; }
.sr-list b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.sr-list span { display: block; font-size: 0.8125rem; color: var(--muted); }
.toggle { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--blue); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
@media (prefers-reduced-motion: no-preference) {
  .scene-run:not([hidden]) .toggle { animation: tog-bg 0.4s var(--ease) both; }
  .scene-run:not([hidden]) .toggle::after { animation: tog-knob 0.4s var(--ease) both; animation-delay: inherit; }
  .scene-run:not([hidden]) .sr-list li:nth-child(1) .toggle { animation-delay: 0.4s; }
  .scene-run:not([hidden]) .sr-list li:nth-child(2) .toggle { animation-delay: 0.7s; }
  .scene-run:not([hidden]) .sr-list li:nth-child(3) .toggle { animation-delay: 1s; }
  .scene-run:not([hidden]) .sr-list li:nth-child(4) .toggle { animation-delay: 1.3s; }
  .scene-run:not([hidden]) .sr-list li:nth-child(5) .toggle { animation-delay: 1.6s; }
}
@keyframes tog-bg { from { background: var(--soft-2); } }
@keyframes tog-knob { from { left: 3px; } }
.sr-side { display: flex; flex-direction: column; gap: 20px; }
.sync-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.device { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.device svg { width: 18px; height: 18px; }
.wire { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.wire::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); animation: travel 2.4s var(--ease-io) infinite alternate; }
@keyframes travel { to { left: calc(100% - 8px); } }
.panel .note { font-size: 0.8125rem; color: var(--muted); }
.notif { display: flex; gap: 12px; align-items: flex-start; }
.notif .nw-mini { width: 36px; height: 36px; flex: none; border-radius: 9px; }
.notif div { flex: 1; min-width: 0; }
.notif b { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.notif b small { font-weight: 500; color: var(--faint); font-size: 0.75rem; }
.notif p { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Strip (capabilities, in the place a logo wall would go) ---------- */

.strip { padding-block: clamp(36px, 5vw, 56px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.strip ul { display: flex; flex: none; }
.strip li { display: flex; align-items: center; gap: 10px; padding-right: clamp(40px, 5vw, 72px); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: #7a808a; white-space: nowrap; }
.strip li svg { width: 22px; height: 22px; color: #9aa0a9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(88px, 11vw, 144px); }
.section.tight-top { padding-top: clamp(40px, 5vw, 64px); }
.section.soft { background: var(--soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .h2 + .lead { margin-top: 18px; }
.section-head .btn, .section-head .arrow-link { margin-top: 28px; }

/* Statement with "Design + Code" in place of big stats */
.duo { display: flex; align-items: flex-start; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
.duo figure { text-align: center; }
.duo strong { display: block; font-size: clamp(3.5rem, 11vw, 8.5rem); font-weight: 650; line-height: 1; letter-spacing: -0.06em; color: var(--ink); }
.duo figcaption { margin-top: 18px; font: 500 0.8125rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.duo .plus { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 300; line-height: 1.3; color: var(--blue); }
.footnote { max-width: 38rem; margin: 36px auto 0; font-size: 0.8125rem; color: var(--faint); text-align: center; }

/* Dark system section */
.dark { background: var(--ink); color: #c9ced6; }
.system { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.system .lead { margin: 18px 0 32px; }
.graph { position: relative; aspect-ratio: 5 / 4; }
.graph svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph .w { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; fill: none; }
.graph .pulse { stroke: #fff; stroke-width: 2; stroke-linecap: round; fill: none; stroke-dasharray: 0.02 0.98; stroke-dashoffset: 1; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .graph .pulse { animation: pulse 4.5s linear infinite; }
  .graph .pulse:nth-of-type(2n) { animation-duration: 5.5s; animation-delay: -2s; }
  .graph .pulse:nth-of-type(3n) { animation-duration: 6.5s; animation-delay: -4s; }
}
@keyframes pulse { to { stroke-dashoffset: 0; } }
.node, .chip-node { position: absolute; transform: translate(-50%, -50%); }
.node .icon-tile { width: clamp(38px, 4.2vw, 52px); height: clamp(38px, 4.2vw, 52px); border-radius: 14px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
.node .icon-tile svg { width: 45%; height: 45%; }
.node.hub { width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); }
.node.hub img, .node.hub svg { width: 100%; height: 100%; }
.node.hub::before { content: ""; position: absolute; inset: -14px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.12); }
.chip-node {
  padding: 5px 11px; border-radius: 8px; white-space: nowrap;
  background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  font: 500 clamp(0.6875rem, 1vw, 0.8125rem)/1.3 var(--mono); color: #e7e9ee;
}
/* positions match the wire coordinates (viewBox 500 x 400) */
.n-hub { left: 50%; top: 50%; }
.n-hub .nw-tile { color: #fff; --tile-fg: var(--ink); }
.n-design { left: 19%; top: 22.5%; }
.n-notify { left: 49%; top: 10%; }
.n-web { left: 80%; top: 17.5%; }
.n-android { left: 88%; top: 62.5%; }
.n-cloud { left: 66%; top: 86.25%; }
.n-security { left: 22%; top: 75%; }
.c-design { left: 33%; top: 37%; }
.c-push { left: 49.4%; top: 24%; }
.c-code { left: 65%; top: 33.75%; }
.c-sync { left: 69%; top: 56.25%; }
.c-edge { left: 58%; top: 68.5%; }
.c-pass { left: 35%; top: 62.5%; }
@media (prefers-reduced-motion: no-preference) {
  .node:not(.hub) { animation: bob 6s var(--ease-io) infinite alternate; }
  .node:nth-of-type(2n) { animation-delay: -3s; animation-duration: 7s; }
}
@keyframes bob { to { translate: 0 -6px; } }

/* Capabilities (four columns with icons) */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.cap svg.big { width: 34px; height: 34px; margin-bottom: 24px; color: var(--ink); }
.cap h3 { font-size: 1.375rem; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 0.9688rem; }
.cap ul { margin-top: 14px; }
.cap li { display: flex; gap: 8px; padding: 3px 0; font-size: 0.9063rem; color: var(--text); }
.cap li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--blue); }

/* Products: segmented tabs + panel */
.seg {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto clamp(40px, 5vw, 56px); padding: 5px;
  border-radius: 999px; background: var(--soft-2); overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  padding: 10px 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 0.9375rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.prod { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.prod[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .prod:not([hidden]) { animation: scene-in 0.6s var(--ease); }
}
.prod-name { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.prod-name .g-tile { width: 36px; height: 36px; border-radius: 9px; }
.prod-name small { font-weight: 500; color: var(--muted); }
.prod-feats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; }
.prod-feats li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.prod-feats svg { width: 17px; height: 17px; color: var(--blue); }
.prod .h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.prod p.desc { margin: 16px 0 26px; color: var(--muted); font-size: 1.0625rem; }
.prod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.prod-visual { position: relative; }
.frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(15, 17, 21, 0.4); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #fafafa; border-bottom: 1px solid var(--line-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe1e5; }
.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); }
.phone { width: min(44%, 250px); padding: 7px; border-radius: 36px; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(15, 17, 21, 0.55); }
.phone:nth-child(2) { margin-top: 48px; }
.phone-screen { position: relative; overflow: hidden; border-radius: 29px; background: #f6f6f6; aspect-ratio: 9 / 18.6; }
.phone-screen::before { content: ""; position: absolute; z-index: 1; top: 2.2%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); border-radius: 999px; background: var(--ink); }
.phone-screen img { position: absolute; left: 0; top: 5.5%; width: 100%; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: clamp(20px, 3vw, 36px); border-radius: 20px; background: var(--soft); }
.next-grid > div { aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.next-grid > div.empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; }
.next-grid > div.empty svg { width: 26px; height: 26px; color: var(--faint); }
.next-grid .g-tile, .next-grid .nw-tile { width: 46%; height: auto; border-radius: 22%; }

/* Principles: colourful cards in a scroller */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.carousel-head .section-head { margin-bottom: 0; }
.car-btns { display: flex; gap: 10px; flex: none; }
.car-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: #fff; transition: background-color 0.2s, opacity 0.2s;
}
.car-btn:hover { background: #2a2e36; }
.car-btn:disabled { background: var(--soft-2); color: var(--faint); cursor: default; }
.car-btn svg { width: 20px; height: 20px; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-bottom: 8px;
}
.track::-webkit-scrollbar { display: none; }
.pcard {
  flex: none; scroll-snap-align: start; display: flex; flex-direction: column;
  width: min(380px, 82vw); min-height: 420px; padding: 32px; border-radius: 20px;
  background: var(--sky); color: var(--ink); text-decoration: none;
  transition: transform 0.4s var(--ease);
}
.pcard:hover { transform: translateY(-4px); }
.pcard .eyebrow { color: inherit; opacity: 0.75; }
.pcard strong { display: block; margin: 28px 0 12px; font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 650; line-height: 1; letter-spacing: -0.055em; }
.pcard h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.pcard p { margin-top: 10px; font-size: 0.9688rem; opacity: 0.82; }
.pcard .more { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.pcard .more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.pcard:hover .more svg { transform: translateX(3px); }
.pcard.orange { background: var(--orange); color: #fff; }
.pcard.orange p, .pcard.ink p { opacity: 0.94; }
.pcard.lime { background: var(--lime); }
.pcard.ink { background: var(--ink); color: #fff; }

/* Closing band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 12vw, 152px); background: var(--ink); color: #c9ced6; text-align: center; }
.cta-band .mark-bg { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(760px, 120vw); transform: translate(-50%, -46%); color: #1a1d23; }
.cta-band .h2 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.cta-band .lead { margin: 18px auto 36px; max-width: 34rem; color: #a8adb7; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 40px 32px; }
.foot-panel { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--soft); }
.foot-brand img { height: 24px; width: auto; margin-bottom: 22px; }
.foot-brand p { max-width: 18rem; font-size: 0.9375rem; color: var(--muted); }
.foot-brand ul { margin-top: 22px; }
.foot-brand li a { font-weight: 600; color: var(--ink); }
.site-footer h4 { margin: 4px 0 18px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { font-size: 0.9375rem; color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.foot-panel .arrow-link { margin-top: 18px; font-size: 0.9375rem; white-space: nowrap; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px clamp(8px, 2vw, 24px) 0; font-size: 0.875rem; color: var(--muted); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Film dialog ---------- */

dialog.film { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
dialog.film::backdrop { background: rgba(15, 17, 21, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
dialog.film .close { position: absolute; top: -50px; right: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
dialog.film .close:hover { background: rgba(255, 255, 255, 0.24); }
.text-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink); }
.text-btn span.play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft-2); transition: background-color 0.2s; }
.text-btn:hover span.play { background: var(--blue-100); }
.text-btn svg { width: 12px; height: 12px; margin-left: 2px; }

/* ---------- Inner pages ---------- */

.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { max-width: 40rem; margin-top: 22px; }

.mission-band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(340px, 42vw, 520px); padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--ink); color: #fff; }
.mission-band .art { position: absolute; z-index: -1; right: clamp(-40px, 2vw, 40px); top: 50%; width: clamp(220px, 34vw, 440px); transform: translateY(-58%); color: #f5f6f8; overflow: visible; }
.mission-band p.eyebrow { color: #a8adb7; margin-bottom: 14px; }
.mission-band blockquote { margin: 0; max-width: 20ch; font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.04em; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px clamp(40px, 6vw, 96px); }
.prose p { font-size: 1.125rem; color: var(--text); }
.prose p + p { margin-top: 18px; }

.plist { border-top: 1px solid var(--line); }
.plist li { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.plist .eyebrow { padding-top: 8px; }
.plist h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.12; color: var(--ink); }
.plist p { color: var(--muted); padding-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.step .num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font: 600 0.875rem/1 var(--mono); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9688rem; }

.founder { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: 20px; background: var(--soft); max-width: 560px; }
.soft .founder { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.founder .ava { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; }
.founder b { display: block; font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.founder span { display: block; color: var(--muted); margin: 2px 0 10px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow 0.3s, transform 0.4s var(--ease); }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(15, 17, 21, 0.28); }
.ccard .icon-tile { margin-bottom: 18px; }
.ccard p { color: var(--muted); font-size: 0.9688rem; }
.ccard .arrow-link { margin-top: auto; padding-top: 14px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.studio-card { padding: 28px; border-radius: 20px; background: var(--ink); color: #c9ced6; }
.studio-card img { height: 22px; width: auto; margin-bottom: 26px; }
.studio-card dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.studio-card dt { font: 500 0.6875rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8b919b; }
.studio-card dd { text-align: right; font-weight: 600; font-size: 0.9375rem; color: #fff; }
.studio-card a { text-decoration: none; }
.studio-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 44rem; }
.faq a { color: var(--blue); }

.doc .wrap { max-width: calc(760px + var(--gutter) * 2); }
.doc h2 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text); font-size: 1.0313rem; }
.doc p + p { margin-top: 14px; }
.doc ul { list-style: disc; padding-left: 1.25em; margin-top: 12px; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--blue); text-underline-offset: 3px; }

.lost { min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); text-align: center; background: var(--ink); color: #c9ced6; }
.lost svg { width: 88px; height: 88px; margin: 0 auto 32px; color: #fff; transform: rotate(135deg); }
.lost h1 { font-size: clamp(2.75rem, 8vw, 5rem); font-weight: 650; letter-spacing: -0.05em; color: #fff; line-height: 1; margin-bottom: 14px; }
.lost p { margin-bottom: 32px; color: #a8adb7; }

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .strip-track, .wire::after, .graph .pulse, .caret { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .menu, .nav-right .btn { display: none; }
  .burger { display: block; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-design { grid-template-columns: 180px 1fr; }
  .sd-side.right { display: none; }
}

@media (max-width: 860px) {
  .system, .prod, .split, .contact-layout { grid-template-columns: 1fr; }
  .graph { max-width: 560px; margin-inline: auto; width: 100%; }
  .prod-visual { order: -1; }
  .plist li { grid-template-columns: 1fr; gap: 8px; }
  .scene-design { grid-template-columns: 1fr; }
  .sd-side.left { display: none; }
  .scene-build { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .sb-editor { border-right: 0; }
  .sb-term pre { padding-block: 12px; line-height: 1.8; }
  .sb-term-bar { display: none; }
  .scene-run { grid-template-columns: 1fr; overflow: hidden; }
  .sr-side .panel.notif-card { display: none; }
  .targets { grid-template-columns: 1fr; gap: 12px; }
  .target:nth-child(n + 3) { display: none; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .caps, .steps, .contact-grid { grid-template-columns: 1fr; }
  .foot-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cta .btn { width: 100%; }
  .announce { font-size: 0.8125rem; text-align: left; }
  .bench-tabs { padding: 0 6px; }
  .bench-tab { padding-inline: 12px; }
  .bench-tab svg { display: none; }
  .bench-stage { height: 470px; }
  .ui-card { width: 260px; }
  .sb-code { font-size: 0.76rem; }
  .sb-term pre { font-size: 0.8rem; }
  .sb-code .l::before { width: 36px; padding-right: 14px; }
  .scene-ship, .scene-run { padding: 20px 16px; }
  .pipe span { display: none; }
  .duo { gap: 14px; }
  .founder { flex-direction: column; align-items: flex-start; }
  .mission-band { min-height: 420px; }
  .mission-band .art { top: 30%; right: 0; width: 170px; }
  .studio-card dl div { flex-direction: column; gap: 4px; }
  .studio-card dd { text-align: left; }
}
