/* style.css — Avevo design tokens + components */

/* ---------- Fonts ---------- */
/* General Sans (display + body) — self-hosted Fontshare files */
@font-face {
  font-family: 'General Sans';
  src: url('./assets/fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'General Sans';
  src: url('./assets/fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'General Sans';
  src: url('./assets/fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'General Sans';
  src: url('./assets/fonts/general-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --font-display: 'General Sans', 'Segoe UI', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 780px;
  --content-wide: 1180px;
  --content-full: 100%;
}

/* ---------- Color — Avevo brand (navy + steel blue) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f6f7f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfc;
  --color-surface-offset: #eef1f3;
  --color-surface-offset-2: #e4e8eb;
  --color-surface-dynamic: #dde3e7;
  --color-divider: #dce1e5;
  --color-border: #ccd4da;

  --color-text: #0c2b44;
  --color-text-muted: #4c5e6c;
  --color-text-faint: #8b99a3;
  --color-text-inverse: #f5f7f8;

  --color-primary: #082b49;
  --color-primary-hover: #0f3d67;
  --color-primary-active: #061f35;
  --color-primary-highlight: #e2e8ec;

  /* Fixed brand navy — used for anchor sections (hero, footer, page-hero, quote)
     that must stay navy in both themes, independent of the theme-adaptive --color-primary. */
  --color-navy: #082b49;
  --color-navy-text: #f5f7f8;
  --color-navy-text-muted: color-mix(in oklab, #f5f7f8 78%, transparent);
  --color-navy-text-faint: color-mix(in oklab, #f5f7f8 65%, transparent);
  --color-navy-border: color-mix(in oklab, #f5f7f8 22%, transparent);
  --color-navy-accent: #92a8b6;

  --color-accent: #4e748b;
  --color-accent-hover: #3c5c70;
  --color-accent-light: #92a8b6;
  --color-accent-highlight: #e6ebee;

  --shadow-sm: 0 1px 2px rgba(8, 33, 54, 0.06);
  --shadow-md: 0 6px 20px rgba(8, 33, 54, 0.08);
  --shadow-lg: 0 20px 48px rgba(8, 33, 54, 0.14);
}

[data-theme='dark'] {
  --color-bg: #081a29;
  --color-surface: #0c2236;
  --color-surface-2: #0f273d;
  --color-surface-offset: #112b43;
  --color-surface-offset-2: #15324c;
  --color-surface-dynamic: #1a3a56;
  --color-divider: #17324a;
  --color-border: #21455f;

  --color-text: #e6edf1;
  --color-text-muted: #a4b7c4;
  --color-text-faint: #6d8494;
  --color-text-inverse: #0c2236;

  --color-primary: #8fabbe;
  --color-primary-hover: #a9c0cd;
  --color-primary-active: #6e93ac;
  --color-primary-highlight: #1c3b53;

  --color-accent: #92a8b6;
  --color-accent-hover: #a9bcc7;
  --color-accent-light: #6e93ac;
  --color-accent-highlight: #17324a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.wrap--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
[data-theme='dark'] .eyebrow {
  color: var(--color-accent-light);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head h2 {
  margin-top: var(--space-3);
}
.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
[data-theme='dark'] .btn--ghost:hover {
  color: var(--color-accent-light);
  border-color: var(--color-accent-light);
}
.btn--on-dark {
  background: var(--color-navy-text);
  color: var(--color-navy);
}
.btn--on-dark:hover {
  background: var(--color-navy-accent);
  color: var(--color-navy);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand svg {
  height: 28px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-block: var(--space-2);
  position: relative;
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--color-text);
}
.nav__links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 64px var(--space-5) auto var(--space-5);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--transition-interactive),
      transform var(--transition-interactive);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__links a {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-sm);
  }
  .nav__links a:hover {
    background: var(--color-surface-offset);
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__actions .btn--primary.header-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-navy);
  color: var(--color-navy-text);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}
.hero__eyebrow {
  color: var(--color-navy-accent);
}
.hero h1 {
  color: var(--color-navy-text);
  font-size: var(--text-3xl);
  margin-top: var(--space-4);
  max-width: 15ch;
}
.hero p {
  color: var(--color-navy-text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero__meta {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}
.hero__meta div {
  border-top: 1px solid var(--color-navy-border);
  padding-top: var(--space-3);
  min-width: 140px;
}
.hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy-text);
}
.hero__meta span {
  font-size: var(--text-xs);
  color: var(--color-navy-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero__art {
  display: flex;
  justify-content: center;
}
.hero__art svg,
.hero__art img {
  width: min(320px, 100%);
  height: auto;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__art {
    order: -1;
  }
  .hero__art svg,
  .hero__art img {
    width: min(220px, 60%);
  }
}

/* ---------- Services list (asymmetric, no icon grid) ---------- */
.services-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  align-items: start;
}
.services-list .service-row:last-child {
  border-bottom: 1px solid var(--color-divider);
}
.service-row__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent-light);
  font-weight: 600;
}
[data-theme='light'] .service-row__num,
:root .service-row__num {
  color: var(--color-border);
}
.service-row__body h3 {
  margin-bottom: var(--space-2);
}
.service-row__body p {
  font-size: var(--text-base);
  max-width: 60ch;
}
.service-row--wide .service-row__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}
@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 48px 1fr;
  }
  .service-row--wide .service-row__body {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ---------- Who it serves ---------- */
.audience {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.audience__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.audience__item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.audience__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.audience__mark {
  width: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  flex-shrink: 0;
}
.audience__item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.audience__item p {
  font-size: var(--text-sm);
}
@media (max-width: 860px) {
  .audience {
    grid-template-columns: 1fr;
  }
}

/* ---------- Service area ---------- */
.area {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--space-12);
  align-items: center;
}
.area__copy h2 {
  margin-top: var(--space-3);
}
.area__copy p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
}
.area__list {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.area__tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.area__art {
  display: flex;
  justify-content: center;
}
.area__art svg {
  width: min(280px, 100%);
}
@media (max-width: 860px) {
  .area {
    grid-template-columns: 1fr;
  }
  .area__art {
    order: -1;
  }
}

/* ---------- Why Avevo ---------- */
.why {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
}
.why__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.why__point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
}
.why__point-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
}
[data-theme='dark'] .why__point-index {
  color: var(--color-accent-light);
}
.why__point h3 {
  margin-bottom: var(--space-2);
}
.why__point p {
  font-size: var(--text-base);
}
.why__quote {
  background: var(--color-navy);
  color: var(--color-navy-text);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}
.why__quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-navy-text);
  line-height: 1.4;
}
@media (max-width: 860px) {
  .why {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact / Service request ---------- */
.contact {
  background: var(--color-surface);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.contact__info-block h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.contact__info-block a,
.contact__info-block p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.contact__info-block a:hover {
  color: var(--color-accent);
}
.contact__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  max-width: 40ch;
}

.form-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field--full {
  grid-column: 1 / -1;
}
.field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 44px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: #a12c2c;
}
[data-theme='dark'] .field--invalid input,
[data-theme='dark'] .field--invalid select,
[data-theme='dark'] .field--invalid textarea {
  border-color: #e29a9a;
}
.field-error {
  display: none;
  font-size: var(--text-xs);
  color: #a12c2c;
  margin-top: var(--space-1);
}
[data-theme='dark'] .field-error {
  color: #e29a9a;
}
.field-error.is-visible {
  display: block;
}
.form-card .btn {
  margin-top: var(--space-6);
  width: 100%;
}
.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status--ok {
  color: var(--color-accent);
}
.form-status--err {
  color: #a12c2c;
}
[data-theme='dark'] .form-status--err {
  color: #e29a9a;
}

@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field--full {
    grid-column: auto;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-navy);
  color: var(--color-navy-text);
  padding-block: var(--space-16) var(--space-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: var(--space-10);
}
.footer__brand svg {
  height: 30px;
  width: auto;
}
.footer__brand p {
  margin-top: var(--space-4);
  color: color-mix(in oklab, var(--color-navy-text) 68%, transparent);
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer__brand p.footer__pillars {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy-accent);
  max-width: 44ch;
  white-space: normal;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--color-navy-text) 55%, transparent);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a,
