/* ================================================
   KAIROX — site.css  ·  Consulting redesign (2026-11-22)
   Ink + paper, one signal colour (the orange of the logo dot),
   Inter Tight + JetBrains Mono, hairline rules.
   Dark sections: hero, method, contact, footer.
   Token names are shared with css/legal.css.
   ================================================ */

:root {
  /* Surfaces */
  --paper:        #FFFFFF;
  --paper-2:      #F5F5F2;
  --card:         #FFFFFF;
  --night:        #08090C;
  --night-2:      #101217;
  --night-3:      #181B22;

  /* Text */
  --ink:          #0B0D12;
  --text:         #1B1E24;
  --text-2:       #4D535E;
  --muted:        #737985;
  --on-night:     #ECEDEF;
  --on-night-2:   #A0A6B1;
  --on-night-3:   #6D7380;

  /* Lines */
  --line:         rgba(11, 13, 18, .10);
  --line-strong:  rgba(11, 13, 18, .22);
  --line-night:   rgba(236, 237, 239, .10);
  --line-night-2: rgba(236, 237, 239, .20);

  /* Accent */
  --signal:       #EE5420;
  --signal-ink:   #B43E0E;           /* AA on paper for small text */
  --signal-soft:  rgba(238, 84, 32, .12);
  --ok:           #3FB27F;

  /* Type */
  --font:   'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-d: var(--font);
  --font-m: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Shape & motion */
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(11, 13, 18, .04), 0 8px 24px rgba(11, 13, 18, .06);
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --nav-h:     68px;
  --gutter:    24px;
  --max:       1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0 0 1em; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Labels: mono, uppercase, with the signal dot */
.label, .mx-label, .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-m); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label::before, .mx-label::before, .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262A33; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.dark .btn-primary, .on-dark .btn-primary { background: #fff; color: var(--ink); }
.dark .btn-primary:hover, .on-dark .btn-primary:hover { background: #E2E4E8; }
.dark .btn-ghost { border-color: var(--line-night-2); color: var(--on-night); }
.dark .btn-ghost:hover { border-color: var(--on-night); }

.mx-link, .link { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease); }
.mx-link:hover, .link:hover { background-size: 0 1px; background-position: 100% 100%; }
.dark .link { color: var(--on-night); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .bm-bg { fill: var(--ink); transition: fill .3s; }
.brand-mark .bm-k { stroke: #F4F1EA; transition: stroke .3s; }
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub { font-weight: 400; color: var(--muted); letter-spacing: -.01em; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(11, 13, 18, .05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; cursor: pointer; font-family: var(--font-m); font-size: .72rem; font-weight: 500; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.lang-btn.active { background: var(--ink); color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 18px; height: 18px; }

/* Nav over dark sections */
.nav.on-dark { background: rgba(8, 9, 12, .72); color: var(--on-night); }
.nav.on-dark.scrolled { border-bottom-color: var(--line-night); }
.nav.on-dark .brand { color: #fff; }
.nav.on-dark .brand-mark .bm-bg { fill: #F4F1EA; }
.nav.on-dark .brand-mark .bm-k { stroke: var(--ink); }
.nav.on-dark .brand-sub { color: var(--on-night-2); }
.nav.on-dark .nav-links a { color: var(--on-night-2); }
.nav.on-dark .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav.on-dark .lang { border-color: var(--line-night-2); }
.nav.on-dark .lang-btn { color: var(--on-night-2); }
.nav.on-dark .lang-btn.active { background: #fff; color: var(--ink); }
.nav.on-dark .nav-toggle { border-color: var(--line-night-2); color: #fff; }

/* ---------- Sections ---------- */
.sec, .mx-sec { padding: 128px 0; position: relative; }
.sec-tight { padding: 88px 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--night); color: var(--on-night-2); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .label, .dark .mx-label { color: var(--on-night-2); }

.h-xl { font-size: clamp(2.6rem, 5.2vw, 4.7rem); letter-spacing: -.04em; line-height: 1; font-weight: 600; }
.h-lg, .sec h2, .mx-sec h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -.035em; line-height: 1.04; }
.h-lg em, .sec h2 em, .mx-sec h2 em, .h-xl em { font-style: normal; color: var(--muted); }
.dark .h-lg em, .dark h2 em, .dark .h-xl em { color: var(--on-night-3); }
.lead, .mx-lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--text-2); max-width: 640px; }
.dark .lead { color: var(--on-night-2); }

.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 64px; align-items: end; margin-bottom: 72px; }
.sec-head .label { margin-bottom: 22px; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 1.06rem; }
.dark .sec-head p { color: var(--on-night-2); }

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

/* =================================================
   HERO
   ================================================= */
.hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -360px; background: radial-gradient(circle, rgba(238, 84, 32, .16), rgba(238, 84, 32, 0) 62%); pointer-events: none; }
.hero h1 { margin: 26px 0 32px; max-width: 16ch; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: space-between; align-items: end; gap: 32px 64px; margin-bottom: 64px; }
.hero .lead { margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 96px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-night); }
.hero-facts li { padding: 26px 24px 30px 0; font-size: .92rem; line-height: 1.45; color: var(--on-night-2); }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line-night); }
.hero-facts b { display: block; color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 4px; letter-spacing: -.01em; }

/* Flow panel */
.flow { position: relative; border: 1px solid var(--line-night-2); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); padding: 24px; }
.flow-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); grid-template-rows: auto 1fr; grid-template-areas: "head stage" "log stage"; column-gap: 40px; }
.flow-head { grid-area: head; padding-top: 6px; }
.flow-k { margin: 0; font-family: var(--font-m); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); }
.flow-k span:first-child { color: var(--signal); }
.flow-h { margin: 10px 0 0; color: #fff; font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.flow-stage { grid-area: stage; min-width: 0; min-height: 410px; display: grid; align-items: center; }
.flow .chat { display: none; }
.flow.is-chat .chat { display: flex; align-self: stretch; }
.flow.is-chat .fx { display: none; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.flow-tabs { position: relative; display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-night); }
.flow-tab { flex: none; white-space: nowrap; border: 0; background: transparent; color: var(--on-night-2); font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.flow-tabs::-webkit-scrollbar { display: none; }
.flow-tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.flow-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-m); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); }
.flow-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 178, 127, .6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(63, 178, 127, .55); } 70% { box-shadow: 0 0 0 8px rgba(63, 178, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 178, 127, 0); } }

