/* Jay Luhar — design system v2 (dark-first) */

:root {
  --bg: #0A0A0B;
  --bg-2: #101012;
  --card: #141416;
  --card-2: #1A1A1D;
  --line: #242427;
  --line-2: #34343A;
  --fg: #F3F2EF;
  --fg-2: #C9C8C4;
  --muted: #8E8D93;
  --acc: #FF5B22;
  --acc-hover: #FF7443;
  --acc-text: #FF7C4D;
  --acc-fg: #0A0A0B;
  --acc-soft: rgba(255, 91, 34, .12);
  --acc-line: rgba(255, 91, 34, .35);
  --ok: #3DD68C;
  --err: #FF6B5E;
  --grid-line: rgba(255, 255, 255, .045);
  color-scheme: dark;

  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --t-xxl: clamp(3rem, 1.2rem + 7.4vw, 8.25rem);
  --t-xl: clamp(2.7rem, 1.5rem + 4.9vw, 6rem);
  --t-l: clamp(2rem, 1.35rem + 2.7vw, 3.6rem);
  --t-m: clamp(1.35rem, 1.15rem + .8vw, 1.8rem);
  --t-body: 1.0625rem;
  --t-sm: .9375rem;
  --t-xs: .8125rem;
  --t-mono: .75rem;

  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(80px, 10vw, 150px);
  --r-lg: 24px;
  --r: 16px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --hdr: 72px;
}

:root[data-theme="light"] {
  --bg: #F5F4F0;
  --bg-2: #EEECE6;
  --card: #FFFFFF;
  --card-2: #F9F8F5;
  --line: #E2DFD7;
  --line-2: #CFCBC0;
  --fg: #0E0E10;
  --fg-2: #3B3B40;
  --muted: #6B6A71;
  --acc: #F0501A;
  --acc-hover: #D9430F;
  --acc-text: #BF3B0B;
  --acc-fg: #0E0E10;
  --acc-soft: rgba(240, 80, 26, .09);
  --acc-line: rgba(240, 80, 26, .35);
  --ok: #178A4F;
  --err: #C0352B;
  --grid-line: rgba(14, 14, 16, .055);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: var(--t-body);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }
::selection { background: var(--acc); color: var(--acc-fg); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.sec { padding-block: var(--sec) 0; }
.muted { color: var(--muted); }
.acc { color: var(--acc-text); }
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--acc); color: var(--acc-fg); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.lbl {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.lbl::before { content: ""; width: 18px; height: 1px; background: var(--acc); flex: none; }
.idx { font-family: var(--mono); font-size: var(--t-mono); color: var(--acc-text); letter-spacing: .06em; }
.t-xxl, .t-xl, .t-l, .t-m { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
.t-xxl { font-size: var(--t-xxl); line-height: .92; }
.t-xl { font-size: var(--t-xl); line-height: .96; }
.t-l { font-size: var(--t-l); line-height: 1.02; letter-spacing: -.03em; }
.t-m { font-size: var(--t-m); line-height: 1.12; letter-spacing: -.02em; }
.t-xxl .acc, .t-xl .acc, .t-l .acc { color: var(--acc); }
.t-l .dim, .t-xl .dim { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.3rem); line-height: 1.55; color: var(--fg-2); max-width: 62ch; }
.body-l { font-size: 1.125rem; color: var(--fg-2); }

/* ---------- buttons ---------- */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: var(--h);
  padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; letter-spacing: -.005em;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-acc { background: var(--acc); color: var(--acc-fg); }
.btn-acc:hover { background: var(--acc-hover); }
.btn-line { border-color: var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 500; text-decoration: none; color: var(--fg);
  padding-bottom: 3px; background: linear-gradient(var(--acc), var(--acc)) 0 100% / 0 1px no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease), color .2s;
}
.link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover { background-size: 100% 1px, 100% 1px; color: var(--acc-text); }
.link:hover .ico { transform: translateX(3px); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-row { height: var(--hdr); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.06em;
}
.logo-mark i { font-style: normal; color: var(--acc); }
.logo-text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; letter-spacing: -.02em; }
.logo-text small { font-family: var(--mono); font-size: .62rem; font-weight: 400; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 60%, transparent); }
.nav a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: .875rem; color: var(--fg-2); font-weight: 500; transition: background-color .2s, color .2s; }
.nav a:hover { color: var(--fg); background: var(--card-2); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--fg); }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--line-2); background: var(--card-2); }
.icon-btn .ico { width: 18px; height: 18px; }
.ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hdr-actions { margin-left: auto; }
}
@media (max-width: 560px) { .hdr-cta { display: none; } .logo-text small { display: none; } }

