/* ==========================================================================
   QLEAP — styles.css  (blueprint direction)
   One typeface (Archivo variable: width + weight), ultramarine primary,
   paper surfaces, sticky section index, spec-sheet services.
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections;

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
  ul, ol { padding: 0; list-style: none; }
  address { font-style: normal; }
  a { color: inherit; }
  h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; }
  p { text-wrap: pretty; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    color-scheme: light dark;

    /* Palette */
    --ultramarine: #2A3BE8;
    --ultramarine-deep: #1B27A8;
    --ultramarine-ink: #0F1430;
    --paper: #F2F4F8;
    --white: #FFFFFF;
    --slate: #5B6274;
    --amber: #F2B33D;

    /* Semantic */
    --bg:           light-dark(var(--paper), var(--ultramarine-ink));
    --surface:      light-dark(var(--white), #171D45);
    --fg:           light-dark(var(--ultramarine-ink), var(--paper));
    --fg-muted:     light-dark(var(--slate), #A3AAC4);
    --line:         light-dark(rgba(15,20,48,.14), rgba(242,244,248,.16));
    --line-strong:  light-dark(rgba(15,20,48,.32), rgba(242,244,248,.36));
    --primary:      light-dark(var(--ultramarine), #5A69FF);
    --primary-deep: var(--ultramarine-deep);
    --on-primary:   var(--paper);
    --accent:       var(--amber);
    --ring:         var(--amber);

    /* Type — single family, two widths */
    --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
    --fs-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
    --fs-sm: clamp(.875rem, .84rem + .2vw, .9375rem);
    --fs-md: clamp(1rem, .96rem + .25vw, 1.0625rem);
    --fs-lg: clamp(1.125rem, 1.02rem + .5vw, 1.375rem);
    --fs-h3: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
    --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
    --fs-h1: clamp(2.6rem, 1.2rem + 6.2vw, 6.5rem);

    /* Space, shape */
    --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
    --section-pad: clamp(4rem, 2.5rem + 6vw, 9rem);
    --wrap: 1280px;
    --gutter: clamp(1rem, 4vw, 3rem);
    --header-h: 72px;
    --radius: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"]  { color-scheme: dark; }
}

/* ---------- Base ---------- */
@layer base {
  body { font-family: var(--font); font-size: var(--fs-md); color: var(--fg); background: var(--bg); font-variation-settings: "wdth" 100; }

  /* Display type: Archivo expanded, heavy, tight */
  .display-xl, .display-lg {
    font-stretch: 112%; font-variation-settings: "wdth" 112;
    font-weight: 800; letter-spacing: -.03em; line-height: .96; text-transform: none;
  }
  .display-xl { font-size: var(--fs-h1); }
  .display-lg { font-size: var(--fs-h2); line-height: 1.02; }
  h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
  .lede { font-size: var(--fs-lg); line-height: 1.45; color: var(--fg-muted); max-width: 52ch; }

  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--ring); outline-offset: 3px;
  }
  ::selection { background: var(--amber); color: var(--ultramarine-ink); }
}

/* ---------- Layout ---------- */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .section { padding-block: var(--section-pad); border-block-start: 1px solid var(--line); }
  .section-layout { display: grid; gap: var(--s7); }
  .section-index { display: grid; gap: var(--s4); align-content: start; }
  .section-index h2 { max-width: 16ch; }
  .section-index p { color: var(--fg-muted); max-width: 40ch; }
  @media (min-width: 960px) {
    .section-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 2rem + 4vw, 7rem); align-items: start; }
    .section-index { position: sticky; top: calc(var(--header-h) + 2rem); }
  }

  /* Section surfaces */
  .section-primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
  .section-primary .section-index p, .section-primary .lede { color: color-mix(in oklab, var(--on-primary) 78%, transparent); }
  .section-ink { background: var(--ultramarine-ink); color: var(--paper); border-color: transparent; }
  .section-ink .section-index p { color: #A3AAC4; }
  .section-tint { background: var(--surface); }
}

