/* ==========================================================================
   theme.css — "Terminal-grade" · white sections + dark cinematic hero
   Near-black ink · acid-lime (#c6f24e) punch · huge tight grotesk ·
   mono numbered labels · floating pill nav (dark over hero, light over body).
   ========================================================================== */

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #0d0d0d; }

/* ------------------------------------------------------------------ tokens */
:root {
  /* light canvas */
  --bg:      #ffffff;
  --bg-2:    #f6f6f4;   /* soft gray band */
  --card:    #f4f4f2;   /* card surface */
  --card-2:  #ececeae0; /* (reserved) */
  --card-2:  #eaeae7;   /* elevated */
  --line:    #e6e6e2;
  --line-2:  #d7d7d2;

  /* dark hero */
  --dark:      #0a0a0b;
  --dark-2:    #131315;
  --on-dark:   #f4f4f2;
  --on-dark-dim: #a6a7ab;
  --dark-line: rgba(255,255,255,0.12);

  /* ink */
  --ink:   #0d0d0d;
  --dim:   #55565a;
  --muted: #8a8b8f;

  /* accent — acid lime */
  --accent:     #c6f24e;
  --accent-hi:  #d4f96b;
  --accent-ink: #0d0d0d;

  /* fonts */
  --display: 'Archivo', system-ui, -apple-system, sans-serif;
  --body:    'Archivo', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* type scale — big & tight */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   clamp(26px, 3vw, 40px);
  --fs-h2:   clamp(34px, 6.4vw, 88px);
  --fs-h1:   clamp(46px, 9vw, 140px);

  /* space */
  --pad-x:   clamp(20px, 4vw, 60px);
  --section: clamp(80px, 11vw, 168px);
  --max-w:   1280px;

  /* shadow */
  --sh-sm: 0 2px 10px -6px rgba(13,13,13,0.14);
  --sh-md: 0 24px 50px -30px rgba(13,13,13,0.30);

  /* motion */
  --ease:  cubic-bezier(.22,1,.36,1);
  --t-fast: 180ms;
  --t-base: 360ms;
}

/* ------------------------------------------------------------------ base */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.aurora { display: none; }

.wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.0; letter-spacing: -.03em; color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 400; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; transform: translateY(-180%); transition: transform var(--t-fast); }
.skip-link:focus { transform: none; }

.readout { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.grad { color: var(--accent); }

/* opening loader — dark, matches hero */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--dark); transition: opacity .55s var(--ease), visibility .55s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; place-items: center; gap: 20px; }
.loader-word { font-family: var(--display); font-weight: 800; font-size: clamp(22px,4vw,30px); letter-spacing: -.03em; color: var(--on-dark); }
.loader-word b { color: var(--accent); }
.loader-bar { width: 180px; height: 2px; background: rgba(255,255,255,0.14); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 45%; background: var(--accent); border-radius: 2px; animation: loaderbar 1s var(--ease) infinite; }
@keyframes loaderbar { 0% { transform: translateX(-130%); } 100% { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) { .loader-bar i { animation: none; width: 100%; } }

/* ------------------------------------------------------------------ topbar (floating pill) */
.topbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1240px, calc(100% - 28px));
  display: flex; align-items: center; gap: 14px;
  padding: 9px 9px 9px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.93);
  box-shadow: var(--sh-sm);
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base), color var(--t-base);
}
/* dark mode over the hero */
.topbar.nav-dark { background: rgba(11,11,13,0.82); border-color: var(--dark-line); box-shadow: none; }
.brand { display: flex; align-items: center; font-family: var(--display); font-size: var(--fs-md); font-weight: 800; letter-spacing: -.03em; color: var(--ink); transition: color var(--t-base); }
.brand b { color: var(--ink); }
.topbar.nav-dark .brand { color: var(--on-dark); }

