/* ============================================================
   nuuco website — shared design system
   Palette: deep teal accent on cool paper / blue-black ink.
   Tokenised for light + dark; both themes get equal care.
   ============================================================ */

/* ---------- Fonts (self-hosted) ----------
   IBM Plex, served from our own domain rather than Google Fonts: no third-party
   request on page load, and no visitor data leaving for fonts.googleapis.com —
   which matters for UK and EU visitors. Latin subset only; nine files, 192 KB
   total, cached for a year via _headers.
   Only the weights the site actually uses are here. If you introduce a new one,
   add the file to assets/fonts/ and a matching @font-face below, or the browser
   will synthesise it and it will look wrong.
   Source: @fontsource/ibm-plex-{sans,serif,mono} on npm. Licence: SIL OFL 1.1.
   ------------------------------------------------------------ */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/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("../assets/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("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

/* Serif is only ever used italic — hero emphasis and case study quotes. */
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/ibm-plex-serif-latin-500-italic.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-latin-400-normal.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-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Brand: slate blue #7894A3 · grey #A7A9AB · red #EF4036.
     Slate deepened to #4A6572 for legible text; red kept at #EF4036 for
     decorative pops, deepened to #C42A1C where white text sits on it. */
  --paper: #F3F5F6;
  --surface: #FFFFFF;
  --surface-2: #EAEEEF;
  --ink: #16242B;
  --ink-soft: #3E525C;
  --muted: #6E7C82;
  --line: #DCE1E3;
  --line-strong: #C4CCCF;
  --accent: #4A6572;
  --accent-strong: #37505B;
  --accent-wash: #E7ECEE;
  --pop: #C42A1C;
  --pop-bright: #EF4036;
  --pop-strong: #A81F13;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  /* Type: IBM Plex throughout — sans, serif and mono from one family so
     headings, body, editorial accents and labels all agree. Self-hosted via the
     @font-face rules above; system stacks are the fallback. */
  --f-display: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "IBM Plex Serif", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F181D; --surface: #16232B; --surface-2: #1C2C34;
    --ink: #E7EDEF; --ink-soft: #BDCBD1; --muted: #879199;
    --line: #263840; --line-strong: #324750;
    --accent: #9DB4C0; --accent-strong: #B6C9D2; --accent-wash: #182A32;
    --pop: #E5473B; --pop-bright: #FF5647; --pop-strong: #FF6D62;
  }
}
:root[data-theme="dark"] {
  --paper: #0F181D; --surface: #16232B; --surface-2: #1C2C34;
  --ink: #E7EDEF; --ink-soft: #BDCBD1; --muted: #879199;
  --line: #263840; --line-strong: #324750;
  --accent: #9DB4C0; --accent-strong: #B6C9D2; --accent-wash: #182A32;
  --pop: #E5473B; --pop-bright: #FF5647; --pop-strong: #FF6D62;
}
:root[data-theme="light"] {
  --paper: #F3F5F6; --surface: #FFFFFF; --surface-2: #EAEEEF;
  --ink: #16242B; --ink-soft: #3E525C; --muted: #6E7C82;
  --line: #DCE1E3; --line-strong: #C4CCCF;
  --accent: #4A6572; --accent-strong: #37505B; --accent-wash: #E7ECEE;
  --pop: #C42A1C; --pop-bright: #EF4036; --pop-strong: #A81F13;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;   /* Plex runs slightly larger on the x-height than the old system stack */
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.mono {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.tnum { font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--pop); color: #fff; }
.btn-primary:hover { background: var(--pop-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); }
.brand span { color: var(--pop-bright); }
.brand-logo { height: 26px; width: auto; display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; font-size: 17px; line-height: 1; align-items: center; justify-content: center; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.theme-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft);
  width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; font-size: 15px; line-height: 1;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px;
  }
  header.nav.open .nav-menu { display: flex; }
  .nav-menu a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-menu a:last-child { border-bottom: none; }
}

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head h2 { margin-top: 12px; }
.sec-head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { border-top: none; padding-top: clamp(52px, 7vw, 84px); padding-bottom: clamp(30px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 16px; }
.page-hero .lede { color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.25rem); margin-top: 20px; max-width: 620px; }

