/* ==========================================================================
   Innovative Workspace — site stylesheet (redesign 2026)
   Design system & rationale: tools/design-system.md
   Mobile-first · no framework · no build step · one file
   --------------------------------------------------------------------------
   1. Fonts            5. Components       9. Page: blog & article
   2. Tokens           6. Header / footer 10. Page: about, contact, legal, 404
   3. Base             7. Page: home      11. Motion
   4. Layout           8. Shared sections 12. Utilities
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Plus Jakarta Sans (variable 200–800): interface + marketing body copy.     */
/* Newsreader, pinned optical sizes: Display (opsz 72) for headlines/quotes,  */
/* Text (opsz 18) for long-form reading. All Latin-subset WOFF2, OFL.         */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader Display"; src: url("/assets/fonts/newsreader-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Display"; src: url("/assets/fonts/newsreader-display-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader Text"; src: url("/assets/fonts/newsreader-text.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Text"; src: url("/assets/fonts/newsreader-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader Text"; src: url("/assets/fonts/newsreader-text-semibold.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Brand base */
  --navy: #182E52;
  --navy-900: #0E1C36;
  --navy-700: #2B4472;
  --lavender: #D8CAFF;
  --lavender-200: #E6DDFF;
  --lavender-100: #EEE8FF;
  --cream: #F3EDE0;
  --cream-50: #FAF7F0;
  --paper: #FFFDF9;
  /* Derived */
  --violet: #5B3FBF;      /* deep lavender ink: 6.2:1 on cream, 7.1:1 on paper */
  --violet-700: #4A2FAE;  /* violet on lavender: 6.0:1 */
  --slate: #4A5876;       /* muted text: 6.1:1 cream, 7.0:1 paper, 4.7:1 lavender */

  /* Roles — re-mapped by .surface-* classes */
  --bg: var(--cream);
  --text: var(--navy);
  --text-muted: var(--slate);
  --accent-ink: var(--violet);
  --card-bg: var(--paper);
  --line: rgb(24 46 82 / .14);
  --line-strong: rgb(24 46 82 / .55);   /* ≥3:1 on light surfaces — form borders */
  --focus: var(--navy);
  --mark: var(--lavender);
  --btn-bg: var(--navy);
  --btn-fg: var(--cream);
  --btn-bg-hover: var(--navy-700);

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Newsreader Display", "Newsreader Text", Georgia, "Times New Roman", serif;
  --font-serif: "Newsreader Text", Georgia, "Times New Roman", serif;

  /* Modular scale, fluid 360px → 1440px.
     min: 17px base × 1.2 (minor third) · max: 18px base × 1.333 (perfect fourth) */
  --step--2: clamp(0.75rem, 0.74rem + 0.05vw, 0.78rem);
  --step--1: clamp(0.875rem, 0.858rem + 0.074vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.042rem + 0.093vw, 1.125rem);
  --step-1: clamp(1.275rem, 1.2rem + 0.333vw, 1.5rem);
  --step-2: clamp(1.53rem, 1.373rem + 0.696vw, 2rem);
  --step-3: clamp(1.836rem, 1.559rem + 1.23vw, 2.666rem);
  --step-4: clamp(2.203rem, 1.753rem + 2.002vw, 3.554rem);
  --step-5: clamp(2.644rem, 1.946rem + 3.102vw, 4.738rem);
  --step-6: clamp(3.172rem, 2.124rem + 4.658vw, 6.316rem);
  --prose-size: clamp(1.1875rem, 1.146rem + 0.185vw, 1.3125rem);

  /* Space — 8px grid (with a 4px half-step) */
  --space-0-5: 0.25rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6.667vw, 9rem);       /* 72 → 144 */
  --gutter: clamp(1.5rem, 1rem + 2.222vw, 3rem);          /* 24 → 48  */
  --gap: clamp(1.5rem, 1.167rem + 1.481vw, 2.5rem);       /* 24 → 40  */

  /* Layout */
  --container: 80rem;     /* 1280 */
  --measure: 66ch;
  --header-h: 4.5rem;     /* 72 */

  /* Shape & depth */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(14 28 54 / .06), 0 2px 8px rgb(14 28 54 / .05);
  --shadow: 0 2px 4px rgb(14 28 54 / .05), 0 14px 32px -10px rgb(14 28 54 / .18);
  --shadow-lg: 0 4px 10px rgb(14 28 54 / .06), 0 36px 72px -20px rgb(14 28 54 / .32);

  /* Motion */
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 700ms;

  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (min-width: 64em) { :root { --header-h: 5.5rem; } }

