/*
 * Knotworks Public Benefit Corporation
 * Corporate Website
 *
 * Palette derived from the logo artwork in images/:
 *   blue loop #4098cc, rose loop #c85981, silver loop #bfbfbf, wordmark #000.
 * The raw blue and rose are decorative only; the "-text" variants meet
 * WCAG AA contrast for text on white.
 */

/*
 * Fonts, self-hosted from fonts/ (SIL Open Font License; see each folder's OFL.txt).
 * These are the Google Fonts builds of Manrope and Source Sans 3: variable
 * WOFF2 files covering every approved weight, split into the Latin and
 * Latin Extended character sets. Browsers download a file only when the page
 * uses a character in its unicode-range, so English pages load just the Latin files.
 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/manrope/manrope-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/manrope/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3/source-sans-3-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3/source-sans-3-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3/source-sans-3-latin-ext-italic-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3/source-sans-3-latin-italic-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --color-ink: #111418;
  --color-blue: #4098cc;
  --color-blue-text: #1f6c9e;
  --color-blue-deep: #1b4f7a;
  --color-rose: #c85981;
  --color-rose-text: #a63e66;
  --color-rose-deep: #8c3358;
  --color-silver: #bfbfbf;
  --color-silver-strong: #a3a8ae;
  /* Equal mix of the logo blue and rose: rgb(132, 120.5, 166.5), hue 255. The text
     variant keeps that hue with a little more saturation, at the brightest level
     that still gives at least 4.5:1 on the Mission cards. */
  --color-purple: #8479a7;
  --color-purple-text: #7867aa;

  /* Neutrals */
  --color-text: #2b3036;
  --color-muted: #5b6570;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f6;
  --color-border: #e6e7ea;

  /* Type */
  /* Self-hosted (see @font-face above); system fonts stand in until they arrive (font-display: swap) */
  --font-heading: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --radius: 12px;
  --radius-small: 8px;
  --max-width: 1160px;
  --gutter: 24px;
  --header-height: 84px;
  --section-space: clamp(72px, 10vw, 128px);

  /* Hairline in the logo's blue and rose */
  --gradient-line: linear-gradient(90deg, var(--color-blue) 0%, var(--color-rose) 100%);
  /* Tapers a long accent line from full height at the left to a fine point at the right */
  --taper: polygon(0 0, 100% 38%, 100% 62%, 0 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-blue-text);
}

:focus-visible {
  outline: 3px solid var(--color-blue-text);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-ink);
  color: #fff;
}

.btn-primary:hover {
  background: #2a3038;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: #c9ccd1;
  color: var(--color-ink);
}

.btn-secondary:hover {
  border-color: var(--color-ink);
}

.btn-small {
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 46px;
}

/*
 * Knot color flow (header logo, on hover/focus).
 * .knot-flow covers exactly the same box as the logo <img>, and the SVG inside
 * uses the logo's own 628x128 pixel grid, so both draw from one origin at one
 * scale. The knot is one closed path: three traced arcs, each masked by its
 * own strand mask, carry three dashes (one per color) whose offsets script
 * moves together. At rest each arc shows only its own color, matching the logo.
 * In forced-colors mode the overlay is hidden and the clip undone (see below).
 */
.logo {
  position: relative;
}

.knot-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
}

/*
 * While flowing, the knot is drawn only by the overlay: the <img> is clipped
 * to the wordmark (which starts at x = 134 of 628), so the two never stack.
 * The overlay at rest matches the original exactly, so the swap is invisible.
 */
.logo.is-flowing .knot-flow {
  visibility: visible;
}

.logo.is-flowing img {
  clip-path: inset(0 0 0 21%);
}

.knot-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Wider than the strands; each arc's mask trims it to the exact strand pixels */
.knot-dash {
  fill: none;
  stroke-width: 16;
  stroke-linecap: butt;
}

.knot-dash-blue {
  stroke: var(--color-blue);
}

.knot-dash-gray {
  stroke: var(--color-silver);
}

.knot-dash-rose {
  stroke: var(--color-rose);
}

/*
 * The shaded piece at the upper-center crossing is the visible end of the
 * gray-to-rose stretch, drawn about 20% darker for depth (#bfbfbf -> #999999).
 * Colors passing through it keep that same shading.
 */
.knot-dash-wide {
  stroke-width: 20;
}

