/* Sprint Built — design system
   Layout: mobile-first single column, 8px spacing grid, 1180px max container.
   Colors are the four brand colors plus tints of them only. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --charcoal: #021f28;
  --offwhite: #dffcf3;
  --teal: #00b5b5;
  --pink: #f44d78;

  /* Tints (derived from the brand colors only) */
  --charcoal-2: #062a35;            /* raised surface */
  --charcoal-3: #0a3542;            /* hover surface */
  --text-muted: rgba(223, 252, 243, 0.74);
  --text-faint: rgba(223, 252, 243, 0.55);
  --line: rgba(0, 181, 181, 0.22);
  --line-strong: rgba(0, 181, 181, 0.5);
  --teal-wash: rgba(0, 181, 181, 0.08);
  --teal-glow: rgba(0, 181, 181, 0.35);
  --pink-hover: #f76a8e;
  --pink-press: #e03d68;
  --pink-glow: rgba(244, 77, 120, 0.45);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.125rem, 1.4rem + 3.6vw, 4rem);   /* 34px → 64px */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;  /* 17px */
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;

  /* Spacing (8px grid) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 2.5rem;
  --s6: 3rem; --s8: 4rem; --s10: 5rem; --s12: 6rem; --s16: 8rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --container: 1180px;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-glow: 0 0 0 1px var(--line-strong), 0 18px 48px -18px var(--teal-glow);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 200;
  background: var(--pink); color: var(--charcoal); padding: var(--s1) var(--s2);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: var(--s8); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; transform: skewX(-12deg); }

.section-head { display: grid; gap: var(--s2); max-width: 46rem; margin-bottom: var(--s6); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.8rem; --btn-pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 250ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 250ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }

/* Primary: pink fill, charcoal text (charcoal on pink = 4.6:1, passes AA) */
.btn--primary { background: var(--pink); color: var(--charcoal); box-shadow: 0 8px 24px -10px var(--pink-glow); }
.btn--primary:hover { background: var(--pink-hover); box-shadow: 0 0 0 4px rgba(244, 77, 120, 0.18), 0 14px 32px -10px var(--pink-glow); }
.btn--primary:active { background: var(--pink-press); }

/* Secondary: teal outline */
.btn--secondary { background: transparent; color: var(--offwhite); border-color: var(--teal); }
.btn--secondary:hover { background: var(--teal-wash); border-color: var(--teal); color: var(--offwhite); box-shadow: 0 0 24px -6px var(--teal-glow); }

.btn--lg { --btn-pad-y: 1rem; --btn-pad-x: 2rem; min-height: 56px; font-size: 1.0625rem; }
.btn--sm { --btn-pad-y: 0.55rem; --btn-pad-x: 1.1rem; min-height: 44px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  color: var(--teal); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 250ms var(--ease); }
.link-arrow:hover { color: var(--pink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  height: var(--header-h);
  background: rgba(2, 31, 40, 0.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), background-color 250ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(2, 31, 40, 0.9); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex-shrink: 0; }
.brand svg { height: 30px; width: auto; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: var(--s4); list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
  transition: color 200ms var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--pink); transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--offwhite); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: var(--s1); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--offwhite); border-radius: 2px; transition: transform 300ms var(--ease), opacity 200ms; }
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s4)) var(--gutter) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(0, 181, 181, 0.16), transparent 70%),
    var(--charcoal);
  display: flex; flex-direction: column; gap: var(--s4);
  opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 0s linear 250ms;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 250ms var(--ease); }