/* Surfaces: each section declares one; components inherit the roles. */
.surface-cream { --bg: var(--cream); --card-bg: var(--paper); }
.surface-paper { --bg: var(--paper); --card-bg: var(--cream-50); }
.surface-lavender { --bg: var(--lavender); --card-bg: var(--paper); --accent-ink: var(--violet-700); --mark: var(--paper); }
.surface-navy,
.surface-ink {
  --bg: var(--navy);
  --text: var(--cream);
  --text-muted: rgb(243 237 224 / .78);
  --accent-ink: var(--lavender);
  --card-bg: rgb(255 255 255 / .06);
  --line: rgb(243 237 224 / .16);
  --line-strong: rgb(243 237 224 / .6);
  --focus: var(--lavender);
  --mark: rgb(216 202 255 / .32);
  --btn-bg: var(--lavender);
  --btn-fg: var(--navy);
  --btn-bg-hover: #EAE2FF;
}
.surface-ink { --bg: var(--navy-900); }
[class*="surface-"], .card[class*="surface-"] { background-color: var(--bg); color: var(--text); }

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lavender); color: var(--navy); }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
picture > img { width: 100%; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--text);
}
p, ul, ol, dl, blockquote, figure, address { margin: 0; }
p { text-wrap: pretty; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
strong, b { font-weight: 700; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* 4. Layout --------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 46rem; }
.section { padding-block: var(--section-y); position: relative; }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.stack > * + * { margin-top: var(--stack, var(--space-3)); }
.split {
  display: grid;
  gap: var(--space-6) var(--gap);
}
@media (min-width: 56.25em) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .split > .split__a { grid-column: 1 / span 5; }
  .split > .split__b { grid-column: 7 / span 6; }
  .split--7-5 > .split__a { grid-column: 1 / span 7; }
  .split--7-5 > .split__b { grid-column: 9 / span 4; }
  .split--4-8 > .split__a { grid-column: 1 / span 4; }
  .split--4-8 > .split__b { grid-column: 5 / span 8; }
  .split--center { align-items: center; }
  .split--end { align-items: end; }
}
.sticky-col { position: sticky; top: calc(var(--header-h) + var(--space-4)); }

/* 5. Components ----------------------------------------------------------- */

/* Typography roles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0.95em 0 0 -0.12em currentColor;
  margin-right: 0.85em;
  flex: none;
}
.h-display { font-size: var(--step-6); line-height: 0.98; letter-spacing: -0.028em; }
.h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.024em; }
.h2 { font-size: var(--step-4); letter-spacing: -0.02em; }
.h3 { font-size: var(--step-3); }
.h4 { font-size: var(--step-2); line-height: 1.15; }
.h5 { font-family: var(--font-sans); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: 34em; }
.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); line-height: 1.55; }
.measure { max-width: var(--measure); }
.serif-italic { font-family: var(--font-display); font-style: italic; }
.mark {
  font-style: italic;
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.num { font-family: var(--font-display); font-variant-numeric: lining-nums; }

/* Buttons */
.btn {
  --_pad: 1.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 3.25rem;
  padding: 0.75rem var(--_pad);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out), color var(--dur-2);
}
.btn:hover { background: var(--btn-bg-hover); box-shadow: 0 10px 24px -12px rgb(14 28 54 / .55); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--accent { --btn-bg: var(--lavender); --btn-fg: var(--navy); --btn-bg-hover: #CDBDFC; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--sm { --_pad: 1.15rem; min-height: 2.75rem; padding-block: 0.5rem; }
.btn--lg { --_pad: clamp(1.125rem, 0.7rem + 1.6vw, 2rem); min-height: 3.5rem; font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.125rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.link-arrow span:not(.vh) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--dur-2) var(--ease-out); padding-bottom: 2px; }
.link-arrow:hover span:not(.vh) { background-size: 100% 1.5px; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--lavender-100);
  color: var(--navy);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}
a.chip:hover { background: var(--lavender); }
.chip[aria-current="page"] { background: var(--navy); color: var(--cream); }
.chips--lg .chip { min-height: 2.75rem; padding-inline: 1.15rem; font-size: var(--step--1); letter-spacing: 0.02em; text-transform: none; }

/* Section head */
.section-head { display: grid; gap: var(--space-3); margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section-head > * { margin: 0; }
.section-head > .btn, .section-head > .link-arrow { justify-self: start; }
.section-head--row { align-items: end; }
@media (min-width: 56.25em) {
  .section-head--row { grid-template-columns: 1fr auto; gap: var(--space-4); }
}
.section-head--center { text-align: center; justify-items: center; }

/* Cards */
.card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}
.card--line { box-shadow: inset 0 0 0 1px var(--line); }

