:root {
  --bg-canvas: #fbf1f0;
  --bg-band-alt: #f4e4e3;
  --bg-surface: #fffafa;
  --bg-surface-hover: #f7e9e8;
  --text-primary: #1c1917;
  --text-muted: #5c4d4b;
  --accent-primary: #6b2155;
  --accent-secondary: #8c3470;
  --border-subtle: #d6c2c6;
  --border-strong: #6b2155;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --max-width: 1200px;
  --measure: 70ch;
}

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

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

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

a:hover {
  color: var(--accent-secondary);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 100;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.measure {
  max-width: var(--measure);
}

.measure-center {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  letter-spacing: 0.025em;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1.15rem;
}

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

.eyebrow, .label-compact {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

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

/* Header - scrolls normally, far-left brand, right-aligned nav */
.site-header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--accent-primary);
}

.brand-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.brand-node::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-canvas);
}

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

.menu-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--accent-primary);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.5rem 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.mobile-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-surface);
}

/* Square Outlined Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--accent-primary);
  border-radius: 0;
  background-color: transparent;
  color: var(--accent-primary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-kinetic), color 0.25s var(--ease-kinetic), transform 0.25s var(--ease-kinetic);
}

.btn:hover {
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero Section */
.hero-band {
  background-color: var(--bg-surface);
  padding: 3.75rem 0 5.5rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-media {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-band-alt);
}

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

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

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

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

.media-caption {
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

/* Page Sub-Hero */
.page-hero {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.25rem 0 4.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.25rem;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

/* Section Bands with Diagonal/Curved Transitions */
.band-blush {
  background-color: var(--bg-canvas);
  padding: 3.5rem 0;
}

.band-ivory {
  background-color: var(--bg-surface);
  padding: 4.5rem 0;
  clip-path: polygon(0 2rem, 100% 0, 100% calc(100% - 2rem), 0 100%);
}

.band-blush-alt {
  background-color: var(--bg-band-alt);
  padding: 4.5rem 0;
  clip-path: polygon(0 0, 100% 2rem, 100% 100%, 0 calc(100% - 2rem));
}

/* Relay Vertical Line Architecture */
.relay-sequence {
  position: relative;
}

.relay-stage {
  position: relative;
  padding-left: 4.5rem;
  padding-bottom: 3rem;
}

.relay-stage::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 2.75rem;
  bottom: 0;
  width: 1px;
  background-color: var(--border-strong);
}

.relay-stage.is-last::before {
  background: linear-gradient(to bottom, var(--border-strong) 0%, var(--border-subtle) 100%);
}

.step-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 2;
}

.relay-stage:hover .step-badge {
  background-color: var(--accent-primary);
  color: var(--bg-surface);
}

.stage-header {
  margin-bottom: 1.5rem;
}

.stage-header h2 {
  margin-bottom: 0.35rem;
}

/* Flat Service Panels (1px border, no shadows, square corners) */
.service-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 0;
  transition: border-color 0.25s var(--ease-kinetic), background-color 0.25s var(--ease-kinetic);
}

.service-panel:hover {
  border-color: var(--accent-primary);
}

.service-panel-alt {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.split-panel-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.split-panel-media {
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

/* Handover Rows */
.handover-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.handover-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.row-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Responsibility Matrix Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.92rem;
}

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

th {
  background-color: var(--bg-band-alt);
  color: var(--text-primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Logistics Checklist */
.checklist {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.checklist li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.checklist li:last-child {
  border-bottom: none;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Expandable Dependency Notes */
.dependency-group {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

details.dependency-note {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

details.dependency-note[open] {
  border-color: var(--accent-primary);
}

details.dependency-note summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.dependency-note summary::-webkit-details-marker {
  display: none;
}

details.dependency-note summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

details.dependency-note[open] summary::after {
  content: "−";
}

.dependency-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  color: var(--text-muted);
}

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

.article-sidebar {
  display: grid;
  gap: 1.25rem;
}

.sidebar-nav {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.sidebar-nav a:hover,
.sidebar-nav a[aria-current="page"] {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-canvas);
}

/* Contact Numbered Brief Tool */
.brief-form {
  display: grid;
  gap: 1.5rem;
}

.brief-step {
  position: relative;
  padding-left: 3.75rem;
}

.brief-step::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: -1.5rem;
  width: 1px;
  background-color: var(--border-subtle);
}

.brief-step:last-child::before {
  display: none;
}

.brief-step .row-badge {
  position: absolute;
  left: 0;
  top: 0;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.96rem;
  line-height: 1.5;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.brief-preview {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  padding: 1.1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 10rem;
  color: var(--text-primary);
}

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

/* Footer continuing the relay line */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
  margin-top: 2rem;
}

.footer-relay {
  position: relative;
  padding-left: 3.75rem;
}

.footer-relay::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-strong);
}

.footer-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background-color: var(--bg-canvas);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin: 0 0 0.85rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-primary);
}

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-company {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-company p {
  margin: 0;
}

/* Motion-Sensitive Scroll Reveals */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

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

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

/* Breakpoints: Desktop 769-1024px */
@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .split-panel,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .split-panel-media {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

/* Breakpoints: Tablet 481-768px & Mobile < 480px */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .relay-stage {
    padding-left: 3.35rem;
  }
  .relay-stage::before {
    left: 1.1rem;
  }
  .step-badge {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.78rem;
  }
  .handover-row {
    grid-template-columns: 2.5rem 1fr;
  }
  .handover-row > :nth-child(3) {
    grid-column: 1 / -1;
  }
  .hero-band,
  .page-hero,
  .band-ivory,
  .band-blush-alt {
    clip-path: none;
    padding: 2.75rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .relay-stage,
  .footer-relay,
  .brief-step {
    padding-left: 2.75rem;
  }
  .relay-stage::before,
  .footer-relay::before,
  .brief-step::before {
    left: 0.9rem;
  }
  .step-badge,
  .footer-node {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.7rem;
  }
  .brand-link {
    font-size: 0.9rem;
  }
  .service-panel,
  .split-panel-body {
    padding: 1.15rem;
  }
}