/* ================= SELF-HOSTED FONTS ================= */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ================= TOKENS ================= */
:root {
  color-scheme: light;

  /* light content zone (Option D) */
  --ground:      #F6F5F2;
  --band:        #EDEBE6;
  --card:        #FFFFFF;
  --line:        #E1DED6;
  --line-strong: #D4CFC4;
  --ink:         #14181D;
  --body:        #3C4046;
  --muted:       #5C5F64;
  --accent:      #0B2E52;
  --accent-grad: linear-gradient(135deg, #2A5FA0 0%, #0C2A4E 100%);
  --btn-text:    #FFFFFF;
  --navy-bar:    #0F2A50;
  --on-navy:     #EAF0F8;
  --shadow-hover: 0 22px 48px -16px rgba(15,20,28,0.24), 0 8px 18px -8px rgba(15,20,28,0.10);
  --flag:        #875100;

  /* brand darks */
  --brand-navy:  #0B1524;
  --brand-cyan:  #46D6F2;
  --current:     linear-gradient(114deg, #46D6F2 0%, #2C7BE0 100%);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 60px);
  --step: clamp(80px, 11vw, 132px);

  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* dark zones re-scope the same token names */
.site-header, .hero, .site-footer {
  --ground:      #0B1524;
  --band:        #0B1524;
  --card:        #0B1524;
  --line:        rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.22);
  --ink:         #FFFFFF;
  --body:        #C6D2E2;
  --muted:       #91A4BD;
  --accent:      #55D6F4;
  --accent-grad: var(--current);
  --btn-text:    #06121E;
  --flag:        #E8B15A;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 4px; font-family: var(--mono); font-size: 13px;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

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

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-grad); }

/* ================= BUTTONS — one behaviour for all ================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  padding: 14px 22px; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--accent-grad); color: var(--btn-text); box-shadow: 0 8px 20px -8px rgba(11,37,70,0.45); }
.btn--primary:hover { box-shadow: 0 15px 32px -10px rgba(11,37,70,0.55); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); box-shadow: 0 12px 26px -14px rgba(20,24,29,0.28); }

.btn--chip { background: #FFFFFF; color: #14181D; box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.3); }
.btn--chip:hover { box-shadow: 0 18px 36px -10px rgba(0,0,0,0.58), 0 3px 7px rgba(0,0,0,0.4); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn__arrow, .btn:hover .btn__arrow { transform: none; }
}

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,22,50,0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #0B1524; }
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 4px; background: var(--current); color: #06121E;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
}
.brand__name { font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.brand__name b { font-weight: 600; color: var(--brand-cyan); }
.brand__name span { display: block; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.16em; color: #8ea0b7; text-transform: uppercase; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 15px; color: #A9BACE; transition: color .15s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle {
    display: inline-flex; background: none; border: 1px solid var(--line-strong);
    color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
    padding: 10px 14px; border-radius: 3px; cursor: pointer; text-transform: uppercase;
  }
  .mobile-menu { display: none; background: #0C1728; border-bottom: 1px solid var(--line); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 15px var(--pad); color: #A9BACE; border-top: 1px solid rgba(255,255,255,0.07); font-size: 16px; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* Services dropdown */
.nav__links a.is-active { color: #fff; }
.nav__has-sub { position: relative; }
.nav__sub-toggle {
  background: none; border: 0; color: #A9BACE; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
  font-size: 15px; transition: color .15s ease;
}
.nav__sub-toggle:hover, .nav__sub-toggle.is-active, .nav__has-sub[data-open="true"] .nav__sub-toggle { color: #fff; }
.nav__sub-caret { font-size: 10px; line-height: 1; transition: transform .15s ease; }
.nav__has-sub[data-open="true"] .nav__sub-caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .nav__sub-caret { transition: none; } }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #0C1728; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px; margin: 0; list-style: none; display: none; z-index: 60;
}
/* Transparent bridge across the gap between the toggle and the menu, so the
   pointer can travel from one to the other without the dropdown closing. */
.nav__sub::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px;
}
.nav__has-sub[data-open="true"] .nav__sub { display: block; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 4px; font-size: 14px; color: #A9BACE; }
.nav__sub a:hover, .nav__sub a:focus-visible { background: rgba(255,255,255,0.06); color: #fff; }
@media (hover: hover) {
  .nav__has-sub:hover .nav__sub { display: block; }
  .nav__has-sub:hover .nav__sub-caret { transform: rotate(180deg); }
}

@media (max-width: 900px) {
  .mobile-menu a.mobile-menu__sub { padding-left: calc(var(--pad) + 18px); font-size: 15px; color: #8497ad; }
}

/* ================= HERO ================= */
.hero { position: relative; background: var(--brand-navy); padding: clamp(64px, 11vw, 116px) 0 var(--step); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -32% -10% auto -10%; height: 600px; z-index: 0;
  background: radial-gradient(58% 60% at 30% 20%, rgba(44,123,224,0.22), transparent 70%),
              radial-gradient(48% 50% at 78% 10%, rgba(63,208,240,0.16), transparent 70%);
  filter: blur(18px); animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-24px, 24px, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero__glow { animation: none; } }

.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(44px, 8vw, 90px); margin-top: 24px; }
.hero h1 .flu { background: var(--current); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 24px; max-width: 44ch; font-size: clamp(17px, 2vw, 20px); color: var(--body); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 13px; }

/* Compact hero strip for inner pages — header, not full-height hero */
.hero--compact { padding: clamp(56px, 9vw, 92px) 0 clamp(52px, 8vw, 80px); }
.hero--compact h1 { font-size: clamp(32px, 5vw, 52px); }
.hero--compact .hero__lead { margin-top: 16px; }

/* Split hero (About): heading left, team photo right.
   .hero__inner normally caps at 900px (for the single-column text hero);
   restore the full .wrap width (--maxw) so this two-column row lines up
   with every other section's margins, then lay it out as a grid. */
.hero--split .hero__inner {
  max-width: var(--maxw);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero--split .hero__text { max-width: 480px; }
.hero__photo {
  margin: 0; border-radius: 12px; overflow: hidden; line-height: 0;
  border: 1px solid var(--line); box-shadow: var(--shadow-hover);
}
.hero__photo img { display: block; width: 100%; height: auto; object-fit: cover; }
@media (max-width: 900px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero--split .hero__text { max-width: none; }
  .hero--split .hero__photo { order: -1; }
}

/* Homepage: the trust-stats row sits under both hero columns as its own
   full-width grid row (on mobile it follows the text, below the photo). */
.hero--split .trust { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 16px); }

.trust {
  margin-top: var(--step);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.trust__cell { background: var(--brand-navy); padding: 22px 20px; }
.trust__num { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.trust__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: #7f92ab; margin-top: 6px; }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ================= PLACEHOLDER MARKING ================= */
.ph { color: var(--flag); border-bottom: 1px dashed color-mix(in srgb, var(--flag) 55%, transparent); }
.ph-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--flag); border: 1px solid color-mix(in srgb, var(--flag) 45%, transparent);
  border-radius: 2px; padding: 1px 4px; margin-left: 6px; vertical-align: 2px; white-space: nowrap;
}
.sample-banner {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--flag); border: 1px dashed color-mix(in srgb, var(--flag) 45%, transparent);
  border-radius: 3px; padding: 7px 12px; margin-bottom: 28px;
}

/* ================= SECTION SCAFFOLD ================= */
.band { padding: var(--step) 0; background: var(--ground); border-top: 1px solid var(--line); }
.band--alt { background: var(--band); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head--wide { max-width: 820px; }
@media (min-width: 860px) { .section-head--wide p { white-space: nowrap; } }
.section-head h1, .section-head h2 { font-size: clamp(29px, 4.2vw, 44px); margin-top: 18px; }
.section-head p { margin-top: 16px; color: var(--body); font-size: clamp(17px, 2vw, 19px); font-weight: 500; }
/* Contact page opens with no dark hero — tighten the light band's top so the
   header isn't followed by a big empty gap (still clears the 76px sticky header). */
.band--contact { padding-top: clamp(92px, 9vw, 108px); }

/* ================= IDEA ================= */
.idea { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(34px, 6vw, 84px); align-items: start; }
.idea__head h2 { font-size: clamp(29px, 4.2vw, 44px); margin-top: 18px; }
.idea__body p { color: var(--body); }
.idea__body p + p { margin-top: 16px; }

/* "You say / We hear" example card — makes the headline's claim concrete
   instead of just stated, and fills the idea__head column's empty space. */
.translate {
  margin-top: 30px; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px; display: grid; gap: 1px;
  box-shadow: 0 1px 2px rgba(20,24,29,0.05);
}
.translate__row { padding: 16px 18px; border-radius: 4px; }
.translate__row p { margin-top: 6px; font-size: 14.5px; color: var(--body); }
.translate__tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.translate__row--accent { background: var(--band); }
.translate__row--accent .translate__tag { color: var(--accent); }
.translate__row--accent p { color: var(--ink); font-weight: 500; }

.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 26px; }
.point { background: var(--card); padding: 19px 22px; }
.point__no { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.point h3 { font-family: var(--body-font); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.point p { font-size: 14px; color: var(--muted); margin-top: 5px; }
@media (max-width: 880px) { .idea { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .points { grid-template-columns: 1fr; } }

/* ================= SERVICES ================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: 5px;
  padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 11px; min-height: 208px;
  box-shadow: 0 1px 2px rgba(20,24,29,0.05);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease;
}
.svc:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: reduce) { .svc, .svc:hover { transform: none; } }
.svc__no { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.svc__icon { display: block; width: 30px; height: 30px; color: var(--accent); }
.svc__icon svg { width: 100%; height: 100%; display: block; }
.svc h3 { font-size: 19px; }
.svc p { font-size: 14.5px; color: var(--body); }
.svc__link { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--accent); display: inline-flex; gap: 7px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ================= INLINE CTA BAR ================= */
.inline-cta {
  margin-top: 52px; padding: 24px clamp(22px, 4vw, 34px);
  background: var(--navy-bar); border-radius: 5px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.inline-cta p { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2.1vw, 21px); color: #fff; letter-spacing: -0.01em; }
.inline-cta p span { display: block; margin-top: 5px; font-family: var(--body-font); font-weight: 400; font-size: 14.5px; color: var(--on-navy); letter-spacing: 0; }

/* ================= HOW WE WORK ================= */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.track__line { position: absolute; left: 0; top: 13px; height: 2px; width: 100%; background: var(--accent-grad); transform-origin: left; transform: scaleX(0); }
body.ready .track__line { transition: transform 1.5s cubic-bezier(.2,.7,.2,1) .25s; transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { body.ready .track__line { transition: none; transform: scaleX(1); } }
.stepc { position: relative; padding-top: 40px; }
.stepc__dot { position: absolute; top: 5px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--accent); }
.stepc__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
.stepc h3 { font-size: 20px; margin-top: 10px; }
.stepc p { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) {
  .track { grid-template-columns: 1fr; gap: 8px; }
  .track::before, .track__line { left: 7px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  body.ready .track__line { transform: scaleY(1); transform-origin: top; }
  .stepc { padding: 4px 0 22px 34px; }
  .stepc__dot { top: 4px; }
}

/* ================= WHY ================= */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.why { background: var(--card); padding: 32px 30px; }
.why h3 { font-family: var(--body-font); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.why p { font-size: 14.5px; color: var(--body); margin-top: 10px; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

/* ================= PRICING TIERS ================= */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: 5px;
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20,24,29,0.05);
}
.tier h3 { font-size: 18px; }
.tier__price { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }
.tier p { font-size: 14.5px; color: var(--body); margin-top: 2px; }
.tier-note { margin-top: 22px; }
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }

/* ================= SERVICE DETAIL — CHIPS + FAQ ================= */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 6px 11px; background: var(--card); }
.faq { display: grid; gap: 0; }
.faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.faq dd { margin: 8px 0 0; color: var(--body); font-size: 15px; }

/* ================= WORK ================= */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--card);
  box-shadow: 0 1px 2px rgba(20,24,29,0.05);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s cubic-bezier(.2,.7,.2,1);
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: reduce) { .case, .case:hover { transform: none; } }
.case__vis { height: 148px; background: linear-gradient(120deg, rgba(42,95,160,0.12), rgba(12,42,78,0.12)); position: relative; overflow: hidden; }
.case__vis::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 11px, rgba(11,37,70,0.06) 11px 12px); }
.case__vis--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.case__body { padding: 22px 22px 26px; }
.case__sector { font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 18px; margin-top: 8px; }
.case p { font-size: 14px; color: var(--body); margin-top: 10px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work-grid:empty { display: none; }
.blog-empty { color: var(--muted); font-size: 15px; margin: 6px 0 40px; }

/* ================= UNITED CTA + FOOTER (Alliance style) ================= */
.site-footer { background: var(--brand-navy); padding: 0 0 44px; }
.foot-cta { text-align: center; padding: var(--step) var(--pad) clamp(46px, 6vw, 66px); }
.foot-cta h2 { font-size: clamp(28px, 4.4vw, 46px); margin: 18px auto 0; text-wrap: pretty; }
.foot-cta p { margin: 18px auto 30px; color: var(--body); max-width: 52ch; text-wrap: pretty; }
.foot-cta br { display: none; }
@media (min-width: 620px) { .foot-cta br { display: inline; } }
.foot-top {
  display: grid; grid-template-columns: 1.5fr 1.55fr 1.4fr 0.85fr; gap: 40px;
  padding-top: clamp(46px, 6vw, 66px); border-top: 1px solid var(--line);
}
/* When a page hides the .foot-cta, .foot-top leads the footer — give it room, drop the rule */
.site-footer .wrap > .foot-top:first-child { padding-top: var(--step); border-top: none; }
.foot-brand p { font-family: var(--mono); font-size: 12px; color: #7f92ab; margin: 16px 0 22px; letter-spacing: 0.03em; }
.foot-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: #A9BACE; margin: 0 0 16px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-col ul a { font-size: 14px; color: #93A4BD; }
.foot-col ul a:hover { color: #fff; }
.foot-contact li { display: grid; gap: 3px; font-size: 14px; color: #C6D2E2; }
.foot-contact li span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #7C8FA8; }
.foot-meta {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: #7C8FA8;
}
.foot-meta__btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: inherit;
}
.foot-meta__btn:hover { color: #A9BACE; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 34px 28px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* ================= LOAD SEQUENCE ================= */
body:not(.ready) .rise { opacity: 0; transform: translateY(14px); }
body.ready .rise { transition: opacity .7s ease, transform .7s ease; }
body.ready .rise.d1 { transition-delay: .04s; }
body.ready .rise.d2 { transition-delay: .12s; }
body.ready .rise.d3 { transition-delay: .20s; }
body.ready .rise.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { body:not(.ready) .rise { opacity: 1; transform: none; } }

/* ================= CONSENT NOTICE ================= */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 460px; margin-left: auto;
  background: #0C1728; color: #C6D2E2; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; padding: 16px 18px;
  font-size: 13.5px; box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5);
}
.consent p { margin: 0 0 12px; }
.consent a { color: #55D6F4; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent__actions button {
  font: inherit; font-size: 12px; cursor: pointer; padding: 8px 16px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #E9F1FB;
}
.consent__actions button[data-consent="granted"] { background: var(--current); border-color: transparent; color: #06121E; }

/* ================= TEAM GRID (About) ================= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 6px;
  object-fit: cover; object-position: 50% 22%;
}
.team-grid figure { margin: 0; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* ================= CONTACT FORM ================= */
.form-grid { display: grid; gap: 18px; max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 13px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #B00020; font-size: 13px; }
.field.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field.field--check label { text-transform: none; letter-spacing: 0; font-family: var(--body-font); font-size: 14px; color: var(--body); }
.field.field--check .err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.err:empty { display: none; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: 4px; font-size: 14px;
  color: #B00020; background: rgba(176, 0, 32, .07); border: 1px solid rgba(176, 0, 32, .3);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 3px; font-size: 14px; color: var(--body); }
.contact-list li span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--accent); }

/* Contact page — two columns: copy + details left, form right (Alliance-style) */
.contact-cols {
  display: grid; grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.contact-cols .form-grid { max-width: none; }
.contact-intro h1 { font-size: clamp(29px, 4vw, 42px); margin-top: 18px; }
.contact-intro p { margin-top: 16px; color: var(--muted); max-width: 42ch; }
.contact-intro .contact-list { margin-top: 34px; gap: 16px; }
.contact-cols .contact-list li { font-size: 15px; }
@media (max-width: 860px) { .contact-cols { grid-template-columns: 1fr; gap: 40px; } }

/* ================= PROSE (Privacy, Blog) ================= */
.prose { max-width: 68ch; overflow-wrap: break-word; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 96px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: underline; }
/* Callouts ("Quick win:", "Common mistake:", before/after examples) in blog
   articles. Without this the UA default 40px side margins squeeze the text
   on phones. */
.prose blockquote { margin: 20px 0; padding: 14px 18px; background: var(--band); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.prose blockquote p { margin: 0; }
.prose blockquote + blockquote { margin-top: 12px; }

/* ================= BLOG ARTICLE ================= */
/* Byline row under the hero lead: author · date · read time. */
.article-meta {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em;
}
.article-meta__dot { color: var(--line-strong); }

/* Featured image, full-bleed within .wrap, sitting between the hero and the
   two-column body. Blog agent leaves this empty (no wrapped content) when an
   article has no image, so :empty hides it — same pattern as .work-grid:empty. */
.article-hero-image { margin: 0 0 var(--step); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-hover); line-height: 0; }
.article-hero-image:empty { display: none; }
.article-hero-image img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Sticky table-of-contents sidebar + prose, same shape as .policy-cols below
   (Privacy) — kept as its own named rule per this site's usual convention of
   one class per context (see .svc-grid/.tier-grid/.work-grid) rather than
   sharing .policy-cols across unrelated page types. */
.article-cols {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.article-aside { position: sticky; top: 96px; }
.article-aside:empty { display: none; }
/* .toc is the blog agent's own generated markup (nav.toc > .toc__label +
   ul > li.toc__item(--h2|--h3) > a) — see the CmsAdapter's
   article-enrichment.ts. Only rendered at all for 2+ headings. */
.toc__label { text-transform: uppercase; letter-spacing: 0.09em; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.toc__item--h3 { padding-left: 14px; }
.toc a { color: var(--body); text-decoration: none; font-size: 14px; }
.toc a:hover, .toc a:focus-visible { color: var(--accent); text-decoration: underline; }
@media (max-width: 860px) {
  /* minmax(0, 1fr), not 1fr: a plain 1fr track can't shrink below its
     content's min-content width, so one wide table pushed every paragraph
     past the right edge of the screen. */
  .article-cols { grid-template-columns: minmax(0, 1fr); }
  /* The ToC is hidden on small screens; hide its whole column so the grid
     gap doesn't leave empty space above the article. */
  .article-aside { display: none; }
  .article-hero-image { margin-bottom: 32px; }
}

/* Markdown tables in the prose body (comparison/before-after/do's-and-don'ts
   tables) — the blog agent's sanitizer allows table/thead/tbody/tr/th/td as
   of its content-richness update. Column alignment (marked's GFM
   :---/:---:/---: syntax → align="...") is deliberately not supported: the
   sanitizer drops it since html-validate:recommended flags align as a
   deprecated attribute — every column renders left-aligned instead. */
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.prose table:first-child { margin-top: 0; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--band); font-family: var(--display); font-weight: 600; color: var(--ink); }
.prose td { color: var(--body); }
@media (max-width: 600px) {
  /* No wrapper div is available (the sanitizer doesn't allow one around
     table) — display: block turns the table element itself into the
     horizontal scroll container instead. */
  .prose table { display: block; overflow-x: auto; }
  /* Let cell text wrap (nowrap made a 3-column table ~700px wide); the min-width
     keeps narrow columns readable and anything still too wide scrolls. */
  .prose th, .prose td { padding: 8px 10px; min-width: 7.5em; }
}

/* FAQ section — the blog agent's {{FAQ_HTML}} placeholder, nested inside
   .prose (see the article body template in docs/FTPS.md) so its h2/h3/p
   inherit .prose's own typography for free; this just adds a visual
   divider from the article body above it. Renders nothing when the
   article has no faqs (an empty {{FAQ_HTML}} string). */
.prose .faq { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose .faq h2 { margin-top: 0; }
.prose .faq__item + .faq__item { margin-top: 24px; }
.prose .faq__item h3 { margin-top: 0; }

.policy-cols {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.policy-cols .prose { max-width: 70ch; }
.policy-aside { position: sticky; top: 96px; display: grid; gap: 24px; font-size: 14px; }
.policy-updated { display: grid; gap: 3px; }
.policy-updated span {
  text-transform: uppercase; letter-spacing: 0.09em; font-size: 11px; color: var(--muted);
}
.policy-updated time { font-weight: 500; color: var(--body); }
.policy-toc p {
  text-transform: uppercase; letter-spacing: 0.09em; font-size: 11px; color: var(--muted);
  margin-bottom: 12px;
}
.policy-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.policy-toc a { color: var(--body); text-decoration: none; }
.policy-toc a:hover, .policy-toc a:focus-visible { color: var(--accent); text-decoration: underline; }
.policy-ask { color: var(--muted); line-height: 1.6; }
.policy-ask a { color: var(--accent); }
@media (max-width: 860px) {
  .policy-cols { grid-template-columns: 1fr; gap: 36px; }
  .policy-aside { position: static; }
  .policy-toc { display: none; }
}

/* Visible "Last updated" line (page-end.php) */
.page-updated { padding-block: 0 40px; font-size: 13px; color: var(--muted); }

/* Comparison / cost tables on service pages (service-page.php 'sections') */
.compare-wrap { overflow-x: auto; margin-top: 8px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--band); font-family: var(--display); font-weight: 600; color: var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; background: var(--card); }
.compare td { color: var(--body); background: var(--card); }
.idea__body--after { margin-top: 24px; }
.idea__body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .compare th, .compare td { padding: 9px 11px; min-width: 8em; } }