.knot-dash-blue-shade {
  stroke: #337aa3;
}

.knot-dash-gray-shade {
  stroke: #999999;
}

.knot-dash-rose-shade {
  stroke: #a04767;
}

@media (forced-colors: active) {
  .knot-flow {
    display: none;
  }

  .logo.is-flowing img {
    clip-path: none;
  }
}

.site-nav {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/*
 * Contact is hidden for launch, so the header has no button. Above 720px the
 * menu toggle is hidden too, so drop the empty area (and its gap) to keep the
 * menu flush right. Restoring the Contact button undoes this automatically.
 */
@media (min-width: 721px) {
  .nav-actions:not(:has(.btn)) {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  color: var(--color-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

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

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

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(88px, 13vw, 168px) 0 clamp(88px, 11vw, 144px);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  position: relative;
}

/*
 * Drifting color fields. Only translate, rotate and scale animate, so the
 * browser can composite them without repainting the page.
 */
.hero-fluid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Soft veil keeps the headline area calm and readable */
.hero-fluid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 248, 246, 0.8) 0%, rgba(248, 248, 246, 0.5) 42%, rgba(248, 248, 246, 0) 72%);
}

.fluid {
  --c: 58, 155, 224;
  --a: 0.5;
  position: absolute;
  display: block;
  aspect-ratio: 1;
  will-change: translate;
  animation: fluid-x var(--x-time) ease-in-out infinite alternate;
}

.fluid::before {
  content: "";
  position: absolute;
  inset: 0;
  /* closest-side keeps the fade fully inside the box, so no edge ever shows */
  background: radial-gradient(closest-side at 44% 46%, rgba(var(--c), var(--a)) 0%, rgba(var(--c), calc(var(--a) * 0.5)) 45%, rgba(var(--c), 0) 100%);
  will-change: translate, rotate, scale;
  animation:
    fluid-y var(--y-time) ease-in-out infinite alternate,
    fluid-turn var(--r-time) ease-in-out infinite alternate,
    fluid-breathe var(--s-time) ease-in-out infinite alternate;
}

/* Ranges are percentages of each field's own size */
.fluid-1 {
  --c: 58, 155, 224;
  --a: 0.55;
  --x0: 0%;   --x1: -44%;  --x-time: 6s;
  --y0: -10%; --y1: 30%;   --y-time: 8.1s;
  --r-time: 5.1s;
  --s-time: 4.4s;
  width: min(64vw, 900px);
  top: -34%;
  right: -14%;
}

.fluid-2 {
  --c: 217, 83, 127;
  --a: 0.45;
  --x0: 8%;   --x1: -54%;  --x-time: 7.3s;
  --y0: 10%;  --y1: -36%;  --y-time: 6.6s;
  --r-time: 10.4s;
  --s-time: 5.5s;
  width: min(52vw, 740px);
  bottom: -46%;
  right: 6%;
}

.fluid-3 {
  --c: 112, 186, 240;
  --a: 0.42;
  --x0: 40%;  --x1: -46%;  --x-time: 5s;
  --y0: -28%; --y1: 48%;   --y-time: 6.5s;
  --r-time: 8.4s;
  --s-time: 4.8s;
  width: min(36vw, 520px);
  top: 8%;
  right: 30%;
}

.fluid-4 {
  --c: 217, 83, 127;
  --a: 0.28;
  --x0: -40%; --x1: 54%;   --x-time: 7.9s;
  --y0: -10%; --y1: 52%;   --y-time: 9.9s;
  --r-time: 6.8s;
  --s-time: 5.8s;
  width: min(32vw, 460px);
  top: -30%;
  left: 34%;
}

.fluid-5 {
  --c: 58, 155, 224;
  --a: 0.24;
  --x0: -14%; --x1: 90%;   --x-time: 6.8s;
  --y0: 14%;  --y1: -54%;  --y-time: 5.5s;
  --r-time: 11.4s;
  --s-time: 5.2s;
  width: min(30vw, 420px);
  bottom: -30%;
  left: -8%;
}

/*
 * Horizontal drift, vertical drift, rotation and stretch each run on their own
 * property and their own cycle length. Because the cycles never line up, the
 * combined path does not repeat, and the fields never all stop at once.
 */
@keyframes fluid-x {
  from { translate: var(--x0) 0; }
  to { translate: var(--x1) 0; }
}

