/* ==========================================================================
   PUREPIXEL TOURING LOGISTICS - STYLESHEET
   Aesthetic: Dark glassmorphism (dark ground, frosted panels, neon gradient edges)
   Card Style: Horizontal Split (media left, metadata + tags + CTA right)
   Constraint: Never place readable text directly over imagery.
   Spacing System: 4px / 8px / 16px / 24px / 40px / 64px
   ========================================================================== */

:root {
  /* Colour Palette */
  --c-midnight: #10191c;
  --c-road-black: #172225;
  --c-deep-graphite: #222e31;
  --c-route-slate: #3f4d50;
  --c-asphalt-grey: #687477;
  --c-soft-steel: #aab6b5;
  --c-map-mist: #d7e0dd;
  --c-warm-ivory: #f3f0e8;
  --c-touring-white: #fbf9f4;
  --c-route-teal: #5d8986;
  --c-route-teal-glow: rgba(93, 137, 134, 0.45);
  --c-nav-blue: #718f9a;
  --c-alpine-green: #78917e;
  --c-touring-amber: #c49a5c;
  --c-touring-amber-glow: rgba(196, 154, 92, 0.35);
  --c-copper: #b8765e;
  --c-error: #e06c75;
  --c-error-bg: rgba(224, 108, 117, 0.15);
  --c-light-text: #f1f4f0;
  --c-muted-text: #a4b3b3;

  /* Glass Surface Tokens */
  --glass-bg: rgba(23, 34, 37, 0.78);
  --glass-bg-hover: rgba(34, 46, 49, 0.88);
  --glass-border: rgba(93, 137, 134, 0.28);
  --glass-border-hover: rgba(196, 154, 92, 0.5);
  --glass-shadow: 0 16px 32px rgba(10, 16, 18, 0.65);
  --glass-blur: blur(14px);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--c-midnight);
  color: var(--c-light-text);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-midnight);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(93, 137, 134, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(196, 154, 92, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, #10191c 0%, #172225 100%);
  background-attachment: fixed;
  color: var(--c-light-text);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--c-route-teal);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--c-touring-amber);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--c-touring-white);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

p {
  margin-bottom: 16px;
  color: var(--c-soft-steel);
}

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

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-touring-amber);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Top Technical Tags & Badges */
.tech-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-route-teal);
  margin-bottom: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 46, 49, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  margin-bottom: 16px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-touring-amber);
  box-shadow: 0 0 8px var(--c-touring-amber-glow);
}

.pill-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-soft-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  min-height: 44px;
}

.btn-neon {
  background-color: var(--c-route-teal);
  color: var(--c-midnight);
  border-color: var(--c-route-teal);
  box-shadow: 0 0 16px var(--c-route-teal-glow);
}

.btn-neon:hover {
  background-color: #6da19d;
  color: var(--c-midnight);
  box-shadow: 0 0 24px rgba(109, 161, 157, 0.65);
}

.btn-outline {
  background: rgba(23, 34, 37, 0.6);
  color: var(--c-touring-white);
  border-color: var(--glass-border);
}

.btn-outline:hover {
  background: rgba(34, 46, 49, 0.9);
  border-color: var(--c-touring-amber);
  color: var(--c-touring-amber);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 16px;
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

.btn-text {
  background: transparent;
  color: var(--c-soft-steel);
}

.btn-text:hover {
  color: var(--c-touring-white);
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  padding: 32px;
}

/* Header (Non-sticky, 56-64px desktop, 48-52px mobile) */
.site-header {
  height: 64px;
  border-bottom: 1px solid rgba(93, 137, 134, 0.2);
  background: rgba(16, 25, 28, 0.95);
  position: relative;
  z-index: 100;
}

.site-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-touring-white);
  font-weight: 700;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--c-route-teal);
  flex-shrink: 0;
}

.brand-text {
  overflow-wrap: anywhere;
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--c-soft-steel);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--c-touring-white);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-route-teal);
  box-shadow: 0 0 6px var(--c-route-teal-glow);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--c-touring-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero Section */
.hero-section {
  padding: 64px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--c-touring-white);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--c-soft-steel);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  background: var(--c-deep-graphite);
}

.media-visual {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

/* Page Header (Sub-pages) */
.page-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid rgba(93, 137, 134, 0.15);
  background: rgba(23, 34, 37, 0.4);
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--c-soft-steel);
  max-width: 800px;
}

/* Process Section */
.process-section {
  padding: 64px 0;
  border-top: 1px solid rgba(93, 137, 134, 0.15);
  border-bottom: 1px solid rgba(93, 137, 134, 0.15);
  background: rgba(16, 25, 28, 0.6);
}

.section-badge-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--c-soft-steel);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.process-step {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--c-route-teal);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-touring-amber);
  margin-bottom: 8px;
}

.step-title {
  font-size: 1.125rem;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.step-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-soft-steel);
}

/* Topics Section (Horizontal Split Cards) */
.topics-section {
  padding: 64px 0;
}

.section-intro {
  margin-bottom: 40px;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Horizontal Split Card Style
   RULE: IMAGE | 24–40px GAP | CONTENT
   NEVER text over image. All readable content in panel. */
.split-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  padding: 24px;
  align-items: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.split-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(10, 16, 18, 0.85);
}

.split-media {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(93, 137, 134, 0.2);
  height: 100%;
  min-height: 220px;
  background-color: var(--c-deep-graphite);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag-accent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-touring-amber);
  letter-spacing: 0.08em;
}

.tag-plain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-soft-steel);
  letter-spacing: 0.06em;
}