.footer__links span {
  color: color-mix(in oklab, var(--color-navy-text) 88%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer__links a:hover {
  color: var(--color-navy-accent);
}

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in oklab, var(--color-navy-text) 18%, transparent);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-navy-text) 55%, transparent);
}
@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__brand p.footer__pillars {
    max-width: none;
  }
}

/* ---------- Page hero (Services / Contact) ---------- */
.page-hero {
  background: var(--color-navy);
  color: var(--color-navy-text);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-10), 6vw, var(--space-16));
}
.page-hero .eyebrow {
  color: var(--color-navy-accent);
}
.page-hero h1 {
  color: var(--color-navy-text);
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
  max-width: 20ch;
}
.page-hero p {
  color: var(--color-navy-text-muted);
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  max-width: 52ch;
}

/* ---------- Services page detail blocks ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-10);
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-divider);
}
.service-detail:last-child {
  border-bottom: 1px solid var(--color-divider);
}
.service-detail__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-detail__label span {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-theme='dark'] .service-detail__label span {
  color: var(--color-accent-light);
}
.service-detail__label h2 {
  font-size: var(--text-lg);
}
.service-detail__body ul {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  padding-left: 0;
}
.service-detail__body li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.service-detail__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
}
@media (max-width: 760px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ---------- Note / platform callout ---------- */
.callout {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.callout__mark {
  width: 6px;
  align-self: stretch;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  flex-shrink: 0;
}
.callout h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.callout p {
  font-size: var(--text-sm);
}

/* ---------- Contact page extras ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.contact-card {
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.contact-card h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-navy-text-faint);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.contact-card a,
.contact-card p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy-text);
  text-decoration: none;
}
.contact-card a:hover {
  color: var(--color-navy-accent);
}
@media (max-width: 760px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Continuity badge (hero) ---------- */
.continuity-badge {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-navy-border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-navy-text) 8%, transparent);
  margin-bottom: var(--space-6);
}
.continuity-badge__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy-text);
}
.continuity-badge__sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-navy-text-muted);
}

