@charset "UTF-8";
/* ==========================================================================
   AI Plus Informatics — site.css
   One hand-written stylesheet. No framework, no build step, no utility soup.
   Order: tokens · reset · typography · layout · components · sections · responsive
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Brand — one accent colour, used with discipline. */
  --brand-800: #0B3A85;
  --brand-700: #0F47A1;
  --brand-600: #1557C0;
  --brand-500: #2E6FD8;
  --brand-300: #8FB5EC;
  --brand-100: #D6E4F8;
  --brand-050: #EAF1FB;

  /* Navy — the dark end of the range. */
  --navy-950: #071A33;
  --navy-900: #0A2143;
  --navy-800: #0E2E5C;
  --navy-700: #123B73;

  /* Text */
  --ink:      #0F2C5C;
  --ink-soft: #274574;
  --body:     #4F5D72;
  --muted:    #6B7A90;
  --on-dark:  #FFFFFF;
  --on-dark-soft: rgba(255,255,255,.76);
  --on-dark-mute: rgba(255,255,255,.58);

  /* Surfaces */
  --white:        #FFFFFF;
  --surface-soft: #F3F7FD;
  --surface-tint: #EAF1FB;
  --line:         #E3E9F2;
  --line-strong:  #CFDAEA;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation — borders first, shadow only where depth is real. */
  --shadow-sm: 0 1px 2px rgba(15,44,92,.06);
  --shadow-md: 0 1px 2px rgba(15,44,92,.06), 0 10px 28px -16px rgba(15,44,92,.28);
  --shadow-lg: 0 2px 4px rgba(15,44,92,.06), 0 24px 56px -28px rgba(15,44,92,.36);

  /* Rhythm */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 104px;
  --section-y-sm: 64px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --header-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip, not hidden: it suppresses sideways scrolling without turning the root
     into a scroll container, which would break the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

/* Vietnamese sets a little tighter — the diacritics need the line-height, not the size. */
.lang-vi body, body.lang-vi { font-size: 1.03125rem; line-height: 1.78; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--surface-tint); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

address { font-style: normal; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--brand-100); color: var(--ink); }

/* Focus: visible, consistent, never removed. */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--brand-600); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ----------------------------------------------------------- 3. TYPOGRAPHY */
.h1, h1 { font-size: clamp(2.25rem, 1.35rem + 3.3vw, 3.5rem); font-weight: 800; }
.h2, h2 { font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.5rem); }
.h3, h3 { font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem); }
.h4, h4 { font-size: 1.0625rem; font-weight: 700; }

.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 18px;
}
.on-dark .eyebrow, .cta-band .eyebrow { color: var(--brand-300); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 60ch;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.0625rem; }
.section-head--left { text-align: left; margin-left: 0; }

/* Long-form body copy. */
.prose { max-width: 68ch; }
.prose h2 { margin: 2.6em 0 .6em; }
.prose h3 { margin: 2em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; }
.prose li {
  position: relative; padding-left: 28px; margin-bottom: .55em; list-style: none;
}
.prose ul > li::before {
  content: ""; position: absolute; left: 6px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-300);
}
.prose ol { counter-reset: p; }
.prose ol > li { counter-increment: p; }
.prose ol > li::before {
  content: counter(p) "."; position: absolute; left: 0; top: 0;
  color: var(--brand-600); font-weight: 700;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------------- 4. LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 72px; }
.section--soft { background: var(--surface-soft); }
.section--tint { background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface-soft) 100%); }
.section--dark { background: var(--navy-900); color: var(--on-dark-soft); }
.section--dark h2, .section--dark h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Two columns whose heights rarely match — a short heading beside a long
   passage. Top-aligned, because centring drops the heading into the middle of
   the whitespace and reads like a mistake. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--center { align-items: center; }
.split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.stack-8  > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

/* ----------------------------------------------------------- 5. COMPONENTS */