.fx { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.1fr) 44px minmax(0, 1fr); grid-template-rows: repeat(3, auto); row-gap: 18px; align-items: center; }
.fx-node { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-night-2); background: var(--night-2); color: var(--on-night); font-size: .88rem; line-height: 1.25; font-weight: 500; transition: border-color .4s, background .4s, opacity .3s; }
.fx-node i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--on-night-3); transition: background .4s; }
.fx-out i { border-radius: 50%; }
.fx-node.hot { border-color: rgba(238, 84, 32, .55); background: #1A1410; }
.fx-node.hot i { background: var(--signal); }
.fx-in.i1 { grid-area: 1 / 1; } .fx-in.i2 { grid-area: 2 / 1; } .fx-in.i3 { grid-area: 3 / 1; }
.fx-out.o1 { grid-area: 1 / 5; } .fx-out.o2 { grid-area: 2 / 5; } .fx-out.o3 { grid-area: 3 / 5; }
.fx-w { position: relative; height: 72px; }
.fx-w::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, var(--line-night-2), rgba(236, 237, 239, .28)); }
.fx-w::after { content: ""; position: absolute; top: calc(50% - 3px); left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px 2px rgba(238, 84, 32, .55); animation: pkt-x 1.8s linear infinite; animation-delay: var(--dl, 0s); opacity: 0; }
@keyframes pkt-x { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.fx-w.wi1 { grid-area: 1 / 2; } .fx-w.wi2 { grid-area: 2 / 2; --dl: .6s; } .fx-w.wi3 { grid-area: 3 / 2; --dl: 1.2s; }
.fx-w.wo1 { grid-area: 1 / 4; --dl: .3s; } .fx-w.wo2 { grid-area: 2 / 4; --dl: .9s; } .fx-w.wo3 { grid-area: 3 / 4; --dl: 1.5s; }
.fx-core { grid-area: 1 / 3 / 4 / 4; align-self: stretch; position: relative; border-radius: 16px; border: 1px solid rgba(238, 84, 32, .45); background: radial-gradient(120% 90% at 50% 0%, rgba(238, 84, 32, .22), rgba(238, 84, 32, 0) 70%), var(--night-2); padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: hidden; }
.fx-core::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(238, 84, 32, .6); animation: ring 2.6s var(--ease) infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.fx-core-k { font-family: var(--font-m); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.fx-core-n { color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.2; letter-spacing: -.01em; margin-top: 4px; }
.fx-core-s { font-size: .8rem; line-height: 1.4; color: var(--on-night-2); min-height: 3.4em; transition: opacity .3s; }
.fx-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: 0; background: var(--signal); border-radius: inherit; transition: width .5s var(--ease); }

.flow-log { grid-area: log; align-self: end; list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-night); display: grid; gap: 11px; font-family: var(--font-m); font-size: .76rem; line-height: 1.45; }
.flow-log li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; color: var(--on-night-3); transition: color .35s; }
.flow-log li::before { content: "○"; color: var(--on-night-3); }
.flow-log li.run { color: #fff; }
.flow-log li.run::before { content: "●"; color: var(--signal); animation: blink 1s steps(2) infinite; }
.flow-log li.done { color: var(--on-night-2); }
.flow-log li.done::before { content: "✓"; color: var(--ok); }
@keyframes blink { 50% { opacity: .25; } }
.flow-note { margin: 16px 0 0; font-size: .72rem; color: var(--on-night-3); }

/* Assistant chat inside the console */
.chat { min-width: 0; flex-direction: column; min-height: 0; border: 1px solid var(--line-night-2); border-radius: 16px; background: var(--night-2); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-night); }
.chat-av { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--signal); color: #fff; font-weight: 700; font-size: .9rem; }
.chat-head b { display: block; color: #fff; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; }
.chat-st { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--on-night-3); margin-top: 2px; }
.chat-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat-msgs { list-style: none; margin: 0; padding: 16px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px); mask-image: linear-gradient(to bottom, transparent, #000 40px); }
.chat-msgs li { flex: none; max-width: min(88%, 460px); padding: 10px 13px; border-radius: 14px; font-size: .86rem; line-height: 1.45; animation: msgIn .35s var(--ease) both; }
.chat-msgs li.u { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-right-radius: 4px; }
.chat-msgs li.b { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-night); color: var(--on-night); border-bottom-left-radius: 4px; }
.chat-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--on-night-2); animation: dot 1s infinite; }
.chat-dots i:nth-child(2) { animation-delay: .15s; } .chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 12px 12px; padding: 9px 9px 9px 14px; border: 1px solid var(--line-night-2); border-radius: 12px; font-size: .84rem; color: var(--on-night-3); }
.chat-input i { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; background: rgba(255, 255, 255, .08); color: var(--on-night-2); }