.topbar-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 8px; }
.topbar-nav a { position: relative; padding: 9px 14px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--dim); transition: color var(--t-fast), background var(--t-fast); }
.topbar-nav a:hover { color: var(--ink); background: var(--card); }
.topbar-nav a.is-active { color: var(--ink); }
.topbar.nav-dark .topbar-nav a { color: var(--on-dark-dim); }
.topbar.nav-dark .topbar-nav a:hover { color: var(--on-dark); background: rgba(255,255,255,0.08); }
.topbar.nav-dark .topbar-nav a.is-active { color: var(--on-dark); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.btn-demo { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 11px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--line-2); transition: transform var(--t-fast), background var(--t-fast); }
.btn-demo:hover { transform: translateY(-1px); }
.btn-contact { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 11px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; background: var(--accent); color: var(--accent-ink); transition: transform var(--t-fast), background var(--t-fast); }
.btn-contact:hover { background: var(--accent-hi); transform: translateY(-1px); }

.menu-toggle { display: none; }

/* ------------------------------------------------------------------ inline icons */
.ico { width: 17px; height: 17px; flex: none; }
.ico-sm { width: 15px; height: 15px; flex: none; }
.btn .arrow svg, .box svg, .arrow-out svg { display: block; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 13px; font-family: var(--display); font-weight: 600; font-size: var(--fs-base); transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.btn .arrow { display: inline-flex; align-items: center; justify-content: center; transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding-right: 10px; }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn-primary .arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(13,13,13,0.14); font-size: 15px; line-height: 1; }
.btn-primary:hover .arrow { transform: translate(3px,-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
/* ghost on the dark hero */
.hero .btn-ghost { border-color: var(--dark-line); color: var(--on-dark); }
.hero .btn-ghost:hover { border-color: var(--on-dark); }

/* ------------------------------------------------------------------ hero (dark cinematic) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 96px; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(90% 70% at 60% 55%, #101210 0%, var(--dark) 70%); }
#sonar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; display: none;
  background: radial-gradient(60% 60% at 50% 40%, #17181c 0%, var(--dark) 70%); }
.no-webgl .hero-fallback { display: block; }
.no-webgl #sonar-canvas { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, transparent 30%, rgba(10,10,11,0.5) 100%); }

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 26px; }
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero-eyebrow .ping { display: none; }

.hero-title { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.045em; line-height: .92; margin: 0; color: var(--on-dark); }
.hero-title .l { display: block; overflow: hidden; }
.hero-title .l > span { display: inline-block; opacity: 0; transform: translateY(112%); animation: heroLine .95s cubic-bezier(.16,1,.3,1) forwards; }
.hero-title .l:nth-child(1) > span { animation-delay: .12s; }
.hero-title .l:nth-child(2) > span { animation-delay: .26s; }
.hero-title .grad { color: var(--accent); }
@keyframes heroLine { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-title .l > span { opacity: 1; transform: none; animation: none; } }

.hero-lede { max-width: 60ch; margin-top: 28px; font-size: var(--fs-md); color: var(--on-dark-dim); line-height: 1.6; }
.hero-lede b { color: var(--on-dark); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

.hero-stats { display: none; }

.hero-scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-dim); }
.hero-scroll svg { width: 12px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.4; }
.hero-scroll svg path { animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0%,100% { transform: translateY(0); opacity:.5; } 50% { transform: translateY(3px); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll svg path { animation: none; } }

/* ------------------------------------------------------------------ tape */
.tape { border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg); }
.tape-track { display: inline-flex; gap: 44px; white-space: nowrap; animation: slide 46s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: .02em; color: var(--dim); white-space: nowrap; }
.tape-item img { width: 22px; height: 22px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

/* ------------------------------------------------------------------ section frame */
.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head .lead { max-width: 60%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: var(--fs-h2); letter-spacing: -.04em; line-height: .98; }
.section-title em { color: var(--muted); font-style: normal; }
.section-sub { color: var(--dim); font-size: var(--fs-md); margin-top: 16px; max-width: 42ch; }

/* ------------------------------------------------------------------ products */
.products { display: grid; gap: 20px; }
.product { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: 22px; background: var(--card); overflow: hidden; transition: background var(--t-base), transform var(--t-base); }
.product:hover { background: var(--card-2); transform: translateY(-3px); }
.product-body { padding: clamp(28px, 3.2vw, 50px); display: flex; flex-direction: column; }
.product-flag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-flag b { color: var(--ink); font-weight: 600; }
.product .kicker { font-family: var(--mono); font-size: var(--fs-sm); color: var(--dim); margin-top: 22px; }
.product h3 { font-size: clamp(28px, 3.4vw, 46px); margin: 6px 0 0; letter-spacing: -.03em; }
.product p { color: var(--dim); margin-top: 16px; max-width: 46ch; line-height: 1.6; }
.product .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .03em; padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--dim); }
.tag img { width: 15px; height: 15px; }
.product-links { margin-top: auto; padding-top: 30px; }
.product-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); transition: gap var(--t-fast); }
.product-link:hover { gap: 14px; }
.product-link .box { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); transition: transform var(--t-fast); }
.product-link:hover .box { transform: translate(2px,-2px); }