/* ---------- Hero photo art ---------- */
.hero__art--photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__art--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}
@media (max-width: 860px) {
  .hero__art--photo img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Showcase grid (homepage capability photos) ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-offset);
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-item:hover img {
  transform: scale(1.05);
}
.showcase-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4) var(--space-4) var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: #fff;
  background: linear-gradient(to top, rgba(8, 33, 54, 0.85), transparent);
}

/* ---------- Pillars section wrapper ---------- */
.pillars-section {
  background: var(--color-surface-offset);
}

/* ---------- Story teaser (homepage) ---------- */
.story-teaser__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
.story-teaser__art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.story-teaser__copy h2 {
  margin-top: var(--space-3);
}
.story-teaser__copy p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  max-width: 54ch;
}
.story-teaser__copy .btn {
  margin-top: var(--space-6);
}
@media (max-width: 860px) {
  .story-teaser__grid {
    grid-template-columns: 1fr;
  }
  .story-teaser__art {
    order: -1;
  }
}

/* ---------- Solution cards (Solutions page) ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.solution-card {
  display: flex;
  flex-direction: column;
}
.solution-card__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-4);
}
.solution-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.solution-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.solution-card p {
  font-size: var(--text-sm);
}

/* ---------- Gallery grid (Projects page) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-offset);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- Story grid (About page) ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
.story__copy h2 {
  margin-top: var(--space-3);
}
.story__copy p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  max-width: 56ch;
}
.story__art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (max-width: 860px) {
  .story__grid {
    grid-template-columns: 1fr;
  }
  .story__art {
    order: -1;
  }
}

/* ---------- Rebrand story card (KPE to Avevo, Home + About) ---------- */
.rebrand-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  text-align: center;
  background: linear-gradient(165deg, var(--color-surface) 0%, var(--color-surface-offset) 100%);
}
.rebrand-card__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.rebrand-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}
/* height/width both auto + max-height/max-width lets the browser scale the
   image down proportionally (preserving its intrinsic aspect ratio) when the
   column is too narrow to fit it at full size. A fixed height paired with
   max-width alone does NOT do this: the browser clips width down to fit but
   leaves height untouched, visibly squashing/stretching the logo whenever its
   column is narrower than the logo's natural width at that height (this was
   the actual cause of the tablet-landscape squeeze -- not stacking/orientation
   at all, since it happens any time the column narrows below ~214px). */
