/* =============================================================
   AR Infra Consultancy — design tokens and global styles
   v3 overhaul (2026-09-30): blueprint blue-tint surfaces with the
   v3 accent triad (#3A7BD5 / #7B3FA0 / #C2185B) by user decision.
   Logo-derived tokens are kept defined but no longer drive accents.
   Fonts: Playfair Display (headings), Source Sans 3 (body).
   No frameworks, no icon libraries.
   ============================================================= */

:root {
  /* Logo-derived brand colours */
  --logo-teal: #1F78A8;
  --logo-indigo: #5B5AA6;
  --logo-purple: #7A4A9E;
  --logo-plum: #8A3F8F;
  --logo-rose: #B83C6A;
  /* v3 overhaul (2026-09-30): accent palette switched to the v3 blue/violet/crimson
     triad by explicit user decision — replaces the v2 logo-derived accent set. */
  --brand-gradient: linear-gradient(100deg, #3A7BD5 0%, #7B3FA0 55%, #C2185B 100%);

  /* Surfaces — v4 blue-tint system (2026-10-01): clearer blue-white page,
     visibly tinted alternation surface. No pure white anywhere. */
  --bg-page: #F0F4FB;
  --bg-alt: #E8EFF9;
  --bg-card: #F5F8FF;
  --bg-dark: #1A1128;
  --bg-deep: #0D0820;
  --bg-hero: #100C1E;
  --border-light: #DCE9FF;

  /* v3 accent tokens */
  --brand-blue: #3A7BD5;
  --brand-violet: #7B3FA0;
  --brand-crimson: #C2185B;
  --img-overlay: linear-gradient(135deg, rgba(26, 17, 40, 0.72) 0%, rgba(58, 123, 213, 0.42) 100%);
  --img-overlay-light: linear-gradient(180deg, rgba(240, 244, 251, 0) 0%, rgba(240, 244, 251, 0.95) 80%);

  /* Text */
  --text: #1C1528;
  --text-2: #5A5370;
  --text-on-dark: #F0EEF8;

  /* Lines and interaction */
  --border: #C8D8F0;
  --focus: #7B3FA0;
  --link: #2E66B5;
  --link-hover: #7B3FA0;

  /* Shape and motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 9999px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.15s;
  --t-base: 0.25s;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.375rem;
  --fs-3xl: 3rem;

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* Layout */
  --max-w: 1200px;
  --header-h: 76px;
  --shadow-nav: 0 8px 24px rgba(26, 17, 40, 0.08);
  --ring: 2px solid var(--focus);
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg-page);
  /* Blueprint-paper grid (v4): 48px lines tinted with the accent blue.
     background-attachment: fixed deliberately omitted — scroll-repaint jank
     on mobile; the scrolling grid reads the same and stays smooth. */
  background-image:
    linear-gradient(rgba(58, 123, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 123, 213, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--space-3); padding-left: 1.25rem; }
li { margin-bottom: 0.375rem; }

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }

/* Gradient divider */
.divider {
  border: 0;
  border-top: 2px solid;
  border-image: var(--brand-gradient) 1;
  width: 4rem;
  margin: 0 0 var(--space-4);
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  background: var(--bg-card);
  color: var(--text);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip-link:focus { top: var(--space-3); }

.eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin: 0 0 var(--space-2);
}

.eyebrow--light { color: #C9A8E0; }

.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 44rem; }

.text-link { font-weight: 600; text-decoration-thickness: 1.5px; }