@keyframes fluid-y {
  from { translate: 0 var(--y0); }
  to { translate: 0 var(--y1); }
}

@keyframes fluid-turn {
  from { rotate: -25deg; }
  to { rotate: 35deg; }
}

@keyframes fluid-breathe {
  from { scale: 1.06 0.9; }
  to { scale: 0.92 1.14; }
}

/*
 * Playback state. The animation runs on its own from page load. Reduced-motion
 * visitors get a static background, and is-offscreen (set by script.js)
 * pauses work nobody can see; it resumes when the hero is back in view.
 */
@media (prefers-reduced-motion: reduce) {
  .fluid,
  .fluid::before {
    animation-play-state: paused;
  }
}

.hero.is-offscreen .fluid,
.hero.is-offscreen .fluid::before {
  animation-play-state: paused;
}

/* Slogan */
.slogan {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 9px 20px 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.04), inset 0 0 0 1px rgba(17, 20, 24, 0.06);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.slogan::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-line);
}

.gradient-text {
  color: var(--color-blue-text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    background: linear-gradient(90deg, var(--color-blue-text) 0%, var(--color-rose-text) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .gradient-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 40rem;
  margin-top: 28px;
  color: var(--color-text);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

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

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem);
  letter-spacing: -0.025em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 20px;
  background: var(--gradient-line);
  border-radius: 1px;
}

/* Long tapered accent line, used where the line spans a content area */
.title-line-long::after {
  width: 100%;
  height: 4px;
  border-radius: 0;
  clip-path: var(--taper);
}

/* Emphasized phrases in the methodology passages (600 is the heaviest Source Sans 3 weight loaded) */
.methodology-item strong {
  font-weight: 600;
}

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

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

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

/*
 * Our Methodology: three connected modules feeding one conclusion.
 * Each step is a lightly framed module (thin rounded outline in its color, no
 * fill). On wide screens lines drop from 01 and 03 and curve into one shared
 * connector (blue -> purple -> rose); a stem from 02 runs straight down
 * through it into the centre of the Public Benefit Corporation panel's top
 * accent. All decorative: CSS lines plus one aria-hidden element, positioned
 * from the grid itself so they follow the layout.
 */
.methodology {
  --flow-width: 1.5px;
  --flow-radius: 14px;
  /* Module bottom to the shared connector, and to the panel */
  --flow-drop: 30px;
  --flow-gap: clamp(56px, 5.5vw, 68px);
  --col-gap: clamp(28px, 3.5vw, 48px);
  /* Centre of the first column, from the list's left edge */
  --col-centre: calc((100% - 2 * var(--col-gap)) / 6);
  border-top: 1px solid var(--color-border);
}

.methodology-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

/* The module frame */
.methodology-item {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px) clamp(20px, 2.2vw, 28px) clamp(26px, 2.8vw, 34px);
  border: 1px solid var(--item-accent);
  border-color: color-mix(in srgb, var(--item-accent) 45%, #fff);
  border-radius: 16px;
  text-align: center;
}

.methodology-item::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 0 auto 16px;
  border-radius: 1px;
  background: var(--item-accent);
}

/* The accent mark's bottom margin spaces the passage */
.methodology-item p {
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* 01 and 03: down from the module's centre, curving in along the shared connector */
.methodology-item:first-child::after,
.methodology-item:last-child::after {
  content: "";
  position: absolute;
  top: 100%;
  width: var(--flow-radius);
  height: calc(var(--flow-drop) + 1px);
  border-bottom: var(--flow-width) solid var(--item-accent);
}

.methodology-item:first-child::after {
  left: calc(50% - var(--flow-width) / 2);
  border-left: var(--flow-width) solid var(--item-accent);
  border-bottom-left-radius: var(--flow-radius);
}

.methodology-item:last-child::after {
  right: calc(50% - var(--flow-width) / 2);
  border-right: var(--flow-width) solid var(--item-accent);
  border-bottom-right-radius: var(--flow-radius);
}

/* 02: straight down, through the shared connector, into the panel */
.methodology-item:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--flow-width) / 2);
  width: var(--flow-width);
  height: calc(var(--flow-gap) + 1px);
  background: var(--item-accent);
}

/* The shared connector, between the 01 and 03 curves */
.methodology-flow {
  position: relative;
  height: var(--flow-gap);
}