/* 5.1 Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-bd: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
              transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn .icon { width: 17px; height: 17px; flex: none; }
.btn:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn-primary { box-shadow: 0 6px 18px -8px rgba(21,87,192,.55); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(21,87,192,.6); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--brand-050); --btn-bd: var(--brand-300); color: var(--brand-700); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--brand-050); --btn-bd: var(--brand-050); color: var(--brand-700); }

.btn-outline-light {
  --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4);
}
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: #fff; color: #fff; }

.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 5.2 Text link with arrow ------------------------------------------------ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brand-600);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #fff; }

/* 5.3 Icons --------------------------------------------------------------- */
.icon { width: 24px; height: 24px; flex: none; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--brand-050);
  color: var(--brand-600);
}
.icon-chip .icon { width: 26px; height: 26px; }
.icon-chip--plain { background: transparent; width: auto; height: auto; }

/* 5.4 Cards --------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              transform .18s var(--ease);
}
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--body); font-size: .9688rem; line-height: 1.65; }
.card .link-arrow { margin-top: auto; padding-top: 18px; }

.card--link:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Whole-card click target without nesting interactive elements. */
.card--link .stretched::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
}

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.tag--muted { background: var(--surface-soft); color: var(--muted); }
.tag--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .7;
}

/* 5.5 Forms --------------------------------------------------------------- */
.field { display: block; margin-bottom: 22px; }
.field > label,
.field > .field-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .req { color: #C0392B; margin-left: 2px; }
.field-hint { display: block; font-size: .8125rem; color: var(--muted); margin-top: 6px; }

.input, .textarea, .select,
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: .9688rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7A90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.input:focus, .textarea:focus, .select:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(46,111,216,.16);
}
.input.has-error, textarea.has-error, select.has-error { border-color: #C0392B; }

.field-error { display: block; color: #C0392B; font-size: .8125rem; font-weight: 500; margin-top: 6px; }

/* Honeypot: off-screen, never display:none — some bots skip hidden fields. */
.hp-field {
  position: absolute !important;
  left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

.form-note { font-size: .8125rem; color: var(--muted); }

.alert {
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: .9375rem;
  margin-bottom: 24px;
  border: 1px solid;
}
.alert-error { background: #FDF2F1; border-color: #F0C6C1; color: #8E2A20; }
.alert-ok    { background: #EEF7F1; border-color: #BFE0CB; color: #1E6B3C; }

/* 5.6 Breadcrumb ---------------------------------------------------------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; }
.breadcrumb li + li::before {
  content: "/"; color: var(--line-strong); font-size: .875rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- 6. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(15,44,92,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; background: transparent; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.brand-text span { font-size: .6563rem; color: var(--muted); letter-spacing: .015em; }
/* Use when logo.png already contains the company name. */
.brand--image-only .brand-text { display: none; }
.brand--image-only img { width: auto; height: 42px; }

.primary-nav { display: flex; align-items: center; margin-right: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-link .icon { width: 15px; height: 15px; opacity: .65; transition: transform .18s var(--ease); }
.nav-link:hover { color: var(--brand-600); background: var(--brand-050); }
.nav-link.is-current { color: var(--brand-600); font-weight: 600; }

/* Underline on the active item, matching the screenshot. */
.nav-item > .nav-link.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: var(--brand-600); border-radius: 2px;
}

.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Mega menu — CSS-driven so it still works without JS. */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  z-index: 60;
  min-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.mega--narrow { min-width: 330px; }
.nav-item:hover > .mega,
.nav-item:focus-within > .mega,
.mega.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-inner { padding: 12px; }

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background-color .14s var(--ease);
}
.mega-item:hover { background: var(--brand-050); }
.mega-ico {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-050);
  color: var(--brand-600);
}
.mega-item:hover .mega-ico { background: var(--brand-100); }
.mega-ico .icon { width: 20px; height: 20px; }
.mega-copy { display: flex; flex-direction: column; gap: 2px; }
.mega-copy strong { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.mega-copy em { font-style: normal; font-size: .8125rem; color: var(--muted); line-height: 1.45; }

.mega-all {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 14px 12px 4px;
  border-top: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--brand-600);
}
.mega-all .icon { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.mega-all:hover .icon { transform: translateX(4px); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-soft); color: var(--brand-600); }
.icon-btn .icon { width: 19px; height: 19px; }

.lang-switch {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .8125rem; font-weight: 600;
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--brand-600); }
.lang-switch a.is-active { color: var(--ink); }
.lang-switch span { color: var(--line-strong); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--ink); }
.nav-toggle .icon { width: 24px; height: 24px; margin-inline: auto; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.nav-mobile-foot { display: none; }
.nav-scrim { display: none; }

/* --------------------------------------------------------------- 7. HERO */
.hero {
  position: relative;
  background: linear-gradient(180deg, #EDF3FC 0%, #F6F9FD 62%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  /* The copy column is given the larger share so the H1 sets on three lines.
     Sized against the system fallback stack, not Inter, so a slow or blocked
     font request cannot turn the headline into four lines. */
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 560px;
  padding-block: clamp(48px, 5vw, 72px);
}
/* Wide enough that the H1 sets on three lines — "Technology for /
   Vietnamese Businesses / Going Global" — at every width above the
   breakpoint. A four-line headline reads as a paragraph, not a statement. */
.hero-copy { max-width: 660px; }
.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.125rem, 1.15rem + 2.9vw, 3rem);
  /* Natural wrapping, not balanced: the headline is meant to break as
     "Technology for / Vietnamese Businesses / Going Global", and balancing
     redistributes it into four shorter lines. */
  text-wrap: normal;
}
.hero .lede { margin-bottom: 32px; max-width: 46ch; }
.hero .btn-row { margin-bottom: 26px; }

.hero-chat {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9063rem; color: var(--muted);
}
.hero-chat .icon { width: 19px; height: 19px; color: var(--brand-500); }
.hero-chat a { font-weight: 600; }
.hero-chat .vi-note { color: var(--muted); font-style: italic; }

/* Right-hand media block. The padding reserves the band the script accent sits
   in, so it reads against the pale hero background instead of fighting the
   photograph underneath it — which would depend on whatever image you drop in. */
.hero-media { position: relative; padding-top: 58px; }
.hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-lg);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* The one handwritten flourish on the site. The type styling lives here rather
   than in a separate utility class — kept apart, the markup carried only the
   positioning half and the line rendered in body text, which reads as a mistake
   rather than an accent. */