/* Ticker of processes under the hero */
.ticker { margin-top: 0; border-top: 1px solid var(--line-night); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* =================================================
   SERVICES — the spectrum (tabs)
   ================================================= */
.spec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.spec-tabs { display: grid; gap: 0; border-top: 1px solid var(--line); position: sticky; top: calc(var(--nav-h) + 32px); }
.spec-tab { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 20px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--muted); transition: color .25s; position: relative; }
.spec-tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--signal); transition: width .5s var(--ease); }
.spec-tab .n { font-family: var(--font-m); font-size: .76rem; }
.spec-tab .t { font-size: 1.22rem; font-weight: 600; letter-spacing: -.02em; }
.spec-tab .go { opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.spec-tab:hover { color: var(--text); }
.spec-tab[aria-selected="true"] { color: var(--ink); }
.spec-tab[aria-selected="true"]::after { width: 100%; }
.spec-tab[aria-selected="true"] .go { opacity: 1; transform: none; color: var(--signal); }
.spec-scale { display: flex; justify-content: space-between; font-family: var(--font-m); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 4px 0; }

.spec-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 44px; box-shadow: var(--shadow); min-height: 100%; }
.spec-panel[hidden] { display: none; }
.spec-panel.enter { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spec-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; font-family: var(--font-m); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec-meter .bars { display: inline-flex; gap: 4px; }
.spec-meter .bars i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.spec-meter .bars i.on { background: var(--signal); }
.spec-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; margin-bottom: 16px; }
.spec-panel > p { color: var(--text-2); font-size: 1.08rem; max-width: 620px; margin-bottom: 32px; }
.spec-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.spec-cols h4, .mini-h { font-family: var(--font-m); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: .98rem; line-height: 1.45; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border: 1.5px solid var(--signal); border-radius: 50%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: .86rem; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--text); }