.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-violet);
  border-radius: var(--r-sm);
  padding: var(--space-4);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* ---------- Header: one logo, 76px tall, nothing clips ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled { box-shadow: var(--shadow-nav); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: var(--space-4); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover { color: var(--link-hover); border-bottom-color: var(--brand-violet); }

.nav-list a[aria-current="page"] { color: var(--link); border-bottom-color: var(--brand-blue); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bar { position: relative; }

.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.28s var(--ease), transform 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Gradient pill: one per section */
.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #FFFFFF; }

/* Ghost: light pages */
.btn-outline {
  background: transparent;
  color: var(--link);
  border-color: var(--link);
}

.btn-outline:hover { background: rgba(58, 123, 213, 0.08); color: var(--link-hover); border-color: var(--link-hover); }

/* Ghost: dark surfaces */
.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #FFFFFF; color: #FFFFFF; }

/* Accent: consent panel save button */
.btn-accent { background: var(--brand-violet); color: #FFFFFF; }
.btn-accent:hover { background: var(--brand-crimson); color: #FFFFFF; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-7); }

.section-tint { background: var(--bg-alt); border-block: 1px solid var(--border-light); }

.section > .container { position: relative; z-index: 1; }

/* Split (text + media) sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.split > * { min-width: 0; }

.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head p { color: var(--text-2); }

/* ---------- Definition rows ---------- */
.def-list { display: grid; gap: var(--space-4); margin: 0; }

.def-list > div { border-top: 1px solid var(--border); padding-top: var(--space-4); }

.def-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text);
  margin-bottom: var(--space-1);
}

.def-list dd { margin: 0; color: var(--text-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  border-top: 3px solid var(--brand-blue);
}

caption {
  text-align: left;
  color: var(--text-2);
  font-size: var(--fs-sm);
  padding-bottom: var(--space-2);
}

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

thead th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); max-width: 38rem; }
.form-row { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 0.4rem; }

.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.field .req { color: var(--brand-crimson); font-weight: 700; }
.field .hint { font-size: var(--fs-xs); color: var(--text-2); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.8rem;
  width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: var(--focus); }

textarea { min-height: 8rem; resize: vertical; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--brand-crimson); }

.field-error { color: var(--brand-crimson); font-size: var(--fs-sm); min-height: 1.2em; margin: 0; }

/* Consent checkbox: required, unchecked by default */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--space-3);
}

.consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--brand-violet);
}

.consent label { font-size: var(--fs-sm); color: var(--text); }

.form-status { font-weight: 600; min-height: 1.4em; margin: 0; }
.form-status.is-error { color: var(--brand-crimson); }
.form-status.is-success { color: var(--link); }

/* ---------- Service section media ---------- */
.svc-media {
  margin: 0;
  position: relative;
  align-self: start;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(26, 17, 40, 0.06);
}

.svc-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.svc-media .media-credit {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(13, 8, 32, 0.55);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
}

/* ---------- Legal pages ---------- */
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: var(--fs-xl); margin-top: var(--space-6); }
.legal-body table { margin-bottom: var(--space-4); }

/* ---------- Footer: dark, logo only ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  margin-top: var(--space-7);
  padding-block: var(--space-6) var(--space-4);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand-gradient);
  margin-bottom: var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
}

.footer-grid h2 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B9A8D4;
  margin-bottom: var(--space-2);
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }

.footer-grid a { color: var(--text-on-dark); font-size: var(--fs-sm); }

.footer-grid a:hover { color: #FFFFFF; text-decoration-color: var(--brand-violet); }

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer-desc { color: #C9BFE0; font-size: var(--fs-sm); max-width: 22rem; }
.footer-contact { color: #C9BFE0; font-size: var(--fs-sm); }

.footer-bottom {
  border-top: 1px solid rgba(240, 238, 248, 0.18);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  color: #C9BFE0;
  font-size: var(--fs-xs);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
}

.footer-bottom a { color: #C9BFE0; }
.footer-bottom a:hover { color: #FFFFFF; }

/* ---------- Buttons on the dark cookie banner ---------- */
.cookie-banner .btn-ghost {
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ---------- Reveal motion (reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .reveal.is-visible { opacity: 1; transform: none; }

  /* Stagger siblings: max 150ms extra */
  .reveal:nth-child(2) { transition-delay: 0.05s; }
  .reveal:nth-child(3) { transition-delay: 0.10s; }
  .reveal:nth-child(4) { transition-delay: 0.15s; }
}

/* =============================================================
   SECTION ILLUSTRATIONS
   Decorative animated SVGs behind section text. Always aria-hidden,
   pointer-events none, opacity well under 0.10.
   ============================================================= */
.section { position: relative; }

.section-illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}