.mnav { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.mnav-in { min-height: 100%; display: flex; flex-direction: column; gap: 24px; padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px); }
.mnav-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1.15; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav nav a span { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.mnav nav a[aria-current="page"] { color: var(--acc); }
.mnav .btn { margin-top: auto; }
html.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, var(--acc-soft), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 26px 0 28px; font-size: clamp(2.9rem, 1.1rem + 5.1vw, 6.2rem); }
.hero .lead { margin-bottom: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-facts div { padding: 16px 16px 0 0; }
.hero-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts dt { font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.hero-facts dd { font-weight: 500; font-size: var(--t-sm); }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-viz { max-width: 520px; margin-inline: auto; } }

.hero-viz { position: relative; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.sys { width: 100%; aspect-ratio: 1; height: auto; overflow: visible; }
.sys .glow { opacity: .7; }
.sys .dial { fill: none; stroke: var(--line-2); stroke-width: 7; stroke-dasharray: 1.2 11.2; }
.sys .dial.major { stroke: var(--muted); stroke-width: 12; stroke-dasharray: 1.6 137.7; opacity: .7; }
.sys .ringtext { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; fill: var(--muted); }
.sys .track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.sys .inner { fill: none; stroke: var(--line); stroke-width: 1; }
.sys .particle { fill: var(--acc); filter: drop-shadow(0 0 6px var(--acc)); }
.sys .particle.p2 { opacity: .6; }
.sys .beam { stroke: var(--line-2); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; transition: stroke .4s; }
.sys .beam.on { stroke: var(--acc); stroke-width: 2.2; stroke-dasharray: 8 8; animation: flow 1.1s linear infinite; }
.sys .core { fill: var(--acc); }
.sys .core-ring { fill: none; stroke: var(--acc-line); stroke-width: 1.5; stroke-dasharray: 3 5; transform-origin: 280px 280px; animation: spin 24s linear infinite; }
.sys .sonar { fill: none; stroke: var(--acc); stroke-width: 1.5; transform-origin: 280px 280px; animation: sonar 3.6s cubic-bezier(.2,.6,.3,1) infinite; opacity: 0; }
.sys .sonar.s2 { animation-delay: 1.8s; }
.sys .core-tag { fill: color-mix(in srgb, var(--acc-fg) 70%, var(--acc)); font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; }
.sys .core-verb { fill: var(--acc-fg); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; transition: opacity .25s; }
.sys.swap .core-verb { opacity: 0; }
.sys .node { cursor: pointer; }
.sys .node rect { fill: var(--card); stroke: var(--line-2); stroke-width: 1; transition: fill .35s var(--ease), stroke .35s; }
.sys .node .sub { fill: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; transition: fill .35s; }
.sys .node .lab { fill: var(--fg); font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; transition: fill .35s; }
.sys .node .led { fill: var(--line-2); transition: fill .35s; }
.sys .node:hover rect { stroke: var(--acc-line); }
.sys .node.on rect { fill: var(--acc); stroke: var(--acc); }
.sys .node.on .lab { fill: var(--acc-fg); }
.sys .node.on .sub { fill: color-mix(in srgb, var(--acc-fg) 70%, var(--acc)); }
.sys .node.on .led { fill: var(--acc-fg); }
.sys .spin-slow { transform-origin: 280px 280px; animation: spin 90s linear infinite; }
.sys .spin-rev { transform-origin: 280px 280px; animation: spin 70s linear infinite reverse; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sonar { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.3); opacity: 0; } }
.sys-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.sys-key { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font-size: var(--t-xs); font-weight: 600; color: var(--fg-2); overflow: hidden; transition: background-color .3s, color .3s; }
.sys-key span { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: .7rem; }
.sys-key:hover { color: var(--fg); background: var(--card-2); }
.sys-key.on { background: var(--fg); color: var(--bg); }
.sys-key.on span { color: var(--acc); }
.sys-key i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--acc); }
.sys-key.on i { animation: fill-bar var(--cycle, 3.6s) linear forwards; }
[data-sys].paused .sys-key.on i { animation: none; width: 100%; }
@keyframes fill-bar { to { width: 100%; } }
.sys-caption { margin: 0; min-height: 3.2em; font-size: var(--t-sm); color: var(--fg-2); text-align: center; max-width: 46ch; margin-inline: auto; }
.sys-caption b { color: var(--fg); font-weight: 600; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) {
  .sys .spin-slow, .sys .spin-rev, .sys .core-ring, .sys .sonar, .sys .beam.on { animation: none; }
  .sys .particle { display: none; }
  .sys-key.on i { animation: none; width: 100%; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); }
