/* ============================================================
   TERVIO — v4 · monochrome systems design
   Full-bleed 4-col grid · black/white alternating sections
   Inter 400 tight headings · Geist Mono labels · green only
   for the spark, FAB and focus states
   ============================================================ */

:root {
  --bg: #060606;
  --paper: #f2f1ee;
  --ink: #060606;
  --white: #ffffff;
  --dim: rgba(255, 255, 255, 0.58);
  --dim2: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.13);
  --ink-dim: rgba(6, 6, 6, 0.6);
  --ink-line: rgba(6, 6, 6, 0.14);
  --accent: #1dcf7d;
  --font-body: "Inter", sans-serif;
  --font-display: "InterDisplay", "Inter Display", "Inter", sans-serif;
  --font-mono: "Geist Mono", monospace;
  --gutter: 40px;
  --col2: 27vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #04120b; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* full-page 4-column hairlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(128,128,128,0.16) 1px, transparent 1px) 25% 0 / 25% 100% no-repeat,
    linear-gradient(90deg, rgba(128,128,128,0.16) 1px, transparent 1px) 50% 0 / 25% 100% no-repeat,
    linear-gradient(90deg, rgba(128,128,128,0.16) 1px, transparent 1px) 75% 0 / 25% 100% no-repeat;
}
section, footer, header, .ticker { position: relative; z-index: 2; }

.shell { padding-left: var(--gutter); padding-right: var(--gutter); }
.col2 { padding-left: var(--col2); }
/* nested inside .shell the gutter is already spent — subtract it so the
   content edge lands on the same 27vw line as .shell.col2 sections */
.shell .col2 { padding-left: calc(var(--col2) - var(--gutter)); }
@media (max-width: 1020px) {
  /* drop the column indent; .shell.col2 elements must fall back to the
     gutter (the zero would otherwise override their shell padding too) */
  .col2, .shell .col2 { padding-left: 0; }
  .shell.col2 { padding-left: var(--gutter); }
}

/* ---------- type ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; }
h1.display { font-size: clamp(3rem, 6.9vw, 6.25rem); }
h2.display { font-size: clamp(2.1rem, 4.2vw, 3.75rem); letter-spacing: -0.03em; }

.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  opacity: 0.9;
}
.label::before {
  content: "";
  width: 22px; height: 11px;
  background: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 5px);
  display: inline-block;
}

.section-head { max-width: 620px; margin-bottom: 60px; }
.section-head p { color: var(--dim); margin-top: 20px; font-size: 0.85rem; max-width: 480px; }
.light .section-head p { color: var(--ink-dim); }
.section-head.center { margin: 0 auto 60px; text-align: center; }
.section-head.center .label { justify-content: center; }

.mono { font-family: var(--font-mono); }

/* ---------- light sections ---------- */

section.light { background: var(--paper); color: var(--ink); }
section.light ::selection { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0;
  border: none;
  cursor: pointer;
  background: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  color: inherit;
}
.btn::before {
  content: "✦";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-size: 0.7rem;
  flex: none;
  transition: transform 0.25s ease;
}
.btn-primary { color: var(--white); }
.btn-primary::before { background: var(--white); color: var(--ink); }
.btn .btn-body { border: 1px solid var(--line); border-left: none; height: 40px; display: inline-flex; align-items: center; padding: 0 20px; }
.light .btn-primary { color: var(--ink); }
.light .btn-primary::before { background: var(--ink); color: var(--paper); }
.light .btn .btn-body { border-color: var(--ink-line); }
.btn-ghost { color: inherit; }
.btn-ghost::before { border: 1px solid currentColor; }
.btn:hover { opacity: 0.75; }
.btn:hover::before { transform: rotate(90deg); }
.btn .arrow { display: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  mix-blend-mode: difference;
}
.nav-inner {
  padding: 0 var(--gutter);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 28px; width: auto; filter: grayscale(1) brightness(8); }
