:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #f0e7d9;
  --bg-surface-hover: #e6dac7;
  --text-primary: #2b211a;
  --text-muted: #5a493d;
  --accent-primary: #c2562e;
  --accent-primary-dark: #9e411f;
  --accent-secondary: #6b7a3a;
  --accent-secondary-dark: #515e2a;
  --border-subtle: rgba(43, 33, 26, 0.14);
  --glass-bg: rgba(250, 246, 239, 0.84);
  --glass-bg-strong: rgba(250, 246, 239, 0.92);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 30px -6px rgba(43, 33, 26, 0.16);
  --glow-accent: 0 0 22px -6px rgba(194, 86, 46, 0.4);
  --glass-backdrop: blur(14px) saturate(140%);
  --font-main: system-ui, "Segoe UI", Roboto, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-primary-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease-kinetic);
}

a:hover {
  color: var(--text-primary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1.1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.prose {
  max-width: 70ch;
  margin-inline: auto;
}

/* Header: non-sticky, far-left brand, distributed short links */
.site-header {
  position: relative;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 3px var(--accent-secondary);
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.75rem;
  max-width: 720px;
  width: 100%;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent-primary-dark);
  border-bottom-color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: var(--bg-surface-hover);
}

/* Dot grid background: hero and match-format section only */
.dot-grid-bg {
  background-image: radial-gradient(rgba(43, 33, 26, 0.14) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
}

/* Buttons: borderless terracotta pills */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: #faf6ef;
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease-kinetic), box-shadow 0.28s var(--ease-kinetic), background-color 0.2s ease;
}

.btn-pill:hover {
  background: var(--accent-primary-dark);
  color: #faf6ef;
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-pill-olive {
  background: var(--accent-secondary);
}

.btn-pill-olive:hover {
  background: var(--accent-secondary-dark);
  box-shadow: var(--shadow-elevation);
}

/* Circular badges & avatars */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.role-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #faf6ef;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.role-badge.olive {
  background: var(--accent-secondary);
}

/* Hero Section */
.hero-section {
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(3rem, 6vw, 4.75rem);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.65rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-field-stage {
  position: relative;
  background: var(--accent-secondary);
  padding: 1.15rem;
  border-radius: 0;
  box-shadow: var(--shadow-elevation);
}

.hero-field-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-facts-panel {
  margin-top: -2.75rem;
  margin-inline: 1rem;
  position: relative;
  z-index: 2;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(43, 33, 26, 0.16);
  padding: 1.25rem 1.35rem;
  border-radius: 0;
  box-shadow: var(--shadow-elevation);
}

.hero-facts-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary-dark);
  margin-bottom: 0.85rem;
}

.facts-trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.facts-trio li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.fact-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #faf6ef;
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
}

/* Sections & Alternating Splits */
.section-band {
  padding: clamp(3rem, 5.5vw, 4.75rem) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-surface {
  background: var(--bg-surface);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.split-section.reverse .split-media {
  order: -1;
}

/* Colour field + Translucent Backdrop-Blurred Cards */
.color-field {
  padding: 1.5rem;
  border-radius: 0;
}

.color-field.terracotta {
  background: var(--accent-primary);
}

.color-field.olive {
  background: var(--accent-secondary);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(43, 33, 26, 0.14);
  padding: 1.5rem;
  border-radius: 0;
  color: var(--text-primary);
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.glass-panel:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Images: strict square corners & aspect ratios */
.media-frame {
  margin: 0;
  border-radius: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.ratio-16-9 img {
  aspect-ratio: 16 / 9;
}

.ratio-4-3 img {
  aspect-ratio: 4 / 3;
}

.ratio-1-1 img {
  aspect-ratio: 1 / 1;
}

.media-frame figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

/* Sequential Score & Timeline Strips */
.sequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.sequence-step {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem;
  border-radius: 0;
}

.sequence-tag {
  display: inline-block;
  border-radius: 9999px;
  background: var(--accent-secondary);
  color: #faf6ef;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  text-align: left;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  background: var(--bg-surface);
  font-weight: 800;
  font-size: 0.92rem;
}

/* Expandable Jargon & FAQs */
.jargon-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

details.jargon-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.2rem;
  border-radius: 0;
}

details.jargon-item[open] {
  border-left: 4px solid var(--accent-primary);
}

details.jargon-item summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.jargon-item summary::-webkit-details-marker {
  display: none;
}

details.jargon-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--accent-primary-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

details.jargon-item[open] summary::after {
  content: "−";
  background: var(--accent-primary);
  color: #faf6ef;
}

details.jargon-item p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

/* Page Header Banner (Subpages) */
.page-intro {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2.5rem;
  align-items: start;
}

.aside-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.35rem;
}

.aside-box ul {
  padding-left: 1.15rem;
  margin: 0.5rem 0 0;
}

.aside-box li {
  margin-bottom: 0.55rem;
}

/* Contact Question Postcard */
.postcard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-canvas);
  border: 1px solid rgba(43, 33, 26, 0.28);
  border-radius: 0;
}

.postcard-preview {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  min-height: 280px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.postcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.status-note {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-secondary-dark);
  min-height: 1.4em;
}

/* Role List Item */
.role-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Footer: Welcoming note, pathways, Contact, legal links, company details */
.site-footer {
  background: var(--text-primary);
  color: #f0e7d9;
  padding: 3.5rem 0 2.25rem;
}

.site-footer a {
  color: #faf6ef;
}

.site-footer a:hover {
  color: #e6a98e;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(250, 246, 239, 0.16);
}

.footer-heading {
  color: #faf6ef;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.footer-company {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.88rem;
  color: #ddd0be;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-pill:hover,
  .glass-panel:hover {
    transform: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .page-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-elevation);
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: none;
  }

  .hero-layout,
  .split-section,
  .postcard-grid {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-media {
    order: 0;
  }

  .facts-trio {
    grid-template-columns: 1fr;
  }

  .hero-facts-panel {
    margin-top: 1rem;
    margin-inline: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, 1200px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .color-field {
    padding: 1rem;
  }
}