/* Media frame (fixed aspect, never stretched) */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--lavender-100);
  isolation: isolate;
}
.frame > picture, .frame > img { width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--16x10 { aspect-ratio: 16 / 10; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--1x1 { aspect-ratio: 1; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.zoom img { transition: transform 900ms var(--ease-out); }
a:hover .zoom img, .zoom:hover img { transform: scale(1.04); }

/* Accordion (native <details>, animated where ::details-content is supported) */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.012em;
  transition: color var(--dur-2);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { color: var(--accent-ink); }
.acc > summary:focus-visible { outline-offset: 6px; }
.acc__icon {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
  flex: none;
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.9rem;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc[open] .acc__icon { background: var(--navy); color: var(--cream); box-shadow: none; transform: rotate(180deg); }
.surface-navy .acc[open] .acc__icon { background: var(--lavender); color: var(--navy); }
.acc[open] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { padding: 0 0 var(--space-4); color: var(--text-muted); max-width: 46em; }
.acc__panel > * + * { margin-top: var(--space-2); }
.acc::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete;
}
.acc[open]::details-content { block-size: auto; }

/* Quote / testimonial */
.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  height: 0.42em;
  color: var(--accent-ink);
}
.testimonial { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; }
.testimonial blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.testimonial figcaption { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; }
.person-meta { display: grid; line-height: 1.35; font-size: var(--step--1); }
.person-meta strong { font-size: var(--step-0); }
.person-meta span { color: var(--text-muted); }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--lavender-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 4.5rem; height: 4.5rem; }

/* Forms */
.field { display: grid; gap: var(--space-1); }
.field label, .field__label { font-size: var(--step--1); font-weight: 700; }
.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  font-size: var(--step-0);
  line-height: 1.4;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
textarea.input { min-height: 8.5rem; resize: vertical; }
.input::placeholder { color: #69748C; opacity: 1; }
.input:hover { border-color: var(--navy); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--lavender); }

/* Full-bleed media behind a section (hero, CTA bands) */
.media-fill { position: absolute; inset: 0; z-index: -2; }
.media-fill > picture, .media-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Decorative constellation (logo motif) */
.constellation { position: absolute; pointer-events: none; color: var(--navy); user-select: none; }
img.constellation { height: auto; }
.constellation line { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.constellation circle { fill: currentColor; }
.constellation .is-accent { fill: var(--violet); }

/* 6. Header --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  transition: box-shadow var(--dur-2) var(--ease-out);
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(243 237 224 / .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color var(--dur-2);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(14 28 54 / .35); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius-sm); }
.brand img { height: 3.25rem; width: auto; }
@media (min-width: 64em) { .brand img { height: 4.25rem; } }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav__list { margin: 0; }
.nav__link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile: full-screen lavender sheet */
@media (max-width: 63.99em) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-6);
    padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-6);
    background: var(--lavender);
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
    visibility: hidden;
    content-visibility: hidden;   /* closed sheet: no layout, no font downloads */
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2), content-visibility 0s linear var(--dur-2);
    transition-behavior: allow-discrete;
  }
  .nav-open .nav { visibility: visible; content-visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { box-shadow: none; }
  .nav-open .site-header::before { background: var(--lavender); }
  .nav-open .brand { position: relative; z-index: 2; }
  .nav__list { display: grid; gap: var(--space-1); }
  .nav__link {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-1) 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 1.6rem + 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .nav__link[aria-current="page"] { font-style: italic; }
  .nav__link[aria-current="page"]::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--violet);
    align-self: center;
  }
  .nav .btn { align-self: flex-start; }
  .nav__constellation { left: 8%; right: 0; bottom: 7rem; width: 92%; max-width: 30rem; opacity: .4; z-index: -1; }
}
/* Desktop */
@media (min-width: 64em) {
  .nav-toggle, .nav__constellation { display: none; }
  .nav { display: flex; align-items: center; gap: var(--space-4); }
  .nav__list { display: flex; align-items: center; gap: var(--space-1); }
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: var(--radius-pill);
    font-size: var(--step--1);
    transition: background-color var(--dur-2) var(--ease-out);
  }
  .nav__link:hover { background: rgb(216 202 255 / .55); }
  .nav__link[aria-current="page"] { background: var(--lavender); }
}