.product-visual { position: relative; min-height: 280px; background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 3vw, 46px); gap: 14px; overflow: hidden; }
/* soft ambient glow (no grid lines) */
.product-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 78% 30%, rgba(198,242,78,0.10) 0%, transparent 60%); transition: opacity var(--t-base); }
.product:hover .product-visual::before { opacity: 1.6; }
.conf-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 14px; }
.conf-row .lab { font-family: var(--mono); font-size: var(--fs-xs); color: var(--on-dark-dim); }
.conf-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.10); overflow: hidden; }
.conf-row .bar i { display: block; height: 100%; width: var(--w, 80%); border-radius: 6px; background: var(--accent); }
.conf-row.low .bar i { background: #6b6f74; }
.conf-row .val { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }
.conf-row.low .val { color: var(--on-dark-dim); }
.product-visual .readout { color: var(--on-dark-dim); }
.product-visual .glyph { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 8vw, 116px); letter-spacing: -.05em; line-height: .9; color: var(--on-dark);
  transform: translateY(var(--py, 0px)); transition: color var(--t-base), text-shadow var(--t-base); will-change: transform; }
.product:hover .product-visual .glyph { color: var(--accent); text-shadow: 0 0 40px rgba(198,242,78,0.45); }
.product-visual .glyph-sub { position: relative; z-index: 1; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-dim); margin-top: 8px; transform: translateY(var(--py2, 0px)); }

