/* ==========================================================================
   Codinnov — codinnov.gr
   ========================================================================== */

@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-greek.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  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;
}

:root {
  --bg: #0a0613;
  --bg-2: #110b1e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f2fb;
  --muted: #a89fbe;
  --faint: #6f6788;

  --purple: #7c5cd6;
  --magenta: #d4449a;
  --orange: #ff6247;
  --grad: linear-gradient(100deg, #9b7bff 0%, #e04ca3 52%, #ff7a4d 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--magenta); color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Background ambience ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; will-change: transform; }
.blob--1 { width: 560px; height: 560px; background: #5b3bb8; top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.blob--2 { width: 480px; height: 480px; background: #b8317f; top: 80px; right: -160px; animation: drift2 26s ease-in-out infinite alternate; }
.blob--3 { width: 380px; height: 380px; background: #d9492f; top: 520px; left: 35%; opacity: .22; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, 120px) scale(.9); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 6, 19, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 20px; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-stretch: 110%; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }
.lang:hover { color: var(--text); border-color: var(--border-strong); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); background: var(--text); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); background: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 16px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(224, 76, 163, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(224, 76, 163, .8); }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
}
.eyebrow .pulse { position: relative; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #3ee08f; }
.eyebrow .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ee08f; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); margin: 22px 0 22px; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Slot-machine word swap: the old word exits upward, then the new one rises in.
   The gradient lives on each word (not the parent): background-clip:text on a parent
   breaks while its children animate on their own compositor layers. */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; margin-bottom: -.18em; background: none; color: inherit; }
.rotator > span {
  grid-area: 1 / 1; padding-bottom: .18em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(110%);
  transition: transform .55s var(--ease), opacity .3s ease;
}
.rotator > span.is-active { opacity: 1; transform: none; transition-delay: .3s; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-110%); transition: transform .32s cubic-bezier(.55, 0, .8, .2), opacity .22s ease .08s; }
.rotator > span.is-reset { transition: none; }

