/* ============================================================
   TALOS CONSULTING — Cyber-cyan on near-black design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* tweakable */
  --accent: #18e6d6;          /* cyan */
  --bg-l: 0;                  /* darkness offset (-6..+8), set by tweak */
  --motion: 1;               /* animation intensity multiplier */

  --accent-2: #0bb6d6;
  --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 32%, transparent);

  /* surfaces derived from --bg-l */
  --bg:    hsl(196 32% calc(3.5% + var(--bg-l) * 1%));
  --bg-1:  hsl(197 28% calc(6%   + var(--bg-l) * 1%));
  --bg-2:  hsl(197 24% calc(8.5% + var(--bg-l) * 1%));
  --panel: color-mix(in oklab, var(--bg-1) 78%, var(--accent) 4%);

  --ink:   #e9f3f4;
  --ink-2: #b6c6c9;
  --muted: #7c9197;
  --faint: #54686d;

  --line:  rgba(160, 200, 205, 0.10);
  --line-2: rgba(160, 200, 205, 0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ff-display: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'IBM Plex Sans', system-ui, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle global grain/grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(160,200,205,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,200,205,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 90%);
}

::selection { background: var(--accent); color: #04110f; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

.section { position: relative; z-index: 1; padding-block: clamp(80px, 11vw, 150px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 22px; }
.section-sub { margin-top: 20px; color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.section-head.center .section-sub { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; gap: 0.6em;
  height: var(--bh); padding: 0 26px;
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; transition: transform .3s; }
.btn-primary {
  background: var(--accent);
  color: #04130f;
  box-shadow: 0 0 0 0 var(--accent-soft), 0 10px 40px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px var(--accent-soft), 0 18px 50px -14px var(--accent); }
.btn-primary:hover .ico { transform: translateX(3px); }
.btn-ghost {
  background: rgba(160,200,205,0.04);
  color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-line); color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .4s, border-color .4s, padding .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.brand img { height: 56px; width: auto; filter: drop-shadow(0 0 14px var(--accent-soft)); }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.14em; }
.brand .wm span { font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--ff-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--ink-2); padding: 10px 16px; border-radius: 100px;
  position: relative; transition: color .25s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { --bh: 44px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(160,200,205,0.04); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 1.5px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--gutter);
  transform: translateY(-100%); transition: transform .5s cubic-bezier(.6,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--ff-display); font-size: 2rem; color: var(--ink-2); padding: 12px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding-left .3s; }
.mobile-menu a:hover { color: var(--accent); padding-left: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 90px; }
#flow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 18% 38%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, transparent 40%, var(--bg) 97%),
    linear-gradient(90deg, var(--bg) 2%, transparent 42%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  margin: 26px 0 0;
  letter-spacing: -0.035em;
}
.hero h1 .glow { color: var(--accent); text-shadow: 0 0 36px var(--accent-soft); }
.hero p.lead { margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-trust { margin-top: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-family: var(--ff-mono); font-size: 0.76rem; letter-spacing: 0.06em; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(.7);} }

/* HUD card on the right */
.hud {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg-1) 70%, transparent), color-mix(in oklab, var(--bg-2) 60%, transparent));
  backdrop-filter: blur(10px);
  padding: 26px;
  box-shadow: 0 40px 90px -40px #000, inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.hud::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.hud-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hud-top .tag { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.hud-dots { display: flex; gap: 6px; }
.hud-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.hud-dots i:first-child { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hud-rows { display: flex; flex-direction: column; gap: 12px; }
.hud-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-sm); background: rgba(160,200,205,0.03); border: 1px solid var(--line); }
.hud-row .ic { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hud-row .ic svg { width: 19px; height: 19px; }
.hud-row .meta { flex: 1; min-width: 0; }
.hud-row .meta b { display: block; font-family: var(--ff-display); font-weight: 500; font-size: 0.96rem; }
.hud-row .meta span { font-size: 0.78rem; color: var(--muted); }
.hud-row .stat { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--accent); white-space: nowrap; }
.scanline { position: absolute; left: 0; right: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--accent-soft), transparent); opacity: .5;
  animation: scan 5s linear infinite; }
