/* Self-hosted variable fonts (SIL Open Font License 1.1; see /assets/fonts/README.txt) */
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/Unbounded-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens
   One light site: white and mist bands. Dark appears only inside framed
   media (the film, the brand artwork, the logo badge) and the contact panel,
   which is deep teal. Contrast ratios noted are WCAG 2.x.
   ========================================================================== */
:root {
  /* Surfaces */
  --bg-light: #ffffff;
  --bg-light-alt: #f4f7f9;          /* "mist" */
  --surface-card: #ffffff;
  --media-dark: #04090b;

  /* Lines */
  --border-light: #dfe7ec;
  --border-light-hover: #c3d3dc;

  /* Text on light */
  --text-primary: #0b1f2a;          /* 16.9:1 on white, 15.7:1 on mist */
  --text-secondary: #42576a;        /* 7.5:1 on white, 7.0:1 on mist */
  --text-muted: #526674;            /* 6.0:1 on white, 5.6:1 on mist */

  /* Accent: one teal for every action, amber only for brand moments */
  --accent-primary: #0e7490;        /* 5.4:1 on white (white on it: 5.4:1) */
  --accent-primary-hover: #0b5e75;
  --accent-soft-bg: #e8f4f7;
  --accent-soft-border: #c8e1e8;
  --accent-teal-dark: #0f766e;
  --accent-amber-dark: #9a4b06;     /* 6.2:1 on white, 5.8:1 on mist */
  --accent-amber-dot: #d97706;
  --amber-soft-bg: #fdf6ea;
  --amber-soft-border: #f1dcc0;

  /* Film colours: only on media and the contact panel */
  --cyan: #22d3ee;
  --amber: #fbbf24;

  /* Contact panel: deep teal (white text 7.9:1 at the darkest stop, 5.4:1 at the lightest) */
  --panel-a: #083e4e;
  --panel-b: #0b5e75;
  --panel-c: #0e7490;

  --grad-brand-light: linear-gradient(90deg, #0b7e9e 0%, #0f766e 100%);
  --grad-underline: linear-gradient(90deg, #0b7e9e 0%, #0f766e 84%, #d97706 84%, #d97706 100%);

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(11, 31, 42, 0.04), 0 8px 24px -12px rgba(11, 31, 42, 0.10);
  --shadow-card-hover: 0 1px 2px rgba(11, 31, 42, 0.05), 0 18px 40px -18px rgba(11, 31, 42, 0.22);
  --shadow-media: 0 30px 60px -30px rgba(11, 31, 42, 0.45), 0 12px 24px -12px rgba(11, 31, 42, 0.18);

  /* Type */
  --font-display: "Unbounded", system-ui, -apple-system, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.05rem, 1.1rem + 3.9vw, 4rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 2.1vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.72rem;

  /* Space and shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gap-grid: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background-color: var(--bg-light-alt);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-light);
  line-height: 1.6;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

p {
  text-wrap: pretty;
}

figure {
  margin: 0;
}

::selection {
  background: #cdeaf1;
  color: var(--text-primary);
}

/* Keyboard focus: always visible */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.video-frame :focus-visible,
.contact-panel :focus-visible {
  outline-color: #ffffff;
}
.btn:focus-visible,
.email-display:focus-visible {
  border-radius: 999px;
}

/* Line icons (from the sprite at the top of the page) */
.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-soft-border);
}
.icon-tile--amber {
  background: var(--amber-soft-bg);
  color: var(--accent-amber-dark);
  box-shadow: inset 0 0 0 1px var(--amber-soft-border);
}
.icon-tile--solid {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(14, 116, 144, 0.7);
}
.icon-tile--lg {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}
.icon-tile--lg .ic {
  width: 26px;
  height: 26px;
}
.icon-tile--xl {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
}
.icon-tile--xl .ic {
  width: 34px;
  height: 34px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--space-section) 0;
  position: relative;
}

.band--white {
  background: var(--bg-light);
}
.band--mist {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(14, 116, 144, 0.06) 0%, rgba(14, 116, 144, 0) 70%),
    var(--bg-light-alt);
}

/* ==========================================================================
   Type
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
  text-wrap: balance;
}

.headline-xl {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.headline-lg {
  font-size: var(--fs-h2);
  line-height: 1.1;
}

.headline-md {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Kicker: the film's small letter-spaced amber label */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--amber-soft-border);
  background: var(--amber-soft-bg);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-amber-dark);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--accent-amber-dot);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Plain kicker for service rows: number + label, no pill */