.hero-script {
  position: absolute;
  top: -10px;
  right: 6px;
  z-index: 3;
  margin: 0;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.05rem + 2.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--brand-700);
  text-align: right;
  transform: rotate(-3deg);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  right: 0;
  bottom: 18px;
  z-index: 3;
  background: var(--navy-950);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
}
.hero-badge span { display: block; }
.hero-badge span + span { color: var(--on-dark-soft); font-weight: 500; }

/* ---------------------------------------------------- 8. TRUST STRIP */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 28px;
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding-inline: clamp(12px, 2.5vw, 32px);
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon { width: 28px; height: 28px; color: var(--brand-600); }
.trust-item strong {
  display: block; font-size: .9375rem; font-weight: 700; color: var(--ink);
  line-height: 1.35; letter-spacing: -0.015em; text-wrap: balance;
}
.trust-item span { display: block; font-size: .8125rem; color: var(--muted); }
/* The fourth label is the longest; let it shrink a touch rather than wrap awkwardly. */
.trust-item:last-child strong { font-size: .875rem; }

/* --------------------------------------------------- 9. WHO WE HELP */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.audience-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.audience-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.audience-card > img { width: 100%; height: 100%; object-fit: cover; min-height: 230px; }
.audience-body { padding: 32px 30px; display: flex; flex-direction: column; }
.audience-body h3 { margin-bottom: 12px; }
.audience-body p { font-size: .9688rem; color: var(--body); }
.audience-body .link-arrow { margin-top: auto; padding-top: 18px; }

/* -------------------------------------------------- 10. SERVICE CARDS */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card .icon-chip { background: transparent; width: auto; height: auto; }
.service-card .icon-chip .icon { width: 34px; height: 34px; }
.service-card h3 { margin-top: 26px; min-height: 2.4em; }

/* ------------------------------------------------- 11. FEATURE PANELS */
.panel-pair { display: grid; grid-template-columns: repeat(2, 1fr); }