/* Footer ------------------------------------------------------------------ */
.site-footer { padding-block: clamp(4rem, 2.5rem + 6vw, 7rem) var(--space-4); font-size: var(--step--1); position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; }
.footer__top { display: grid; gap: var(--space-8); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); border-bottom: 1px solid var(--line); }
.footer__brand img { height: 4.5rem; width: auto; }
.footer__signoff { margin-top: var(--space-5); font-family: var(--font-display); font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.03em; color: var(--cream); }
.footer__signoff em { color: var(--lavender); }
.footer__statement { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; max-width: 14em; }
.footer__statement em { color: var(--lavender); }
.footer__newsletter { display: grid; gap: var(--space-2); align-content: start; max-width: 34rem; }
.footer__heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.footer__newsletter p { color: var(--text-muted); font-size: var(--step-0); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.newsletter-form .input {
  flex: 1 1 14rem;
  min-width: 0;
  background: rgb(255 255 255 / .06);
  border-color: var(--line-strong);
  color: var(--cream);
  border-radius: var(--radius-pill);
  padding-inline: 1.25rem;
}
.newsletter-form .input::placeholder { color: rgb(243 237 224 / .72); }
.newsletter-form .input:hover, .newsletter-form .input:focus { border-color: var(--lavender); }
.newsletter-form .input:focus { box-shadow: 0 0 0 4px rgb(216 202 255 / .3); }
.newsletter-form .btn { flex: none; }
.success-msg[hidden] { display: none; }
.footer__grid { display: grid; gap: var(--space-6) var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer__col ul { display: grid; gap: var(--space-1); margin-top: var(--space-2); list-style: none; padding: 0; }
.footer__col a { display: inline-flex; min-height: 2rem; align-items: center; color: var(--text); transition: color var(--dur-2); }
.footer__col a:hover { color: var(--lavender); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.footer__address { grid-column: 1 / -1; }
.footer__address address { margin-top: var(--space-2); color: var(--text-muted); line-height: 1.7; }
.footer__social { display: flex; gap: var(--space-1); margin-top: var(--space-2); }
.footer__social a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}
.footer__social a:hover { background: var(--lavender); color: var(--navy); box-shadow: none; }
.footer__social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--text-muted); font-size: var(--step--2); letter-spacing: 0.02em; }
.footer__constellation { right: -6rem; top: -4rem; width: 34rem; max-width: none; opacity: .45; }
@media (min-width: 48em) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__address { grid-column: auto; }
}
@media (min-width: 64em) {
  .footer__top { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

/* 7. Home ----------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(4rem, 2rem + 6vw, 7.5rem); overflow: clip; }
.hero__grid { display: grid; gap: var(--space-6) var(--gap); align-items: center; }
.hero__title { font-size: var(--step-6); line-height: 0.96; letter-spacing: -0.03em; }
.hero__lead { margin-top: var(--space-4); font-size: var(--step-1); line-height: 1.45; max-width: 26em; color: var(--text); text-wrap: balance; }
.hero__lead span { display: block; color: var(--text-muted); }
.hero__actions { margin-top: var(--space-5); column-gap: var(--space-2); }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  max-width: 30rem;
}
.hero__proof .label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.backed { display: inline-flex; align-items: center; gap: 0.5rem; }
.backed img { height: 1.6rem; width: auto; }
.backed span { font-weight: 600; font-size: var(--step-0); color: #5F6368; letter-spacing: -0.01em; }
.hero__art { position: relative; width: min(100%, 27rem); margin-inline: auto; aspect-ratio: 1; }
.hero__art::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgb(216 202 255 / .55), rgb(216 202 255 / 0)); z-index: 0; }
.hero__disc { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(120% 120% at 30% 25%, var(--lavender-200) 0%, var(--lavender) 55%, #C9B6FF 100%); }
.hero__heart { position: absolute; left: 50%; top: 50%; width: 66%; translate: -50% -47%; filter: drop-shadow(0 30px 40px rgb(24 46 82 / .22)); }
.hero__art .constellation { inset: 0; width: 100%; height: 100%; }
.hero__art .constellation line { opacity: .5; }
@media (min-width: 56.25em) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .hero__art { width: 112%; max-width: 44rem; margin: -2rem -6% -2rem 0; justify-self: end; }
}

/* Trust & testimonials */
.trust-title .num { font-style: italic; color: var(--accent-ink); }
.testimonials { display: grid; gap: var(--gap); }
@media (min-width: 56.25em) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Consultation panel */
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  isolation: isolate;
}
.panel .constellation { right: -4%; top: 50%; width: min(60%, 34rem); translate: 0 -50%; z-index: -1; opacity: .8; }
.panel__inner { display: grid; gap: var(--space-4); align-items: center; justify-items: start; }
.panel__inner h2 { max-width: 12em; }
@media (min-width: 56.25em) {
  .panel__inner { grid-template-columns: 1fr auto; }
}

/* Pillars (features) */
.pillars { display: grid; gap: var(--space-6) var(--gap); }
@media (min-width: 48em) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { display: grid; gap: var(--space-2); align-content: start; }
.pillar .frame { margin-bottom: var(--space-2); }
.pillar__num { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--accent-ink); line-height: 1; }
.pillar h3 { font-size: var(--step-2); line-height: 1.12; }
.pillar p { color: var(--text-muted); }
.intro-copy { display: grid; gap: var(--space-2); }
.intro-copy .lead { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.25; }
.intro-copy p:not(.lead) { color: var(--text-muted); }

/* Curriculum */
.module > summary { grid-template-columns: auto 1fr auto; padding-block: clamp(1.25rem, 1rem + 1vw, 2rem); }
.module__num {
  display: inline-grid;
  place-items: center;
  min-width: 3.5rem;
  height: 3.5rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--lavender);
  color: var(--navy);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  letter-spacing: 0;
  transition: background-color var(--dur-2);
}
.module[open] .module__num { background: var(--navy); color: var(--cream); }
.module__title { font-size: var(--step-2); }
.topics { display: grid; gap: var(--space-1); padding: 0 0 var(--space-5); }
@media (min-width: 40em) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); } }
.topic { padding: var(--space-3); border-radius: var(--radius); background: var(--card-bg); box-shadow: inset 0 0 0 1px var(--line); }
.topic strong { display: block; font-size: var(--step-0); line-height: 1.35; margin-bottom: var(--space-1); color: var(--text); }
.topic p { font-size: var(--step--1); color: var(--text-muted); }
@media (min-width: 56.25em) {
  .module .topics { padding-left: calc(3.5rem + var(--space-3)); }
}