.mobile-menu ul { list-style: none; display: grid; gap: var(--s1); }
.mobile-menu a.mobile-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line);
  transform: translateY(12px); opacity: 0; transition: transform 400ms var(--ease), opacity 400ms var(--ease), color 200ms;
}
.mobile-menu a.mobile-link:hover, .mobile-menu a.mobile-link[aria-current="page"] { color: var(--pink); }
.mobile-menu.is-open a.mobile-link { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 40ms; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 80ms; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 120ms; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 160ms; }
.mobile-menu .btn { width: 100%; }
.mobile-menu-foot { margin-top: auto; color: var(--text-muted); font-size: var(--fs-small); display: grid; gap: var(--s1); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 2.5rem + 7vw, 8.5rem) clamp(4rem, 3rem + 4vw, 6.5rem); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(0, 181, 181, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 181, 181, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift { to { background-position: 64px 64px; } }
.hero-glow {
  position: absolute; width: 720px; height: 720px; max-width: 140vw;
  left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 181, 181, 0.32), rgba(0, 181, 181, 0) 65%);
  filter: blur(10px);
  animation: glow-pulse 9s ease-in-out infinite alternate;
}
@keyframes glow-pulse { from { opacity: 0.75; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-46%) scale(1.08); } }
.hero-cursor {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  left: var(--mx, 70%); top: var(--my, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 181, 181, 0.16), transparent 65%);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.hero:hover .hero-cursor { opacity: 1; }
.hero-streaks span {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal));
  opacity: 0.35; transform: skewX(-12deg);
  animation: streak 6s var(--ease) infinite;
}
.hero-streaks span:nth-child(1) { top: 22%; width: 140px; animation-delay: 0s; }
.hero-streaks span:nth-child(2) { top: 58%; width: 90px; animation-delay: 2.2s; }
.hero-streaks span:nth-child(3) { top: 78%; width: 180px; animation-delay: 4.1s; background: linear-gradient(90deg, transparent, var(--pink)); }
@keyframes streak { 0% { left: -20%; opacity: 0; } 15% { opacity: 0.6; } 60% { opacity: 0.5; } 100% { left: 110%; opacity: 0; } }

.hero-content { display: grid; gap: var(--s3); max-width: 52rem; }
.hero-tag {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--s1);
  padding: 0.35rem 0.85rem 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: rgba(6, 42, 53, 0.7); font-size: var(--fs-small); color: var(--text-muted);
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(244, 77, 120, 0.2); }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 1.05; }
.hero h1 .accent { color: var(--teal); }
.hero h1 .slant { display: inline-block; font-style: italic; transform: skewX(-6deg); }
.hero .lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 38rem; }
.hero .btn-row { margin-top: var(--s1); }
.hero-note { font-size: var(--fs-small); color: var(--text-faint); display: flex; align-items: center; gap: var(--s1); }
.hero-note svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

.page-hero { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem) var(--s6); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .hero-content { gap: var(--s2); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.25rem); }
.page-hero .lead { color: var(--text-muted); font-size: var(--fs-lead); max-width: 40rem; }

.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 var(--s2); display: flex; gap: var(--s1); font-size: var(--fs-small); color: var(--text-faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s1); color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--pink); }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 42, 53, 0.6), rgba(2, 31, 40, 0)); }
.trust-inner { display: grid; gap: var(--s4); padding-block: var(--s5); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.stat { display: grid; gap: 2px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--offwhite); }
.stat-value .unit { color: var(--teal); }
.stat-label { font-size: var(--fs-small); color: var(--text-muted); }
.logo-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.logo-row-label { font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); width: 100%; }
.logo-slot {
  display: grid; place-items: center; height: 44px; padding-inline: var(--s3);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  font-size: var(--fs-label); color: var(--text-faint); letter-spacing: 0.04em;
}

/* Placeholder marker: anything with this class needs real content */
.ph-tag {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill);
  border: 1px dashed var(--pink); color: var(--pink);
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6;
  vertical-align: middle;
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4) var(--s3); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 181, 181, 0.13), rgba(0, 181, 181, 0.04) 60%), var(--charcoal-2);
  border: 1px solid var(--line);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: var(--teal); color: var(--charcoal);
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--text-muted); }
.card .link-arrow { margin-top: auto; }
.card-list { list-style: none; display: grid; gap: 6px; color: var(--text-muted); font-size: 0.9375rem; }
.card-list li { display: flex; gap: var(--s1); align-items: baseline; }
.card-list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: skewX(-12deg) translateY(-1px); }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; gap: var(--s3); counter-reset: step; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.step-num {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 14px; border: 2px solid var(--teal); background: var(--charcoal);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--teal);
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.step.is-visible .step-num { background: var(--teal); color: var(--charcoal); }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: calc(-1 * var(--s3)); width: 2px;
  background: linear-gradient(var(--teal), rgba(0, 181, 181, 0.15));
  transform-origin: top; transform: scaleY(var(--line-scale, 1)); transition: transform 700ms var(--ease) 200ms;
}
.js .step:not(.is-visible)::before { --line-scale: 0; }
.step-body { display: grid; gap: 6px; padding-top: 12px; padding-bottom: var(--s2); }
.step-body p { color: var(--text-muted); }
.step-time { font-size: var(--fs-label); color: var(--teal); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.work-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--charcoal-2); border: 1px solid var(--line);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.work-card:hover, .work-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--line-strong); }
.work-media { position: relative; aspect-ratio: 800 / 431; max-width: 100%; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-summary {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--s3);
  background: linear-gradient(0deg, rgba(2, 31, 40, 0.96) 10%, rgba(2, 31, 40, 0.6) 60%, rgba(2, 31, 40, 0.1));
  color: var(--offwhite); font-size: 0.9375rem;
  opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.work-card:hover .work-summary, .work-card:focus-visible .work-summary { opacity: 1; transform: none; }
.work-body { padding: var(--s3); display: grid; gap: var(--s1); }
.work-body h3 { font-size: 1.1875rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--teal-wash); border: 1px solid var(--line); color: var(--teal); font-size: var(--fs-label); font-weight: 500; }
@media (hover: none) {
  .work-summary { position: static; opacity: 1; transform: none; background: none; padding: 0 var(--s3); color: var(--text-muted); }
}