.feature-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: clamp(36px, 4vw, 56px);
  color: var(--on-dark-soft);
  overflow: hidden;
  isolation: isolate;
}
.feature-panel > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.feature-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(7,26,51,.93) 0%, rgba(10,33,67,.82) 55%, rgba(14,46,92,.72) 100%);
}
.feature-panel--ai::before {
  background: linear-gradient(115deg, #0A2143 0%, #10346A 55%, #16438A 100%);
}
.feature-panel h2 { color: #fff; margin-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.feature-panel p { max-width: 46ch; font-size: .9688rem; margin-bottom: 28px; }
.feature-panel .btn { align-self: flex-start; }

.panel-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.panel-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
  font-size: .8125rem; font-weight: 500;
}
.panel-chip .icon { width: 14px; height: 14px; }

/* --------------------------------------------------- 12. PROCESS ROW */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.process-step { position: relative; padding-inline: 16px; text-align: left; }
.process-step:first-child { padding-left: 0; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: .9375rem; font-weight: 700;
}
.process-step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.process-step p { font-size: .875rem; color: var(--muted); line-height: 1.55; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  right: -8px;
  width: 16px; height: 16px;
  background: var(--line-strong);
  clip-path: polygon(0 20%, 60% 20%, 60% 0, 100% 50%, 60% 100%, 60% 80%, 0 80%);
}
.process-note {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: .9375rem;
}

/* -------------------------------------------------- 13. CASE STUDIES */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.case-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.case-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, #EAF1FB 0 12px, #F3F7FD 12px 24px);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--brand-300);
}
.case-thumb .icon { width: 40px; height: 40px; }
.case-body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.case-body h3 { font-size: 1.125rem; }
.case-fields { display: grid; gap: 12px; }
.case-field { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 12px; align-items: baseline; }
.case-field dt {
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-600);
}
.case-field dd {
  margin: 0; font-size: .875rem; color: var(--muted);
}
.case-field dd .placeholder-line {
  display: block; height: 9px; border-radius: 4px;
  background: var(--surface-tint);
}
.case-field dd .placeholder-line + .placeholder-line { margin-top: 7px; width: 72%; }

/* -------------------------------------------------------- 14. WHY US */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.why-list { display: grid; gap: 2px; }
.why-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.why-item:first-child { border-top: 1px solid var(--line); }
.why-item .icon { width: 22px; height: 22px; color: var(--brand-600); margin-top: 3px; }
.why-item strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.why-item p { font-size: .9375rem; color: var(--body); }

/* ------------------------------------------------------- 15. CTA BAND */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, #0A2143 0%, #0C2A57 52%, #113470 100%);
  color: var(--on-dark-soft);
  overflow: hidden;
}
/* Restrained world-map dot texture. No glow, no neon. */
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 68%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 68%, #000 100%);
  opacity: .8;
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding-block: 84px;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: var(--on-dark-soft); max-width: 46ch; }
.cta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 26px; }

.cta-links { display: flex; flex-wrap: wrap; gap: 28px; }
.cta-links a {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-size: .9375rem; font-weight: 500;
}
.cta-links a:hover { color: var(--brand-300); }
.cta-links .icon { width: 18px; height: 18px; opacity: .85; }