/* Spotlight quote */
.spotlight { position: relative; overflow: hidden; isolation: isolate; }
.spotlight .constellation { right: -6rem; bottom: -7rem; width: 40rem; max-width: none; z-index: -1; opacity: .45; }
.spotlight__label { font-family: var(--font-sans); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavender); margin-bottom: var(--space-5); display: inline-flex; align-items: center; gap: 0.75em; }
.spotlight__label::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.spotlight blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-4);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 21em;
  text-indent: -0.42em;
}
.spotlight figcaption { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); }
.spotlight .who { font-family: var(--font-sans); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; line-height: 1.3; color: var(--cream); }
.spotlight .role { color: var(--text-muted); font-size: var(--step--1); }

/* Team (three people): stacked cards on phones; from 900px one row per person,
   portrait and name beside the bio; from 1200px three across, where subgrid
   rows keep names, bios and LinkedIn links aligned from card to card. */
.team { display: grid; gap: var(--gap); }
.member { display: grid; gap: var(--space-3); align-content: start; }
.member__head { display: flex; align-items: center; gap: var(--space-3); }
.member__photo { width: clamp(5.5rem, 4rem + 5vw, 8.5rem); aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; flex: none; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: var(--step-3); }
.member__bio { display: grid; gap: var(--space-3); align-content: start; }
.member p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.65; }
.member p:first-of-type { color: var(--text); font-size: var(--step-0); line-height: 1.6; }
.member .link-arrow { margin-top: var(--space-1); }
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .member { grid-template: "head bio" auto "link bio" 1fr / minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); }
  .member__head { grid-area: head; flex-direction: column; align-items: flex-start; }
  .member__bio { grid-area: bio; }
  .member .link-arrow { grid-area: link; align-self: start; }
}
@media (min-width: 75em) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member { grid-row: span 3; grid-template-rows: subgrid; }
  .member__head { flex-direction: column; align-items: flex-start; }
}

/* Marquee */
.marquee { overflow: hidden; padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem); border-block: 1px solid rgb(24 46 82 / .12); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__item svg { width: clamp(2.5rem, 2rem + 2vw, 4rem); height: auto; color: var(--navy); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Course / programme */
.offer-grid { display: grid; gap: var(--gap); }
@media (min-width: 56.25em) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer { display: flex; flex-direction: column; gap: var(--space-3); }
.offer h3 { font-size: var(--step-3); }
.offer__sub { font-weight: 700; font-size: var(--step--1); letter-spacing: 0.02em; color: var(--accent-ink); }
.offer__icon { width: 5.5rem; }
.benefits { display: grid; gap: var(--space-2); margin-top: var(--space-1); }
.offer__cta { margin-top: auto; padding-top: var(--space-3); }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: center; padding: var(--space-2) 0; border-top: 1px solid var(--line); font-weight: 600; line-height: 1.4; }
.benefit .icon-badge { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--navy); }
.benefit .icon { width: 1.3rem; height: 1.3rem; }
.offer--dark { overflow: hidden; }
.offer__big { font-family: var(--font-display); font-size: var(--step-5); line-height: 0.95; letter-spacing: -0.03em; color: var(--lavender); }
.offer__big small { display: block; margin-top: var(--space-1); font-family: var(--font-sans); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; color: var(--cream); }
.browser { border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); transition: transform var(--dur-3) var(--ease-out); }
.offer:hover .browser { transform: rotate(0deg) translateY(-4px); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #E9E4F7; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C8BCEB; }
.browser img { width: 100%; height: auto; }

/* Closing CTA (image band) */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgb(14 28 54 / .72), rgb(14 28 54 / .92)); }
.cta-band .container { display: grid; justify-items: center; gap: var(--space-3); }
.cta-band h2 { font-size: var(--step-5); max-width: 12em; }
.cta-band p { font-size: var(--step-1); color: var(--text-muted); max-width: 30em; }
.cta-band .btn { margin-top: var(--space-2); }