/* ---------- Components ---------- */
@layer components {
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--amber); color: var(--ultramarine-ink); font-weight: 700; transition: top .2s; }
  .skip-link:focus { top: 1rem; }

  /* Buttons: squared, firm */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .8rem 1.25rem; border-radius: var(--radius); border: 1.5px solid transparent;
    font-weight: 600; font-size: var(--fs-sm); line-height: 1; text-decoration: none; white-space: nowrap;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  }
  .btn-lg { padding: 1rem 1.5rem; font-size: var(--fs-md); }
  .btn:active { transform: translateY(1px); }
  .btn-solid { background: var(--primary); color: var(--on-primary); }
  .btn-solid:hover { background: var(--primary-deep); }
  .btn-line { border-color: var(--line-strong); color: var(--fg); }
  .btn-line:hover { border-color: var(--primary); color: var(--primary); }
  .btn-invert { background: var(--paper); color: var(--ultramarine-ink); }
  .btn-invert:hover { background: var(--amber); }

  .text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--primary); text-decoration: none; }
  .text-link::after { content: ""; width: 1.1rem; height: 1.5px; background: currentColor; transition: width .3s var(--ease); }
  .text-link:hover::after { width: 2rem; }

  /* Header */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-block-end: 1px solid var(--line);
  }
  .header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--primary); }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; color: var(--fg); }
  .nav-list { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
  .nav-list a { position: relative; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted); padding-block: .35rem; transition: color .2s; }
  .nav-list a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--fg); }
  .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: var(--s3); }
  .theme-toggle { width: 40px; height: 40px; border-radius: var(--radius); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--fg); }
  .theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
  .theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  :root[data-theme="dark"] .icon-moon, :root[data-theme="light"] .icon-sun { display: none; }
  .nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: var(--radius); border: 1.5px solid var(--line); color: var(--fg); }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 50%; width: 18px; height: 2px; background: currentColor; transform: translateX(-50%); transition: transform .3s var(--ease), top .3s var(--ease); }
  .nav-toggle-bar { top: 50%; margin-top: -1px; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: translateX(-50%) rotate(-45deg); }
  @media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .nav-list {
      position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
      background: var(--bg); padding: var(--s4) var(--gutter) var(--s6); border-block-end: 1px solid var(--line);
      transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .3s;
    }
    .nav-list a { display: block; font-size: var(--fs-lg); font-weight: 600; padding-block: .9rem; border-block-end: 1px solid var(--line); color: var(--fg); }
    .nav-list.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .header-actions .btn { display: none; }
  }

  /* Verticals */
  .verticals { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
  .vertical { display: grid; gap: var(--s5); align-items: center; }
  .vertical-photo { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
  .vertical-photo img { width: 100%; height: 100%; object-fit: cover; }
  .vertical-copy { display: grid; gap: var(--s3); }
  .vertical-tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--primary); }
  .vertical h3 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; font-stretch: 110%; font-variation-settings: "wdth" 110; }
  .vertical-sub { font-size: var(--fs-lg); color: var(--fg); font-weight: 500; max-width: 34ch; }
  .vertical-copy > p:not(.vertical-sub) { color: var(--fg-muted); max-width: 58ch; }
  .offer-list { display: grid; gap: .4rem; margin-block: var(--s2); }
  .offer-list li { position: relative; padding-inline-start: 1.1rem; font-size: var(--fs-sm); }
  .offer-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 1.5px; background: var(--primary); }
  @media (min-width: 700px) { .offer-list { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
  @media (min-width: 960px) {
    .vertical { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
    .vertical:nth-child(even) .vertical-photo { order: 2; }
  }

  /* Form */
  .form-row { display: grid; gap: .4rem; }
  .form-row label { font-size: var(--fs-sm); font-weight: 600; }
  .form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: .85rem 1rem; border-radius: var(--radius);
    border: 1.5px solid color-mix(in oklab, var(--on-primary) 35%, transparent); background: color-mix(in oklab, var(--on-primary) 8%, transparent); color: var(--on-primary);
    transition: border-color .25s, background .25s;
  }
  .form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F4F8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; }
  .form-row select option { color: var(--ultramarine-ink); }
  .form-row input::placeholder, .form-row textarea::placeholder { color: color-mix(in oklab, var(--on-primary) 55%, transparent); }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--amber); background: color-mix(in oklab, var(--on-primary) 12%, transparent); outline: none; }
  .form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--amber); background: color-mix(in oklab, var(--amber) 18%, transparent); }
  .field-error { color: var(--amber); font-size: var(--fs-xs); min-height: 1em; font-weight: 600; }
  .form-footer { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
  .form-status { font-size: var(--fs-sm); font-weight: 600; }
  .form-status.is-error { color: var(--amber); }
}