.proof-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 26px; }
.proof-row .lbl { line-height: 1.5; }
.orgs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
.orgs li { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); letter-spacing: -.02em; color: var(--fg-2); white-space: nowrap; }
.orgs li small { font-family: var(--mono); font-weight: 400; font-size: .7rem; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
@media (max-width: 760px) { .proof-row { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- kpis ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.kpi { background: var(--bg); padding: clamp(22px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.kpi b { font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 2rem + 2.8vw, 4.5rem); line-height: 1; letter-spacing: -.05em; font-variation-settings: "opsz" 96; }
.kpi b span { color: var(--acc); }
.kpi p { margin: auto 0 0; color: var(--fg-2); font-size: var(--t-sm); line-height: 1.5; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .kpis { grid-template-columns: 1fr; } .kpi { min-height: 0; } }

/* ---------- section head ---------- */
.shd { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.shd h2 { margin-top: 18px; }
.shd p { margin: 0; color: var(--fg-2); font-size: 1.1rem; max-width: 52ch; }
.shd.solo { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 860px) { .shd { grid-template-columns: 1fr; } }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 96px); }
.statement .t-l { max-width: 20ch; margin-top: 18px; }
.statement .body-l p { margin-bottom: 1.1em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.pair div { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: var(--card); }
.pair div:last-child { border-color: var(--acc-line); background: var(--acc-soft); }
.pair .idx { display: block; margin-bottom: 10px; }
.pair b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; color: var(--fg); }
.pair p { margin: 8px 0 0; font-size: var(--t-sm); color: var(--fg-2); }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }

/* ---------- bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.b-card {
  grid-column: span 4; position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-decoration: none; min-height: 290px;
  overflow: hidden; transition: border-color .3s, transform .4s var(--ease);
}
.b-card:hover { border-color: var(--acc-line); transform: translateY(-3px); }
.b-card.w7 { grid-column: span 7; }
.b-card.w5 { grid-column: span 5; }
.b-card.w12 { grid-column: span 12; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 24px 40px; }
.b-card h3 { font-family: var(--display); font-size: clamp(1.55rem, 1.25rem + 1vw, 2.15rem); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.b-card p { margin: 0; color: var(--fg-2); font-size: var(--t-sm); max-width: 48ch; }
.b-card .chips { margin-top: auto; }
.b-card .go { position: absolute; top: clamp(22px, 2.6vw, 32px); right: clamp(22px, 2.6vw, 32px); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .35s var(--ease); }
.b-card .go .ico { width: 16px; height: 16px; }
.b-card:hover .go { background: var(--acc); border-color: var(--acc); color: var(--acc-fg); transform: rotate(45deg); }
.b-card.w12 .go { position: static; }
.b-card.w12 .chips { margin-top: 0; }
.b-card.feature { background: linear-gradient(160deg, var(--card-2), var(--card)); }
.b-card.feature::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, var(--acc-soft), transparent 70%); pointer-events: none; }
.b-card ul.mini { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 4px; }
.b-card ul.mini li { font-size: var(--t-sm); color: var(--fg-2); display: flex; gap: 8px; }
.b-card ul.mini li::before { content: "→"; color: var(--acc-text); }
@media (max-width: 1000px) { .b-card, .b-card.w7, .b-card.w5 { grid-column: span 6; } .b-card.w12 { grid-template-columns: 1fr; } .b-card.w12 .go { position: absolute; } }
@media (max-width: 640px) { .b-card, .b-card.w7, .b-card.w5 { grid-column: span 12; min-height: 0; } .b-card ul.mini { grid-template-columns: 1fr; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: var(--t-xs); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }

/* ---------- process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 30px 24px 8px 0; position: relative; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--acc); transition: width 1.1s var(--ease); }
.process.in li::before { width: 100%; }
.process li:nth-child(2)::before { transition-delay: .15s; }
.process li:nth-child(3)::before { transition-delay: .3s; }
.process li:nth-child(4)::before { transition-delay: .45s; }
.process h3 { font-family: var(--display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); letter-spacing: -.03em; margin: 14px 0 10px; }
.process p { color: var(--fg-2); font-size: var(--t-sm); margin: 0 0 16px; }
.process .out { font-size: var(--t-xs); color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.process .out b { color: var(--fg); font-weight: 500; display: block; margin-top: 4px; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: var(--t-sm); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } .process li:nth-child(3) { padding-left: 0; border-left: 0; } .process li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } .process li, .process li + li { padding-left: 0; border-left: 0; } .process li + li { border-top: 1px solid var(--line); } }

/* ---------- rows ---------- */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows-head, .row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 24px; }
.rows-head { padding: 0 0 12px; font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.row { align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.row:hover { background: linear-gradient(90deg, transparent, var(--acc-soft) 50%, transparent); }
.row h3 { font-family: var(--display); font-size: clamp(1.25rem, 1.12rem + .55vw, 1.65rem); letter-spacing: -.025em; line-height: 1.1; }
.row p { margin: 0; color: var(--fg-2); font-size: var(--t-sm); }
.row .meta { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-xs); color: var(--muted); }
.row .meta b { color: var(--fg); font-weight: 500; font-size: var(--t-sm); }
.row .btn { justify-self: end; }
@media (max-width: 900px) {
  .rows-head { display: none; }
  .row { grid-template-columns: 36px 1fr; gap: 8px 14px; align-items: start; }
  .row > :nth-child(n+3) { grid-column: 2; }
  .row .btn { justify-self: start; margin-top: 6px; }
}

/* ---------- principle band ---------- */
.band { background: var(--fg); color: var(--bg); padding-block: var(--sec); margin-top: var(--sec); }
.band .lbl { color: color-mix(in srgb, var(--bg) 55%, var(--fg)); }
.band .t-xl { max-width: 15ch; margin-top: 22px; }
.band .t-xl .acc { color: var(--acc); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid color-mix(in srgb, var(--bg) 18%, var(--fg)); }
.principles div { padding: 26px 26px 0 0; }
.principles div + div { padding-left: 26px; border-left: 1px solid color-mix(in srgb, var(--bg) 18%, var(--fg)); }
.principles b { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 8px; }
.principles p { margin: 0; font-size: var(--t-sm); color: color-mix(in srgb, var(--bg) 72%, var(--fg)); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles div + div { padding-left: 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, var(--fg)); margin-top: 22px; } }

/* ---------- page head ---------- */
.phd { position: relative; padding-block: clamp(48px, 7vw, 110px) clamp(24px, 3vw, 40px); overflow: hidden; }
.phd::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.phd .wrap { position: relative; }
.phd h1 { margin: 24px 0 26px; max-width: 17ch; }
.phd .lead { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump a { font-size: var(--t-sm); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--fg-2); transition: all .2s; }
.jump a:hover { border-color: var(--acc); color: var(--fg); }

/* ---------- prose ---------- */
.prose { font-size: 1.1rem; line-height: 1.72; color: var(--fg-2); }
.prose p { margin-bottom: 1.15em; }
.prose h2 { font-family: var(--display); font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.08; color: var(--fg); margin: 1.9em 0 .6em; }
.prose h3 { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; color: var(--fg); margin: 1.6em 0 .45em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--acc-text); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--acc-text); }
.prose blockquote { margin: 1.8em 0; padding: 22px 26px; border-radius: var(--r); background: var(--acc-soft); border: 1px solid var(--acc-line); font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; color: var(--fg); }
.prose .lead-p { font-size: 1.3rem; color: var(--fg); line-height: 1.5; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 96px); }
.split .aside-in { position: sticky; top: calc(var(--hdr) + 32px); }
.split .aside-in h2 { margin-top: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .aside-in { position: static; } }