.section-illustration svg { width: 100%; height: 100%; }

.section-content { position: relative; z-index: 1; }

.section-illustration [data-anim="dash"] {
  stroke-dasharray: 16 12;
  animation: illo-dash 1.8s linear infinite;
}

.section-illustration [data-anim="pulse"] {
  animation: illo-pulse 2.4s ease-in-out infinite;
}

.section-illustration [data-anim="drift"] {
  animation: illo-drift 36s linear infinite;
}

.section-illustration [data-anim="bob"] {
  animation: illo-bob 4s ease-in-out infinite;
}

@keyframes illo-dash { to { stroke-dashoffset: -56; } }

@keyframes illo-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes illo-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes illo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================================
   PROJECT GRID (Selected Work)
   ============================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 17, 40, 0.06);
  transition: transform var(--t-base, 0.25s) var(--ease), box-shadow var(--t-base, 0.25s) var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(26, 17, 40, 0.12);
}

.project-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(58, 123, 213, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 123, 213, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, var(--bg-alt) 0%, #E9E4F2 100%);
  background-size: 22px 22px, 22px 22px, auto;
  border-bottom: 1px solid var(--border);
}

.project-card-image svg { width: 3.75rem; height: 3.75rem; opacity: 0.35; }

.project-card-body { padding: var(--space-3) var(--space-4) var(--space-4); }

.project-card-tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin: 0 0 var(--space-2);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 var(--space-2);
}

.project-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-2);
  opacity: 0.85;
}

/* =============================================================
   SERVICE IMAGE GRID (multiple slots per service)
   ============================================================= */
.service-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.service-image-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background:
    linear-gradient(rgba(31, 120, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 120, 168, 0.05) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 20px 20px, 20px 20px, auto;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image-slot svg { width: 2.6rem; height: 2.6rem; opacity: 0.4; color: var(--brand-violet); }

.service-image-slot .img-label {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-2);
  text-align: center;
  padding: 0.2rem 0.4rem;
  border-radius: var(--r-sm);
  background: rgba(253, 253, 252, 0.85);
}

.service-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
   MAP + OFFICE HOURS (Contact)
   ============================================================= */
.map-wrapper {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(26, 17, 40, 0.10);
  height: 360px;
  background: var(--bg-alt);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-4);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.map-placeholder[hidden] { display: none; }

.office-hours {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(31, 120, 168, 0.08);
  border: 1px solid rgba(31, 120, 168, 0.35);
  border-radius: var(--r-full);
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  color: var(--link);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.office-hours svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------- Cookie banner (persistent, slide-up) ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  background: rgba(26, 17, 40, 0.97);
  color: var(--text-on-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 2px solid;
  border-image: var(--brand-gradient) 1;
  padding: var(--space-4) var(--space-5);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.cookie-banner.visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s var(--ease);
}

.cookie-banner p {
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  max-width: 44rem;
  margin: 0;
}

.cookie-banner a { color: #9EC4F0; font-weight: 600; }
.cookie-banner a:hover { color: #FFFFFF; }

.cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cookie-banner { padding: var(--space-3) var(--space-4); }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Generic page hero (inner pages) ---------- */
.page-hero { padding-block: var(--space-7) var(--space-5); }

.page-hero h1 { max-width: 20ch; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-nav);
    padding: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

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

  .nav-list { flex-direction: column; align-items: stretch; gap: var(--space-1); }

  .nav-list a {
    display: block;
    padding: 0.6rem 0.2rem;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--border);
  }

  .nav-list a[aria-current="page"] { border-bottom-color: var(--brand-blue); }

  .nav-cta { width: 100%; }

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

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 40px; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }

  .section { padding-block: var(--space-6); }

  .split { grid-template-columns: 1fr; gap: var(--space-5); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .cookie-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .img-zoom-wrap img,
  .project-card-img { transform: none !important; }
  .logo-tagline,
  .logo-headline,
  .logo-ctas,
  .service-scroll-strip { animation: none !important; opacity: 1 !important; }
}
