/* =========================================================
   Meraki Advisory and Development — main stylesheet
   ========================================================= */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  --bg: #050608;
  --bg-2: #0a0d13;
  --bg-3: #0f141c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f5f9;
  --muted: #98a2b3;
  --dim: #8994a8;
  --brand: #002f6c;          /* Meraki navy (from the "m" mark) */
  --accent: #4a86ff;         /* on-dark brand blue */
  --button: #2e6bd1;         /* white labels meet text contrast requirements */
  --accent-2: #8fb4ff;
  --signal: #23e0a1;         /* WatchTower green */
  --alert: #ff5d6c;
  --warn: #ffb547;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --f-display: var(--f-body);
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -0.025em; }
::selection { background: var(--button); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: #fff; color: #000; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 16px; }

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

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: none;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow b { color: var(--accent-2); font-weight: 500; }
.section-title { font-size: clamp(2rem, 3.8vw, 3.2rem); text-transform: none; margin: 18px 0 0; }
.section-title em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--text);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-body); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none;
  padding: 14px 22px; border: 1px solid var(--line-2); border-radius: 6px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer; background: transparent; color: var(--text); white-space: nowrap;
}
.btn:hover { border-color: var(--text); }
.btn--solid { background: var(--button); border-color: var(--button); color: #fff; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.btn--solid:hover { background: #fff; color: #000; border-color: #fff; }
.btn--signal { background: var(--signal); border-color: var(--signal); color: #04140e; }
.btn--signal:hover { background: #fff; border-color: #fff; color: #000; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 6, 8, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.site-header.is-scrolled .wrap { height: 70px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav[hidden] { display: none; }
.nav a.nav-link {
  font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: #c3cad6;
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .3s var(--ease); }
.nav a.nav-link:hover, .nav a.nav-link.is-active { color: var(--text); }
.nav a.nav-link:hover::after, .nav a.nav-link.is-active::after { right: 0; }
.nav .btn { padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 6px; width: 46px; height: 46px; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; background: rgba(5, 6, 8, .97); flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav a.nav-link { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: .02em; color: var(--text); }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand img { height: 24px; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header { position: relative; background: var(--bg); }
  .no-js .site-header .wrap { height: auto; min-height: 84px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
  .no-js .nav { position: static; opacity: 1; pointer-events: auto; width: 100%; align-items: flex-start; gap: 16px; background: transparent; }
  .no-js .nav a.nav-link { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; }
}

/* ---------- hero (parallax) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 140px 0 72px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) contrast(1.1) brightness(.55); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 60% at 75% 25%, rgba(0, 47, 108, .55), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 8, .35) 0%, rgba(5, 6, 8, .65) 55%, var(--bg) 100%);
}
.hero-mark { position: absolute; right: -4vw; top: 12vh; width: min(52vw, 760px); opacity: .07; z-index: -1; pointer-events: none; }
.hero-title {
  font-size: clamp(2.8rem, 8.5vw, 8.5rem); text-transform: none; line-height: 1.04; letter-spacing: -0.04em; margin: 26px 0 32px;
}
.hero-title .line { display: block; overflow: visible; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent { color: var(--accent-2); }
.hero .eyebrow, .band .eyebrow { color: #c3cad6; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero-foot .lede { margin: 0; color: #c3cad6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-fade { opacity: 1; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } .hero { padding-bottom: 90px; } }

/* page hero (inner pages) */
.hero--page { min-height: 78vh; }
.hero--page .hero-title { font-size: clamp(2.4rem, 6vw, 5.5rem); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(84px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head .lede { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(90px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.manifesto-list { display: flex; flex-wrap: wrap; gap: 10px 40px; list-style: none; padding: 0; margin: 0 0 48px; font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.manifesto-list li span { color: var(--accent); margin-right: 10px; }
.manifesto-text { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.2; text-transform: none; max-width: 32ch; }
.manifesto-sub { margin-top: 40px; max-width: 58ch; color: var(--muted); font-size: 1.1rem; }

/* ---------- core (architecture) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); margin-bottom: 64px; }
.step { padding: 28px 0 0; }
.step .num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; }
.step h3 { font-size: 1.7rem; text-transform: none; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.arch { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); overflow: hidden; }
.arch-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.arch-top .live { color: var(--signal); display: inline-flex; align-items: center; gap: 8px; }
.arch-top .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);  }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(35, 224, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 224, 161, 0); } }
.arch-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
/* Keep complete content available until the interactive diagram is ready. */
.arch:not(.arch-enhanced) .arch-body { display: none; }
.arch-enhanced .arch-fallback { display: none; }
.arch:not(.arch-enhanced) .live::before { animation: none; }
.arch-fallback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arch-static-stage { min-width: 0; padding: 28px 24px; border-bottom: 1px solid var(--line); }
.arch-static-stage:nth-child(odd) { border-right: 1px solid var(--line); }
.arch-static-stage .k { font-family: var(--f-mono); font-size: 12px; color: var(--accent-2); }
.arch-static-stage h3 { font-size: 1.6rem; text-transform: none; margin: 14px 0; }
.arch-static-stage p { color: var(--muted); }
.arch-static-stage ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .arch-fallback { grid-template-columns: minmax(0, 1fr); }
  .arch-static-stage:nth-child(odd) { border-right: 0; }
}
.arch-diagram { padding: 28px 24px; border-right: 1px solid var(--line); }
.plane-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.plane { display: grid; gap: 10px; position: relative; }
.plane--data { grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; }
.plane--control { grid-template-columns: repeat(3, 1fr); }
.flow { position: relative; height: 34px; margin: 2px 0 12px; }
.flow svg { width: 100%; height: 100%; display: block; }
.flow .track { stroke: var(--line-2); stroke-width: 1; fill: none; }
.flow .pulse { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 140; animation: dash 3.2s linear infinite; }
.flow .pulse.p2 { animation-delay: -1.1s; stroke: var(--signal); }
.flow .pulse.p3 { animation-delay: -2.2s; }
@keyframes dash { to { stroke-dashoffset: -292; } }
.stage {
  appearance: none; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 6px; padding: 14px 12px; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.stage .k { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); letter-spacing: .12em; }
.stage .t { font-family: var(--f-display); font-size: .98rem; line-height: 1.15; font-weight: 600; }
.stage:hover, .stage.is-active { border-color: var(--accent); background: rgba(74, 134, 255, .09); transform: translateY(-2px); }
.stage.is-active .k { color: var(--accent-2); }
.plane--control .stage { min-height: 70px; border-style: dashed; }
.arch-detail { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.arch-detail .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.arch-detail h3 { font-size: 1.9rem; text-transform: none; }
.arch-detail p { color: var(--muted); margin: 0; }
.arch-detail ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--f-body); font-size: 12px; letter-spacing: 0; border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 9px; color: #c7cede; }
.arch-hint { font-family: var(--f-body); font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--dim); margin-top: auto; }
.arch-hint .touch { display: none; }
@media (hover: none) { .arch-hint .mouse { display: none; } .arch-hint .touch { display: inline; } }
@media (max-width: 1000px) {
  .arch-body { grid-template-columns: 1fr; }
  .arch-diagram { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .plane--data { grid-template-columns: 1fr 1fr; }
  .plane--data .stage:last-child { grid-column: span 2; }
  .plane--control { grid-template-columns: 1fr; }
  .flow { display: none; }
}

/* ---------- service directory ---------- */
.cards { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); }
.card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 48px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line-2); }
.card h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; max-width: 60ch; }
.card:hover h3, .card:focus-visible h3 { text-decoration-color: var(--accent-2); }
.card--feature { padding: 0 0 34px; margin-bottom: 12px; border: 0; align-items: center; }
.card--feature h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 14px; text-decoration: none; }
.service-feature-link { display: inline-block; margin-top: 22px; font-size: 15px; color: var(--accent-2); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .card { grid-template-columns: minmax(0, 1fr); gap: 12px; } .card--feature { gap: 24px; } }

/* ---------- statement band ---------- */
.band { position: relative; height: clamp(360px, 62vh, 640px); overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.band-bg { position: absolute; inset: 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.45) contrast(1.15); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 8, .92) 0%, rgba(0, 47, 108, .35) 60%, rgba(5, 6, 8, .6) 100%); }
.band-quote { font-family: var(--f-display); font-size: clamp(1.8rem, 3.5vw, 3rem); text-transform: none; line-height: 1.12; max-width: 20ch; font-weight: 600; }
.band-quote em { font-style: normal; color: var(--accent-2); }

/* ---------- WatchTower showcase ---------- */
.wt { background: radial-gradient(70% 50% at 80% 0%, rgba(35, 224, 161, .09), transparent 60%), var(--bg); border-top: 1px solid var(--line); }
.wt .section-title em { color: var(--signal); }
.wt-logo { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; }
.wt-logo span { color: var(--signal); }
.wt-stage { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.device { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius); background: #0b0f16; overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0e131b; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a313d; }
.device-bar .url { margin-left: 14px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); background: #070a0f; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; flex: 1; max-width: 360px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.carousel-controls { order: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.carousel-controls[hidden] { display: none; }
.carousel-step-controls { display: flex; gap: 8px; }
.carousel-button { min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid #647085; border-radius: 6px; background: #0e131b; color: var(--text); font-family: var(--f-mono); font-size: 12px; cursor: pointer; }
.carousel-button:hover { border-color: var(--text); }
.screens { order: 2; position: relative; aspect-ratio: 1600 / 920; overflow: hidden; }
.screen-panel { position: absolute; inset: 0; }
.screen-panel[hidden] { display: none; }
.screen-caption { display: none; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 6s linear; }
.screens img.is-on { opacity: 1; transform: scale(1); }
.screen-tabs { order: 3; display: flex; gap: 0; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.screen-tabs::-webkit-scrollbar { display: none; }
.screen-tab { position: relative; flex: 1 0 auto; background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 14px 16px; cursor: pointer; text-align: left; }
.screen-tab:last-child { border-right: 0; }
.screen-tab.is-on { color: var(--text); }
.screen-tab:focus-visible, .screen-panel:focus-visible { outline-offset: -4px; }
.screen-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--signal); }
.screen-tab.is-on .bar { width: 100%; }
.rotating .screen-tab.is-on .bar { width: 0; animation: fill var(--dur, 5s) linear forwards; }
.no-js .screen-tabs { display: none; }
.no-js .screens { aspect-ratio: auto; overflow: visible; }
.no-js .screen-panel { position: static; }
.no-js .screens img { position: static; height: auto; opacity: 1; transform: none; transition: none; }
.no-js .screen-caption { display: block; padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); }
@keyframes fill { to { width: 100%; } }

.feed { border: 1px solid var(--line-2); border-radius: var(--radius); background: #090c12; display: flex; flex-direction: column; overflow: hidden; min-height: 420px; }
.feed-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.feed-head .live { color: var(--signal); display: inline-flex; gap: 8px; align-items: center; }
.feed-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.8s infinite; }
.feed-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.feed-stats div { padding: 12px 14px; border-right: 1px solid var(--line); }
.feed-stats div:last-child { border-right: 0; }
.feed-stats b { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.feed-stats span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.feed-stats .s-alert b { color: var(--alert); }
.feed-stats .s-clear b { color: var(--signal); }
.feed-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; position: relative; }
.feed-list::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, #090c12); pointer-events: none; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed-running .feed-item:first-child { animation: slidein .5s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(-12px); background: rgba(74, 134, 255, .08); } to { opacity: 1; transform: none; } }
.feed-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.feed-item.is-alert .dot { background: var(--alert); }
.feed-item.is-review .dot { background: var(--warn); }
.feed-item .meta { min-width: 0; }
.feed-item .meta b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .meta small { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
.feed-item .amt { font-family: var(--f-mono); font-size: 12px; color: #c9d0dc; text-align: right; }
.feed-item .amt em { display: block; font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.feed-item.is-alert .amt em { color: var(--alert); }
.feed-item.is-review .amt em { color: var(--warn); }
.feed-note { padding: 10px 16px; font-family: var(--f-mono); font-size: 10px; color: var(--dim); letter-spacing: .08em; border-top: 1px solid var(--line); }
.feed:not(.feed-enhanced) { align-self: start; contain: none; height: auto; min-height: 0; }
.feed:not(.feed-running) .live::before { animation: none; }
.feed-controls { display: flex; padding: 10px 16px; border-top: 1px solid var(--line); }
.feed-controls[hidden] { display: none; }
.feed:not(.feed-enhanced) .feed-list::after { display: none; }
@media (min-width: 1001px) { .feed { contain: size; min-height: 0; } }
@media (max-width: 1000px) { .wt-stage { grid-template-columns: 1fr; } .feed { min-height: 0; height: 420px; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; border-top: 1px solid var(--line); }
.feature { padding: 30px 0 10px; }
.feature h3 { font-size: 1.35rem; text-transform: none; margin-bottom: 16px; }
.feature ul { list-style: none; margin: 0; padding: 0; }
.feature li { position: relative; padding: 9px 0 9px 22px; color: var(--muted); font-size: .97rem; }
.feature li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--signal); }
.wt-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 52px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; gap: 0; } .feature { padding: 26px 0 6px; } }

/* ---------- CTA band ---------- */
.cta { position: relative; padding: clamp(110px, 16vw, 210px) 0; overflow: hidden; text-align: left; border-top: 1px solid var(--line); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 15% 100%, rgba(0, 47, 108, .7), transparent 70%), radial-gradient(40% 60% at 100% 0%, rgba(74, 134, 255, .15), transparent 70%); }
.cta-mark { position: absolute; right: -6vw; bottom: -10vw; width: min(60vw, 820px); opacity: .05; z-index: -1; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.5rem); text-transform: none; line-height: 1.08; }
.cta h2 span { display: block; }
.cta h2 .accent { color: var(--accent); }
.cta p { margin: 30px 0 40px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: #030405; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-col h2 { font-family: var(--f-body); font-weight: 400; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); margin-bottom: 20px; }
.footer-col h2 b { color: var(--accent); font-weight: 400; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col .logo { height: 26px; width: auto; margin-bottom: 14px; }
.footer-col .tagline { font-family: var(--f-display); text-transform: none; font-size: 1.05rem; color: var(--text); }
.footer-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-body); font-size: 12px; letter-spacing: 0; color: var(--dim); }
.footer-base a:hover { color: var(--text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .big { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; text-transform: none; font-weight: 500; }
.split .big em { font-style: normal; color: var(--accent); }
.split p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.stat { padding: 34px 24px 30px 0; }
.stat + .stat { padding-left: 24px; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; font-weight: 600; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { font-family: var(--f-body); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pillar { min-width: 0; }
.pillar .num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; }
.pillar h3 { font-size: 1.7rem; text-transform: none; margin: 14px 0 12px; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {
  .page-home .hero-title { font-size: clamp(2rem, 13vw, 3rem); }
  .page-home .hero-title .line > span { max-width: 100%; overflow-wrap: anywhere; }
  .pillar h3 { font-size: 1.4rem; overflow-wrap: anywhere; }
}
.focus { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.focus span { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: none; padding: 0 26px 0 0; border: 0; border-radius: 0; }
.focus span:nth-child(2) { color: var(--accent-2); }

/* ---------- services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-index { position: sticky; top: 110px; border-left: 1px solid var(--line); }
.svc-index p { font-family: var(--f-body); font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--dim); padding-left: 18px; margin-bottom: 14px; }
.svc-index a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: .95rem; transition: color .2s, border-color .2s; }
.svc-index a:hover, .svc-index a.is-active { color: var(--text); border-color: var(--accent); }
.svc-group + .svc-group { margin-top: 90px; }
.svc-group > .eyebrow { font-weight: 500; line-height: 1.6; letter-spacing: .02em; margin-bottom: 26px; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
/* Keep fragment destinations stable while the reveal fades in. */
.svc.reveal { transform: none; }
.svc .num { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing: .12em; padding-top: 8px; }
.svc h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: none; margin-bottom: 14px; }
.svc p { color: var(--muted); font-size: 1.05rem; max-width: 64ch; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } .svc-index { display: none; } .svc { grid-template-columns: 1fr; gap: 8px; } }
.svc--wt { margin-bottom: 10px; }
.svc--wt .num { color: var(--signal); }
.svc--wt .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 6px; }
.svc--wt .shots img { border-radius: 8px; border: 1px solid var(--line-2); aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
@media (max-width: 640px) { .svc--wt .shots { grid-template-columns: 1fr 1fr; } .svc--wt .shots img:last-child { display: none; } }

/* ---------- missing pages ---------- */
.error-section { padding-top: 160px; min-height: 70svh; }
.error-section .lede { margin-top: 28px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- contact ---------- */
.contact-section { padding-top: 150px; }
.contact-intro { margin: 28px 0 38px; max-width: 36ch; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-result h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 20px; }
.contact-copy p { color: var(--muted); }
.contact-copy { min-width: 0; padding-top: 12px; }
.contact-copy .section-title { margin-top: 24px; }
.contact-email { padding-top: 24px; border-top: 1px solid var(--line-2); }
.contact-email p { font-size: .9rem; margin-bottom: 6px; }
.contact-email a { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1rem, 1.7vw, 1.25rem); }
.contact-copy a { color: var(--accent-2); text-decoration: underline; overflow-wrap: anywhere; }
.contact-form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); scroll-margin-top: 100px; }
.form-summary { scroll-margin-top: 100px; }
.contact-form h2 { font-size: 1.7rem; margin-bottom: 10px; }
.contact-form > .form-note { margin-bottom: 28px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.form-field--wide { grid-column: 1 / -1; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 28px; }
.form-field { display: grid; gap: 8px; min-width: 0; }
.form-field label { font-weight: 500; }
.optional, .form-note { color: #b0bac9; font-size: .9rem; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #647085; border-radius: 6px; font: inherit; color: var(--text); background: var(--bg); }
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.field-error, .form-summary { color: #ffa4ae; }
.field-error:empty, .validation-summary-valid { display: none; }
.form-summary ul { padding-left: 20px; }
.input-validation-error { border-color: #ffa4ae !important; }
.form-trap[hidden] { display: none !important; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { cursor: wait; opacity: .8; }
.contact-result { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--signal); border-radius: var(--radius); scroll-margin-top: 100px; }
.contact-result p { margin: 0; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; gap: 36px; } .contact-section { padding-top: 120px; } .contact-intro { max-width: 58ch; margin-bottom: 24px; } }
@media (max-width: 600px) { .contact-fields { grid-template-columns: minmax(0, 1fr); } .contact-copy { padding-top: 0; } .contact-form .btn { margin-top: 22px; } }

/* ---------- generic WP content ---------- */
.prose { max-width: 760px; }
.prose h1, .prose h2, .prose h3 { margin: 1.4em 0 .6em; text-transform: none; }
.prose a { color: var(--accent-2); text-decoration: underline; }
.prose p, .prose li { color: #c3cad6; }

/* Content is immediately visible; motion is reserved for the product demonstrations. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
