/* ==========================================================================
   StratoFlow Ltd — stratoflow.agency
   Design system + site styles. No build step, no dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — sampled from the StratoFlow wordmark: #235C8E -> #5FB6CD.
     Light is the default. Each theme takes its accent from the opposite end
     of the logo ramp so text keeps its contrast either way. */
  --bg:          #F5F9FC;
  --bg-elev:     #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #EEF4F9;
  --border:      rgba(10, 28, 46, .10);
  --border-str:  rgba(10, 28, 46, .20);
  --text:        #0A1C2E;
  --text-mid:    #33495F;
  --muted:       #5B6E82;

  --brand:       #235C8E;   /* logo deep end — accent on light */
  --brand-2:     #35759F;
  --brand-deep:  #17456B;
  --brand-ink:   #FFFFFF;   /* text on a brand fill */

  /* Ends short of the palest blue so gradient text stays legible on white. */
  --grad:      linear-gradient(112deg, #235C8E 0%, #3C82A9 55%, #4A97B5 100%);
  --grad-btn:  linear-gradient(112deg, #235C8E 0%, #2E6B96 55%, #35759F 100%);
  --grad-soft: linear-gradient(112deg, rgba(35,92,142,.10), rgba(65,137,175,.09) 55%, rgba(95,182,205,.14));

  --ring:      rgba(35,92,142,.26);
  --sel:       rgba(35,92,142,.20);
  --tint-1:    rgba(95,182,205,.34);
  --tint-2:    rgba(35,92,142,.20);


  --shadow-brand:    0 14px 34px -14px rgba(35,92,142,.40);
  --shadow-brand-hi: 0 20px 44px -14px rgba(35,92,142,.55);

  --glow: 0 0 0 1px rgba(35,92,142,.22), 0 18px 50px -20px rgba(35,92,142,.45);
  --shadow: 0 24px 60px -34px rgba(10, 28, 46, .35);

  /* Type */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Kept monospaced: labels, step numbers and the code samples rely on it. */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 44px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
  --bg:          #05121C;
  --bg-elev:     #0A1B27;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --border:      rgba(255, 255, 255, 0.09);
  --border-str:  rgba(255, 255, 255, 0.16);
  --text:        #E8EFF6;
  --text-mid:    #B4C4D4;
  --muted:       #8798AB;

  --brand:       #5FB6CD;   /* logo light end — accent on dark */
  --brand-2:     #4189AF;
  --brand-deep:  #235C8E;
  --brand-ink:   #041520;

  --grad:      linear-gradient(112deg, #7FCFE0 0%, #5FB6CD 48%, #4189AF 100%);
  --grad-btn:  linear-gradient(112deg, #7FCFE0 0%, #5FB6CD 55%, #52A2C6 100%);
  --grad-soft: linear-gradient(112deg, rgba(95,182,205,.16), rgba(65,137,175,.14) 55%, rgba(35,92,142,.18));

  --ring:      rgba(95,182,205,.30);
  --sel:       rgba(95,182,205,.28);
  --tint-1:    rgba(95,182,205,.34);
  --tint-2:    rgba(63,134,184,.32);


  --shadow-brand:    0 14px 34px -14px rgba(95,182,205,.50);
  --shadow-brand-hi: 0 20px 44px -14px rgba(95,182,205,.65);

  --glow: 0 0 0 1px rgba(95,182,205,.25), 0 18px 60px -18px rgba(95,182,205,.45);
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, .85);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

/* Plus Jakarta Sans runs wide and soft, so display sizes carry more weight
   and tighter tracking to sit alongside the wordmark. */
h1, h2 { font-weight: 700; }

h1 { font-size: clamp(2.5rem, 6vw, 4.35rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.16rem, 1.9vw, 1.4rem); letter-spacing: -0.012em; }
p  { text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 92px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .735rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}

.lede { font-size: clamp(1.02rem, 1.55vw, 1.2rem); color: var(--text-mid); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow::before { display: none; }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5.5vw, 64px); }

/* A lede directly after a heading needs breathing room wherever it appears.
   This was once scoped to .sec-head, which missed every heading inside a split
   layout — those sit in a plain wrapper, and the pair rendered flush with a
   zero-pixel gap. The hero and CTA set their own spacing and still win on
   specificity or margin collapse. */
h1 + .lede,
h2 + .lede,
h3 + .lede { margin-top: 15px; }
.sec-head.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 940px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

.rule { height: 1px; background: var(--border); border: 0; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  background: var(--grad-btn);
  color: var(--brand-ink);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: var(--shadow-brand-hi); }

.btn--ghost {
  border-color: var(--border-str);
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--surface-2); }

.btn--sm { padding: 10px 18px; font-size: .88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .93rem; color: var(--brand);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / nav
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.hdr.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border);
}
.hdr__inner { display: flex; align-items: center; gap: 28px; width: 100%; }