/* --------------------------------------------------------- 16. FOOTER */
.site-footer { background: var(--navy-950); color: var(--on-dark-mute); font-size: .9063rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 40px;
  padding-block: 72px 56px;
}
.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text span { color: var(--on-dark-mute); }
.footer-blurb { margin-top: 22px; max-width: 42ch; line-height: 1.7; color: var(--on-dark-mute); }
.footer-social { display: flex; gap: 18px; margin-top: 20px; }
.footer-social a { color: var(--on-dark-soft); font-weight: 500; }
.footer-social a:hover { color: #fff; }

.footer-head {
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #fff; margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--on-dark-mute); }
.footer-col a:hover { color: #fff; }
.footer-contact p { margin-bottom: 16px; line-height: 1.65; }
.footer-hours span { color: rgba(255,255,255,.45); font-size: .8125rem; }

.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}
.footer-legal p { margin: 0; }
.footer-reg { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.18); }
.footer-lang a { color: rgba(255,255,255,.7); }
.footer-lang a:hover { color: #fff; }

/* -------------------------------------------------- 17. INTERIOR PAGES */
.page-hero {
  background: linear-gradient(180deg, var(--surface-tint) 0%, #FFFFFF 100%);
  padding-block: clamp(56px, 6vw, 88px);
}
.page-hero .eyebrow { margin-bottom: 16px; }
/* A step down from the homepage H1: interior pages carry longer headlines and
   the hero is not competing with a photograph for attention. */
.page-hero h1 {
  font-size: clamp(1.875rem, 1.15rem + 2.3vw, 2.625rem);
  max-width: 22ch;
  margin-bottom: 22px;
}
.page-hero .lede { max-width: 62ch; }
.page-hero .btn-row { margin-top: 34px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* "Where this goes wrong" block — the honest bit that earns the rest of the page. */
.problem-block {
  border-left: 3px solid var(--brand-300);
  padding-left: clamp(20px, 3vw, 34px);
}

/* Deliverables list. */
.deliverables { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 40px; }
.deliverable {
  display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.deliverable .icon { width: 18px; height: 18px; color: var(--brand-500); margin-top: 4px; }
.deliverable strong { display: block; color: var(--ink); font-size: .9688rem; font-weight: 600; }
.deliverable span { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* Worked example — always labelled, never presented as a client. */
.example-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 44px);
}
.example-panel .tag { margin-bottom: 20px; }
.example-panel h3 { margin-bottom: 14px; }
.example-steps { display: grid; gap: 18px; margin-top: 26px; }
.example-step {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: start;
}
.example-step b {
  min-width: 84px; font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-600); padding-top: 3px;
}
.example-step p { font-size: .9375rem; }

.query-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.query-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: .875rem;
  color: var(--ink-soft);
}
.query-chip .icon { width: 14px; height: 14px; color: var(--muted); }

/* Practical AI grid. */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 24px;
}
.use-card .icon-chip { width: 44px; height: 44px; }
.use-card .icon-chip .icon { width: 22px; height: 22px; }
.use-card h3 { font-size: 1.0625rem; margin: 18px 0 8px; }
.use-card p { font-size: .9063rem; color: var(--muted); }

/* Honesty block — plain, no decoration, deliberately. */
.honesty {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
}
.honesty h3 { margin-bottom: 16px; }
.honesty ul { display: grid; gap: 12px; }
.honesty li {
  display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 14px;
  font-size: .9375rem;
}
.honesty li .icon { width: 17px; height: 17px; color: var(--muted); margin-top: 4px; }

/* Related links. */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.related-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.related-card .tag { align-self: flex-start; }
.related-card h3 { font-size: 1.0625rem; }
.related-card p { font-size: .9063rem; color: var(--muted); }

/* Contact page. */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.contact-aside { display: grid; gap: 22px; }
.contact-method {
  display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.contact-method .icon-chip { width: 44px; height: 44px; }
.contact-method .icon-chip .icon { width: 21px; height: 21px; }
.contact-method strong { display: block; color: var(--ink); margin-bottom: 4px; }
.contact-method a { font-size: .9375rem; }
.contact-method span { font-size: .875rem; color: var(--muted); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }

/* Search page. */
.search-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-row input[type="text"] { flex: 1 1 260px; width: auto; }
.search-row .btn { flex: none; }
.page-search .grid { gap: 16px; }

/* Insights / Work empty states. */
.empty-state {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-soft);
}
.empty-state .icon-chip { margin: 0 auto 22px; }
.empty-state h3 { margin-bottom: 12px; }
.empty-state p { max-width: 52ch; margin-inline: auto; color: var(--muted); }
.empty-state .btn-row { justify-content: center; margin-top: 28px; }

/* Numbered value list used on About. */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 48px; }
.value-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.value-item b {
  display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 8px;
}
.value-item h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.value-item p { font-size: .9375rem; color: var(--body); }