/* 8. Shared: blog cards, newsletter promo -------------------------------- */
.post-grid { display: grid; gap: var(--space-8) var(--gap); }
@media (min-width: 48em) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48em) { .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-3); } }
@media (min-width: 48em) and (max-width: 63.99em) { .post-grid--3 .post-card__title { font-size: var(--step-1); } }
.post-grid:not(.post-grid--3) .frame { aspect-ratio: 3 / 2; }
.post-card { position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.post-card .frame { margin-bottom: var(--space-1); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.post-card__meta a { position: relative; z-index: 2; color: var(--accent-ink); text-decoration: none; }
.post-card__meta a:hover { text-decoration: underline; }

.post-card__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.14; letter-spacing: -0.014em; }
.post-card__title a { text-decoration: none; background: linear-gradient(var(--mark), var(--mark)) 0 88% / 0 0.3em no-repeat; transition: background-size var(--dur-3) var(--ease-out); }
.post-card:hover .post-card__title a { background-size: 100% 0.3em; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.post-card__excerpt { color: var(--text-muted); font-size: var(--step--1); }
.post-card__more { margin-top: auto; position: relative; z-index: 2; align-self: flex-start; }
.post-card__title a:focus-visible { outline: none; }
.post-card__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; }

.post-card--feature { gap: var(--space-3); }
.post-card--feature .post-card__title { font-size: var(--step-3); line-height: 1.08; }
@media (min-width: 56.25em) {
  .post-card--feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
  .post-card--feature .frame { margin: 0; aspect-ratio: 4 / 3; }
  .post-card--feature .post-card__title { font-size: var(--step-4); line-height: 1.04; font-family: var(--font-display); letter-spacing: -0.02em; }
  .post-card--feature .post-card__body { display: grid; gap: var(--space-3); }
  .post-card--feature .post-card__excerpt { font-size: var(--step-0); }
}

.promo { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(2rem, 1.25rem + 3vw, 3.5rem); display: grid; gap: var(--space-3); align-items: center; }
.promo img { width: clamp(6rem, 4rem + 6vw, 9rem); }
.promo h2 { font-size: var(--step-3); max-width: 16em; }
@media (min-width: 40em) {
  .promo { grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-5); }
  .promo picture { grid-row: span 2; }
  .promo .btn { justify-self: start; }
}
@media (min-width: 64em) {
  .promo:not(.promo--compact) { grid-template-columns: auto 1fr auto; }
  .promo:not(.promo--compact) picture { grid-row: auto; }
}

/* 9. Blog listing & article ---------------------------------------------- */
.taxonomy { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.taxonomy__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.taxonomy__label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.taxonomy .chips { margin: 0; }
.post-card__meta .cat { color: var(--accent-ink); }
.masthead { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.masthead__title { font-size: var(--step-6); line-height: 0.95; letter-spacing: -0.03em; }
.masthead__title em { color: var(--accent-ink); }
.masthead .chips { margin-top: var(--space-5); }
.masthead__kicker { margin-bottom: var(--space-2); }
.masthead .back-link { display: flex; width: max-content; margin-bottom: var(--space-3); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-size: var(--step--1); font-weight: 700; text-decoration: none; color: var(--text-muted); }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 1.1em; height: 1.1em; }
.list-divider { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes progress { to { transform: scaleX(1); } }

.article-header { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 3vw, 5rem); }
.article-header__grid { display: grid; gap: var(--space-6) var(--gap); align-items: center; }
.article-header h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.025em; margin-top: var(--space-3); max-width: 15em; }
.article-header .chips { margin-top: var(--space-3); }
.byline { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); font-size: var(--step--1); line-height: 1.4; }
.byline .avatar { width: 3rem; height: 3rem; }
.byline__text { display: grid; }
.byline__text strong { font-size: var(--step-0); }
.byline__meta { color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0 0.6rem; }
.byline__meta span + span::before { content: "·"; margin-right: 0.6rem; }
.article-figure .frame { box-shadow: var(--shadow); }
@media (min-width: 56.25em) {
  .article-header__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.article-body { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-y); }
.article-layout { display: grid; gap: var(--space-6); }
@media (min-width: 75em) {
  .article-layout { grid-template-columns: minmax(0, 15rem) minmax(0, var(--measure)) minmax(0, 15rem); justify-content: space-between; column-gap: var(--space-6); }
  .article-layout > .prose, .article-layout > .after-prose { grid-column: 2; }
}
.toc { display: none; }
.toc ol, .related ul { list-style: none; padding: 0; margin: 0; }
@media (min-width: 75em) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; font-size: var(--step--1); }
  .toc ol { display: grid; gap: 2px; margin-top: var(--space-2); border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; line-height: 1.35; transition: color var(--dur-2), border-color var(--dur-2); }
  .toc a:hover { color: var(--text); }
  .toc a.is-active { color: var(--text); border-left-color: var(--violet); font-weight: 600; }
}
.toc__title { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.prose { font-family: var(--font-serif); font-size: var(--prose-size); line-height: 1.68; color: #1E2D47; max-width: var(--measure); margin-inline: auto; width: 100%; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.prose h2 + * { margin-top: 0.75em; }
.prose h2 strong { font-weight: 400; }
.prose a { text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; transition: background-color var(--dur-2); border-radius: 2px; }
.prose a:hover { background: var(--lavender-100); text-decoration-color: currentColor; }
.prose strong { font-weight: 600; color: var(--navy); }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.6em; }
.prose li::marker { color: var(--violet); }
.prose ol li::marker { font-family: var(--font-display); font-style: italic; }
.prose .lede::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 -0.02em;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  font-style: normal;
  color: var(--violet);
}
.prose .lede { font-size: 1.08em; }
.prose .pullquote {
  margin-block: 1.8em;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--lavender);
  font-family: var(--font-display);
  font-size: 1.5em;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.prose .pullquote strong, .prose em strong, .prose strong em { font-weight: 400; }