/* ---------- Why (solid teal band, charcoal text for contrast) ---------- */
.why { background: var(--teal); color: var(--charcoal); border-radius: clamp(0px, 3vw, 28px); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.25rem, 1rem + 3vw, 4rem); position: relative; overflow: hidden; }
.why::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: var(--charcoal); opacity: 0.06; transform: skewX(-12deg);
}
.why .eyebrow { color: var(--charcoal); }
.why .section-head p { color: rgba(2, 31, 40, 0.82); }
.why-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); list-style: none; position: relative; z-index: 1; }
.why-item { display: grid; gap: var(--s1); }
.why-item svg { width: 36px; height: 36px; margin-bottom: var(--s1); }
.why-item p { color: rgba(2, 31, 40, 0.86); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); scrollbar-width: thin; scrollbar-color: var(--teal) transparent; list-style: none; }
.quote {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--s3); margin: 0;
  padding: var(--s4) var(--s3); border-radius: var(--radius); background: var(--charcoal-2); border: 1px solid var(--line);
}
.quote blockquote { margin: 0; font-size: 1.0625rem; color: var(--offwhite); }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--pink); margin-bottom: var(--s1); }
.quote figcaption { display: flex; align-items: center; gap: var(--s2); margin-top: auto; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--teal-wash); border: 1px dashed var(--line-strong); color: var(--teal); font-family: var(--font-display); font-weight: 700; }
.quote-name { font-weight: 600; display: block; }
.quote-role { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: clamp(0px, 3vw, 28px); border: 1px solid var(--line);
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter);
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(244, 77, 120, 0.22), transparent 70%),
    radial-gradient(50% 70% at 50% -20%, rgba(0, 181, 181, 0.22), transparent 70%),
    var(--charcoal-2);
  display: grid; justify-items: center; gap: var(--s3);
}
.cta-band h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); max-width: 18ch; }
.cta-band p { color: var(--text-muted); font-size: var(--fs-lead); max-width: 34rem; }