/* ---------- Sections ---------- */
@layer sections {

  /* Hero: full-bleed photograph, ultramarine wash, figures strip */
  .hero { position: relative; background: var(--ultramarine-ink); color: var(--paper); isolation: isolate; }
  .hero-photo { overflow: hidden; }
  .hero-photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, color-mix(in oklab, var(--ultramarine-ink) 88%, transparent) 0%, color-mix(in oklab, var(--ultramarine-ink) 55%, transparent) 55%, color-mix(in oklab, var(--ultramarine) 25%, transparent) 100%),
      linear-gradient(180deg, color-mix(in oklab, var(--ultramarine-ink) 40%, transparent), transparent 30%, color-mix(in oklab, var(--ultramarine-ink) 85%, transparent) 100%);
  }
  .hero-photo .photo-credit { position: absolute; inset-inline-end: var(--gutter); inset-block-start: .75rem; z-index: 1; color: color-mix(in oklab, var(--paper) 70%, transparent); }
  .hero-layout { display: grid; padding-block: clamp(5rem, 3rem + 8vw, 11rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); min-height: calc(88svh - var(--header-h)); align-content: end; }
  .hero-copy { display: grid; gap: var(--s5); max-width: 62ch; }
  .hero-copy h1 { max-width: 9ch; text-shadow: 0 2px 24px rgba(15,20,48,.35); }
  .hero-copy .lede { color: color-mix(in oklab, var(--paper) 86%, transparent); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
  .btn-outline-light { border-color: color-mix(in oklab, var(--paper) 55%, transparent); color: var(--paper); }
  .btn-outline-light:hover { border-color: var(--paper); background: color-mix(in oklab, var(--paper) 12%, transparent); }
  .hero-figures { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); margin-block-end: calc(-1 * clamp(2rem, 1.5rem + 2vw, 3.5rem)); transform: translateY(50%); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,20,48,.5); }
  .hero-figures > div { padding: var(--s5); border: 0 solid var(--line); display: grid; gap: .25rem; }
  .hero-figures > div:nth-child(odd) { border-inline-end-width: 1px; }
  .hero-figures > div:nth-child(-n+2) { border-block-end-width: 1px; }
  .hero-figures dd { font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1; color: var(--primary); }
  .hero-figures dt { font-size: var(--fs-sm); color: var(--fg-muted); }
  .hero + .section { padding-block-start: calc(var(--section-pad) + 4.5rem); border-block-start: 0; }
  @media (min-width: 960px) {
    .hero-figures { grid-template-columns: repeat(4, 1fr); }
    .hero-figures > div { border-inline-end-width: 1px; border-block-end-width: 0; }
    .hero-figures > div:last-child { border-inline-end-width: 0; }
    .hero + .section { padding-block-start: calc(var(--section-pad) + 3rem); }
  }
  .hero-copy > * { animation: enter .8s var(--ease) both; animation-delay: calc(var(--n, 0) * 100ms); }
  .hero-copy > :nth-child(1) { --n: 0 } .hero-copy > :nth-child(2) { --n: 1 } .hero-copy > :nth-child(3) { --n: 2 }
  .hero-figures { animation: enter .8s .4s var(--ease) both; }
  @keyframes enter { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  .hero-figures { animation-name: enter-figures; }
  @keyframes enter-figures { from { opacity: 0; transform: translateY(calc(50% + 16px)); } to { opacity: 1; transform: translateY(50%); } }

  /* Section head (full-width sections) */
  .section-head { display: grid; gap: var(--s4); margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: end; }
  .section-head h2 { max-width: 14ch; }
  .section-head p { color: var(--fg-muted); max-width: 56ch; }
  .section-ink .section-head p { color: #A3AAC4; }
  @media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; } }

  /* Photo credits */
  .photo-credit { font-size: .7rem; letter-spacing: .02em; color: var(--fg-muted); }
  figure.vertical-photo, figure.work-photo { position: relative; margin: 0; }
  figure.vertical-photo .photo-credit, figure.work-photo .photo-credit { position: absolute; inset-inline-end: .6rem; inset-block-end: .4rem; color: rgba(242,244,248,.85); text-shadow: 0 1px 6px rgba(15,20,48,.8); }

  /* Infographic cards */
  .infographic { display: grid; gap: var(--s4); margin: 0; }
  .infographic figcaption { display: grid; gap: .2rem; }
  .info-kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; }
  .infographic figcaption strong { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
  .info-note { font-size: var(--fs-xs); opacity: .8; }
  .funnel-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid color-mix(in oklab, var(--on-primary) 30%, transparent); border-radius: var(--radius); background: color-mix(in oklab, var(--ultramarine-ink) 18%, transparent); color: var(--paper); }
  .funnel-card .info-kicker { color: var(--amber); }
  .funnel { width: 100%; height: auto; }
  .chart-card { padding: var(--s4); border: 1px solid rgba(242,244,248,.16); border-radius: var(--radius); background: rgba(242,244,248,.04); color: var(--paper); }
  .chart-card .info-kicker { color: var(--amber); }
  .chart { width: 100%; height: auto; }
  .org-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); }
  .org-card .info-kicker { color: var(--primary); }
  .org { width: 100%; height: auto; }

  /* Approach */
  .approach-body { display: grid; gap: var(--s6); }
  .principles { display: grid; gap: 0; border-block-start: 1px solid color-mix(in oklab, var(--on-primary) 30%, transparent); }
  .principles li { display: grid; gap: .3rem; padding-block: var(--s5); border-block-end: 1px solid color-mix(in oklab, var(--on-primary) 30%, transparent); }
  .principles strong { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
  .principles span { color: color-mix(in oklab, var(--on-primary) 78%, transparent); max-width: 52ch; }
  .approach-body .btn { justify-self: start; }

  /* Process timeline */
  .timeline { display: grid; gap: 0; border-inline-start: 1.5px solid var(--fg); }
  .stage { position: relative; display: grid; gap: .4rem; padding: 0 0 var(--s6) var(--s6); }
  .stage::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; }
  .stage-num { font-size: var(--fs-xs); font-weight: 700; color: var(--primary); letter-spacing: .08em; }
  .stage p { color: var(--fg-muted); max-width: 46ch; }
  .stage-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .stage-meta { font-size: var(--fs-xs); color: var(--fg-muted); border: 1px solid var(--line); padding: .25rem .5rem; border-radius: var(--radius); }
  .stage-owner { font-size: var(--fs-xs); color: var(--primary); font-weight: 600; }
  .stage:last-child { padding-block-end: 0; }

  /* Work grid */
  .work-grid { display: grid; gap: var(--s5); }
  .work-feature, .work-item { display: grid; border: 1px solid rgba(242,244,248,.14); border-radius: var(--radius); overflow: hidden; background: #141A3C; }
  .work-photo { aspect-ratio: 16 / 10; overflow: hidden; }
  .work-photo img { width: 100%; height: 100%; object-fit: cover; }
  .work-body { display: grid; gap: var(--s3); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
  .work-body p { color: #C3C9E0; font-size: var(--fs-sm); max-width: 60ch; }
  .entry-type { font-size: var(--fs-xs); color: var(--amber); font-weight: 700; letter-spacing: .04em; }
  .work-result { border-block-start: 1px solid rgba(242,244,248,.16); padding-block-start: .75rem; color: var(--paper) !important; }
  .work-result strong { font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.4em; letter-spacing: -.02em; color: var(--amber); }
  @media (min-width: 760px) {
    .work-grid { grid-template-columns: repeat(3, 1fr); }
    .work-feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .work-feature .work-photo { aspect-ratio: auto; min-height: 100%; }
  }

  /* Notes */
  .notes { display: grid; gap: 0; border-block-start: 1.5px solid var(--fg); }
  .note { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s4); padding-block: var(--s5); border-block-end: 1px solid var(--line); text-decoration: none; transition: background .2s; }
  .note:hover { background: var(--surface); }
  .note time { font-size: var(--fs-xs); color: var(--fg-muted); padding-top: .35em; }
  .note h3 { grid-column: 2; transition: color .2s; }
  .note:hover h3 { color: var(--primary); }
  .note p { grid-column: 2; color: var(--fg-muted); font-size: var(--fs-sm); }
  .note time { grid-row: span 2; }

  /* Entities */
  .entities { display: grid; gap: var(--s4); }
  .entity { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; gap: .5rem; }
  .entity h3 { color: var(--primary); }
  .entity p { color: var(--fg-muted); font-size: var(--fs-sm); }
  .section-index .entities { margin-block-start: var(--s3); }

  /* Contact */
  .contact-details { display: grid; gap: .5rem; font-size: var(--fs-sm); padding-block-start: var(--s3); }
  .contact-details a { text-decoration: none; font-weight: 600; }
  .contact-details a:hover { color: var(--amber); }
  .contact-details span { color: color-mix(in oklab, var(--on-primary) 78%, transparent); }
  .contact-form { display: grid; gap: var(--s4); }
  @media (min-width: 700px) { .contact-form { grid-template-columns: 1fr 1fr; } .form-row-full { grid-column: span 2; } }

  /* Footer */
  .site-footer { background: var(--ultramarine-ink); color: #A3AAC4; padding-block: var(--s7) var(--s6); }
  .site-footer .brand { color: var(--paper); }
  .site-footer .brand-word { color: var(--paper); }
  .footer-grid { display: grid; gap: var(--s5); align-items: center; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: var(--s4); }
  .footer-nav a, .social a { text-decoration: none; font-size: var(--fs-sm); color: var(--paper); }
  .footer-nav a:hover, .social a:hover { color: var(--amber); }
  .social { display: flex; gap: var(--s4); }
  .footer-legal { font-size: var(--fs-xs); grid-column: 1 / -1; border-block-start: 1px solid rgba(242,244,248,.14); padding-block-start: var(--s4); }
  @media (min-width: 900px) { .footer-grid { grid-template-columns: auto 1fr auto; } .footer-nav { justify-content: center; } }

  /* Reveals: JS-gated, content always visible without scripts */
  @media (prefers-reduced-motion: no-preference) {
    html.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .55s var(--ease), translate .55s var(--ease); }
    html.js .reveal.is-in { opacity: 1; translate: 0 0; }
  }
}