.prose .pullquote strong { color: var(--navy); }
.prose em strong { background: linear-gradient(transparent 60%, var(--lavender) 60%, var(--lavender) 92%, transparent 92%); }
.prose hr { border: 0; height: 1.5rem; margin: 3rem auto; background: radial-gradient(circle, var(--violet) 2.5px, transparent 3px) center / 1.5rem 1.5rem repeat-x; width: 4.5rem; }

.references { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--step--1); line-height: 1.55; color: var(--text-muted); }
.references h2 { font-family: var(--font-sans); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.references ul, .references ol { margin-top: var(--space-3); padding-left: 0; display: grid; gap: var(--space-2); }
.references ul { list-style: none; }
.references ol { padding-left: 1.4em; }
.references li { overflow-wrap: anywhere; }
.references ul li { padding-left: 1.25em; text-indent: -1.25em; }
.references a { color: var(--navy); text-decoration-color: var(--violet); text-underline-offset: 0.2em; }

.author-card { display: grid; gap: var(--space-3); margin-top: var(--space-8); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); color: var(--text-muted); }
.author-card__head { display: flex; align-items: center; gap: var(--space-2); }
.author-card__head strong { display: block; font-size: var(--step-1); font-family: var(--font-display); font-weight: 400; color: var(--text); }
.author-card p + p { margin-top: var(--space-2); }

.related { margin-top: var(--space-8); }
.related h2 { font-size: var(--step-3); }
.related ul { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: grid; gap: 0.25rem; padding: var(--space-3) 2.5rem var(--space-3) 0; position: relative; text-decoration: none; }
.related a::after { content: "→"; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; font-size: 1.25rem; transition: transform var(--dur-2) var(--ease-out); color: var(--accent-ink); }
.related a:hover::after { transform: translateX(4px); }
.related .date { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.related .title { font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.25; }
.related a:hover .title { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }

/* 10. About (Why Choose Us) ------------------------------------------------ */
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(28rem, 72vh, 48rem); display: flex; align-items: flex-end; padding-block: var(--space-12) clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero__media img { object-position: 50% 45%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 28 54 / .25) 0%, rgb(14 28 54 / .55) 45%, rgb(14 28 54 / .94) 100%); }
.page-hero h1 { font-size: var(--step-6); line-height: 0.96; letter-spacing: -0.03em; max-width: 10em; }
.page-hero h1 em { color: var(--lavender); }

.statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.16; letter-spacing: -0.016em; color: var(--text); }
.mission { display: grid; gap: var(--space-1); padding: var(--space-3) 0; border-block: 1px solid var(--line); }
.mission .mission__label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.mission p { font-size: var(--step-1); line-height: 1.45; }
.collage { position: relative; padding-bottom: 18%; }
.collage__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__inset { position: absolute; right: -2%; bottom: 0; width: 46%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--paper); transform: rotate(2.5deg); }
@media (min-width: 90em) { .collage__inset { right: -6%; } }

.services { counter-reset: svc; border-top: 1px solid var(--line); }
.service { display: grid; gap: var(--space-3) var(--gap); padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
.service__head { display: flex; gap: var(--space-3); align-items: flex-start; }
.service__icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy); color: var(--lavender); }
.service__icon .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.5; }
.service__num { display: block; font-family: var(--font-display); font-style: italic; color: var(--accent-ink); font-size: var(--step-0); margin-bottom: var(--space-1); }
.service h3 { font-size: var(--step-3); }
.service__body { display: grid; gap: var(--space-2); color: var(--text-muted); }
.service__body p:first-child { color: var(--text); font-size: var(--step-1); line-height: 1.45; font-family: var(--font-display); }
.service__body p:first-child strong { font-weight: 400; }
@media (min-width: 56.25em) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); justify-content: space-between; column-gap: calc(var(--gap) * 2); }
}

.result-media { position: relative; }
.result-media::before { content: ""; position: absolute; inset: 8% -2.5% -5% 10%; border-radius: var(--radius-xl); background: var(--lavender); z-index: 0; }
@media (min-width: 56.25em) { .result-media::before { inset: 8% -5% -6% 10%; } }
.result-media .frame { position: relative; z-index: 1; box-shadow: var(--shadow); }

.lockup { display: grid; justify-items: center; gap: var(--space-4); text-align: center; }
.lockup h2 { font-size: var(--step-5); }
.lockup img { width: clamp(11rem, 8rem + 12vw, 17.5rem); height: auto; }