/* ---------- Content pages ---------- */
.split { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.prose { display: grid; gap: var(--s2); max-width: 40rem; }
.prose p { color: var(--text-muted); }
.prose h2 { margin-top: var(--s2); }
.service-detail { display: grid; gap: var(--s4); padding-block: var(--s6); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail-head { display: grid; gap: var(--s2); align-content: start; }
.service-detail-head p { color: var(--text-muted); font-size: var(--fs-lead); }
.panel { padding: var(--s4) var(--s3); border-radius: var(--radius); background: var(--charcoal-2); border: 1px solid var(--line); display: grid; gap: var(--s2); }
.panel h3 { font-size: 1rem; color: var(--teal); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.values { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); list-style: none; }
.faq { display: grid; gap: var(--s1); max-width: 48rem; }
.faq details { border-radius: var(--radius-sm); background: var(--charcoal-2); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 56px; padding: var(--s2) var(--s3); font-family: var(--font-display); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--pink); }
.faq details p { padding: 0 var(--s3) var(--s3); color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.contact-aside { display: grid; gap: var(--s3); align-content: start; }
.contact-aside .panel p { color: var(--text-muted); }
.contact-line { display: grid; gap: 2px; }
.contact-line span { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.contact-line a { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--pink); }
.form { display: grid; gap: var(--s2); padding: var(--s4) var(--s3); border-radius: var(--radius); background: var(--charcoal-2); border: 1px solid var(--line); }
.form-row { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field .opt { color: var(--text-faint); font-weight: 400; }
.input {
  width: 100%; min-height: 50px; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--charcoal); border: 1px solid var(--line-strong); color: var(--offwhite);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: var(--teal); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 181, 181, 0.3); }
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B5B5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field.is-invalid .input { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(244, 77, 120, 0.22); }
.field.is-valid .input { border-color: var(--teal); }
.field-error { min-height: 1.25em; font-size: var(--fs-small); color: var(--pink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); justify-content: space-between; }
.form-foot small { color: var(--text-faint); }
.form-success { display: grid; justify-items: center; text-align: center; gap: var(--s2); padding: var(--s6) var(--s3); border-radius: var(--radius); border: 1px solid var(--teal); background: var(--teal-wash); }
.form-success svg { width: 56px; height: 56px; color: var(--teal); }
.form-success p { color: var(--text-muted); max-width: 32rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--section); padding-block: var(--s8) calc(var(--s4) + 72px); background: linear-gradient(180deg, rgba(6, 42, 53, 0.5), var(--charcoal)); }
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.footer-brand { display: grid; gap: var(--s2); align-content: start; max-width: 22rem; }
.footer-brand svg { height: 32px; width: auto; }
.footer-brand p { color: var(--text-muted); }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s2); }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--text-muted); transition: color 200ms; }
.footer-col a:hover { color: var(--pink); }
.socials { display: flex; gap: var(--s1); list-style: none; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--offwhite); transition: border-color 200ms, color 200ms, background-color 200ms; }
.socials a:hover { border-color: var(--pink); color: var(--pink); background: rgba(244, 77, 120, 0.08); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; color: var(--text-faint); font-size: var(--fs-small); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(2, 31, 40, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; gap: var(--s1);
  transform: translateY(110%); transition: transform 350ms var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; }

/* ---------- Scroll reveal (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-auto-columns: minmax(300px, 46%); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { padding: var(--s5) var(--s4); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu, .mobile-cta { display: none; }
  .brand svg { height: 34px; }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::before { left: 56px; right: calc(-1 * var(--s3)); top: 27px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--teal), rgba(0, 181, 181, 0.15)); transform-origin: left; transform: scaleX(var(--line-scale, 1)); }
  .step-body { padding-top: 0; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s10); }
  .service-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); }
  .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s10); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: var(--s8); }
  .site-footer { padding-bottom: var(--s4); }
}
@media (min-width: 1200px) {
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-streaks, .hero-cursor { display: none; }
}

/* ---------- Pricing (services page) ---------- */
.pricing { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.price-card {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5) var(--s4); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 181, 181, 0.12), rgba(0, 181, 181, 0.03) 60%), var(--charcoal-2);
  border: 1px solid var(--line);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.price-head { display: grid; gap: 4px; }