.nav-links { display: none; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { font-size: 0.64rem; }
.nav-cta .btn::before { width: 32px; height: 32px; }
.nav-cta .btn .btn-body { height: 32px; padding: 0 14px; }

/* scrim below the difference-blended nav: blurs content passing under the
   logo/CTA so text can't collide with them, while the blend still inverts
   against the section color behind (blur keeps light sections light) */
.nav-scrim {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 110px;
  z-index: 98;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  transition: backdrop-filter 0.35s ease;
}
.nav-scrim.on {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-burger {
  display: block;
  background: none;
  border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.25s ease;
}
.nav-burger span { top: 50%; }
.nav-burger span::before { top: -8px; }
.nav-burger span::after { top: 8px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.97);
  z-index: 99;
  padding: 140px var(--gutter) 60px;
  flex-direction: column;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu a.active, .mobile-menu a:hover { color: var(--white); padding-left: 14px; }
.mobile-menu .btn { margin-top: 40px; font-size: 0.72rem; border-bottom: none; padding: 0; letter-spacing: 0.02em; }
.mobile-menu .btn:hover { padding-left: 0; }

/* ---------- hero (split) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  filter: contrast(1.44) grayscale(1);
  -webkit-mask: radial-gradient(112% 108% at 56.2% -11.3%, #000 90%, transparent 100%);
  mask: radial-gradient(112% 108% at 56.2% -11.3%, #000 90%, transparent 100%);
}
.hero-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  background-color: var(--bg);
}
.hero-left, .hero-right { position: relative; z-index: 1; }
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) 56px;
}
.hero-guarantee {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-guarantee::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { margin-bottom: 26px; max-width: 640px; }
.hero h1 .accent { color: var(--white); opacity: 0.5; }
.hero-sub { max-width: 500px; font-size: 0.92rem; color: var(--dim); margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 48px 56px;
  border-left: 1px solid var(--line);
}
.hero-services { display: flex; flex-direction: column; gap: 8px; }
.hero-services span {
  font-size: clamp(1.17rem, 1.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-clients {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.hero-clients em { font-style: normal; font-size: 0.8rem; color: var(--white); }

/* proof strip under hero */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip div { padding: 24px var(--gutter); border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: none; }
.proof-strip strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.proof-strip span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim2);
}

/* ---------- sections ---------- */

section { padding: 130px 0; }
section.flush { padding: 0; }

/* ---------- statement ---------- */