/* ------------------------------------------------------ 18. RESPONSIVE */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 9px; font-size: .9063rem; }
  .header-inner { gap: 18px; }
  .brand-text span { display: none; }
}

@media (max-width: 1060px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --section-y: 72px; }

  /* Mobile navigation: the same markup, re-laid-out as a panel. */
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(400px, 88vw);
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 20px 20px 32px;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 48px -24px rgba(7,26,51,.4);
    overflow-y: auto;
    /* Closed state fades rather than sliding off-canvas. A panel parked at
       translateX(102%) sits outside the viewport and widens the document, which
       gives the whole page a horizontal scrollbar on phones — the one layout bug
       that makes a site feel broken. Opacity costs nothing and cannot overflow. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), visibility .22s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: 14px 12px; font-size: 1rem; border-radius: var(--r-sm);
  }
  .nav-item > .nav-link.is-current::after { display: none; }
  .nav-link.is-current { background: var(--brand-050); }

  /* Dropdowns become accordions; hover must not open them on touch. */
  .mega {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    display: none;
    background: var(--surface-soft);
    margin: 2px 0 8px;
    border-radius: var(--r-sm);
  }
  .nav-item:hover > .mega, .nav-item:focus-within > .mega { display: none; }
  .mega.is-open { display: block; }
  .mega-inner { padding: 8px; }
  .mega-item { padding: 11px 10px; }

  .nav-mobile-foot { display: block; margin-top: 24px; }
  .nav-mobile-search {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 14px; padding: 12px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font-size: .9375rem; font-weight: 600; color: var(--ink-soft);
  }
  .nav-mobile-search .icon { width: 18px; height: 18px; }
  .nav-scrim {
    display: block;
    position: fixed; inset: var(--header-h) 0 0; z-index: 105;
    background: rgba(7,26,51,.42);
    opacity: 0;
    transition: opacity .26s var(--ease);
  }
  .nav-scrim.is-open { opacity: 1; }
  body.nav-open { overflow: hidden; }

  /* Sections */
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-copy { max-width: none; }
  .hero-script { top: -2px; right: 4px; }
  .hero-badge { padding: 13px 18px; font-size: .8125rem; bottom: 14px; }

  .trust-list { grid-template-columns: repeat(2, 1fr); gap: 4px 0; }
  .trust-item { padding: 16px clamp(12px, 3vw, 24px); }
  .trust-item:nth-child(odd) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .audience-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-pair { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .process-step { padding-inline: 0; }
  .process-step::after { display: none !important; }
  .case-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }

  .cta-inner { grid-template-columns: 1fr; padding-block: 64px; }
  .cta-side { align-items: flex-start; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; --section-y: 56px; }

  .split, .split--7-5 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .audience-card { grid-template-columns: 1fr; }
  .audience-card > img { min-height: 180px; }

  .trust-list { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); }

  .process { grid-template-columns: 1fr; gap: 26px; }

  .hero-badge {
    position: static; margin-top: 12px; border-radius: var(--r-sm);
    box-shadow: none;
  }
  .hero-script { font-size: 1.375rem; }

  .btn-row .btn { width: 100%; }
  .case-field { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 52px 40px; }
  .footer-legal { flex-direction: column; }
  .footer-reg { margin: 6px 0 0; padding: 0; border: 0; display: block; }

  /* Keep the header on one line at phone widths. Brand mark + name + language
     switch + menu button is all that fits; search moves into the drawer. */
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions > .icon-btn { display: none; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: .9375rem; letter-spacing: -0.025em; }
  .lang-switch { padding: 6px 9px; }
}

@media (max-width: 380px) {
  /* Very small phones: the mark alone carries the brand. */
  .brand-text { display: none; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .nav-scrim, .skip-link, .breadcrumb { display: none; }
  body { font-size: 11pt; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section { padding-block: 16pt; }
}

/* ============================================================================
   16. ARTICLES
   The database-driven pages: a category listing, and an article.
   Reuses the existing tokens throughout — no new colours, no new radii.
   ========================================================================== */

/* -------------------------------------------------------------- card grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 0 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.post-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.post-card:hover h3 { color: var(--brand-700); }

.post-card-cover {
  display: block;
  margin-bottom: 22px;
  background: var(--surface-tint);
}
/* No cover yet: keep the block so the row still lines up. */
.post-card-cover--empty {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-tint) 0%, var(--surface-soft) 100%);
}
.post-card-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-cat,
.post-card h3,
.post-card p,
.post-card-meta { padding-inline: 24px; }