/* The wordmark is the logo. Two PNG variants: the master for light
   backgrounds, a lightness-lifted one so it reads on the dark theme. */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo {
  display: block; width: 174px; height: 23.5px;
  background: url("../img/logo.png") no-repeat center / contain;
  transition: opacity .2s var(--ease);
}
:root[data-theme="dark"] .brand__logo { background-image: url("../img/logo-reverse.png"); }
.brand:hover .brand__logo { opacity: .82; }
.ftr .brand__logo { width: 196px; height: 26.4px; }
@media (max-width: 420px) { .brand__logo { width: 148px; height: 20px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 9px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--text-mid);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--grad);
}

.hdr__act { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; color: var(--text-mid);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-str); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }

.burger { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gut) 26px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a:not(.btn) { padding: 13px 12px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 10px; }
  .burger { display: grid; }
  .hdr__act { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   6. Ambient background
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.aurora::before {
  width: 620px; height: 620px; top: -240px; left: -140px;
  background: radial-gradient(circle, var(--tint-1), transparent 68%);
}
.aurora::after {
  width: 700px; height: 700px; top: -180px; right: -220px;
  background: radial-gradient(circle, var(--tint-2), transparent 68%);
}
:root[data-theme="dark"] .aurora::before { opacity: .5; }
:root[data-theme="dark"] .aurora::after { opacity: .5; }

.gridlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 12%, transparent 78%);
  opacity: .7;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(64px, 10vw, 116px) clamp(56px, 8vw, 96px); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 1000px) { .hero__inner { grid-template-columns: minmax(0,1fr); } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--text-mid); margin-bottom: 26px;
}
.pill b { color: var(--text); font-weight: 600; }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 4px var(--ring); }
.pill__tag {
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}

.hero h1 span.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 24px; font-size: clamp(1.05rem, 1.7vw, 1.24rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px;
  font-size: .87rem; color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero__meta svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* Hero panel — the symptoms clients actually ring up about. Deliberately
   words rather than a mock dashboard: StratoFlow sells consultancy, and a
   fake product UI implies otherwise. */
.symptoms {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
}
.symptoms::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--grad);
}
.symptoms .eyebrow { margin-bottom: 6px; }

.symptoms__list { list-style: none; padding: 0; margin: 0; }
.symptoms__list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding-block: 15px;
  border-bottom: 1px solid var(--border);
}
.symptoms__list li:last-child { border-bottom: 0; padding-bottom: 4px; }
.symptoms__list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 4px; }
.symptoms__list p { font-size: .96rem; color: var(--text-mid); }

.symptoms__foot {
  margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--border-str);
  font-size: .92rem; color: var(--muted);
}
.symptoms__foot b { color: var(--text); font-weight: 600; }

/* Window dots — the traffic lights on the code panels. */
.win-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-str); }

/* --------------------------------------------------------------------------
   8. Marquee / trust strip
   -------------------------------------------------------------------------- */
.strip { border-block: 1px solid var(--border); padding-block: 22px; background: var(--surface); }
.strip__lbl {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 16px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--text-mid); white-space: nowrap; opacity: .85;
}
.marquee__item svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .28s var(--ease), transform .28s var(--ease), background-color .28s var(--ease);
  overflow: hidden;
}
.card:hover { border-color: var(--border-str); transform: translateY(-3px); background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

.card__ico {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--brand);
}
.card__ico svg { width: 21px; height: 21px; }