.statement { padding: 150px 0; }
.statement-chips { display: flex; margin-bottom: 44px; }
.statement-chips i {
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--white);
  background: #0d0d0d;
  margin-left: -8px;
}
.statement-chips i:first-child { margin-left: 0; }
.statement p {
  font-size: clamp(1.5rem, 3.1vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
  max-width: 900px;
}
.statement .word { color: rgba(255, 255, 255, 0.16); transition: color 0.2s linear; }
.statement .word.lit { color: var(--white); }
.statement p.statement-note {
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 0.66rem !important;
  letter-spacing: 0.02em;
  color: var(--dim2);
  max-width: 460px;
  line-height: 1.9;
}

/* ---------- cells / cards ---------- */

.grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.light .grid { background: var(--ink-line); border-color: var(--ink-line); }

.card { background: var(--bg); padding: 44px 34px 48px; position: relative; transition: background 0.3s ease; }
.light .card { background: var(--paper); }
.card:hover { background: #0b0b0b; }
.light .card:hover { background: #eceae6; }
.card .card-icon { height: 110px; display: flex; align-items: flex-start; margin-bottom: 30px; }
.card .card-icon svg { width: 82px; height: 82px; stroke: var(--white); fill: none; stroke-width: 1; opacity: 0.9; }
.card .card-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--dim2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.card p { color: var(--dim); font-size: 0.78rem; line-height: 1.7; }
.light .card p { color: var(--ink-dim); }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.card:hover .card-link { color: var(--white); }
.light .card:hover .card-link { color: var(--ink); }

/* ---------- stats row ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 54px 40px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .stat-value {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
}
.stat .stat-value em { font-style: normal; }
.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 300;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim2);
  max-width: 220px;
}

/* ---------- media band ---------- */

.media-band {
  position: relative;
  height: 70vh;
  min-height: 400px;
  background:
    radial-gradient(circle 190px at 18% 72%, rgba(255,255,255,0.2), transparent 70%),
    radial-gradient(circle 120px at 44% 38%, rgba(255,255,255,0.12), transparent 70%),
    radial-gradient(circle 250px at 76% 66%, rgba(255,255,255,0.17), transparent 70%),
    radial-gradient(circle 90px at 60% 22%, rgba(255,255,255,0.09), transparent 70%),
    radial-gradient(circle 55px at 90% 32%, rgba(255,255,255,0.07), transparent 70%),
    #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.media-band img { width: 84px; height: auto; filter: grayscale(1) brightness(4); opacity: 0.95; }
.media-band .media-tag {
  position: absolute;
  right: var(--gutter);
  top: 44px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.media-band .media-tag::before { content: "●"; font-size: 0.5rem; }

/* ---------- case list (light) ---------- */

.case-list { border-top: 1px solid var(--ink-line); }
.case {
  display: grid;
  grid-template-columns: 24% 9% 1fr 60px;
  gap: 24px;
  align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.25s ease;
}
.case:hover { background: rgba(6, 6, 6, 0.035); }
.case .case-client { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.case .case-client small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.case .case-year { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-dim); padding-top: 10px; }
.case h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.case .case-desc { font-size: 0.8rem; color: var(--ink-dim); max-width: 560px; line-height: 1.7; }
.case .case-metric {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.case .case-arrow { font-size: 1.5rem; justify-self: end; padding-top: 2px; transition: transform 0.25s ease; }
.case:hover .case-arrow { transform: translateX(8px); }

/* ---------- workflow canvas ---------- */

.canvas {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 26px 26px,
    #090909;
  height: 460px;
  overflow: hidden;
}
.canvas .node {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  z-index: 2;
}
.canvas .node::before { content: "▪"; font-size: 0.55rem; opacity: 0.7; }
.canvas .node.hub { background: var(--white); color: var(--ink); border-color: var(--white); }
.canvas svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.canvas svg.wires path { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; fill: none; stroke-dasharray: 4 4; }
.canvas .canvas-toolbar {
  position: absolute;
  left: 20px; top: 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  z-index: 2;
}
.canvas .canvas-toolbar i {
  width: 34px; height: 34px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.6rem;
  color: var(--dim);
}

/* ---------- telemetry dashboard ---------- */

.dash {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dash-panel { background: #090909; padding: 28px 30px 36px; min-height: 290px; }
.dash-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.dash-head b { font-weight: 500; }
.dash-head span { color: var(--dim2); }
.dash-sub { font-family: var(--font-mono); font-size: 0.58rem; color: var(--dim2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 28px; }
.dash-big { font-size: clamp(2.6rem, 4vw, 3.75rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.dash-big small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--dim2);
  display: block;
  margin-top: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dash-panel svg { display: block; }
.dash-gauge { margin: 6px auto 0; }
.dash-gauge .arc-bg { stroke: rgba(255, 255, 255, 0.14); }
.dash-gauge .arc-fg { stroke: var(--white); }
.dash-gauge text { fill: var(--white); font-family: var(--font-body); font-weight: 300; }
.dash-gauge .gauge-cap { fill: rgba(255, 255, 255, 0.34); font-family: var(--font-mono); }
.dash-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-top: 24px; }
.dash-bars i { flex: 1; background: rgba(255, 255, 255, 0.22); min-height: 8%; }
.dash-bars i.hi { background: var(--white); }
.dash-wide { grid-column: 1 / -1; background: #090909; padding: 30px; }
.dash-wide .dash-row { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.dash-spark { background: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 18px 18px; width: 100%; height: 130px; }
.dash-spark path { stroke: var(--white); fill: none; stroke-width: 1.2; }

/* ---------- approach split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split-media {
  background:
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,0.025) 5px 6px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,0.035) 5px 6px),
    radial-gradient(ellipse 70% 60% at 40% 45%, rgba(255,255,255,0.15), transparent 75%),
    #090909;
}
.split-panel { background: var(--paper); color: var(--ink); padding: 90px 70px; }
.split-panel .label { color: var(--ink); }
.split-panel h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.split-panel > p { color: var(--ink-dim); font-size: 0.82rem; max-width: 440px; margin-bottom: 48px; }

.steps { border-top: 1px solid var(--ink-line); }
.step {
  display: grid;
  grid-template-columns: 54px 170px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-line);
  align-items: baseline;
}
.step-num { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-dim); }
.step h3 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; }
.step .step-tag { display: none; }
.step p { color: var(--ink-dim); font-size: 0.76rem; line-height: 1.65; }

.guarantee { margin-top: 40px; border: 1px solid currentColor; padding: 26px 30px; display: flex; gap: 20px; align-items: flex-start; }
.guarantee .g-icon { font-size: 1rem; line-height: 1.4; }
.guarantee h3 { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.guarantee p { opacity: 0.65; font-size: 0.78rem; }

/* dark-context steps (inner pages) */
section:not(.light) .steps { border-color: var(--line); }
section:not(.light) .step { border-color: var(--line); }
section:not(.light) .step-num, section:not(.light) .step p { color: var(--dim); }

/* ---------- integrations grid ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-grid span {
  background: var(--bg);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s ease, background 0.2s ease;
  text-align: center;
  padding: 0 10px;
}
.logo-grid span:hover { color: var(--white); background: #0b0b0b; }
.marquee, .marquee-note { display: none; }

/* ---------- testimonials (light cards) ---------- */

.quote-card { display: flex; flex-direction: column; padding: 0; }
.quote-card .q-mark { display: none; }
.quote-card .q-rating {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 16px 26px;
  border-bottom: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quote-card .q-stars { letter-spacing: 3px; color: var(--ink); font-size: 0.72rem; }
.quote-card blockquote { font-size: 0.85rem; font-weight: 400; line-height: 1.7; color: var(--ink); padding: 24px 26px; flex: 1; }
.quote-card .q-who { padding: 0 26px 24px; }
.quote-card .q-who strong { display: block; font-size: 0.78rem; font-weight: 500; }
.quote-card .q-who span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- articles ---------- */

.post-card { display: flex; flex-direction: column; padding: 0; }
.post-thumb {
  height: 190px;
  background:
    radial-gradient(circle 90px at 70% 30%, rgba(6,6,6,0.15), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(6,6,6,0.05) 16px 17px),
    #e7e5e0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--ink-line);
}
section:not(.light) .post-thumb {
  background:
    radial-gradient(circle 90px at 70% 30%, rgba(255,255,255,0.12), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255,255,255,0.04) 16px 17px),
    #0b0b0b;
  border-color: var(--line);
}
.post-thumb .post-cat {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 5px 10px;
}
.post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.3; letter-spacing: -0.02em; font-family: var(--font-body); }
.post-body p { font-size: 0.76rem; flex: 1; color: var(--dim); }
.light .post-body p { color: var(--ink-dim); }
.post-body .card-link { margin-top: 18px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease;
}
.faq-q:hover { opacity: 0.7; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--dim);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { color: var(--dim); font-size: 0.82rem; padding: 0 0 26px; max-width: 620px; }

/* ---------- newsletter ---------- */

.newsletter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.newsletter p { color: var(--dim); font-size: 0.82rem; }
.newsletter-form { display: flex; }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  border-right: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0 18px;
  height: 40px;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--white); }

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding: 200px 0 80px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 900px; letter-spacing: -0.035em; line-height: 1; }
.page-hero .hero-sub { margin: 28px 0 0; max-width: 560px; font-size: 0.88rem; color: var(--dim); }
.page-hero .label { color: var(--dim); }

/* ---------- values / about ---------- */

.values { border-top: 1px solid var(--line); }
.value-row {
  display: grid;
  grid-template-columns: 60px 230px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.value-row .v-num { font-family: var(--font-mono); font-size: 0.64rem; color: var(--dim2); }
.value-row h3 { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; }
.value-row p { color: var(--dim); font-size: 0.8rem; }

.prose { max-width: 640px; }
.prose p { color: var(--dim); margin-bottom: 20px; font-size: 0.92rem; line-height: 1.75; }
.prose p strong { color: var(--white); font-weight: 500; }

/* ---------- pricing ---------- */

.price-card { display: flex; flex-direction: column; }
.price-card.featured { background: #0f0f0f; }
.price-plan {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim2);
  margin-bottom: 20px;
}
.price-card.featured .price-plan { color: var(--white); }
.price-value { font-size: 2.1rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.price-value small { font-family: var(--font-mono); font-size: 0.6rem; color: var(--dim2); }
.price-desc { color: var(--dim); font-size: 0.78rem; margin: 18px 0 24px; }
.price-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 30px; }
.price-feats li { display: flex; gap: 10px; color: var(--dim); font-size: 0.76rem; }
.price-feats li::before { content: "✦"; font-size: 0.6rem; padding-top: 2px; }
.featured-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  padding: 4px 10px;
}

/* ---------- tables ---------- */

.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); }
th {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim2);
}
td { color: var(--dim); font-size: 0.8rem; }
td strong { color: var(--white); font-weight: 500; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
.contact-list { display: flex; flex-direction: column; margin-top: 36px; border-top: 1px solid var(--line); }
.contact-list a, .contact-list .contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.contact-list a:hover { padding-left: 12px; }
.contact-list .c-icon {
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.contact-list .c-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim2);
  display: block;
}
.contact-list .c-value { font-size: 0.9rem; }

.expect { display: flex; flex-direction: column; gap: 16px; }
.expect li { display: flex; gap: 14px; color: var(--dim); font-size: 0.85rem; }
.expect li::before { content: "✦"; font-size: 0.65rem; padding-top: 3px; color: var(--white); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim2);
  display: block;
  margin-bottom: 8px;
}
.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: currentColor; }
.form select option { background: #0d0d0d; color: #fff; }
.form textarea { resize: vertical; min-height: 120px; }

/* ---------- footer CTA ---------- */

.footer-cta { padding: 150px 0; text-align: center; }
.footer-cta h2 { margin-bottom: 20px; }
.footer-cta p { max-width: 540px; margin: 0 auto 44px; color: var(--dim); font-size: 0.85rem; }
.footer-cta .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 70px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--dim2); font-size: 0.76rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim2);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--dim); font-size: 0.8rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim2);
  font-size: 0.62rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- sticky WhatsApp FAB ---------- */