/* ---------- Home hero ---------- */
.hero { border-top: none; padding-top: clamp(52px, 7vw, 88px); position: relative; overflow: hidden; }
.hero .grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 78% 18%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 78% 18%, #000 0%, transparent 62%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); letter-spacing: -0.03em; margin-top: 20px; }
.hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--pop-bright); letter-spacing: -0.01em; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--ink-soft); margin-top: 24px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .n { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.hero-meta .l { font-size: 12.5px; color: var(--muted); }

/* ---------- Trust bar ---------- */
.trust { background: var(--surface); }
.trust .lab { color: var(--muted); text-align: center; display: block; margin-bottom: 26px; }
.logos { display: flex; flex-wrap: wrap; gap: 26px 44px; justify-content: center; align-items: center; }
/* Client logos are pre-trimmed and optically sized (each file is 3x its display
   size, set per-logo via width/height attributes) so they carry equal visual
   weight. Colour is stripped here, not baked in: brightness(0) flattens any
   artwork to a single tone while keeping its alpha, and dark mode inverts it. */
.logos img {
  display: block; height: auto; max-width: 100%;
  filter: brightness(0); opacity: .55;
  transition: opacity .2s ease, filter .2s ease;
}
.logos img:hover { opacity: .95; }
@media (prefers-color-scheme: dark) { .logos img { filter: brightness(0) invert(1); opacity: .6; } }
:root[data-theme="dark"] .logos img { filter: brightness(0) invert(1); opacity: .6; }
:root[data-theme="light"] .logos img { filter: brightness(0); opacity: .55; }
@media (max-width: 700px) { .logos { gap: 20px 30px; } .logos img { transform: scale(.85); } }

/* ---------- Problem grid ---------- */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--pop-bright); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 9px; }
.pain h3 { font-size: 1.02rem; }
.pain p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; transition: background .2s ease; }
.svc:hover { background: var(--surface-2); }
.svc .num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.svc p { color: var(--ink-soft); font-size: 0.97rem; }
.svc ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 100px; }

/* ---------- Roadmap list (lighter than cards on purpose) ---------- */
.roadmap { max-width: 760px; margin-top: 34px; }
.roadmap > p { color: var(--ink-soft); font-size: 0.98rem; margin: 12px 0 20px; }
.roadmap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.roadmap li { color: var(--ink-soft); font-size: 0.96rem; padding-left: 16px; border-left: 2px solid var(--line-strong); }
.roadmap li b { color: var(--ink); font-weight: 600; }

/* ---------- Platform stack ---------- */
.stack { background: var(--surface); }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.plat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
a.plat-head { text-decoration: none; }
a.plat-head:hover .name { color: var(--accent); }
a.plat-head:hover .plat-logo { border-color: var(--accent); }
.plat-logo { height: 54px; width: auto; max-width: 140px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 9px; flex: none; transition: border-color .15s ease; }
/* Around 1000px the grid sits at three ~246px columns, its tightest point —
   pull the logo back so it doesn't crowd the platform name beside it. */