.facts { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.facts dt { color: var(--muted); font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; flex: none; }
.facts dd { text-align: right; font-weight: 500; }

.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.market { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--card); display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.market .code { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -.05em; color: var(--acc); }
.market h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; }
.market p { margin: 0; color: var(--fg-2); font-size: var(--t-sm); }
.market .when { margin-top: auto; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line-2); }
.market.soft { border-style: dashed; background: transparent; }
.market.soft .code { color: var(--muted); }
@media (max-width: 980px) { .markets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .markets { grid-template-columns: 1fr; } .market { min-height: 0; } }

.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.cert { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: var(--t-sm); color: var(--fg); font-weight: 500; }
.cert small { color: var(--muted); font-family: var(--mono); font-size: var(--t-mono); margin-top: 3px; font-weight: 400; }

/* ---------- services ---------- */
.svc { padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(28px, 6vw, 96px); }
.svc-head .in { position: sticky; top: calc(var(--hdr) + 32px); }
.svc-head h2 { font-family: var(--display); font-size: clamp(2.1rem, 1.5rem + 2.3vw, 3.4rem); letter-spacing: -.035em; line-height: 1; margin: 16px 0 18px; }
.svc-head .thesis { font-size: 1.15rem; color: var(--fg-2); max-width: 34ch; margin: 0; }
.svc-head .first { margin-top: 24px; padding: 16px 18px; border-radius: var(--r); background: var(--acc-soft); border: 1px solid var(--acc-line); font-size: var(--t-sm); }
.svc-head .first span { display: block; font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--acc-text); margin-bottom: 4px; }
.svc-head .first a { font-weight: 600; text-decoration: none; }
.svc-head .first a:hover { text-decoration: underline; }
.svc-body > p { color: var(--fg-2); font-size: 1.1rem; margin-bottom: 28px; }
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--card); }
.block.wide { grid-column: 1 / -1; }
.block h3 { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: var(--t-sm); color: var(--fg-2); line-height: 1.45; }
.checks .ico { width: 16px; height: 16px; color: var(--acc-text); margin-top: 3px; }
.checks.cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.xlist { list-style: none; display: grid; gap: 10px; }
.xlist li { font-size: var(--t-sm); color: var(--fg-2); padding-left: 22px; position: relative; line-height: 1.45; }
.xlist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--muted); }
.svc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } .svc-head .in { position: static; } }
@media (max-width: 600px) { .blocks { grid-template-columns: 1fr; } .checks.cols { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--fg), var(--fg)) center / 12px 1.5px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 1.5px 12px no-repeat;
  transition: transform .3s var(--ease), border-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--acc); }