/* =================================================
   AREAS
   ================================================= */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.area { padding: 36px 32px 8px 0; }
.area + .area { padding-left: 32px; border-left: 1px solid var(--line); }
.area-n { font-family: var(--font-m); font-size: .76rem; color: var(--signal-ink); }
.area h3 { font-size: 1.9rem; letter-spacing: -.03em; margin: 18px 0 12px; }
.area > p { color: var(--text-2); min-height: 3.2em; }
.area ul { list-style: none; margin: 24px 0 0; padding: 0; }
.area li { padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; line-height: 1.4; display: flex; justify-content: space-between; gap: 12px; transition: padding .3s var(--ease), color .2s; }
.area li::after { content: "→"; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.area li:hover { padding-left: 6px; color: var(--ink); }
.area li:hover::after { opacity: 1; transform: none; color: var(--signal); }
.areas-more { margin: 40px 0 0; color: var(--text-2); }

/* =================================================
   METHOD — roadmap
   ================================================= */
.method { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.method-side { position: sticky; top: calc(var(--nav-h) + 48px); }
.method-side h2 { margin: 22px 0 24px; }
.method-side p { color: var(--on-night-2); font-size: 1.06rem; max-width: 460px; }
.method-side .btn { margin-top: 16px; }
.phases { list-style: none; margin: 0; padding: 0; position: relative; }
.phases::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line-night-2); }
.phases::after { content: ""; position: absolute; left: 23px; top: 24px; width: 1px; height: calc((100% - 48px) * var(--p, 0)); background: linear-gradient(var(--signal), #F48A5E); box-shadow: 0 0 12px rgba(238, 84, 32, .6); transition: height .15s linear; }
.phase { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 28px; padding: 0 0 56px; }
.phase:last-child { padding-bottom: 0; }
.phase-n { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-night-2); background: var(--night); display: grid; place-items: center; font-family: var(--font-m); font-size: .8rem; color: var(--on-night-2); position: relative; z-index: 1; transition: border-color .4s, color .4s, background .4s; }
.phase.on .phase-n { border-color: var(--signal); color: #fff; background: #1D120D; }
.phase-b { padding-top: 8px; }
.phase h3 { font-size: 1.5rem; letter-spacing: -.025em; margin-bottom: 12px; transition: color .4s; color: var(--on-night-2); }
.phase.on h3 { color: #fff; }
.phase p { color: var(--on-night-2); margin-bottom: 16px; max-width: 560px; }
.phase-out { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: .9rem; color: var(--on-night); padding: 10px 14px; border: 1px solid var(--line-night); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.phase-out b { font-family: var(--font-m); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }

/* =================================================
   CASES (home list + casos.html)
   ================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--text-2); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cases { border-top: 1px solid var(--line-strong); }
.case-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 32px; gap: 32px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding .35s var(--ease); }
.case-row:hover { padding-left: 10px; }
.case-row .area-tag { font-family: var(--font-m); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-ink); padding-top: 6px; }
.case-row h3 { font-size: 1.34rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.case-row p { margin: 0; color: var(--text-2); font-size: .98rem; }
.case-row .ctx { display: block; font-size: .84rem; color: var(--muted); margin-top: 10px; }
.case-row .go { font-size: 1.3rem; color: var(--muted); padding-top: 2px; transition: transform .3s var(--ease), color .2s; }
.case-row:hover .go { transform: translateX(4px); color: var(--signal); }
.case-row.enter { animation: panelIn .45s var(--ease) both; }
.cases-more { margin-top: 36px; }

/* casos.html */
.page-hero { padding: calc(var(--nav-h) + 96px) 0 80px; }
.page-hero h1 { margin: 24px 0 24px; }
.case-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.case-area { padding: 28px 28px 8px 0; }
.case-area + .case-area { padding-left: 28px; border-left: 1px solid var(--line); }
.case-area h3 { font-size: 1.1rem; display: flex; gap: 10px; align-items: baseline; margin-bottom: 14px; }
.case-area h3 span { font-family: var(--font-m); font-size: .74rem; color: var(--signal-ink); font-weight: 500; }
.case-item { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.case-item strong { color: var(--ink); font-weight: 600; line-height: 1.3; }
.case-item:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.case-item-ctx { font-family: var(--font-m); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.case-item-out { font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.case-detail { padding: 88px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: var(--nav-h); }
.case-head { max-width: 860px; margin-bottom: 48px; }
.case-ctx { font-family: var(--font-m); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-ink); }
.case-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 16px; }
.case-summary { font-size: 1.14rem; color: var(--text-2); margin: 0; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.case-main h3 { font-size: 1.24rem; margin: 36px 0 12px; }
.case-main h3:first-child { margin-top: 0; }
.case-main p { color: var(--text-2); }
.case-list { padding-left: 1.1em; margin: 0; color: var(--text-2); }
.case-list li { margin: 8px 0; }
.case-roadmap { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.case-roadmap li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rm-n { font-family: var(--font-m); font-size: .76rem; color: var(--signal-ink); padding-top: 3px; }
.case-roadmap strong { color: var(--ink); }
.rm-when { font-family: var(--font-m); font-size: .72rem; color: var(--muted); margin-left: 10px; }
.case-roadmap p { margin: 6px 0 0; font-size: .96rem; }
.case-lesson { margin: 40px 0 0; padding: 24px 28px; border-left: 2px solid var(--signal); background: var(--paper-2); border-radius: 0 12px 12px 0; font-size: 1.06rem; color: var(--ink); }
.case-lesson span { display: block; font-family: var(--font-m); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case-side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.case-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); }
.case-box h4 { font-family: var(--font-m); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.case-fact:first-child { padding-top: 0; }
.case-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.case-fact b { display: block; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.case-fact span { font-size: .9rem; color: var(--text-2); line-height: 1.4; }
.case-stack { margin: 0; font-size: .94rem; color: var(--text-2); }

/* =================================================
   PRINCIPLES
   ================================================= */
.princ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pr { padding: 36px 36px 40px 0; border-bottom: 1px solid var(--line); }
.pr:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.pr-n { font-family: var(--font-m); font-size: .74rem; color: var(--signal-ink); }
.pr h3 { font-size: 1.32rem; letter-spacing: -.02em; margin: 16px 0 10px; }
.pr p { margin: 0; color: var(--text-2); font-size: .98rem; }

/* =================================================
   TECHNOLOGY MARQUEE
   ================================================= */
.mx-tech { padding: 72px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.mx-tech .label { margin-bottom: 32px; }
.mx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mx-marquee + .mx-marquee { margin-top: 14px; }
.mx-track { display: flex; gap: 12px; width: max-content; list-style: none; margin: 0; padding: 0; animation: mq 60s linear infinite; }
.mx-marquee-rev .mx-track { animation-direction: reverse; animation-duration: 70s; }
.mx-marquee:hover .mx-track { animation-play-state: paused; }
.mx-track li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--text-2); white-space: nowrap; background: var(--card); }
.dark .mx-track li { border-color: var(--line-night); background: transparent; color: var(--on-night-2); }
@keyframes mq { to { transform: translateX(calc(-50% - 6px)); } }
.ticker .mx-track { padding: 22px 0; gap: 40px; animation-duration: 80s; }
.ticker .mx-track li { border: 0; padding: 0; background: none; color: var(--on-night-3); font-size: .95rem; display: inline-flex; align-items: center; gap: 40px; }
.ticker .mx-track li::after { content: "✦"; color: var(--signal); font-size: .7rem; opacity: .8; }

/* =================================================
   ABOUT
   ================================================= */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.about h2 { margin-top: 22px; }
.about-p p { font-size: 1.12rem; color: var(--text-2); }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.about-facts li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--text-2); line-height: 1.4; }
.about-facts li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.about-facts b { display: block; font-size: 1.12rem; color: var(--ink); letter-spacing: -.015em; margin-bottom: 2px; }

/* =================================================
   FAQ
   ================================================= */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq-wrap h2 { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.14rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 24px; color: var(--text-2); max-width: 680px; }

/* =================================================
   CONTACT
   ================================================= */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.contact h2 { margin: 22px 0 24px; }
.contact-p { color: var(--on-night-2); font-size: 1.08rem; max-width: 460px; }
.channels { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line-night); }
.channels li { border-bottom: 1px solid var(--line-night); }
.channels a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; color: #fff; font-weight: 500; transition: padding .3s var(--ease), color .2s; }
.channels a span { font-family: var(--font-m); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); }
.channels a:hover { padding-left: 8px; color: var(--signal); }

.form { display: grid; gap: 18px; }
.contact .form { border: 1px solid var(--line-night-2); border-radius: 20px; padding: 36px; background: var(--night-2); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--on-night-2); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: #fff; background: var(--night); border: 1px solid var(--line-night-2); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-night-2) 50%), linear-gradient(135deg, var(--on-night-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(238, 84, 32, .2); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.form .check a { color: #fff; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-size: .94rem; min-height: 1.5em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #FF8A6B; }

/* =================================================
   FOOTER
   ================================================= */
.footer { background: var(--night); color: var(--on-night-2); padding: 88px 0 40px; border-top: 1px solid var(--line-night); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer .brand { color: #fff; }
.footer .brand-mark .bm-bg { fill: #F4F1EA; }
.footer .brand-mark .bm-k { stroke: var(--ink); }
.footer .brand-sub { color: var(--on-night-2); }
.footer-about p { margin: 20px 0 0; max-width: 360px; font-size: .95rem; line-height: 1.55; }
.footer-contact a { color: var(--on-night); text-decoration: none; }
.footer-contact a:hover { color: var(--signal); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col strong { font-family: var(--font-m); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); margin-bottom: 6px; }
.footer-col a { color: var(--on-night-2); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-legal { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-night); display: grid; gap: 10px; font-size: .84rem; color: var(--on-night-3); }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--on-night-2); }
.footer-note strong { color: var(--on-night-2); }

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 1080px) {
  .flow-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "stage" "log"; }
  .flow-head { margin-bottom: 24px; }
  .flow-stage { min-height: 380px; }
  .flow.is-chat .chat { height: 380px; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .spec-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .spec-tabs::-webkit-scrollbar { display: none; }
  .spec-tab { grid-template-columns: 32px minmax(0, 1fr); border-bottom: 0; padding: 16px 12px 16px 0; }
  .spec-tab .t { font-size: 1rem; white-space: nowrap; }
  .spec-tab { padding-right: 24px; }
  .spec-tab .go { display: none; }
  .spec-scale { display: none; }
  .method, .about, .faq-wrap, .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .method-side { position: static; }
  .case-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case-side { position: static; }
}
@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav-toggle { display: inline-flex; }
  .nav nav { margin-left: 0; }
  .nav-actions { margin-left: auto; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 0; font-size: 1.06rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink) !important; background: none !important; }
  .nav.on-dark .nav-links { background: var(--night-2); border-color: var(--line-night); }
  .nav.on-dark .nav-links a { color: #fff !important; border-color: var(--line-night); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 48px; }
  .areas, .princ, .case-areas { grid-template-columns: minmax(0, 1fr); }
  .area, .area + .area, .case-area, .case-area + .case-area { padding: 28px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .area:first-child, .case-area:first-child { border-top: 0; }
  .area > p { min-height: 0; }
  .pr, .pr:not(:nth-child(3n + 1)) { padding: 28px 0; border-left: 0; }
  .hero-sub { grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 72px; }
  .hero-facts li, .hero-facts li + li { padding: 20px 16px 20px 0; border-left: 0; }
  .hero-facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-night); }
  .hero-facts li:nth-child(n + 3) { border-top: 1px solid var(--line-night); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .case-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; }
  .case-row .area-tag { grid-column: 1 / -1; padding-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .sec, .mx-sec { padding: 88px 0; }
  .sec-tight { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .brand-sub { display: none; }
  .nav-cta { display: none; }
  .flow { padding: 14px; border-radius: 16px; }
  .flow-top { flex-direction: column; align-items: flex-start; }
  .flow-tabs { width: 100%; }
  .flow-tab { padding: 7px 12px; }
  /* The flow turns vertical: inputs → agent → outputs */
  .fx { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 30px auto 30px auto; column-gap: 8px; row-gap: 0; }
  .flow-stage { min-height: 430px; }
  .flow.is-chat .chat { height: 430px; }
  .chat-msgs { padding: 12px; }
  .chat-msgs li { font-size: .82rem; }
  .fx-node { min-height: 64px; flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 8px 6px; font-size: .76rem; }
  .fx-in.i1 { grid-area: 1 / 1; } .fx-in.i2 { grid-area: 1 / 2; } .fx-in.i3 { grid-area: 1 / 3; }
  .fx-out.o1 { grid-area: 5 / 1; } .fx-out.o2 { grid-area: 5 / 2; } .fx-out.o3 { grid-area: 5 / 3; }
  .fx-w { height: 30px; }
  .fx-w::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: var(--line-night-2); }
  .fx-w::after { left: calc(50% - 3px); top: 0; animation-name: pkt-y; }
  @keyframes pkt-y { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
  .fx-w.wi1 { grid-area: 2 / 1; } .fx-w.wi2 { grid-area: 2 / 2; } .fx-w.wi3 { grid-area: 2 / 3; }
  .fx-w.wo1 { grid-area: 4 / 1; } .fx-w.wo2 { grid-area: 4 / 2; } .fx-w.wo3 { grid-area: 4 / 3; }
  .fx-core { grid-area: 3 / 1 / 4 / 4; }
  .fx-core-s { min-height: 2.8em; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li, .hero-facts li + li, .hero-facts li:nth-child(even) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-night); }
  .hero-facts li:first-child { border-top: 0; }
  .spec-panel { padding: 26px 20px; border-radius: 16px; }
  .spec-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .phases::before, .phases::after { left: 19px; }
  .phase { grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 44px; }
  .phase-n { width: 40px; height: 40px; }
  .phase h3 { font-size: 1.3rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact .form { padding: 22px 18px; border-radius: 16px; }
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-facts li:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq summary { font-size: 1.04rem; }
  .case-detail { padding: 64px 0; }
  .case-lesson { padding: 20px; }
  .hero-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mx-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .fx-w::after { display: none; }
}

@media print {
  .nav, .footer, .skip-link, .flow, .mx-tech, .ticker { display: none !important; }
  .dark { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