.card__num {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--brand); margin-bottom: 14px; display: block;
}

/* Pillar cards (logistics / software) */
.pillar {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pillar:hover { border-color: var(--border-str); transform: translateY(-4px); }
.pillar::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad); opacity: .85;
}
.pillar__tag {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.pillar h3 { font-size: clamp(1.42rem, 2.4vw, 1.85rem); margin-bottom: 12px; }
.pillar > p { color: var(--text-mid); }
.pillar ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.pillar li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--text-mid); }
.pillar li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 4px; }
.pillar .link-arrow { margin-top: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { background: var(--bg); padding: clamp(22px, 2.6vw, 32px); }
.stat__n { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__l { margin-top: 10px; font-size: .87rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Process timeline
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding-block: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step__n {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em;
  color: var(--brand); padding-top: 6px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 68ch; font-size: .96rem; }
@media (max-width: 620px) { .step { grid-template-columns: minmax(0,1fr); gap: 10px; } }

/* --------------------------------------------------------------------------
   11. Split feature
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); } }

.checklist { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 28px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }
.checklist b { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; margin-bottom: 2px; }
.checklist span { color: var(--muted); font-size: .93rem; }

/* Code panel */
.codecard {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--bg-elev); box-shadow: var(--shadow); overflow: hidden;
}
.codecard__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.codecard__file { margin-left: 6px; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.codecard pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.75; color: var(--text-mid);
}
.codecard .c-key { color: var(--accent); }
.codecard .c-str { color: var(--brand); }
.codecard .c-com { color: var(--muted); opacity: .75; }
.codecard .c-fn  { color: var(--brand-2); }

/* --------------------------------------------------------------------------
   Imagery — picture bands and card media.
   Every image is declared in IMAGES in inc/config.php; the markup here never
   names a file, so swapping one is a single config edit.
   -------------------------------------------------------------------------- */
.media { margin: 0; position: relative; }

.media--band {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 12 / 5; object-fit: cover;
}

/* The scrim exists so overlaid text keeps its contrast whatever picture is
   dropped in — including a photograph with a bright lower edge. */
.media__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: clamp(22px, 4vw, 46px) clamp(20px, 4vw, 52px);
  background: linear-gradient(to top,
              rgba(3, 14, 24, .86) 0%, rgba(3, 14, 24, .58) 38%, rgba(3, 14, 24, 0) 76%);
}
.media__eyebrow {
  font-family: var(--font-mono); font-size: .71rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: #A8DCE8; margin-bottom: 10px;
}
.media__heading {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.95rem); line-height: 1.16; letter-spacing: -.028em;
  color: #FFFFFF; max-width: 30ch; text-wrap: balance;
}
@media (max-width: 620px) {
  .media__img { aspect-ratio: 4 / 3; }
}

/* A framed picture beside a block of text. When the image is missing the page
   adds .split--single instead, so the text simply takes the full width. */
.media--framed {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media__img--framed { aspect-ratio: 4 / 3; }
.split--single { grid-template-columns: minmax(0, 1fr); }
.split--flip > .media { order: -1; }
@media (max-width: 900px) { .split--flip > .media { order: 0; } }

/* Small layout utilities, so page templates do not carry inline styles. */
.split--center { align-items: center; }
.ledger { margin-top: clamp(32px, 4vw, 48px); }
.note {
  margin-top: 26px; max-width: 70ch;
  font-size: .92rem; color: var(--muted);
}
.note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Two honest columns — what we are good for, and what we are not. */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 760px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
.ledger__col {
  padding: clamp(24px, 2.8vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.ledger__col--no { background: none; border-style: dashed; }
.ledger h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ledger h3 svg { width: 19px; height: 19px; flex: none; }
.ledger__col--yes h3 svg { color: var(--brand); }
.ledger__col--no h3 svg { color: var(--muted); }
.ledger ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ledger li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text-mid); }
.ledger li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; margin-top: 9px;
  background: var(--brand);
}
.ledger__col--no li::before { background: var(--muted); opacity: .55; }