.faq details p { color: var(--fg-2); margin: 0; padding: 0 52px 26px 0; max-width: 70ch; }

/* ---------- cases ---------- */
.cases { display: grid; gap: 16px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 3.5vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.case h2 { font-family: var(--display); font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.7rem); line-height: 1.03; letter-spacing: -.035em; margin: 14px 0 0; }
.case .facts { margin-top: 24px; }
.case-steps { display: grid; gap: 22px; align-content: start; }
.case-steps h3 { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.case-steps h3 span { color: var(--acc-text); }
.case-steps p { margin: 0; color: var(--fg-2); }
.case-steps ul { padding-left: 1.1em; color: var(--fg-2); }
.case-steps li { margin-bottom: 4px; }
.case-steps li::marker { color: var(--acc-text); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.tl { list-style: none; }
.tl-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: 34px 0; border-top: 1px solid var(--line); }
.tl-year { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.3rem); line-height: 1; letter-spacing: -.05em; position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
.tl-year small { display: block; font-family: var(--mono); font-weight: 400; font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); margin-top: 10px; }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; }
.role + .role { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line-2); }
.role h3 { font-family: var(--display); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); letter-spacing: -.025em; line-height: 1.15; }
.role .org { color: var(--fg-2); margin-top: 4px; font-weight: 500; }
.role .when { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); text-align: right; white-space: nowrap; padding-top: 6px; line-height: 1.7; }
.role .when span { display: block; }
.role > p, .role > ul { grid-column: 1 / -1; }
.role > p { color: var(--fg-2); font-size: var(--t-sm); margin: 12px 0 0; }
.role > ul:not(.chips) { color: var(--fg-2); font-size: var(--t-sm); padding-left: 1.1em; margin-top: 12px; }
.role > ul:not(.chips) li { margin-bottom: 5px; }
.role > ul:not(.chips) li::marker { color: var(--acc-text); }
.role > .chips { margin-top: 16px; }
.role.now { background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: var(--r-lg); padding: 24px 26px; }
@media (max-width: 760px) {
  .tl-item { grid-template-columns: 1fr; gap: 14px; }
  .tl-year { position: static; }
  .role { grid-template-columns: 1fr; }
  .role .when { text-align: left; white-space: normal; }
  .role .when span { display: inline; }
  .role .when span + span::before { content: " · "; }
}