.kicker--plain {
  padding: 0;
  border: 0;
  background: none;
  gap: 0.75rem;
}
.kicker--plain::before {
  display: none;
}
.kicker-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.kicker--on-dark {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.kicker--on-dark::before {
  background: var(--amber);
}

/* Signature last phrase: gradient + thin underline */
.grad-phrase {
  position: relative;
  display: inline-block;
  background: var(--grad-brand-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.12em;
}
.grad-phrase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-underline);
  opacity: 0.9;
}

.sparkle {
  width: 16px;
  height: 16px;
  fill: var(--accent-primary);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Word-by-word headline reveal */
.rw-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.is-visible .rw-word {
  opacity: 1;
  transform: none;
}

/* Section and card reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 31, 42, 0.12), 0 6px 16px -6px rgba(14, 116, 144, 0.45);
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 1px 2px rgba(11, 31, 42, 0.14), 0 10px 22px -8px rgba(14, 116, 144, 0.55);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--border-light-hover);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary-hover);
}

.btn-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #ffffff;
}

/* ==========================================================================
   Header: light, translucent. The logo sits as-is in a small rounded badge.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(223, 231, 236, 0.0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border-light);
  box-shadow: 0 10px 30px -22px rgba(11, 31, 42, 0.35);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 11px;
}

/* Logo used strictly as-is: only rounded corners and a shadow on the box,
   no recolouring, filters or redrawing. Its own dark backing becomes a badge. */
.brand-logo-wide {
  height: 44px;
  width: auto;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}
.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-light-hover);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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);
}

/* ==========================================================================
   Hero and intro film
   ========================================================================== */
.hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  background:
    radial-gradient(70% 60% at 50% -10%, rgba(14, 116, 144, 0.12) 0%, rgba(14, 116, 144, 0) 70%),
    radial-gradient(40% 35% at 85% 18%, rgba(217, 119, 6, 0.06) 0%, rgba(217, 119, 6, 0) 70%),
    linear-gradient(180deg, #eef4f7 0%, var(--bg-light) 80%);
  text-align: center;
  overflow-x: clip;
}

/* Faint dot grid, fading out: gives the light hero some texture */
.hero-grid {
  position: absolute;
  inset: 0 0 30% 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(14, 116, 144, 0.18) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 20%, #000 0%, transparent 75%);
}

.hero-head {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.hero .headline-xl {
  max-width: 18ch;
  margin-inline: auto;
}

.hero-sub {
  max-width: 62ch;
  margin: 1.75rem auto 2.25rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.video-stage-wrap {
  position: relative;
  max-width: 1040px;
  margin: clamp(3rem, 2rem + 4vw, 5rem) auto 0;
}

.video-stage-glow {
  position: absolute;
  inset: -8% -6% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 55%, rgba(14, 116, 144, 0.18) 0%, rgba(14, 116, 144, 0) 70%);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--media-dark);
  border: 1px solid rgba(11, 31, 42, 0.9);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.7),
    0 0 0 7px var(--border-light),
    0 40px 80px -30px rgba(11, 31, 42, 0.45),
    0 18px 36px -18px rgba(11, 31, 42, 0.30);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(4, 9, 11, 0.10) 0%, rgba(4, 9, 11, 0.55) 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 1.5rem;
}
.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.18), 0 12px 30px rgba(0, 0, 0, 0.45);
}
.play-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--accent-primary);
  margin-left: 4px;
}