.split-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.split-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-soft-steel);
  margin-bottom: 24px;
}

.split-footer {
  margin-top: auto;
}

/* Callout Section */
.callout-section {
  padding: 0 0 64px 0;
}

.glass-callout {
  background: linear-gradient(135deg, rgba(23, 34, 37, 0.9), rgba(34, 46, 49, 0.95));
  border: 1px solid var(--c-route-teal);
  box-shadow: 0 0 24px rgba(93, 137, 134, 0.2);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.callout-text {
  flex: 1 1 500px;
  min-width: 0;
}

.callout-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.callout-body {
  font-size: 1rem;
  color: var(--c-soft-steel);
  margin-bottom: 0;
}

/* Sub-page Article Layout */
.article-section {
  padding: 64px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.lead-para {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--c-touring-white);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.625rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(93, 137, 134, 0.2);
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-card-feature {
  margin: 32px 0;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  padding: 24px;
}

.sidebar-title {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--c-touring-white);
  border-bottom: 1px solid rgba(93, 137, 134, 0.2);
  padding-bottom: 8px;
}

.sidebar-text {
  font-size: 0.9375rem;
  color: var(--c-soft-steel);
  margin-bottom: 20px;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.clean-list li {
  font-size: 0.875rem;
  color: var(--c-soft-steel);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--c-route-teal);
}

.clean-list li strong {
  color: var(--c-touring-white);
}

/* Legal Pages */
.legal-layout {
  max-width: 900px;
}

.legal-body h2 {
  font-size: 1.375rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--c-touring-white);
}

.legal-body h3 {
  font-size: 1.125rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-body ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
  color: var(--c-soft-steel);
}

.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th, 
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(93, 137, 134, 0.2);
}

.data-table th {
  background-color: var(--c-deep-graphite);
  color: var(--c-touring-white);
  font-weight: 600;
}

.data-table td {
  color: var(--c-soft-steel);
}

.data-table code {
  font-family: var(--font-mono);
  background: rgba(16, 25, 28, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-route-teal);
}

.action-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.status-msg {
  font-size: 0.875rem;
  color: var(--c-alpine-green);
}

/* Contact Page Grid */
.contact-section {
  padding: 64px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-intro {
  font-size: 0.9375rem;
  color: var(--c-soft-steel);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-col {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-touring-white);
  margin-bottom: 6px;
}

.required-star {
  color: var(--c-touring-amber);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(16, 25, 28, 0.8);
  border: 1px solid rgba(93, 137, 134, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--c-light-text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-route-teal);
  box-shadow: 0 0 10px var(--c-route-teal-glow);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--c-error);
  background-color: var(--c-error-bg);
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: var(--c-error);
  margin-top: 4px;
  min-height: 18px;
}

.form-actions {
  margin-top: 24px;
}

.form-success-message {
  text-align: center;
  padding: 32px 16px;
}

.form-success-message[hidden] {
  display: none;
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(93, 137, 134, 0.2);
  border: 2px solid var(--c-route-teal);
  color: var(--c-route-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-icon {
  width: 28px;
  height: 28px;
}

.success-heading {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-body {
  font-size: 0.9375rem;
  color: var(--c-soft-steel);
  margin-bottom: 24px;
}

/* Contact Info & Static Map */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-box {
  padding: 24px;
}

.info-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(93, 137, 134, 0.2);
  padding-bottom: 8px;
}

.info-line {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-line strong {
  color: var(--c-touring-white);
}

.map-block {
  padding: 24px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.coord-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-touring-amber);
}

.static-map-graphic {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
  background-color: var(--c-deep-graphite);
}

.map-svg {
  width: 100%;
  height: auto;
}

.map-caption {
  font-size: 0.8125rem;
  color: var(--c-soft-steel);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--c-midnight);
  border-top: 1px solid rgba(93, 137, 134, 0.2);
  padding: 64px 0 32px;
  color: var(--c-soft-steel);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 16px 0;
  max-width: 440px;
}

.footer-meta {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-asphalt-grey);
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-touring-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--c-soft-steel);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--c-touring-amber);
}

.link-underlined {
  text-decoration: underline;
}

.link-neon {
  color: var(--c-route-teal);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(93, 137, 134, 0.15);
  padding-top: 24px;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--c-asphalt-grey);
}

/* Cookie Banner (Fixed bottom) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 25, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-route-teal);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  padding: 16px 0;
  z-index: 1000;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 500px;
  min-width: 0;
}

.cookie-title {
  color: var(--c-touring-white);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.cookie-desc {
  font-size: 0.8125rem;
  color: var(--c-soft-steel);
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   Mobile down to 320px, breakpoint below 400px, no overflow concealment.
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-card {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }

  .site-header-inner {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 0.9375rem;
  }

  .header-cta-wrap {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 25, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 24px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.125rem;
    padding: 8px 0;
    width: 100%;
  }

  /* Hamburger transform when menu open */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Split Card Mobile Stack
     RULE: On mobile: TEXT -> GAP -> IMAGE, or IMAGE -> GAP -> CONTENT
     Prompt: TEXT -> GAP -> IMAGE or IMAGE | GAP | CONTENT
     Let's keep IMAGE -> GAP -> CONTENT with full visual separation. */
  .split-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .split-media {
    height: 220px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.875rem;
  }

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

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

  .glass-callout {
    padding: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Breakpoint below 400px (down to 320px minimum) */
@media (max-width: 399px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .split-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 1.625rem;
  }

  .glass-panel {
    padding: 20px 16px;
  }

  .btn {
    width: 100%;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  .action-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}