.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.matrix > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--card); }
.matrix h3 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; margin: 10px 0 16px; }
@media (max-width: 900px) { .matrix { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .matrix { grid-template-columns: 1fr; } }

/* ---------- posts ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.fchip { font: inherit; font-size: var(--t-sm); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--fg-2); transition: all .2s; }
.fchip:hover { border-color: var(--fg); color: var(--fg); }
.fchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-decoration: none; min-height: 320px; transition: border-color .3s, transform .4s var(--ease), background-color .3s; }
.post:hover { border-color: var(--acc-line); transform: translateY(-3px); }
.post .idx { font-size: var(--t-xs); }
.post h3 { font-family: var(--display); font-size: clamp(1.45rem, 1.25rem + .7vw, 1.85rem); line-height: 1.08; letter-spacing: -.03em; }
.post p { margin: 0; color: var(--fg-2); font-size: var(--t-sm); }
.post .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.post .foot .ico { width: 18px; height: 18px; color: var(--fg); transition: transform .3s var(--ease); }
.post:hover .foot .ico { transform: translateX(4px); color: var(--acc); }
.post.feature { grid-column: span 2; background: var(--acc); border-color: var(--acc); color: var(--acc-fg); }
.post.feature h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); max-width: 17ch; }
.post.feature p, .post.feature .idx, .post.feature .foot, .post.feature .foot .ico, .post.feature:hover .foot .ico { color: color-mix(in srgb, var(--acc-fg) 80%, var(--acc)); }
.post.feature .foot { border-color: color-mix(in srgb, var(--acc-fg) 25%, var(--acc)); }
.post.feature:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
.cat-grid div { border-top: 2px solid var(--line-2); padding-top: 16px; }
.cat-grid b { display: block; font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 6px; }
.cat-grid p { font-size: var(--t-sm); color: var(--fg-2); margin: 0; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr 1fr; } .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .post.feature { grid-column: auto; } .post { min-height: 0; } .cat-grid { grid-template-columns: 1fr 1fr; } }

.art-head { position: relative; padding-block: clamp(40px, 6vw, 88px) 36px; }
.art-head h1 { margin: 22px 0 22px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: var(--t-sm); color: var(--muted); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline b { color: var(--fg); font-weight: 600; display: block; }
.art-body { padding-bottom: 8px; }
.author { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); margin-top: 52px; }
.author .logo-mark { width: 48px; height: 48px; font-size: 1.2rem; flex: none; }
.author p { margin: 6px 0 12px; color: var(--fg-2); font-size: var(--t-sm); }

/* ---------- CTA ---------- */
.cta { padding-block: var(--sec); }
.cta-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding: clamp(28px, 5vw, 64px); border-radius: 28px; border: 1px solid var(--line); background: var(--card); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; left: -10%; bottom: -60%; width: 70%; height: 120%; background: radial-gradient(ellipse, var(--acc-soft), transparent 65%); pointer-events: none; }
.cta-copy { position: relative; }
.cta-copy h2 { margin: 20px 0; }
.cta-copy h2 .acc { color: var(--acc); }
.cta-copy p { color: var(--fg-2); margin: 0; max-width: 52ch; }
.cta-actions { position: relative; display: grid; gap: 10px; }
.cta-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line-2); text-decoration: none; background: var(--bg); transition: border-color .25s, transform .3s var(--ease), background-color .25s; }
.cta-link:hover { border-color: var(--fg); transform: translateX(3px); }
.cta-link b { display: block; font-weight: 600; }
.cta-link small { display: block; font-size: var(--t-xs); color: var(--muted); }
.cta-link.is-primary { background: var(--acc); border-color: var(--acc); color: var(--acc-fg); }
.cta-link.is-primary small { color: color-mix(in srgb, var(--acc-fg) 72%, var(--acc)); }
.cta-link.is-primary:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-side .in { position: sticky; top: calc(var(--hdr) + 32px); display: grid; gap: 12px; }
.c-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card); }
.c-card .ico { color: var(--acc-text); }
.c-card h2 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; margin: 12px 0 6px; }
.c-card p { font-size: var(--t-sm); color: var(--fg-2); margin: 0 0 14px; }
.c-card ol { padding-left: 1.2em; font-size: var(--t-sm); color: var(--fg-2); display: grid; gap: 8px; }
.c-card ol li::marker { color: var(--acc-text); font-family: var(--mono); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-side .in { position: static; } }