.video-caption {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e6eef1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.video-corner-sparkle {
  position: absolute;
  right: 20px;
  top: 20px;
  fill: var(--amber);
  opacity: 0.8;
  pointer-events: none;
}

/* ==========================================================================
   Stats: one floating card
   ========================================================================== */
.stats-section {
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0 clamp(1rem, 0.5rem + 2vw, 2rem);
  background: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
}

.stat-card {
  padding: 0.25rem clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 1px solid var(--border-light);
}
.stat-card:first-child {
  border-left: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
  background: var(--grad-brand-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-note {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section headers: title left, intro right on wide screens
   ========================================================================== */
.section-header {
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section-header p {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

@media (min-width: 1000px) {
  .section-header {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: end;
  }
  .section-header > .kicker,
  .section-header > .kicker-row {
    grid-column: 1;
    justify-self: start;
  }
  .section-header > h2 {
    grid-column: 1;
  }
  .section-header > p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    padding-bottom: 0.35rem;
  }
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}
.kicker-row .kicker,
.kicker-row .status-tag {
  margin: 0;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft-border);
  background: var(--accent-soft-bg);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* ==========================================================================
   Framed media (brand artwork)
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--media-dark);
  box-shadow: var(--shadow-media);
  isolation: isolate;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
@media (hover: hover) {
  .media:hover img,
  .feature-row:hover .media img {
    transform: scale(1.04);
  }
}

.media-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100% - 36px);
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.media-chip .ic {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

/* ==========================================================================
   Services: alternating feature rows
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
.feature-row + .feature-row {
  margin-top: clamp(4rem, 2.5rem + 5vw, 7rem);
}
.feature-row .media {
  /* a soft teal plate behind each picture */
  box-shadow: 22px 22px 0 0 var(--accent-soft-bg), var(--shadow-media);
}
.feature-row .media img {
  aspect-ratio: 16 / 10;
}
.feature-row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.feature-row--reverse .media {
  order: 2;
  box-shadow: -22px 22px 0 0 var(--amber-soft-bg), var(--shadow-media);
}

.feature-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 1.075rem;
  line-height: 1.7;
  max-width: 50ch;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--accent-soft-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7490' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ==========================================================================
   Case study
   ========================================================================== */
.case-visual img {
  aspect-ratio: 21 / 9;
  object-position: 50% 35%;
}

.lead-pair {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin: calc(-1 * clamp(3rem, 1rem + 6vw, 7rem)) clamp(0rem, -1rem + 4vw, 3.5rem) 0;
}

.ps-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
}
.ps-card--solution {
  border-top: 3px solid var(--accent-primary);
}
.ps-card--problem {
  border-top: 3px solid var(--accent-amber-dot);
}
.ps-card h3 {
  font-size: var(--fs-h3);
  margin: 1.1rem 0 0.75rem;
}
.ps-card p {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.7;
}

.ps-arrow {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 -8px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 0 6px var(--bg-light-alt), 0 10px 20px -8px rgba(14, 116, 144, 0.6);
  position: relative;
  z-index: 3;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.tile,
.rd-tile,
.rule,
.note-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
}
.js .tile:hover,
.js .rd-tile:hover,
.js .rule:hover,
.tile:hover,
.rd-tile:hover,
.rule:hover {
  border-color: var(--border-light-hover);
  box-shadow: var(--shadow-card-hover);
}

.tile h3,
.rd-tile h3,
.rd-tile h4,
.rule h3,
.note-card h3 {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 1.1rem 0 0.55rem;
}
.tile p,
.rd-tile p,
.rule p,
.note-card p {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.65;
}

.section-cta {
  justify-content: flex-start;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* ==========================================================================
   Engineering depth
   ========================================================================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
}

.cap-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cap-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(14, 116, 144, 0.10) 0%, rgba(14, 116, 144, 0) 70%),
    var(--bg-light-alt);
  border-bottom: 1px solid var(--border-light);
}
.cap-head .icon-tile {
  background: #ffffff;
}
.cap-head h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.fact-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding: 1.5rem clamp(1.4rem, 1.2rem + 0.8vw, 2rem) 1.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.fact-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 9px;
  height: 9px;
  background: var(--accent-primary);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.rd-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  margin-top: clamp(4rem, 3rem + 4vw, 6rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: 28px;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(14, 116, 144, 0.08) 0%, rgba(14, 116, 144, 0) 70%),
    var(--bg-light-alt);
  border: 1px solid var(--border-light);
}
.rd-intro {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.rd-intro .headline-md {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
}
.media--soft {
  box-shadow: 0 24px 48px -28px rgba(11, 31, 42, 0.5);
}
.media--soft img {
  aspect-ratio: 3 / 2;
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
}
.rd-tile h3,
.rd-tile h4 {
  margin-top: 0.95rem;
}

/* ==========================================================================
   How we work: offers as a comparison
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
  align-items: stretch;
  padding-top: 1rem;
}

.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 1.1rem;
  align-content: start;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 1.4rem + 1vw, 2.4rem);
}
@supports (grid-template-rows: subgrid) {
  .process-grid {
    grid-template-rows: auto auto auto 1fr;
  }
  .plan {
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
}

.plan--featured {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 30px 60px -30px rgba(14, 116, 144, 0.45), var(--shadow-card);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(14, 116, 144, 0.08) 0%, rgba(14, 116, 144, 0) 70%),
    #ffffff;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: clamp(1.75rem, 1.4rem + 1vw, 2.4rem);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px -8px rgba(14, 116, 144, 0.7);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.step-num {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.plan--featured .step-num {
  color: var(--accent-amber-dark);
}

.plan-title {
  font-size: var(--fs-h3);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  min-height: 4.75rem;
  align-content: center;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}
.price-term {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
}
.plan-terms {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.process-desc {
  color: var(--text-secondary);
  line-height: 1.65;
}
.process-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.offer-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-soft-border);
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(15, 118, 110, 0.10) 0%, rgba(15, 118, 110, 0) 70%),
    linear-gradient(120deg, var(--accent-soft-bg) 0%, #eef8f6 100%);
}
.offer-band .kicker-row {
  margin-bottom: 0.75rem;
}
.offer-band .kicker {
  background: #ffffff;
}
.offer-band h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
  margin-bottom: 0.6rem;
}
.offer-band p {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 75ch;
}

.note-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
  margin-top: var(--gap-grid);
}

/* ==========================================================================
   Our standard: four rules
   ========================================================================== */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-grid);
  counter-reset: rule;
}
.rule {
  counter-increment: rule;
  overflow: hidden;
}
.rule::after {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-soft-bg);
  pointer-events: none;
}
.rule h3 {
  font-size: 1.12rem;
}