/* A numbered list of deliverables — what you actually walk away with. */
.deliverables { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 2px; counter-reset: dl; }
.deliverables li {
  counter-increment: dl;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px;
  padding-block: 15px; border-bottom: 1px solid var(--border);
}
.deliverables li:last-child { border-bottom: 0; }
.deliverables li::before {
  content: counter(dl, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--brand); padding-top: 4px;
}
/* Both the label and the detail belong in the second column. Without this the
   detail is auto-placed into the 34px number column and wraps into a tall thin
   ribbon — each item ballooned to roughly 470px high. */
.deliverables b,
.deliverables span { grid-column: 2; }
.deliverables b { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; margin-bottom: 3px; }
.deliverables span { color: var(--muted); font-size: .93rem; }

/* A banner across the top of a service card, flush to its edges. The card's
   gradient rule still paints over the top of it, which ties the two together. */
.pillar__media {
  margin: calc(clamp(28px, 3vw, 40px) * -1) calc(clamp(28px, 3vw, 40px) * -1)
          clamp(22px, 2.4vw, 28px);
}
.pillar__media-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 45 / 17; object-fit: cover;
}

/* Card media sits flush to the card edges, so the padding is pulled back. */
.card__media {
  margin: calc(clamp(24px, 2.6vw, 32px) * -1) calc(clamp(24px, 2.6vw, 32px) * -1) 22px;
}
.card__media-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 12 / 7; object-fit: cover;
}

/* Figures — diagrams that carry an argument, not decoration. Theme-aware, so
   they hold up in both palettes without a second asset. */
.figure {
  margin: 0;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px) clamp(16px, 2vw, 22px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.figure__scroll { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.figure figcaption {
  margin-top: 16px; font-size: .86rem; color: var(--muted); max-width: 62ch;
}

.track-svg { width: 100%; height: auto; overflow: visible; }
.track-label {
  fill: var(--muted); font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .13em;
}
/* Filled = consultancy, outlined = engineering. The two lanes read as clearly
   different, and both keep their text above 4.5:1 in either theme — a
   semi-transparent fill did neither. */
.track-block--a { fill: var(--brand); stroke: none; }
.track-block--b { fill: none; stroke: var(--brand-2); stroke-width: 1.5; }
.track-text {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -.01em;
}
.track-text--a { fill: var(--brand-ink); }
.track-text--b { fill: var(--brand-2); }
.track-link { stroke: var(--border-str); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.track-note {
  fill: var(--muted); font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .07em;
}
.track-rule, .track-tick path { stroke: var(--border-str); stroke-width: 1; fill: none; }
.track-week {
  fill: var(--muted); font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .1em;
}

/* Below the tablet breakpoint the lane text stops fitting, so let the figure
   scroll rather than shrink the labels into illegibility. */
@media (max-width: 680px) {
  .figure { padding-inline: 0; }
  /* The svg lives inside the scroll box, so the min-width has to be set there —
     targeting a direct child of .figure silently did nothing and let the
     diagram squash to the viewport, shrinking its labels to nothing. */
  .figure__scroll {
    overflow-x: auto; padding-inline: 16px; border-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }
  .figure__scroll .track-svg { min-width: 600px; }
  .figure figcaption {
    margin-inline: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  }
}

/* --------------------------------------------------------------------------
   12. Case studies
   -------------------------------------------------------------------------- */
.case {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.case:hover { border-color: var(--border-str); transform: translateY(-3px); }
.case__top { padding: 26px 26px 0; }
.case__sector {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.case h3 { margin: 12px 0 10px; }
.case p { color: var(--muted); font-size: .94rem; }
.case__res {
  margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px; background: var(--border); border-top: 1px solid var(--border); margin-top: 24px;
}
.case__res div { background: var(--surface); padding: 18px 26px; }
.case__res b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand); }
.case__res span { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; letter-spacing: -.015em;
  color: var(--text); transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--brand); }
.acc__icn { width: 22px; height: 22px; flex: none; position: relative; }
.acc__icn::before, .acc__icn::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.acc__icn::before { width: 13px; height: 1.6px; }
.acc__icn::after  { width: 1.6px; height: 13px; }
.acc__btn[aria-expanded="true"] .acc__icn::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--muted); padding: 0 4px 24px; max-width: 78ch; font-size: .96rem; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  padding: clamp(38px, 6vw, 72px);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; width: 560px; height: 560px; left: 50%; top: -60%;
  transform: translateX(-50%); border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, var(--tint-1), transparent 66%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: 16px; }