.price-head h3 { font-size: 1.5rem; }
.price-tagline { color: var(--text-muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.price-amount { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--offwhite); font-variant-numeric: tabular-nums; }
.price-from, .price-unit { color: var(--text-muted); font-size: 1rem; font-weight: 600; }
.price-card .card-list { gap: 10px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.features { list-style: none; display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.feature { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3); border-radius: var(--radius); border: 1px solid var(--line); background: var(--charcoal-2); }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--teal); color: var(--charcoal); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: 0.9375rem; }
.addons { display: grid; gap: var(--s4); padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.25rem, 1rem + 3vw, 4rem); border-radius: clamp(0px, 3vw, 28px); border: 1px solid var(--line); background: radial-gradient(60% 80% at 100% 0%, rgba(0, 181, 181, 0.18), transparent 70%), var(--charcoal-2); }
.addons .section-head { margin-bottom: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--teal-wash); color: var(--offwhite); font-weight: 500; font-size: 0.9375rem; }
.contact-line p { color: var(--text-muted); }
@media (min-width: 700px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .pricing--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Hero layout + device mockup ---------- */
.hero-layout { display: grid; gap: var(--s6); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.devices { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 1.28; container-type: inline-size; }
.dev { position: absolute; overflow: hidden; background: var(--offwhite); color: var(--charcoal); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 181, 181, 0.35); }
.dev--desktop { left: 0; top: 2%; width: 92%; aspect-ratio: 16 / 10.4; border-radius: 1.8cqw; }
.dev--tablet { left: 40%; top: 40%; width: 33%; aspect-ratio: 3 / 4; border-radius: 2.6cqw; border: 1.1cqw solid var(--charcoal-3); animation: dev-float 7s ease-in-out infinite; }
.dev--phone { left: 68%; top: 47%; width: 21%; aspect-ratio: 9 / 18.5; border-radius: 3cqw; border: 1cqw solid var(--charcoal-3); animation: dev-float 7s ease-in-out 1.2s infinite; }
@keyframes dev-float { 50% { transform: translateY(-1.6cqw); } }
.dev-bar { height: 7%; display: flex; align-items: center; gap: 0.8cqw; padding-inline: 2.2cqw; background: rgba(2, 31, 40, 0.07); }
.dev-bar i { width: 1cqw; height: 1cqw; border-radius: 50%; background: rgba(2, 31, 40, 0.25); }
.dev-bar i:first-child { background: var(--pink); }
.dev-url { width: 38%; height: 40%; margin-inline: auto; border-radius: var(--radius-pill); background: rgba(2, 31, 40, 0.08); }
.dev-screen { position: absolute; inset: 7% 0 0; padding: 3cqw 4cqw; display: flex; flex-direction: column; gap: 3cqw; }
.dev--tablet .dev-screen, .dev--phone .dev-screen { inset: 0; padding: 2.4cqw 2.4cqw; gap: 1.6cqw; }
.mp-nav { display: flex; align-items: center; justify-content: space-between; }
.mp-logo { display: block; width: 9cqw; height: 1.2cqw; border-radius: 0.4cqw; background: var(--charcoal); }
.dev--phone .mp-logo, .dev--tablet .mp-logo { width: 7cqw; }
.mp-links { display: flex; gap: 1.6cqw; }
.mp-links i { display: block; width: 3.6cqw; height: 0.7cqw; border-radius: 0.4cqw; background: rgba(2, 31, 40, 0.3); }
.mp-pill { display: block; width: 10cqw; height: 2.8cqw; border-radius: var(--radius-pill); }
.mp-pill--pink { background: var(--pink); }
.mp-pill--line { box-shadow: inset 0 0 0 0.35cqw var(--teal); }
.mp-pill--sm { width: 7cqw; height: 2cqw; }
.mp-pill--wide { width: 80%; height: 2.2cqw; }
.mp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; align-items: center; }
.mp-copy, .mp-stack { display: flex; flex-direction: column; gap: 1cqw; }
.mp-kicker { display: block; width: 5cqw; height: 0.6cqw; background: var(--teal); }
.mp-h { display: block; height: 1.9cqw; border-radius: 0.4cqw; background: var(--charcoal); }
.dev--phone .mp-h, .dev--tablet .mp-h { height: 1.3cqw; }
.mp-t { display: block; height: 0.8cqw; border-radius: 0.4cqw; background: rgba(2, 31, 40, 0.22); }
.mp-t.dark { background: rgba(2, 31, 40, 0.65); }
.w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.mp-btns { display: flex; gap: 1.2cqw; margin-top: 1cqw; }
.mp-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 1.4cqw; background: rgba(0, 181, 181, 0.2); }
.mp-art--sm { aspect-ratio: 16 / 9; margin-top: 0.6cqw; }
.mp-dot { display: block; width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--teal); }
.mp-art--sm .mp-dot { width: 4cqw; height: 4cqw; }
.mp-dot.sm { width: 2.2cqw; height: 2.2cqw; }
.mp-card { position: absolute; left: 10%; right: 10%; bottom: 10%; display: flex; flex-direction: column; gap: 0.8cqw; padding: 1.6cqw; border-radius: 1cqw; background: var(--offwhite); box-shadow: 0 1cqw 2cqw -1cqw rgba(2, 31, 40, 0.35); }
.mp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.mp-mini { display: flex; flex-direction: column; gap: 0.8cqw; padding: 1.6cqw; border-radius: 1cqw; background: rgba(2, 31, 40, 0.05); border: 1px solid rgba(2, 31, 40, 0.1); }
.mp-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 11%; display: flex; align-items: center; justify-content: space-between; padding-inline: 4cqw; background: var(--charcoal); }
.mp-logo.light { background: var(--offwhite); width: 7cqw; }
.mp-links.light i { background: rgba(223, 252, 243, 0.4); }
.mp-burger { display: grid; gap: 0.45cqw; }
.mp-burger i { display: block; width: 2.6cqw; height: 0.45cqw; background: var(--charcoal); border-radius: 0.3cqw; }
@media (min-width: 1000px) {
  .hero-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); }
}