@media (max-width: 1000px) { .plat-logo { height: 46px; max-width: 110px; } }
.plat .name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.plat .role { font-family: var(--f-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin: 6px 0 10px; }
.plat p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Case studies ---------- */
.cases { display: flex; flex-direction: column; gap: 22px; }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.case .body { padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.case .tag { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.case .tag .client { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; }
.client-logo { height: 30px; width: auto; display: block; }
/* Stacked (mark-over-wordmark) client logos need more height to stay legible
   than horizontal wordmarks do. Full-colour marks can't use the .mono invert,
   so they ship as a light/dark pair instead. */
.client-logo.stacked { height: 56px; }
/* Show exactly one of the light/dark pair. These need the extra class in the
   selector to outrank the .client-logo display above, which comes later in the
   file than the generic .logo-light / .logo-dark rules. */
.client-logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .client-logo.logo-light { display: none; }
  .client-logo.logo-dark { display: block; }
}
:root[data-theme="dark"] .client-logo.logo-light { display: none; }
:root[data-theme="dark"] .client-logo.logo-dark { display: block; }
:root[data-theme="light"] .client-logo.logo-light { display: block; }
:root[data-theme="light"] .client-logo.logo-dark { display: none; }
/* Monochrome client logos are black; invert to white on dark grounds. */
@media (prefers-color-scheme: dark) { .client-logo.mono { filter: invert(1); } }
:root[data-theme="dark"] .client-logo.mono { filter: invert(1); }
:root[data-theme="light"] .client-logo.mono { filter: none; }
.case .tag .sector { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.case .qa { display: flex; flex-direction: column; gap: 3px; }
.case .qa .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.case .qa .v { color: var(--ink-soft); font-size: 0.98rem; }
.case .metrics { background: #0C1A20; color: #EAF1F2; padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.case .metric .n { font-family: var(--f-mono); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; color: #FF6152; }
.case .metric .n .u { font-size: 1.3rem; color: rgba(255,255,255,.82); }
.case .metric .l { font-size: 13px; opacity: .78; margin-top: 2px; }
.case .metric .l em { font-style: italic; opacity: .8; }
.case-quote { grid-column: 1 / -1; padding: 30px 34px; border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 14px; margin: 0; }
.case-quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.case-quote cite { font-family: var(--f-mono); font-style: normal; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.case-quote cite b { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }

/* ---------- Engagement steps ---------- */
.engage { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--surface); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.step .no { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Journey (the shift) ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr; } }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.phase .when { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.phase h3 { font-size: 1.22rem; }
.phase p { color: var(--ink-soft); font-size: 0.96rem; }
.phase.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.phase.future { border-color: var(--pop-bright); box-shadow: inset 0 0 0 1px var(--pop-bright); background: var(--accent-wash); }
.phase.future .when { color: var(--pop-bright); }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.value { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 24px; background: var(--surface); }
.value .no { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.value h3 { margin: 8px 0 8px; }
.value p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.member { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.member .ph { aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--surface-2), var(--accent-wash)); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; color: var(--accent); letter-spacing: -0.03em; }
.member-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.member .info { padding: 18px 20px; }
.member .nm { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; }
.member .rl { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.member .cert { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; margin-top: 10px; text-transform: uppercase; }
.team-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.team-photo-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Prose (About / long copy) ---------- */
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; }
.prose .statement { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact { color: #fff; border-top: none; background: linear-gradient(160deg, #3C5761, #22333B); }
@media (prefers-color-scheme: dark) { .contact { background: linear-gradient(160deg, #182831, #0C1418); } }
:root[data-theme="dark"] .contact { background: linear-gradient(160deg, #182831, #0C1418); }
:root[data-theme="light"] .contact { background: linear-gradient(160deg, #3C5761, #22333B); }
.contact h2 { color: #fff; }
.contact .mono { color: rgba(255,255,255,.72); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact p.sub { color: rgba(255,255,255,.86); margin-top: 16px; max-width: 420px; }
.contact .details { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact .details div { display: flex; flex-direction: column; }
.contact .details .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact .details .v { color: #fff; font-size: 1.05rem; }
form { display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,.08); padding: 26px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18); }
form label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: -8px; }
form input, form textarea { background: rgba(255,255,255,.96); border: 1px solid transparent; border-radius: var(--radius); padding: 11px 13px; font-family: var(--f-body); font-size: 15px; color: #0C1A20; }
form input:focus, form textarea:focus { outline: 2px solid #fff; outline-offset: 1px; }
form button { background: var(--ink); color: #fff; border: none; padding: 13px; border-radius: var(--radius); font-family: var(--f-body); font-weight: 600; font-size: 15px; cursor: pointer; }
:root[data-theme="dark"] form button { background: #06120F; }
form button:hover { background: #06120F; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Footer ---------- */
footer { background: #0C1A20; color: #EAF1F2; padding-block: 48px; }
:root[data-theme="dark"] footer { background: var(--surface); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.foot-grid .brand { color: #fff; font-size: 1.5rem; }
.foot-grid .brand span { color: var(--pop-bright); }
.foot-tagline { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 10px; max-width: 280px; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col .h { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.foot-col a, .foot-col span { color: rgba(255,255,255,.82); font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Policy / legal pages ---------- */
.policy { max-width: 760px; }
.pol-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.policy h2 { margin: 30px 0 8px; font-size: 1.15rem; }   /* numbered sections — h2 so the outline runs h1 → h2 */
.policy p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 20px; }
.policy li { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; margin-bottom: 6px; }
.policy a { text-decoration: underline; }
.foot-bottom a { color: rgba(255,255,255,.55); }
.foot-bottom a:hover { color: #fff; }

/* ---------- Agentic flow diagram ---------- */
.flow-cap { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin: 44px 0 18px; }
.agent-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.flow-node { flex: 1 1 150px; min-width: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.flow-node .fl-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.flow-node h4 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); }
.flow-node p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.35; }
.flow-node.human { border-color: var(--pop-bright); box-shadow: inset 0 0 0 1px var(--pop-bright); }
.flow-node.human .fl-k { color: var(--pop-bright); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; font-weight: 700; flex: 0 0 auto; }
@media (max-width: 760px) {
  .flow-node { flex-basis: 100%; }
  .flow-arrow { width: 100%; transform: rotate(90deg); padding: 2px 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