.post-card-cat {
  display: block;
  padding-top: 26px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}
/* An adjacent-sibling rule rather than :has() — same result, no support question. */
.post-card-cover + .post-card-cat { padding-top: 0; }

.post-card h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.post-card p {
  font-size: .9375rem;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.post-card-meta {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
}

/* A card used as a link in the section grid. */
.use-card--link { display: block; color: inherit; text-decoration: none; }
.use-card--link:hover { border-color: var(--brand-300); color: inherit; }
.use-card--link:hover h3 { color: var(--brand-700); }
.use-card--link .post-card-meta { padding-inline: 0; margin-top: 14px; }

.section-head--mt { margin-top: 72px; }

/* --------------------------------------------------------------- the pager */
.pager-row {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 56px;
}
.pager-count { font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------------- article head */
.article-head { padding-block: 72px 0; }
.article-head h1 {
  font-size: clamp(1.875rem, 1.2rem + 2.1vw, 2.75rem);
  line-height: 1.18;
  margin: 0 0 20px;
}
.eyebrow--link { text-decoration: none; }
.eyebrow--link:hover { color: var(--brand-700); text-decoration: underline; }

.article-meta {
  margin-top: 24px;
  font-size: .875rem;
  color: var(--muted);
}

.article-cover { margin-top: 44px; }
/* Same measure as the body below it, so the left edges line up rather than
   stepping in. The image is the first thing under the headline; a stepped edge
   there is the kind of small wrongness people notice without naming. */
.article-cover .container { max-width: 760px; }
.article-cover img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-lg);
}

/* ------------------------------------------------------------- article body
   This is the only place on the site where the markup is written by hand in the
   admin rather than by a page. Every element an author might reasonably use is
   styled, so a <table> or a <blockquote> never arrives unstyled on a live page. */
.article-body { padding-block: 48px 0; }
.article-body .container { max-width: 760px; }

.article-body > .container > * { max-width: 68ch; }

.article-body p,
.article-body ul,
.article-body ol {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 1.35em;
}

.article-body h2 {
  font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 2.2em 0 .6em;
}
.article-body h3 {
  font-size: 1.1875rem;
  color: var(--ink);
  margin: 1.9em 0 .5em;
}
.article-body h2:first-child,
.article-body h3:first-child { margin-top: 0; }

.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: .55em; }
.article-body li > ul, .article-body li > ol { margin: .5em 0 0; }

.article-body strong { color: var(--ink); font-weight: 650; }
.article-body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-700); }

.article-body img {
  max-width: 100%; height: auto;
  border-radius: var(--r-md);
  margin: 2em 0;
}

.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--brand-300);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.6;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: .9375rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.article-body th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 650;
}

.article-body code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .875em;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.article-body pre {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 2em 0;
}
.article-body pre code { background: none; padding: 0; }

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.6em 0;
}

/* ------------------------------------------------------------- article foot */
.article-foot { padding-block: 40px 72px; }
.article-foot .container { max-width: 760px; }

.article-updated {
  font-size: .875rem;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--surface-soft);
  border-radius: var(--r-md);
  margin-bottom: 28px;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.article-tags .tag { text-transform: none; letter-spacing: 0; }

.article-back { margin: 0; font-size: .9375rem; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-head { padding-block: 48px 0; }
  .article-body { padding-block: 36px 0; }
  .article-body p, .article-body ul, .article-body ol { font-size: 1rem; }
  .article-body table { display: block; overflow-x: auto; }
  .pager-row { flex-wrap: wrap; gap: 14px; }
}

/* ------------------------------------------------- contact: the sum field */
.field--captcha .input--short { max-width: 140px; }
.field--captcha label strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--ink);
}