.wa-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #04120b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 34px rgba(29, 207, 125, 0.4);
  transition: transform 0.2s ease;
  cursor: pointer;
  border: none;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab .wa-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: waping 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waping { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.55);opacity:0} }

/* ---------- pilot modal ---------- */

.pilot-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.pilot-modal.open { display: flex; }
.pilot-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.pilot-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  color: var(--ink);
  padding: 42px 36px 34px;
  animation: pilotIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes pilotIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pilot-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.1rem;
  cursor: pointer;
}
.pilot-close:hover { color: var(--ink); }
.pilot-card .label { color: var(--ink); margin-bottom: 16px; }
.pilot-card h3 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.pilot-card > p { color: var(--ink-dim); font-size: 0.8rem; margin-bottom: 24px; }
.pilot-card .form { gap: 14px; }
.pilot-card .form label { color: var(--ink-dim); }
.pilot-card .form select { color: var(--ink); border-color: var(--ink-line); }
.pilot-card .form select:focus { border-color: var(--ink); }
.pilot-card .form select option { background: var(--paper); color: var(--ink); }
.pilot-card .btn { margin-top: 8px; color: var(--ink); }
.pilot-card .btn::before { background: var(--ink); color: var(--paper); }
.pilot-card .btn .btn-body { border-color: var(--ink-line); }
.pilot-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- ticker ---------- */

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; position: relative; z-index: 2; background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track b { font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.02em; white-space: nowrap; padding-right: 28px; }
.ticker-track b::after { content: "✦"; padding-left: 28px; font-size: 0.7em; opacity: 0.4; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .wa-fab .wa-ping { animation: none; display: none; }
  .pilot-card { animation: none; }
}