/* ------------------------------------------------------------------ builds grid */
.builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.build { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 18px; background: var(--card); transition: transform var(--t-base), background var(--t-base); }
.build:hover { transform: translateY(-5px); background: var(--card-2); }
.build-top { display: flex; align-items: center; justify-content: space-between; }
.build-num { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.build-glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; background: var(--ink); color: #fff; }
.build h3 { font-size: var(--fs-lg); margin-top: 20px; letter-spacing: -.02em; }
.build p { color: var(--dim); font-size: var(--fs-sm); margin-top: 9px; flex: 1; line-height: 1.55; }
.build-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.build .arrow-out { position: absolute; top: 26px; right: 26px; color: var(--muted); transition: color var(--t-fast), transform var(--t-fast); }
.build:hover .arrow-out { color: var(--ink); transform: translate(3px,-3px); }

/* ------------------------------------------------------------------ tech stack — architecture layers */
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; background: #fff; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.chip img { width: 20px; height: 20px; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }

/* animated request-flow diagram */
.flow { display: flex; align-items: center; justify-content: center; padding: 150px 0; }
.flow-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 15px; flex: 0 0 auto; outline: none; }
.node-box { width: 104px; height: 104px; background: var(--card); display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: transform .3s var(--ease), background .3s, filter .3s; }
.node-box svg { width: 40px; height: 40px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.flow-node:hover .node-box, .flow-node:focus-visible .node-box { transform: translateY(-6px); background: var(--ink); filter: drop-shadow(0 16px 22px rgba(13,13,13,.26)); }
.flow-node:hover .node-box svg, .flow-node:focus-visible .node-box svg { stroke: var(--accent); }
.node-label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.flow-node:hover .node-label { color: var(--ink); }

.flow-wire { flex: 1 1 auto; min-width: 22px; max-width: 104px; height: 104px; position: relative; }
.flow-wire::before { content: ""; position: absolute; top: 51px; left: 2px; right: 2px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 11px); }
.flow-wire::after { content: ""; position: absolute; top: 47px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(198,242,78,.6); animation: flowpulse 3s linear infinite; }
.flow-wire:nth-of-type(4)::after { animation-delay: .4s; }
.flow-wire:nth-of-type(6)::after { animation-delay: .8s; }
.flow-wire:nth-of-type(8)::after { animation-delay: 1.2s; }
.flow-wire:nth-of-type(10)::after { animation-delay: 1.6s; }
@keyframes flowpulse { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
/* pause off-screen animations for scroll performance */
.tape.is-paused .tape-track, .flow.is-paused .flow-wire::after { animation-play-state: paused; }

/* tech labels shown permanently, alternating above / below each node */
.node-tech { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 7px; width: max-content; max-width: 224px; justify-content: center; }
.flow-node.is-up .node-tech { bottom: calc(100% + 28px); }
.flow-node.is-down .node-tech { top: calc(100% + 28px); }
/* thin connector from the hexagon to its label group */
.node-tech::before { content: ""; position: absolute; left: 50%; width: 1.5px; height: 20px; background: var(--line-2); }
.flow-node.is-up .node-tech::before { top: 100%; }
.flow-node.is-down .node-tech::before { bottom: 100%; }
.pchip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 6px 10px; border-radius: 9px; white-space: nowrap; transition: border-color var(--t-fast), transform var(--t-fast); }
.pchip:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pchip img { width: 16px; height: 16px; }
.pchip svg { width: 15px; height: 15px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .flow-wire::after { animation: none; opacity: 0; } }

@media (max-width: 860px) {
  .flow { flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0; }
  .flow-wire { display: none; }
  .flow-node { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; background: var(--card); border-radius: 18px; }
  .node-box { width: 56px; height: 56px; flex: none; }
  .node-box svg { width: 26px; height: 26px; }
  .flow-node:hover .node-box { transform: none; background: var(--bg-2); filter: none; }
  .flow-node:hover .node-box svg { stroke: var(--ink); }
  .node-label { display: none; }
  .node-tech { position: static; transform: none; max-width: none; justify-content: flex-start; }
  .flow-node.is-up .node-tech, .flow-node.is-down .node-tech { top: auto; bottom: auto; }
  .node-tech::before { display: none; }
  .pchip { background: var(--bg-2); }
}

/* ------------------------------------------------------------------ experience */
.tl { display: grid; }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 60px); padding: 42px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--display); font-size: var(--fs-xl); color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.tl-period { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .05em; margin-top: 8px; text-transform: uppercase; }
.tl-role { font-size: var(--fs-lg); letter-spacing: -.02em; }
.tl-role .co { color: var(--muted); }
.tl-list { margin-top: 16px; display: grid; gap: 9px; }
.tl-list li { position: relative; padding-left: 22px; color: var(--dim); font-size: var(--fs-sm); line-height: 1.55; }
.tl-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

/* ------------------------------------------------------------------ skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 46px; }
.skill-group h4 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.skill { margin-bottom: 16px; }
.skill-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.skill-head .name { font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.skill-head .lvl { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.skill-bar { height: 6px; border-radius: 6px; background: var(--card); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); }

/* ------------------------------------------------------------------ approach */
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.approach-cell { background: var(--card); border-radius: 18px; padding: 34px; transition: transform var(--t-base), background var(--t-base); }
.approach-cell:hover { transform: translateY(-4px); background: var(--card-2); }
.approach-cell .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); margin-bottom: 22px; }
.approach-cell .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.approach-cell h3 { font-size: var(--fs-lg); letter-spacing: -.02em; }
.approach-cell p { color: var(--dim); font-size: var(--fs-sm); margin-top: 10px; line-height: 1.55; }