.form { border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 44px); background: var(--card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-sm); font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-size: var(--t-xs); }
.field .err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--t-sm); color: var(--fg-2); background: var(--bg); transition: all .2s; }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--fg-2); font-weight: 400 !important; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--acc); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-foot p { margin: 0; font-size: var(--t-xs); color: var(--muted); max-width: 40ch; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: var(--t-sm); }
.form-status.bad { background: color-mix(in srgb, var(--err) 12%, transparent); border: 1px solid color-mix(in srgb, var(--err) 45%, transparent); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-done { text-align: center; padding: clamp(36px, 7vw, 72px) 16px; }
.form-done .tick { width: 60px; height: 60px; border-radius: 50%; background: var(--acc); color: var(--acc-fg); display: grid; place-items: center; margin: 0 auto 22px; }
.form-done .tick .ico { width: 28px; height: 28px; }
.form-done h2 { font-family: var(--display); font-size: 2.4rem; letter-spacing: -.03em; margin-bottom: 10px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.ftr-big { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.ftr-line { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.ftr-line span { color: var(--muted); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; }
.ftr-brand p { color: var(--fg-2); font-size: var(--t-sm); margin: 18px 0 0; max-width: 32ch; }
.ftr-h { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.ftr ul { list-style: none; display: grid; gap: 10px; font-size: var(--t-sm); }
.ftr ul a { text-decoration: none; color: var(--fg-2); }
.ftr ul a:hover { color: var(--acc-text); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); font-family: var(--mono); }
.ftr-bottom p { margin: 0; }
.ftr-bottom a { color: inherit; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.notice { font-size: var(--t-sm); color: var(--muted); border-left: 2px solid var(--acc); padding-left: 14px; }
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf .t-xxl { font-size: clamp(7rem, 22vw, 16rem); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > *:nth-child(2) { transition-delay: .07s; }
.js [data-stagger].in > *:nth-child(3) { transition-delay: .14s; }
.js [data-stagger].in > *:nth-child(4) { transition-delay: .21s; }
.js [data-stagger].in > *:nth-child(5) { transition-delay: .28s; }
.js [data-stagger].in > *:nth-child(6) { transition-delay: .35s; }
.js [data-stagger].in > *:nth-child(n+7) { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .process li::before { width: 100%; transition: none; }
}
@media print {
  .hdr, .mnav, .ftr, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (min-width: 640px) { .keep { white-space: nowrap; } }
.hero-viz { container-type: inline-size; }
@container (max-width: 440px) { .sys-key span { display: none; } .sys-key { font-size: .75rem; padding: 10px 2px; } }