/* Contact ----------------------------------------------------------------- */
.contact-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-y); }
.contact-hero__media img { object-position: 50% 30%; }
.contact-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(243 237 224 / .42) 0%, rgb(243 237 224 / .62) 50%, var(--cream) 100%); }
.contact-hero .eyebrow { color: var(--navy); }
.contact-hero h1 { font-size: var(--step-5); line-height: 1; letter-spacing: -0.026em; max-width: 12em; }
@media (min-width: 56.25em) {
  .contact-hero .split > .split__a { grid-column: 1 / span 6; }
  .contact-hero .split > .split__b { grid-column: 8 / span 5; }
}
.contact-hero .lead { margin-top: var(--space-3); }
.contact-details { display: grid; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-strong); font-size: var(--step--1); }
.contact-details > div { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; }
.contact-details .icon { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; color: var(--violet); }
.contact-details a { font-weight: 700; text-decoration-color: var(--violet); }
.form-card { background: var(--paper); border-radius: var(--radius-xl); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); box-shadow: var(--shadow-lg); display: grid; gap: var(--space-3); }
.form-card h2 { font-size: var(--step-2); }
.form-note { font-size: var(--step--2); line-height: 1.55; color: var(--text-muted); padding: var(--space-2); border-radius: var(--radius-sm); background: var(--lavender-100); }
.form-card .btn { justify-self: start; }

/* Legal ------------------------------------------------------------------- */
.legal-layout { display: grid; gap: var(--space-6); }
@media (min-width: 64em) {
  .legal-layout { grid-template-columns: minmax(0, 16rem) minmax(0, var(--measure)); justify-content: start; column-gap: clamp(3rem, 1rem + 5vw, 8rem); }
  .legal-layout .toc { display: block; position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; font-size: var(--step--1); }
  .legal-layout .toc ol { display: grid; gap: 2px; margin-top: var(--space-2); border-left: 1px solid var(--line); }
  .legal-layout .toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; line-height: 1.35; }
  .legal-layout .toc a:hover { color: var(--text); }
  .legal-layout .toc a.is-active { color: var(--text); border-left-color: var(--violet); font-weight: 600; }
}
.legal { font-size: var(--step-0); line-height: 1.7; color: #1E2D47; }
.legal > * + * { margin-top: 1em; }
.legal h2 { margin-top: 2.2em; font-size: var(--step-2); line-height: 1.15; color: var(--navy); }
.legal h2 + * { margin-top: 0.6em; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: 0.4em; }
.legal li::marker { color: var(--violet); }
.legal a { text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; font-weight: 600; }
.effective { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: var(--space-3); padding: 0.5rem 1rem; border-radius: var(--radius-pill); background: var(--lavender-100); font-size: var(--step--1); font-weight: 600; }

/* 404 --------------------------------------------------------------------- */
.error-hero { text-align: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-y); }
.error-hero__art { width: min(100%, 26rem); margin: 0 auto var(--space-3); position: relative; }
.error-hero__art .constellation { position: static; width: 100%; height: auto; }
.error-hero h1 { font-size: clamp(6rem, 3rem + 14vw, 14rem); line-height: 0.85; letter-spacing: -0.04em; }
.error-hero h1 em { color: var(--violet); }
.error-hero p { margin: var(--space-3) auto 0; max-width: 28em; font-size: var(--step-1); color: var(--text-muted); }
.error-hero .actions { justify-content: center; margin-top: var(--space-5); }
.error-hero .constellation .missing { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 3 3; }
.error-hero .constellation line.missing { stroke: var(--violet); stroke-dasharray: 4 4; opacity: .9; }

/* 11. Motion ---------------------------------------------------------------- */
/* Content is visible by default. main.js only marks elements that start
   off-screen as .is-pending (and only without reduced-motion), then fades
   them in as they enter the viewport. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  [data-reveal].is-pending { opacity: 0; transform: translateY(1.5rem); transition: none; }

  .mark--draw { background-size: 0% 100%; animation: mark-draw 1100ms var(--ease-out) 450ms forwards; }
  @keyframes mark-draw { to { background-size: 100% 100%; } }

  .hero__heart { animation: float 9s var(--ease-in-out) infinite alternate; }
  @keyframes float { from { translate: -50% -47%; } to { translate: -50% -51%; } }

  .draw line { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); animation: draw 1600ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms + 200ms); }
  .draw circle { transform-box: fill-box; transform-origin: center; scale: 0; animation: pop 700ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms + 300ms); }
  .draw circle.is-pulse { animation: pop 700ms var(--ease-out) forwards, pulse 3.6s var(--ease-in-out) 2s infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { scale: 1; } }
  @keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.6; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Rendering budget: below-the-fold regions are laid out (and fetch their
   fonts/images) only as they approach the viewport. `auto` remembers the real
   size once rendered, so the scrollbar settles after the first pass. */
main > section:not(:first-child), main > .marquee, .article-body, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* 12. Utilities ----------------------------------------------------------- */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--space-3); }
.mt-5 { margin-top: var(--space-5); }
.mt-8 { margin-top: var(--space-8); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media print {
  .site-header, .site-footer, .progress, .toc, .marquee { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