.methodology-flow::before {
  content: "";
  position: absolute;
  top: calc(var(--flow-drop) - var(--flow-width));
  left: calc(var(--col-centre) - var(--flow-width) / 2 + var(--flow-radius));
  right: calc(var(--col-centre) - var(--flow-width) / 2 + var(--flow-radius));
  height: var(--flow-width);
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-purple) 50%, var(--color-rose) 100%);
}

/* The connector element sets the space above the panel */
.methodology .pbc-panel {
  margin-top: 0;
}

/*
 * Mission statement: the section's only content below its heading. Its top
 * edge is the full-width blue-to-silver-to-rose accent, painted as a
 * background layer so it follows the rounded corners as part of the box.
 */
.mission-quote {
  position: relative;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 88px);
  background:
    linear-gradient(90deg, var(--color-blue) 0%, var(--color-silver-strong) 50%, var(--color-rose) 100%) top / 100% 4px no-repeat,
    radial-gradient(70% 90% at 15% 0%, rgba(64, 152, 204, 0.1) 0%, rgba(64, 152, 204, 0) 70%),
    radial-gradient(70% 90% at 85% 100%, rgba(200, 89, 129, 0.1) 0%, rgba(200, 89, 129, 0) 70%),
    var(--color-bg-alt);
  border-radius: 20px;
  text-align: center;
}