/* Agent console */
.console {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 18, 44, .9), rgba(14, 9, 25, .92));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(91, 59, 184, .55), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(155,123,255,.7), transparent 40%, transparent 60%, rgba(255,122,77,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console-bar b { margin-left: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint); }
.console-body { padding: 20px 20px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; min-height: 318px; }
.console-body .ln { display: flex; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.console-body .ln.show { opacity: 1; transform: none; }
.c-prompt { color: var(--orange); }
.c-cmd { color: var(--text); }
.c-str { color: #f7a9d3; }
.c-ok { color: #3ee08f; }
.c-dim { color: var(--faint); }
.c-val { color: #b9a4ff; }
.console-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); font-family: var(--font); }
.console-foot .meter { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.console-foot .meter i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.console-foot small { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--text); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 18px; font-weight: 700; color: var(--faint); white-space: nowrap; letter-spacing: -.01em; }
.marquee-track span::before { content: "◆"; margin-right: 56px; color: rgba(255,255,255,.12); font-size: 10px; vertical-align: 3px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.section h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin: 18px 0 0; }

/* Cards (spotlight) */
.card {
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(155, 123, 255, .14), transparent 45%);
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; }
.bento .card--wide { grid-column: span 3; }
.bento .card--feature {
  grid-column: span 4; grid-row: span 2;
  background: linear-gradient(160deg, rgba(124, 92, 214, .22), rgba(212, 68, 154, .1) 45%, rgba(255, 255, 255, .03));
  border-color: rgba(155, 123, 255, .3);
}
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.icon svg { width: 24px; height: 24px; stroke: url(#g-icon); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; letter-spacing: -.015em; margin-bottom: 10px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card--feature h3 { font-size: clamp(26px, 3vw, 34px); }
.card--feature p { font-size: 17px; max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; list-style: none; padding-left: 0; margin-bottom: 0; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--muted); }

.flow { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow div { position: relative; padding: 14px 12px; border-radius: var(--radius-sm); background: rgba(10, 6, 19, .55); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.flow div b { display: block; font-family: var(--mono); font-size: 11px; color: var(--orange); font-weight: 600; margin-bottom: 4px; }
.flow div:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; z-index: 1; }

/* Work grid */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work .card { display: flex; flex-direction: column; min-height: 260px; }
.work .sector { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.work .sector i { width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.work .stat { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; border-top: 1px solid var(--border); }
.work .card > p { margin-bottom: 26px; }
.work .stat strong { white-space: nowrap; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.work .stat span { font-size: 14px; color: var(--muted); line-height: 1.35; }

/* AI principles split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.principles { display: grid; gap: 14px; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.principle .num { font-family: var(--mono); font-size: 14px; font-weight: 600; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface-2); }
.principle h3 { font-size: 21px; margin: 8px 0 8px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: -16px; height: 2px; background: var(--border); }
.step:last-child::before { right: 0; }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--magenta); }
.step .when { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.step h3 { font-size: 22px; margin: 10px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.process.is-visible .step::before { background: linear-gradient(90deg, var(--magenta), var(--border)); }

/* CTA / Contact */
.contact-wrap {
  position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden;
  border: 1px solid rgba(155,123,255,.28);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(124, 92, 214, .35), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(255, 98, 71, .22), transparent 60%),
    var(--bg-2);
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px);
}
.contact-wrap h2 { font-size: clamp(34px, 4.6vw, 54px); }
.contact-wrap .lead { color: var(--muted); font-size: 18px; margin: 18px 0 32px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact-list svg { width: 20px; height: 20px; flex: none; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.contact-list a:hover { border-color: var(--orange); }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(10, 6, 19, .6); border: 1px solid var(--border-strong);
  transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 92, 214, .25); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 14px; font-weight: 600; margin-bottom: 9px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; user-select: none; }
.chip span:hover { color: var(--text); }
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--faint); margin: 2px 0 0; }
.form-note a { text-decoration: underline; }
.form-status { font-size: 15px; font-weight: 600; min-height: 1.4em; margin: 0; }
.form-status.ok { color: #3ee08f; }
.form-status.err { color: #ff8a73; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 36px; margin-top: clamp(72px, 10vw, 120px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top p { color: var(--muted); max-width: 340px; margin: 14px 0 0; font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 72px); }
.footer-cols h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a { color: var(--muted); font-size: 15px; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Legal / text pages ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0 0; }
.page h1 { font-size: clamp(38px, 6vw, 64px); margin: 18px 0 16px; }
.prose { max-width: 780px; }
.prose > p:first-of-type { color: var(--muted); font-size: 19px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; letter-spacing: -.015em; }
.prose p, .prose li { color: #d6d0e4; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.facts { width: 100%; border-collapse: collapse; margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 16px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; color: var(--muted); font-weight: 500; background: var(--surface); }
.facts td { font-weight: 600; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: clamp(96px, 18vw, 200px); font-weight: 900; line-height: 1; letter-spacing: -.05em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .contact-wrap { grid-template-columns: 1fr; }
  .split .section-head { position: static; margin-bottom: 8px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--wide { grid-column: span 1; }
  .bento .card--feature { grid-column: span 2; grid-row: auto; }
  .work { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::before { right: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 6, 19, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav-links a { display: block; padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-links a:hover { background: none; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(10, 6, 19, .97); }
  .nav-actions .btn { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento, .work, .process { grid-template-columns: 1fr; }
  .bento .card--feature { grid-column: span 1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow div:nth-child(2)::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .console-body { font-size: 12px; min-height: 290px; padding: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .form .btn { justify-self: stretch; }
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: 4px; }
  .facts td { padding-top: 4px; }
  .blob { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 24px; }
  .marquee-track span::before { display: none; }
  .marquee-track span[aria-hidden] { display: none; }
}