@keyframes scan { 0%{ transform: translateY(-100px);} 100%{ transform: translateY(420px);} }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.28em; }
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0%{ transform: scaleY(0); transform-origin: top;} 50%{ transform: scaleY(1); transform-origin: top;} 51%{ transform: scaleY(1); transform-origin: bottom;} 100%{ transform: scaleY(0); transform-origin: bottom;} }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: clamp(34px,5vw,56px) 28px; border-left: 1px solid var(--line); position: relative; }
.stat-cell:first-child { border-left: 0; }
.stat-cell .num { font-family: var(--ff-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.stat-cell .num small { color: var(--accent); font-size: 0.5em; vertical-align: super; }
.stat-cell .lbl { margin-top: 14px; font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   SERVICES (interactive tabs)
   ============================================================ */
.services { background: var(--bg); }
.svc { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.svc-tabs { display: flex; flex-direction: column; gap: 6px; }
.svc-tab {
  display: flex; align-items: center; gap: 18px; text-align: left;
  padding: 22px 22px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(160,200,205,0.02); color: var(--ink-2);
  transition: border-color .3s, background .3s, color .3s, transform .3s;
  position: relative; overflow: hidden;
}
.svc-tab .n { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--faint); transition: color .3s; }
.svc-tab .t { font-family: var(--ff-display); font-size: 1.18rem; font-weight: 500; flex: 1; }
.svc-tab .chev { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: .3s; color: var(--accent); }
.svc-tab:hover { border-color: var(--line-2); color: var(--ink); transform: translateX(4px); }
.svc-tab.active { background: linear-gradient(100deg, var(--accent-soft), rgba(160,200,205,0.02)); border-color: var(--accent-line); color: var(--ink); }
.svc-tab.active .n { color: var(--accent); }
.svc-tab.active .chev { opacity: 1; transform: translateX(0); }
.svc-tab.active::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }

.svc-panel {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-1) 80%, transparent), color-mix(in oklab, var(--bg-2) 70%, transparent));
  padding: clamp(28px, 3.5vw, 48px); position: relative; overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column;
}
.svc-panel::after { content:""; position:absolute; right:-80px; top:-80px; width:280px; height:280px; border-radius:50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events:none; }
.svc-content { display: none; flex-direction: column; height: 100%; }
.svc-content.active { display: flex; }
html.anim .svc-content.active.swap { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(12px);} to { opacity:1; transform: translateY(0);} }
.svc-content .ic-lg { width: 60px; height: 60px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent); margin-bottom: 26px; }
.svc-content .ic-lg svg { width: 30px; height: 30px; }
.svc-content h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.svc-content p { margin-top: 18px; color: var(--ink-2); font-size: 1.04rem; max-width: 56ch; }
.svc-content ul { margin-top: 26px; display: grid; gap: 12px; }
.svc-content li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.96rem; color: var(--ink-2); }
.svc-content li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.svc-meta { margin-top: auto; padding-top: 28px; display: flex; gap: 28px; border-top: 1px solid var(--line); }
.svc-meta div span { display:block; font-family: var(--ff-mono); font-size:0.66rem; letter-spacing:0.16em; text-transform:uppercase; color: var(--faint); }
.svc-meta div b { font-family: var(--ff-display); font-weight:500; font-size:1.02rem; color: var(--ink); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why { background: linear-gradient(180deg, var(--bg), var(--bg-1)); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(160,200,205,0.02); padding: 30px 26px 32px;
  position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, background .4s;
}
.why-card::before { content:""; position:absolute; inset:0; background: radial-gradient(140% 100% at 50% -20%, var(--accent-soft), transparent 60%); opacity:0; transition: opacity .4s; }
.why-card:hover { transform: translateY(-8px); border-color: var(--accent-line); background: rgba(160,200,205,0.035); }
.why-card:hover::before { opacity: 1; }
.why-card .ic { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); margin-bottom: 24px; position: relative; transition: border-color .4s, box-shadow .4s; }
.why-card:hover .ic { border-color: var(--accent-line); box-shadow: 0 0 30px -8px var(--accent); }
.why-card .ic svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.22rem; font-weight: 600; position: relative; }
.why-card .zig { width: 44px; height: 10px; margin: 16px 0 18px; color: var(--accent-line); }
.why-card p { font-size: 0.92rem; color: var(--muted); position: relative; }
.why-card .idx { position: absolute; top: 22px; right: 24px; font-family: var(--ff-mono); font-size: 0.74rem; color: var(--faint); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg-1); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.proc-line { position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: var(--line-2); z-index: 0; }
.proc-line i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width 1.4s ease; }
.proc-step { position: relative; z-index: 1; padding: 0 18px; text-align: center; }
.proc-step .node { width: 56px; height: 56px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); font-family: var(--ff-mono); font-size: 1rem; transition: border-color .4s, box-shadow .4s; }
.proc-step.lit .node { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 26px -6px var(--accent); }
.proc-step h3 { font-size: 1.18rem; }
.proc-step p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); max-width: 26ch; margin-inline: auto; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client-tile {
  aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255,255,255,0.92); display: grid; place-items: center; padding: 22px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
  position: relative; overflow: hidden;
}
.client-tile::after { content:""; position:absolute; inset:0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); pointer-events:none; }
.client-tile img { max-height: 60px; max-width: 78%; width: auto; object-fit: contain; filter: saturate(1); transition: transform .4s; }
.client-tile:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: 0 22px 50px -24px var(--accent), 0 0 0 1px var(--accent-line); }
.client-tile:hover img { transform: scale(1.05); }
.clients-note { margin-top: 34px; text-align: center; font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.about p { margin-top: 22px; color: var(--ink-2); font-size: 1.06rem; }
.about p + p { margin-top: 16px; }
.about-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-tags span { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.04em; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--ink-2); transition: border-color .3s, color .3s; white-space: nowrap; }
.about-tags span:hover { border-color: var(--accent-line); color: var(--accent); }
.about-visual { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); display: grid; place-items: center; }
.about-visual .ring { position: absolute; border: 1px solid var(--accent-line); border-radius: 50%; opacity: .5; }
.about-visual .mark { width: 46%; filter: drop-shadow(0 0 40px var(--accent-soft)); position: relative; z-index: 2; opacity: .92; }
.about-visual .grad { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, var(--accent-soft), transparent 70%); }
.about-quote { margin-top: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-1)); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-info p { margin-top: 20px; color: var(--ink-2); font-size: 1.05rem; max-width: 42ch; }
.contact-list { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .ic { width: 44px; height: 44px; flex:none; border-radius: 12px; border:1px solid var(--line-2); display:grid; place-items:center; color: var(--accent); }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .c span { display:block; font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.contact-item .c a, .contact-item .c b { font-weight: 500; font-size: 1.02rem; color: var(--ink); }
.contact-item .c a:hover { color: var(--accent); }

.contact-form { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: color-mix(in oklab, var(--bg-1) 70%, transparent); padding: clamp(26px, 3vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(160,200,205,0.04); border: 1px solid var(--line-2); color: var(--ink);
  font-family: var(--ff-body); font-size: 0.96rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-line); background: rgba(160,200,205,0.06); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 15px; height: 15px; color: var(--accent); }
.form-msg { font-family: var(--ff-mono); font-size: 0.82rem; color: var(--accent); display: none; }
.form-msg.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-1); border-top: 1px solid var(--line); padding-block: 64px 32px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer .brand img { height: 64px; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--ink-2); padding: 7px 0; font-size: 0.94rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--accent); padding-left: 6px; }
.footer-blurb { margin-top: 20px; color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; }

/* ---------- reveal animation ----------
   Content is VISIBLE by default. The hide-then-reveal entrance is only
   armed once JS confirms requestAnimationFrame is actually ticking
   (html.anim). This guarantees content never gets stuck hidden. */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.anim .reveal:not(.in) { opacity: 0; transform: translateY(30px); }
html.anim .reveal[data-d="1"] { transition-delay: .08s; }
html.anim .reveal[data-d="2"] { transition-delay: .16s; }
html.anim .reveal[data-d="3"] { transition-delay: .24s; }
html.anim .reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal:not(.in) { opacity: 1; transform: none; }
  .scanline, .scroll-hint .bar, .hero-trust .dot { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hud { max-width: 460px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .svc { grid-template-columns: 1fr; }
  .svc-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { flex: 0 0 auto; }
  .svc-tab .t { font-size: 0.96rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(odd) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proc-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .proc-line { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; }
}
@media (max-width: 520px) {
  .why-grid, .client-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat-cell:first-child { border-top: 0; }
  .proc-grid { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