/* ==========================================================================
   Who you'd be working with
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
.about-split .media {
  box-shadow: 22px -22px 0 0 var(--accent-soft-bg), var(--shadow-media);
}
.media--tall img {
  aspect-ratio: 4 / 5;
}
.about-copy h2 {
  margin-bottom: 1.5rem;
}
.about-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
}
.about-copy p + p {
  margin-top: 1rem;
}

/* ==========================================================================
   Contact: confident deep-teal call to action
   ========================================================================== */
.contact-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  border-radius: 28px;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(50% 70% at 85% 0%, rgba(34, 211, 238, 0.28) 0%, rgba(34, 211, 238, 0) 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(52, 211, 153, 0.14) 0%, rgba(52, 211, 153, 0) 70%),
    linear-gradient(135deg, var(--panel-a) 0%, var(--panel-b) 55%, var(--panel-c) 100%);
  box-shadow: 0 40px 80px -40px rgba(8, 62, 78, 0.7);
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 80% at 50% 0%, #000 0%, transparent 80%);
}
.contact-panel .headline-lg {
  color: #ffffff;
  max-width: 20ch;
  margin-inline: auto;
}
.contact-panel > p {
  max-width: 54ch;
  margin: 1.25rem auto 2.25rem;
  color: #e3f1f4;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.next-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto 2.25rem;
  text-align: left;
}
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e3f1f4;
  font-size: 0.95rem;
  line-height: 1.5;
}
.next-steps .ic {
  color: var(--amber);
  margin-top: 0.05rem;
}
.next-steps b {
  color: #ffffff;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.email-display {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease, box-shadow 0.2s ease;
  overflow-wrap: anywhere;
}
.email-display:hover {
  color: var(--accent-primary-hover);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Footer: light, part of the site
   ========================================================================== */
.site-footer {
  background: var(--bg-light-alt);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-meta {
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
}
.footer-meta a {
  color: var(--accent-primary);
  font-weight: 600;
}
.footer-meta a:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  /* rule spans only the content width */
  border-top: 0;
  position: relative;
}
.footer-legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--border-light);
}
.footer-legal p {
  margin-top: 0.9rem;
  max-width: 110ch;
}
.footer-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-light-hover);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-legal a:hover {
  color: var(--accent-primary-hover);
  text-decoration-color: var(--accent-primary);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.footer-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 999px) {
  .feature-row,
  .feature-row--reverse,
  .about-split,
  .rd-block {
    grid-template-columns: 1fr;
  }
  .feature-row--reverse .media {
    order: 0;
  }
  .tile-grid,
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  @supports (grid-template-rows: subgrid) {
    .process-grid {
      grid-template-rows: none;
    }
    .plan {
      grid-row: auto;
      grid-template-rows: auto;
    }
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.75rem;
  }
  .stat-card:nth-child(3) {
    border-left: 0;
  }
  .rd-intro {
    flex-direction: column;
  }
  .media--tall img {
    aspect-ratio: 16 / 10;
  }
  .about-split .media {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }
  .brand-logo-wide {
    height: 40px;
    border-radius: 9px;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  /* the nav list is a fixed panel on phones: take its empty wrapper out of the flex row so it adds no gap */
  .nav-inner {
    position: relative;
  }
  .nav-inner > nav {
    position: absolute;
    right: 0;
    top: 0;
  }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 24px 40px -24px rgba(11, 31, 42, 0.35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s ease, visibility 0.2s;
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links a:not(.btn)::after {
    display: none;
  }
  .nav-cta {
    margin-top: 1rem;
    width: 100%;
    min-height: 48px;
  }

  .hero-sub {
    margin: 1.25rem auto 1.75rem;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .video-frame {
    border-radius: 14px;
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.7),
      0 0 0 5px var(--border-light),
      0 24px 48px -24px rgba(11, 31, 42, 0.45);
  }
  .play-btn {
    width: 60px;
    height: 60px;
  }
  .play-btn svg {
    width: 22px;
    height: 22px;
  }
  .video-caption,
  .video-corner-sparkle {
    display: none;
  }

  /* On a phone the last phrase may wrap */
  .grad-phrase,
  .grad-phrase.rw-word {
    display: inline;
    padding-bottom: 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    text-decoration: underline;
    text-decoration-color: rgba(14, 116, 144, 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
  }
  .grad-phrase::after {
    display: none;
  }
  .hero .grad-phrase::before {
    content: "\A";
    white-space: pre;
  }

  .media,
  .contact-panel,
  .rd-block {
    border-radius: 18px;
  }
  .feature-row .media,
  .about-split .media {
    box-shadow: 10px 10px 0 0 var(--accent-soft-bg), var(--shadow-media);
  }
  .feature-row--reverse .media {
    box-shadow: 10px 10px 0 0 var(--amber-soft-bg), var(--shadow-media);
  }
  .media-chip {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.78rem;
  }
  .check-list,
  .tile-grid,
  .cap-grid,
  .rd-grid,
  .rule-grid,
  .note-pair,
  .next-steps {
    grid-template-columns: 1fr;
  }
  .case-visual img {
    aspect-ratio: 16 / 10;
  }
  .lead-pair {
    grid-template-columns: 1fr;
    margin: -2.5rem 0.75rem 0;
    gap: 0;
  }
  .ps-arrow {
    margin: -10px 0;
    transform: rotate(90deg);
  }
  .offer-band {
    grid-template-columns: 1fr;
  }
  .icon-tile--xl {
    width: 60px;
    height: 60px;
  }
  .section-cta .btn {
    flex: 1 1 100%;
  }
  .btn,
  .email-display {
    max-width: 100%;
  }
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-actions .btn,
  .contact-actions .email-display {
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .stat-card {
    padding-left: 1.1rem;
    padding-right: 0.75rem;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .rw-word,
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .media:hover img,
  .feature-row:hover .media img,
  .btn:active,
  .play-btn:hover {
    transform: none !important;
  }
}

/* Phone: icon sits beside the heading, so card stacks stay short */
@media (max-width: 760px) {
  .tile,
  .rd-tile,
  .rule,
  .note-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 0.9rem;
    align-items: center;
    padding: 1.25rem;
  }
  .tile .icon-tile,
  .rd-tile .icon-tile,
  .rule .icon-tile,
  .note-card .icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .tile h3,
  .rd-tile h3,
  .rule h3,
  .note-card h3 {
    margin: 0;
  }
  .tile p,
  .rd-tile p,
  .rule p,
  .note-card p {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
  }
  .rule::after {
    display: none;
  }
}

/* ==========================================================================
   Engineering: how we design it (three illustrations)
   ========================================================================== */
.rd-diagrams {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rd-diagrams-lead {
  margin: 0.5rem 0 1.5rem;
  max-width: 60ch;
  color: var(--text-secondary);
}
.rd-diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid, 1.25rem);
}
.rd-diagram-card {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rd-diagram-card h3,
.rd-diagram-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
@media (max-width: 960px) {
  .rd-diagram-grid { grid-template-columns: 1fr; }
}

.rd-diagram-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(11, 31, 42, 0.05), 0 8px 24px rgba(11, 31, 42, 0.04));
}

/* ==========================================================================
   Review fixes (20 Nov 2026): skip link, tap targets, sticky R&D intro, phones
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.75rem;
}
.footer-links a,
.footer-meta a,
.footer-legal a {
  display: inline-block;
  padding-block: 0.65rem;
}
@media (min-width: 1000px) {
  .rd-intro {
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
@media (max-width: 480px) {
  .rd-diagram-card {
    padding: 1rem 0.75rem;
  }
}

/* ==========================================================================
   Stats: second row of proof numbers (counted from our own repositories)
   ========================================================================== */
.stat-card:nth-child(4n + 1) {
  border-left: 0;
}
.stat-card:nth-child(n + 5) {
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-top: 1px solid var(--border-light);
}
@media (max-width: 960px) {
  .stat-card:nth-child(n) {
    border-left: 1px solid var(--border-light);
  }
  .stat-card:nth-child(odd) {
    border-left: 0;
  }
  .stat-card:nth-child(n + 3) {
    margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border-top: 1px solid var(--border-light);
  }
}