/* ---------- About ---------- */
.prose .prose-highlight { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: var(--offwhite); border-left: 3px solid var(--pink); padding-left: var(--s2); }
.about-stats { display: grid; gap: var(--s4); padding: var(--s5) var(--s4); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(80% 60% at 100% 0%, rgba(0, 181, 181, 0.16), transparent 70%), var(--charcoal-2); }
.about-stats .stat-value { color: var(--teal); }
.pull-quote { margin: 0; display: grid; gap: var(--s3); padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); background: var(--teal); color: var(--charcoal); }
.pull-quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; }
.pull-quote blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: 0.6; margin-bottom: var(--s1); color: var(--charcoal); opacity: 0.35; }
.pull-quote figcaption { color: rgba(2, 31, 40, 0.86); }
@media (min-width: 900px) {
  .values--4, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .values--4, .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
}
.hero h1 .accent { display: block; }
@media (min-width: 900px) {
  .process--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .process--3 .step { justify-items: center; text-align: center; align-content: start; gap: var(--s3); }
  .process--3 .step:not(:last-child)::before { left: calc(50% + 28px); right: calc(-50% - var(--s5) + 28px); }
  .process--3 .step-body { justify-items: center; max-width: 22rem; }
}

/* ---------- Featured work: live-site cards ---------- */
.work-summary { align-items: center; justify-content: center; gap: 6px; font-family: var(--font-display); font-weight: 600; background: rgba(2, 31, 40, 0.72); }
.work-summary svg, .work-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.work-body { justify-items: center; text-align: center; gap: var(--s2); padding: var(--s4) var(--s3); }
.work-body h3 { font-size: 1.375rem; }
.work-loc { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.work-loc svg { width: 16px; height: 16px; color: var(--pink); }
.work-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); transition: color 200ms var(--ease); }
.work-link svg { transition: transform 250ms var(--ease); }
.work-card:hover .work-link, .work-card:focus-visible .work-link { color: var(--pink); }
.work-card:hover .work-link svg { transform: translate(2px, -2px); }
@media (hover: none) { .work-summary { display: none; } }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.legal-aside { display: grid; gap: var(--s3); }
.legal-meta { font-size: var(--fs-small); color: var(--text-muted); }
.legal-toc-title { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s1); }
.legal-toc { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a { display: flex; gap: var(--s1); align-items: baseline; min-height: 36px; padding-block: 6px; color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; }
.legal-toc li { counter-increment: toc; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: var(--fs-label); color: var(--teal); }
.legal-toc a:hover { color: var(--pink); }
.legal { display: grid; gap: var(--s6); max-width: 46rem; }
.legal-section { display: grid; gap: var(--s2); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-section h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.legal-section p, .legal-section li { color: var(--text-muted); }
.legal-section strong { color: var(--offwhite); font-weight: 600; }
.legal-section ul { list-style: none; display: grid; gap: var(--s1); }
.legal-section li { position: relative; padding-left: var(--s3); }
.legal-section li::before { content: ""; position: absolute; left: 2px; top: 0.65em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: skewX(-12deg); }
.legal-section a { color: var(--teal); text-underline-offset: 3px; }
.legal-section a:hover { color: var(--pink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--pink); }
@media (min-width: 900px) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s10); }
  .legal-aside { position: sticky; top: calc(var(--header-h) + var(--s4)); }
}

/* Cookie choice banner (assets/js/consent.js) */
.consent {
  position: fixed; z-index: 150; left: var(--s2); right: var(--s2);
  bottom: calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto;
  display: grid; gap: var(--s2); padding: var(--s3);
  background: var(--charcoal-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  animation: consent-in 300ms var(--ease) both;
}
.consent p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.consent strong { color: var(--offwhite); }
.consent a { color: var(--teal); }
.consent-actions { display: flex; gap: var(--s1); justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 8rem; }
.consent-accept { background: var(--teal); color: var(--charcoal); }
.consent-accept:hover { background: var(--teal); color: var(--charcoal); filter: brightness(1.08); }
.consent-open .mobile-cta { visibility: hidden; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.footer-legal button {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0;
  background: none; border: 0; font: inherit; color: var(--text-faint); cursor: pointer;
}
.footer-legal button:hover { color: var(--pink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal-table th, .legal-table td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.legal-table th { color: var(--offwhite); font-weight: 600; background: var(--teal-wash); white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-section code { font-size: 0.875em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--charcoal-2); color: var(--offwhite); white-space: nowrap; }
@media (min-width: 900px) {
  .consent { left: auto; right: var(--s4); bottom: var(--s4); max-width: 400px; margin: 0; }
}