/* legacy classes hidden in v4 */
.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.index-strip, .hero-console, .meters, .hero-grid-bg, .case-pain { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  :root { --gutter: 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding-top: 150px; }
  .hero-right { min-height: 420px; border-left: none; border-top: 1px solid var(--line); padding: 48px 24px; gap: 48px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div { border-bottom: 1px solid var(--line); }
  .proof-strip div:nth-child(2n) { border-right: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .dash { grid-template-columns: 1fr; }
  .dash-wide .dash-row { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
  .split-panel { padding: 60px 24px; }
  .case { grid-template-columns: 1fr 50px; }
  .case .case-year { display: none; }
  .case .case-client { grid-column: 1 / -1; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 48px 24px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .value-row { grid-template-columns: 1fr; gap: 6px; }
  section { padding: 84px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .canvas { height: 380px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input { border-right: 1px solid var(--line); height: 40px; padding: 12px 18px; }
}

/* legacy case markup (inner pages) */
.case .case-media { display: none; }
.case .case-body { grid-column: 1 / -1; }
section:not(.light) .case { border-color: var(--line); }
section:not(.light) .case-list { border-color: var(--line); }
.case-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 5px 10px;
  margin-bottom: 18px;
  opacity: 0.7;
}
.case .case-body h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 12px; }
section:not(.light) .case .case-body > p { color: var(--dim); font-size: 0.82rem; max-width: 640px; }
.case-result {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0;
  opacity: 0.85;
}
.case-caps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-caps span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 10px;
  color: var(--dim);
}
section.tint { background: var(--bg); }