.rebrand-card__logo {
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: 100%;
}
/* The KP Evolutions mark's wordmark sits shorter within its own bounding box
   than Avevo's (the building icon dictates the box height), so matching
   pixel-height reads visually smaller. Scale it up so the two wordmarks
   read as proportionate. */
.rebrand-card__logo--kpe {
  max-height: 48px;
}
.rebrand-card__years {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.rebrand-card__text {
  max-width: 34ch;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.rebrand-card__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  background: var(--color-surface);
}
.rebrand-card__stat {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* Landscape variant (homepage teaser) */
.rebrand-card--landscape {
  gap: var(--space-6);
}
.rebrand-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-4), 4vw, var(--space-8));
  width: 100%;
}
.rebrand-card__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}
.rebrand-card__divider-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-4);
  border-left: 1px solid var(--color-divider);
  border-right: 1px solid var(--color-divider);
  flex-shrink: 0;
}
.rebrand-card__divider-v .eyebrow {
  writing-mode: horizontal-tb;
  text-align: center;
}
.rebrand-card__stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.rebrand-card__stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1.1;
}
.rebrand-card__stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 600;
}
.rebrand-card__points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
  width: 100%;
}
.rebrand-card__point {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.rebrand-card__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  flex-shrink: 0;
}
.rebrand-card__point-icon svg {
  width: 15px;
  height: 15px;
}
.rebrand-card__quote {
  max-width: 44ch;
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
/* The card's own rendered width (not the page width) determines whether the
   "2011 | Today" row has room to sit side by side. When the page grid is
   two columns (roughly 861px+ page width) this card is capped at ~350-466px
   for ALL wider screens (a max-width cap on the page wrapper means it never
   grows past ~466px no matter how wide the viewport gets) — too narrow for
   the row + divider even though the page itself is wide. On narrow single-
   column mobile widths (roughly ≤640px page width) the card is also too
   narrow. Both cases are handled below with plain min/max-width media
   queries keyed to known page-width thresholds, rather than a container
   query — real-device testing showed container-query support/behavior for
   this pattern was not reliable enough on tablet Safari, so this uses only
   universally-supported @media rules. */
@media (max-width: 640px), (min-width: 861px) {
  .rebrand-card__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .rebrand-card__divider-v {
    flex-direction: row;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
    padding-inline: 0;
    padding-block: var(--space-3);
    width: 100%;
  }
}
@media (max-width: 640px) {
  .rebrand-card {
    padding: var(--space-6);
    gap: var(--space-6);
  }
  .rebrand-card__points {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .rebrand-card__point {
    white-space: normal;
  }
}

/* ---------- Timeline (About page) ---------- */
.timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
}
.timeline__node {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.timeline__years {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.timeline__node--current .timeline__years {
  color: var(--color-accent);
}
[data-theme='dark'] .timeline__node--current .timeline__years {
  color: var(--color-accent-light);
}
.timeline__node h3 {
  margin: 0;
}
.timeline__node p {
  font-size: var(--text-sm);
  max-width: 32ch;
}
.timeline__connector {
  width: 64px;
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-full);
}
@media (max-width: 760px) {
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline__connector {
    width: 2px;
    height: 40px;
    justify-self: center;
  }
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-navy-text);
  padding: var(--space-3) var(--space-5);
  z-index: 100;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}