.mission-quote p {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The three outcomes in the closing statement, in the logo's colors (text-safe variants) */
.mission-quote strong {
  font-weight: 700;
}

.quote-blue {
  color: var(--color-blue-text);
}

.quote-rose {
  color: var(--color-rose-text);
}

.quote-blend {
  color: var(--color-blue-text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .quote-blend {
    background: linear-gradient(90deg, var(--color-blue-text) 0%, var(--color-rose-text) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Each line gets the full gradient if the phrase wraps */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}

@media (forced-colors: active) {
  .quote-blend {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

/* More about what we do */
.what-we-do {
  border-top: 1px solid var(--color-border);
}

.pillars-title {
  margin-bottom: 40px;
  color: var(--color-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* Cards stretch to equal height; the paragraph grows so every pictogram sits on the same baseline */
.pillar {
  --pillar-accent: var(--color-blue);
  display: flex;
  flex-direction: column;
  padding: 32px clamp(24px, 3vw, 32px) 36px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.pillar-icon {
  display: block;
  flex-shrink: 0;
  align-self: center;
  width: 88px;
  height: 88px;
  margin-top: 32px;
  overflow: visible;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Three-part pictogram: same height as the others, wider to fit left, arrow and right */
.pillar-icon-wide {
  width: 143px;
}

.pillar-icon .accent {
  stroke: var(--pillar-accent);
}

.pillar-icon .accent-2 {
  stroke: var(--color-rose);
  fill: var(--color-bg);
}

.pillar-icon .muted {
  stroke: #9aa1a9;
}

.pillar-icon .paper {
  fill: var(--color-bg);
}

.pillar-icon .fill {
  fill: var(--pillar-accent);
  fill-opacity: 0.16;
}

.pillar-icon .heavy {
  stroke-width: 2.75;
}

.pillar h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  text-wrap: balance;
}

.pillar p {
  flex-grow: 1;
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.pbc-panel {
  position: relative;
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(64, 152, 204, 0.06) 0%, rgba(200, 89, 129, 0.06) 100%),
    var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.pbc-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-line);
}

.pbc-panel h3 {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.pbc-panel p {
  max-width: 44rem;
  margin: 20px auto 0;
  font-size: 1.125rem;
}

/* Products */
.products {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/*
 * One block per product, separated by spacing and a hairline. Desktop: text
 * (about 60%) on the left, media (about 40%) on the right; the full
 * description sits under the text, so the media stays in view beside it.
 */
.product-list {
  margin-top: clamp(40px, 6vw, 64px);
}

.product {
  --product-accent: var(--color-blue);
  --product-accent-text: var(--color-blue-text);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas:
    "text media"
    "details media";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.product + .product {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--color-border);
}

.product-text {
  grid-area: text;
}

.product-name {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  letter-spacing: -0.03em;
}

.product-summary {
  max-width: 34rem;
  margin-top: 14px;
  color: var(--color-text);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

/* Three high-level points: a bold lead, then its explanation in smaller text */
.product-points {
  display: grid;
  gap: 22px;
  max-width: 40rem;
  margin-top: 32px;
}

.product-points li {
  position: relative;
  padding-left: 26px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* Short accent line, level with the lead's first line */
.product-points li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--product-accent);
}

.product-points strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

/*
 * Media panel. Holds the pictogram for now; an <img>, <video> or <svg> placed
 * here later fills the panel (see the rule below) without layout changes.
 */
.product-media {
  grid-area: media;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  /* A faint halo in the product color behind the white pictogram circle,
     fading out well before the edges, so no box shows */
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--product-accent) 10%, transparent) 0%, color-mix(in srgb, var(--product-accent) 4%, transparent) 62%, transparent 100%);
}

.product-media > :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art {
  width: 62%;
  height: auto;
  aspect-ratio: 1;
  padding: 13%;
  overflow: visible;
  border-radius: 50%;
  background: var(--color-bg);
  fill: none;
  stroke: var(--product-accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-art .sheet {
  fill: var(--color-bg);
}

/* The pictogram draws itself once, as its product block is revealed on scroll.
   (pathLength="1" on each shape lets one dash cover the whole stroke.) */
.reveal-ready .product.is-revealed .product-art > * {
  stroke-dasharray: 1;
  animation: product-draw 850ms cubic-bezier(0.4, 0, 0.2, 1) 250ms both;
}

/* Fading in early hides the dots round line caps leave on strokes not yet drawn */
@keyframes product-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  20% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* Full description: below the text, never clipped */
.product-details {
  grid-area: details;
  margin-top: 32px;
}

.product-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--product-accent-text);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.product-details summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.product-details[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Long technical text: a controlled measure, and lines that avoid one-word endings */
.product-details-body {
  max-width: 60ch;
  min-height: 0;
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.75;
  text-wrap: pretty;
}

/*
 * Divider above the text: an 18 px gap, a 1 px line, then 20 px. It is part of
 * the content rather than the body's margin, border and padding, so the whole
 * body can collapse smoothly to zero height.
 */
.product-details-body::before {
  content: "";
  display: block;
  height: 1px;
  margin: 18px 0 20px;
  background: var(--color-border);
}

.product-details-body p + p {
  margin-top: 1.25em;
}

/*
 * Detail view media: a detailed illustration shown only in the expanded
 * description of products marked .has-detail-media. A soft bordered panel;
 * later it can hold an animation or video in the same space.
 *
 * On wider screens the expanded description spans the whole product: text on
 * the left (about 52%), illustration on the right (about 48%), centred
 * against the full height of the text. At 860px and below they stack.
 */
.product.has-detail-media {
  grid-template-areas:
    "text media"
    "details details";
}

.has-detail-media .product-details-body {
  display: grid;
  grid-template-columns: minmax(0, 21fr) minmax(0, 19fr);
  column-gap: clamp(40px, 5vw, 64px);
  align-items: start;
  max-width: none;
}

/* The divider spans both columns; the text and illustration sit beneath it */
.has-detail-media .product-details-body::before {
  grid-column: 1 / -1;
}

/* Centre the illustration on the whole text block, not its first paragraph */
.has-detail-media .product-detail-media {
  align-self: center;
}

.product-detail-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  /* At least 16:9: wider drawings sit centred with a little more room, taller
     ones make the panel grow; the artwork is never stretched */
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: clamp(12px, 1.6vw, 18px);
  background: var(--color-bg);
  background: color-mix(in srgb, var(--product-accent) 3%, var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.product-detail-media > :is(img, video, svg) {
  display: block;
  width: 100%;
  height: auto;
}

/*
 * Opening and closing: the description slides down or up while fading. Its
 * container is a one-row grid whose row grows from 0fr to 1fr, which animates
 * to the description's natural height whatever its length. Animating
 * content-visibility (allow-discrete) keeps the text shown until the collapse
 * finishes. A click mid-animation simply reverses the transition from where it
 * is. Browsers without ::details-content open and close instantly.
 */
.product-details::details-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: clip;
  opacity: 0;
  transition:
    grid-template-rows 400ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 400ms cubic-bezier(0.4, 0, 0.2, 1),
    content-visibility 400ms allow-discrete;
}

.product-details[open]::details-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product-details::details-content {
    transition: none;
  }
}

/* Team */
.team-title {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
}

.team-title::after {
  margin-top: 24px;
}

/*
 * Team members: portrait, then name and role, organised by the grid and
 * whitespace alone (no cards). Every portrait slot has the same 4:5 shape.
 */
/* Wider gaps between columns keep the portraits a little smaller while the
   row still spans the full section width. A wrapping row rather than a grid,
   so a last row with fewer members is centred, whatever the team size. */
.team-grid {
  --team-cols: 4;
  --team-col-gap: clamp(20px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(36px, 4vw, 52px) var(--team-col-gap);
  margin-top: clamp(40px, 6vw, 64px);
}

/* 4:5 portraits; object-fit keeps that frame even if a photo's shape differs */
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 12px;
  background: var(--color-bg-alt);
}

.team-name {
  margin-top: 18px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.team-role {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Name and role centred under each portrait (the portrait fills its column).
   Each member is exactly one column wide, the same width a grid column had. */
.team-member {
  flex: 0 0 calc((100% - (var(--team-cols) - 1) * var(--team-col-gap)) / var(--team-cols));
  min-width: 0;
  text-align: center;
}

/* Supporting copy: a centred block beneath the whole team, text left-aligned */
.team-intro {
  max-width: 50rem;
  margin: clamp(48px, 6vw, 72px) auto 0;
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.7;
}

.team-intro p + p {
  margin-top: 1em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}

.form-status {
  max-width: 28rem;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-rose);
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.form-status strong {
  display: block;
  color: var(--color-ink);
}

.contact-form {
  padding: clamp(28px, 4vw, 40px);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row label {
  margin-bottom: 8px;
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c9ccd1;
  border-radius: var(--radius-small);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 3px solid var(--color-blue-text);
  outline-offset: 1px;
}

.contact-form fieldset:disabled .form-row label {
  color: var(--color-muted);
}

.contact-form fieldset:disabled input,
.contact-form fieldset:disabled textarea {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  cursor: not-allowed;
}

.contact-form fieldset:disabled .btn {
  background: #d9dce0;
  color: #4a525c;
  cursor: not-allowed;
}

/*
 * Scroll reveals (script.js). Marked elements fade in while rising 18 px, once,
 * as they enter the viewport. Content is visible by default: the hidden starting
 * state applies only after the script adds .reveal-ready to <html>, which it
 * does once its observer is running. Only opacity and transform change, so
 * nothing around a revealing element moves. "stagger" items that reveal
 * together (a row of cards) get increasing --reveal-delay values from the script.
 */
.reveal-ready [data-reveal] {
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

/* The closing statement arrives a little more slowly */
.reveal-ready [data-reveal="slow"] {
  transition-duration: 720ms;
}

.reveal-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Footer */
.site-footer {
  padding: 64px 0 40px;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: start;
}

.footer-brand img {
  width: auto;
  height: 34px;
}

.footer-slogan {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

/* Bottom row: copyright on the left, legal links on the right */
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
}

.footer-legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-legal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-legal-nav a:hover,
.footer-legal-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/*
 * Legal pages (privacy.html, terms.html): a title band, then one narrow
 * reading column of sections. Headings are shown exactly as approved, so
 * the Terms keep their own numbers and nothing is numbered automatically.
 */
.legal-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

/* Narrower than the homepage: about 75 characters per line of section text */
.legal-column {
  max-width: calc(40rem + 2 * var(--gutter));
}

.legal-eyebrow {
  color: var(--color-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-title {
  margin-top: 12px;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
}

/* Short blue-to-rose rule under the title */
.legal-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 20px;
  border-radius: 2px;
  background: var(--gradient-line);
}

.legal-meta {
  margin-top: 20px;
  color: var(--color-muted);
}

/* Top and bottom only, so .container keeps its side gutters */
.legal-body {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: var(--section-space);
}

.legal-toc {
  padding: 24px 28px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.legal-toc h2 {
  font-size: 1rem;
}

.legal-toc ul {
  margin-top: 12px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  padding: 3px 0;
  break-inside: avoid;
}

.legal-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.legal-section h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
}

.legal-section p,
.legal-section li {
  font-size: 1.125rem;
  line-height: 1.75;
}

.legal-section p {
  margin-top: 16px;
}

/* Approved bulleted lists, with small brand-colored markers */
.legal-section ul {
  margin-top: 12px;
}

.legal-section li {
  position: relative;
  padding-left: 1.5em;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 0.25em;
  top: calc(0.875em - 3.5px); /* centred on the first line */
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
}

.legal-section li:nth-child(even)::before {
  background: var(--color-rose);
}

.legal-related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* Responsive: tablet */
@media (max-width: 860px) {
  /*
   * Our Methodology, stacked: the modules sit one above another, joined by a
   * short centred line in each gap (01 -> 02 -> 03 -> panel). The lines run
   * only through empty space, never beside the text.
   */
  .methodology {
    --stack-gap: 40px;
  }

  .methodology-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--stack-gap);
  }

  .methodology-flow {
    display: none;
  }

  .methodology .pbc-panel {
    margin-top: var(--stack-gap);
  }

  .methodology-item:first-child::after,
  .methodology-item:last-child::after,
  .methodology-item:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(50% - var(--flow-width) / 2);
    right: auto;
    width: var(--flow-width);
    height: calc(var(--stack-gap) + 2px);
    border: 0;
    border-radius: 0;
  }

  .methodology-item:first-child::after {
    background: linear-gradient(180deg, var(--color-blue), var(--color-purple));
  }

  .methodology-item:nth-child(2)::after {
    background: linear-gradient(180deg, var(--color-purple), var(--color-rose));
  }

  /* Into the panel's top accent, whose centre is the blue-rose midpoint */
  .methodology-item:last-child::after {
    background: linear-gradient(180deg, var(--color-rose), var(--color-purple));
  }

  /*
   * Expanded detail view: text first, then the illustration below it, in one
   * readable column (side by side would be too narrow here)
   */
  .has-detail-media .product-details-body {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
  }

  .has-detail-media .product-detail-media {
    align-self: auto;
    margin-top: 28px;
  }

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

  /* Two portraits per row from here down, so they stay a useful size */
  .team-grid {
    --team-cols: 2;
  }

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

}

/* Responsive: mobile */
@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --header-height: 72px;
  }

  .nav-wrap {
    gap: 12px;
  }

  .logo img {
    height: 32px;
  }

  .site-nav {
    margin-left: 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(17, 20, 24, 0.06);
  }

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

  .nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.0625rem;
  }

  .nav-menu li + li {
    border-top: 1px solid var(--color-border);
  }

  /* Hero: fewer, larger fields on small screens */
  .fluid-4,
  .fluid-5 {
    display: none;
  }

  .fluid-1 {
    width: 120vw;
    top: -30%;
    right: -60%;
  }

  .fluid-2 {
    width: 100vw;
    bottom: -40%;
    right: -30%;
  }

  .fluid-3 {
    width: 70vw;
    top: 30%;
    right: 10%;
  }

  .hero-fluid::after {
    background: linear-gradient(180deg, rgba(248, 248, 246, 0.55) 0%, rgba(248, 248, 246, 0.35) 100%);
  }

  .slogan {
    border-radius: 18px;
    padding: 8px 14px;
  }

  .slogan::before {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* Products stack: text, media, then the full description */
  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "media"
      "details";
    grid-template-rows: none;
  }

  .product-media {
    width: 100%;
    max-width: 420px;
    margin-top: 32px;
    aspect-ratio: 4 / 3;
  }

  .product-art {
    width: 55%;
  }

  .product-details {
    margin-top: 24px;
  }

  /* Products with detail media also stack their product row */
  .product.has-detail-media {
    grid-template-areas:
      "text"
      "media"
      "details";
  }

  .team-grid {
    --team-col-gap: 16px;
    row-gap: 32px;
  }

  .team-name {
    margin-top: 14px;
    font-size: 1.0625rem;
  }

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

  .legal-toc {
    padding: 20px 22px;
  }

  .legal-toc ul {
    columns: 1;
  }
}

@media (max-width: 420px) {
  .btn-small {
    padding: 10px 14px;
  }
}

@media (max-width: 380px) {
  .logo img {
    height: 28px;
  }
}

@media (max-width: 340px) {
  .nav-wrap,
  .nav-actions {
    gap: 8px;
  }

  .logo img {
    height: 22px;
  }
}

@media (max-width: 320px) {
  .logo img {
    height: 20px;
  }
}

/* The hero animation is handled by its own playback rules above. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