.cta .lede { margin-inline: auto; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-mid); }
.field label .req { color: var(--brand); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-sm);
  /* Must not drop below 16px. iOS Safari zooms the whole page in when a field
     smaller than that takes focus, and does not zoom back out — the layout
     lurches sideways and the site looks broken on every iPhone and iPad. */
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B97AF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field--row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 620px) { .field--row { grid-template-columns: minmax(0,1fr); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.form__note { font-size: .82rem; color: var(--muted); }
.form-msg {
  display: none; padding: 14px 16px; border-radius: var(--r-sm);
  font-size: .92rem; border: 1px solid var(--border);
}
.form-msg.is-ok  { display: block; border-color: var(--brand); background: var(--grad-soft); color: var(--text); }
.form-msg.is-err { display: block; border-color: rgba(255,120,120,.4); background: rgba(255,120,120,.1); color: var(--text); }

.contact-panel {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); padding: clamp(24px, 3vw, 34px);
}
.contact-item { display: flex; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 4px; }
.contact-item b { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }
.contact-item span, .contact-item a { color: var(--muted); font-size: .93rem; }
.contact-item a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   16. Page header (inner pages)
   -------------------------------------------------------------------------- */
.phead { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px); }
.phead h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.phead .lede { margin-top: 20px; }
.crumbs { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; margin-inline: 8px; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--border); background: var(--bg-elev); padding-block: clamp(48px, 6vw, 72px) 32px; margin-top: clamp(48px, 7vw, 96px); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: minmax(0,1fr); } }
.ftr__about p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin-top: 16px; }
.ftr h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.ftr ul a { font-size: .93rem; color: var(--text-mid); transition: color .2s var(--ease); }
.ftr ul a:hover { color: var(--brand); }
.ftr__bot {
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--muted);
}
.ftr__bot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ftr__bot a:hover { color: var(--brand); }


/* --------------------------------------------------------------------------
   18. Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 46px; margin-bottom: 14px; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--text-mid); font-size: .97rem; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose > .lede { margin-bottom: 8px; }
.prose ol > li { padding-left: 4px; }
.prose ol > li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.prose code {
  font-family: var(--font-mono); font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px;
}

/* Tables in the legal pages — must scroll on their own, never the page. */
.table-scroll { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .92rem; }
.prose thead th {
  text-align: left; vertical-align: bottom;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 0 18px 10px 0; border-bottom: 1px solid var(--border-str);
}
.prose tbody td {
  padding: 13px 18px 13px 0; border-bottom: 1px solid var(--border);
  color: var(--text-mid); vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose th:last-child, .prose td:last-child { padding-right: 0; }

/* --------------------------------------------------------------------------
   19. Reveal animation
   -------------------------------------------------------------------------- */
/* Scoped to .js so that without JavaScript everything is simply visible. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

/* --------------------------------------------------------------------------
   Touch devices
   --------------------------------------------------------------------------
   iOS has no hover, but it fakes one: tapping an element leaves :hover applied
   until you tap somewhere else. A card that lifts on hover stays lifted, the
   marquee stops permanently after a stray tap, and the page looks stuck. These
   only fire where the device genuinely has no hovering pointer, so desktop is
   untouched. */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .pillar:hover,
  .case:hover,
  .media--band:hover { transform: none; }

  .marquee:hover .marquee__track { animation-play-state: running; }
  .link-arrow:hover svg { transform: none; }
  .brand:hover .brand__logo { opacity: 1; }
  .icon-btn:hover { background: var(--surface); border-color: var(--border); }
}

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