/* ------------------------------------------------------------------ CTA */
.cta { text-align: center; padding: clamp(90px, 13vw, 190px) 0; background: var(--dark); color: var(--on-dark); }
.cta .eyebrow { justify-content: center; color: var(--on-dark-dim); }
.cta-title { font-size: var(--fs-h2); letter-spacing: -.04em; max-width: 20ch; margin: 20px auto 0; color: var(--on-dark); line-height: .98; }
.cta-title .grad { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin-top: 40px; }
.cta-mail { font-family: var(--mono); font-size: var(--fs-sm); color: var(--on-dark-dim); border-bottom: 1px solid var(--dark-line); padding-bottom: 3px; transition: color var(--t-fast), border-color var(--t-fast); }
.cta-mail:hover { color: var(--accent); border-color: var(--accent); }
.cta-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 34px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--on-dark-dim); }
.cta-meta a:hover { color: var(--accent); }
.cta-meta .sep { color: var(--dark-line); }

/* ------------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding: 66px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { color: var(--muted); font-size: var(--fs-sm); margin-top: 16px; max-width: 32ch; line-height: 1.55; }
.foot-col h5 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--dim); font-size: var(--fs-sm); padding: 5px 0; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------------------------ reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ------------------------------------------------------------------ interior pages */
.page-hero { padding: 190px 0 40px; }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -.045em; font-weight: 700; line-height: .92; }
.page-hero .grad { color: var(--accent); }
.page-hero p { color: var(--dim); font-size: var(--fs-md); max-width: 58ch; margin-top: 24px; line-height: 1.6; }

.prose { max-width: 64ch; }
.prose p { color: var(--dim); font-size: var(--fs-md); margin-top: 22px; line-height: 1.7; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }

.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.about-facts.contact-card { }
.about-facts .row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.about-facts .row:first-child { border-top: 0; padding-top: 0; }
.about-facts .row .k { color: var(--muted); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.about-facts .row .v { color: var(--ink); text-align: right; font-weight: 500; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-base); transition: border-color var(--t-fast); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 150px; }
.contact-card { border-radius: 20px; background: var(--card); padding: 34px; }
.contact-card h3 { font-size: var(--fs-lg); margin-bottom: 8px; letter-spacing: -.02em; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .box { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--ink); }
.contact-row .box svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.contact-row .k { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-row .v { color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.contact-row a.v:hover { color: var(--muted); }

/* ------------------------------------------------------------------ mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--dark); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--pad-x); opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: clamp(38px, 11vw, 68px); font-weight: 800; letter-spacing: -.04em; color: var(--on-dark); padding: 6px 0; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-foot { position: absolute; bottom: 40px; left: var(--pad-x); font-family: var(--mono); font-size: var(--fs-xs); color: var(--on-dark-dim); text-transform: uppercase; letter-spacing: .06em; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 940px) {
  .product { grid-template-columns: 1fr; }
  .product-visual { min-height: 210px; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .stack-row { grid-template-columns: 1fr; gap: 14px; }
  .section-head .lead { max-width: 100%; }
}
@media (max-width: 760px) {
  .topbar-nav { display: none; }
  .btn-demo { display: none; }
  .topbar-right { margin-left: auto; }
  .menu-toggle { display: block; position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
  .topbar.nav-dark .menu-toggle { background: rgba(255,255,255,0.08); border-color: var(--dark-line); }
  .menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
  .topbar.nav-dark .menu-toggle span { background: var(--on-dark); }
  .menu-toggle span:nth-child(1) { top: 18px; }
  .menu-toggle span:nth-child(2) { top: 24px; }
  .menu-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  :root { --fs-h1: clamp(38px, 12.5vw, 92px); }
  .hero { align-items: center; padding: 130px 0 90px; }
  .hero-title { letter-spacing: -.03em; }
  .hero-title .l span { white-space: normal; }
  .btn { padding: 13px 20px; }
  .arch-layer { grid-template-columns: 1fr; gap: 16px; }
  .arch-layer::before { display: none; }
  .product-body { padding: 26px 22px; }
  .section-head { margin-bottom: 40px; }
  .brand { font-size: var(--fs-base); }
}
