@charset "UTF-8";
/* ==========================================================================
   Crafted by Josh — flagship stylesheet
   --------------------------------------------------------------------------
   Written by hand. No framework, no reset library, no build-time CSS tooling.
   Ordered with @layer so specificity never has to be fought with !important.
   ========================================================================== */

@layer reset, tokens, base, layout, components, utilities;

/* ==========================================================================
   @layer tokens — the whole design system lives here
   ========================================================================== */

@layer tokens {

  :root {
    /* Both themes are declared once, in place, with light-dark(). The manual
       theme switch works by setting `color-scheme` on <html>, so every token
       below flips at once with no duplicate rule blocks to keep in sync.
       The plain value on the first line is the fallback for engines without
       light-dark() — they simply drop the second declaration. */
    color-scheme: light dark;

    /* -- Surfaces ------------------------------------------------------- */
    --bg:            #F7F2E8;
    --bg:            light-dark(#F7F2E8, #100E0A);
    --bg-alt:        #EFE7D5;
    --bg-alt:        light-dark(#EFE7D5, #16130E);
    --surface:       #FDFAF4;
    --surface:       light-dark(#FDFAF4, #1C1811);
    --surface-raise: #FFFFFF;
    --surface-raise: light-dark(#FFFFFF, #221D15);

    /* -- Ink ------------------------------------------------------------ */
    --ink:           #1A1410;
    --ink:           light-dark(#1A1410, #F4EEE2);
    --ink-soft:      #554B3C;
    --ink-soft:      light-dark(#554B3C, #ABA08C);
    --ink-faint:     #8A7F6C;
    --ink-faint:     light-dark(#8A7F6C, #7C7360);

    /* -- Accent (the gold from the brand mark) --------------------------- */
    --accent:        #7A5C1E;
    --accent:        light-dark(#7A5C1E, #D9B466);
    --accent-bright: #A8842F;
    --accent-bright: light-dark(#A8842F, #EBCE8E);
    --accent-wash:   #F0E6CE;
    --accent-wash:   light-dark(#F0E6CE, #2A2214);

    /* -- Lines & shadow -------------------------------------------------- */
    --line:          rgba(26, 20, 16, 0.14);
    --line:          light-dark(rgba(26, 20, 16, 0.14), rgba(244, 238, 226, 0.14));
    --line-strong:   rgba(26, 20, 16, 0.30);
    --line-strong:   light-dark(rgba(26, 20, 16, 0.30), rgba(244, 238, 226, 0.28));

    --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.05), 0 2px 6px rgba(26, 20, 16, 0.04);
    --shadow-md: 0 2px 4px rgba(26, 20, 16, 0.05), 0 12px 28px -8px rgba(26, 20, 16, 0.14);
    --shadow-lg: 0 4px 8px rgba(26, 20, 16, 0.06), 0 28px 60px -16px rgba(26, 20, 16, 0.22);

    /* Fixed values that must NOT flip with the theme — used for text sat on
       top of a photograph, which is dark in both themes. */
    --on-image:      #FFFFFF;
    --on-image-soft: rgba(255, 255, 255, 0.76);

    /* -- Type ------------------------------------------------------------ */
    /* The same pairing as the Cumbria Media Walls site. Cormorant Garamond is
       a light, high-contrast face with a small x-height, so it is set larger
       and lighter than Fraunces was — see the heading rules in @layer base. */
    --font-display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", Georgia, serif;
    --font-body: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;

    /* Fluid scale — every step interpolates between 360px and 1400px viewports */
    --step--2: clamp(0.76rem, 0.74rem + 0.10vw, 0.82rem);
    --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.95rem);
    --step-0:  clamp(1rem,    0.96rem + 0.20vw, 1.125rem);
    --step-1:  clamp(1.18rem, 1.09rem + 0.40vw, 1.4rem);
    --step-2:  clamp(1.5rem,  1.35rem + 0.70vw, 1.9rem);
    --step-3:  clamp(2rem,    1.72rem + 1.30vw, 2.85rem);
    --step-4:  clamp(2.6rem,  2.05rem + 2.60vw, 4.4rem);
    --step-5:  clamp(3.3rem,  2.35rem + 4.40vw, 6.4rem);

    /* -- Space ------------------------------------------------------------ */
    --space-2xs: clamp(0.35rem, 0.33rem + 0.10vw, 0.45rem);
    --space-xs:  clamp(0.6rem,  0.55rem + 0.30vw, 0.9rem);
    --space-s:   clamp(1.1rem,  1rem    + 0.50vw, 1.5rem);
    --space-m:   clamp(1.8rem,  1.5rem  + 1.20vw, 2.6rem);
    --space-l:   clamp(3rem,    2.4rem  + 2.60vw, 5rem);
    --space-xl:  clamp(4.5rem,  3.4rem  + 4.80vw, 8.5rem);

    /* -- Metrics ----------------------------------------------------------- */
    --content-max: 1180px;
    --wide-max: 1440px;
    --text-max: 64ch;
    --radius: 3px;
    --radius-lg: 10px;
    --radius-pill: 999px;
    --header-h: 4.5rem;

    /* -- Motion ------------------------------------------------------------ */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 0.2s;
    --dur: 0.4s;
    --dur-slow: 0.75s;
  }

  /* An animatable custom property: lets the hero's warm wash drift without a
     single line of JavaScript. Registered so the browser can interpolate it. */
  @property --hero-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
  }

  /* The switch. `color-scheme` alone re-resolves every light-dark() token
     above, and also fixes native form controls and scrollbars to match. */
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"]  { color-scheme: dark; }
}

/* ==========================================================================
   @layer reset
   ========================================================================== */

@layer reset {

  *, *::before, *::after { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    /* Anchor links and skip-links land below the fixed header, not under it */
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body { margin: 0; }

  h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { padding: 0; margin: 0; list-style: none; }

  img, svg, video, canvas, iframe { display: block; max-width: 100%; }
  img { height: auto; }

  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: none; padding: 0; }

  /* Anyone who has asked their OS for less movement gets a static site.
     Transitions are shortened rather than removed so state changes still
     register, but nothing travels, loops or parallaxes. */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
      animation-timeline: none !important;
    }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
  }
}

/* ==========================================================================
   @layer base
   ========================================================================== */

@layer base {

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.005em;
    color: var(--ink);
    /* Stops a lone orphan word dropping to its own line in a headline */
    text-wrap: balance;
  }

  /* Cormorant carries the light weight beautifully at display sizes and goes
     weak below about 1.5rem, so the weight is split by role rather than set
     once: big type gets 300, card and list headings stay at 400. */
  h1,
  .section-head h2,
  .cta-band h2,
  .case-columns h2 {
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.01em;
  }

  p { text-wrap: pretty; }

  strong, b { font-weight: 600; }

  ::selection {
    background: var(--accent);
    color: var(--bg);
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
  /* Only paint the ring for keyboard users — a mouse click on a card
     shouldn't leave an outline behind. */
  :focus:not(:focus-visible) { outline: none; }
}

/* ==========================================================================
   @layer layout
   ========================================================================== */

@layer layout {

  .container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  }
  .container--wide { max-width: var(--wide-max); }

  .prose { max-width: var(--text-max); }
  .prose > * + * { margin-top: var(--space-s); }

  section { padding-block: var(--space-xl); }
  .section-tight { padding-block: var(--space-l); }
  .section-alt { background: var(--bg-alt); }

  .section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-s) var(--space-m);
    margin-bottom: var(--space-l);
  }
  .section-head h2 { font-size: var(--step-3); max-width: 20ch; }
  .section-head .lede { max-width: 42ch; color: var(--ink-soft); font-size: var(--step-1); }

  .stack-l > * + * { margin-top: var(--space-l); }
  .stack-m > * + * { margin-top: var(--space-m); }

  .rule {
    border: none;
    border-top: 1px solid var(--line);
    margin-block: var(--space-l);
  }

  /* -- Skip link ------------------------------------------------------- */
  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    translate: -50% -160%;
    z-index: 200;
    background: var(--ink);
    color: var(--bg);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    font-size: var(--step--1);
    font-weight: 600;
    transition: translate var(--dur) var(--ease);
  }
  .skip-link:focus-visible { translate: -50% 0; }
}

/* ==========================================================================
   @layer components
   ========================================================================== */

@layer components {

  /* ------------------------------------------------------------------ *
   * Scroll progress — a CSS-only progress bar. No scroll listener, no
   * layout reads, driven entirely by the document's own scroll timeline,
   * so it stays glued to the frame even on a mid-range phone.
   * ------------------------------------------------------------------ */
  .scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 2px;
    z-index: 60;
    background: var(--accent);
    transform-origin: 0 50%;
    scale: 0 1;
    pointer-events: none;
  }
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: progress-grow linear both;
      animation-timeline: scroll(root block);
    }
  }
  @keyframes progress-grow { to { scale: 1 1; } }

  /* ------------------------------------------------------------------ *
   * Header
   * ------------------------------------------------------------------ */
  .site-header {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    border-block-end: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    view-transition-name: site-header;
  }
  .site-header.is-scrolled {
    border-block-end-color: var(--line);
    background: color-mix(in oklab, var(--bg) 92%, transparent);
  }
  /* The blur is desktop-only on purpose: a full-width backdrop-filter
     repaints every scroll frame and visibly stutters on older phones. */
  @supports (backdrop-filter: blur(1px)) {
    @media (min-width: 941px) {
      .site-header { backdrop-filter: blur(14px) saturate(1.2); }
    }
  }

  .site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    min-height: var(--header-h);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    /* Cormorant runs small for its point size, and a wordmark in a Garamond
       wants air rather than tightening — hence larger with positive tracking. */
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    view-transition-name: brand;
  }
  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: rotate var(--dur-slow) var(--ease);
  }
  .brand:hover img { rotate: -8deg; }
  .brand span { white-space: nowrap; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.8vw, 1.9rem);
    font-size: var(--step--1);
  }
  /* :not(.btn) throughout — the drawer's "Start a project" CTA is also a
     direct child link, and must keep the button's own colours. */
  .nav-links > li > a:not(.btn) {
    white-space: nowrap;
    position: relative;
    display: inline-block;
    padding-block: 0.3rem;
    color: var(--ink-soft);
    transition: color var(--dur-fast) var(--ease);
  }
  .nav-links > li > a:not(.btn)::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 1px;
    background: var(--accent);
    scale: 0 1;
    transform-origin: left;
    transition: scale var(--dur) var(--ease);
  }
  .nav-links > li > a:not(.btn):hover { color: var(--ink); }
  .nav-links > li > a:not(.btn):hover::after,
  .nav-links > li > a[aria-current="page"]::after { scale: 1 1; }
  .nav-links > li > a[aria-current="page"] { color: var(--accent); }

  /* Stacked above the open drawer (z-index 48, and a sibling inside the same
     header) so the close button and theme switch stay reachable. */
  .nav-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 49;
  }

  /* -- Theme toggle ---------------------------------------------------- */
  .theme-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), rotate var(--dur-slow) var(--ease);
  }
  .theme-toggle:hover { color: var(--accent); border-color: var(--line-strong); rotate: 25deg; }
  .theme-toggle svg { width: 17px; height: 17px; }
  /* One button, two glyphs: show whichever represents the theme you'd
     switch TO, so the control always reads as an action. */
  .theme-toggle .icon-moon { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  }
  :root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
  :root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
  :root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
  :root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

  /* -- Mobile drawer ---------------------------------------------------- */
  .nav-toggle {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    position: relative;
  }
  .nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .nav-toggle i { top: 18px; }
  .nav-toggle i::before { top: -5.5px; left: 0; right: 0; }
  .nav-toggle i::after  { top: 5.5px;  left: 0; right: 0; }
  .nav-toggle[aria-expanded="true"] i { background: transparent; }
  .nav-toggle[aria-expanded="true"] i::before { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after  { transform: translateY(-5.5px) rotate(-45deg); }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 46;
    background: color-mix(in oklab, var(--ink) 45%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  html.nav-open .nav-scrim { opacity: 1; visibility: visible; }
  html.nav-open { overflow: hidden; }

  @media (max-width: 940px) {
    .nav-links {
      position: fixed;
      inset-block: 0;
      inset-inline-end: 0;
      width: min(82vw, 350px);
      z-index: 48;   /* under .nav-tools (49) so the close button stays on top */
      background: var(--surface);
      border-inline-start: 1px solid var(--line);
      box-shadow: var(--shadow-lg);
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: var(--space-s);
      padding-inline: var(--space-m);
      padding-block: var(--space-xl);
      font-size: var(--step-2);
      font-family: var(--font-display);
      translate: 100% 0;
      transition: translate var(--dur) var(--ease);
      overflow-y: auto;
    }
    html.nav-open .nav-links { translate: 0 0; }
    .nav-links > li > a::after { display: none; }
    .nav-links > li > a:not(.btn) { color: var(--ink); }
    .nav-toggle { display: block; }
    /* Scoped to the header so it outranks `.btn { display: inline-flex }`,
       which is declared later in this same layer. Without the extra
       specificity the CTA stays in the bar and shoulders the menu button
       off the edge of a phone screen. */
    .site-header .nav-cta { display: none; }
  }
  .mobile-only { display: none; }
  @media (max-width: 940px) { .mobile-only { display: block; margin-top: var(--space-s); } }

  /* ------------------------------------------------------------------ *
   * Buttons
   * ------------------------------------------------------------------ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-size: var(--step--1);
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
                border-color var(--dur) var(--ease), translate var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease);
  }
  .btn > * { position: relative; z-index: 1; }
  .btn:active { translate: 0 1px; }

  /* The wipe: a panel that slides in from the left on hover. Painted with
     a pseudo-element so there's nothing to animate but a transform. */
  .btn-primary { background: var(--ink); color: var(--bg); }
  .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--accent);
    translate: -101% 0;
    transition: translate 0.45s var(--ease);
  }
  .btn-primary:hover { box-shadow: var(--shadow-md); }
  .btn-primary:hover::before { translate: 0 0; }

  .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  .btn-accent { background: var(--accent); color: var(--bg); }
  .btn-accent::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink); translate: -101% 0; transition: translate 0.45s var(--ease); }
  .btn-accent:hover::before { translate: 0 0; }

  .btn-sm { padding: 0.55rem 1.05rem; font-size: var(--step--2); }

  .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--accent);
  }
  .btn-link .arrow { transition: translate var(--dur-fast) var(--ease); }
  .btn-link:hover .arrow { translate: 4px 0; }

  /* ------------------------------------------------------------------ *
   * Kickers & eyebrows
   * ------------------------------------------------------------------ */
  .kicker {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-1);
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: var(--accent);
  }

  /* ------------------------------------------------------------------ *
   * Hero
   * ------------------------------------------------------------------ */
  .hero {
    position: relative;
    min-height: min(100svh, 56rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: calc(var(--header-h) + var(--space-l)) var(--space-l);
    isolation: isolate;
  }

  /* A slow warm wash behind the headline. It animates a registered angle
     property rather than a background-position, so the browser can keep
     the whole thing on the compositor. */
  .hero__wash {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 90%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    filter: blur(70px);
    background: conic-gradient(
      from var(--hero-angle) at 32% 38%,
      color-mix(in oklab, var(--accent) 26%, transparent),
      transparent 32%,
      color-mix(in oklab, var(--accent-bright) 20%, transparent) 62%,
      transparent 88%
    );
    animation: hero-drift 26s linear infinite;
  }
  @keyframes hero-drift { to { --hero-angle: 360deg; } }

  .hero h1 {
    font-size: var(--step-5);
    max-width: 17ch;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--accent);
    /* Cormorant's italic is noticeably narrower than its roman, so the
       emphasised word gets a touch more weight to hold the same colour. */
    font-weight: 400;
  }
  .hero__sub {
    margin-top: var(--space-m);
    max-width: 48ch;
    font-size: var(--step-1);
    color: var(--ink-soft);
  }
  .hero__actions {
    margin-top: var(--space-m);
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
  .hero__meta {
    margin-top: var(--space-l);
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--space-s) var(--space-m);
    font-size: var(--step--1);
    color: var(--ink-soft);
  }
  .hero__meta strong { display: block; color: var(--ink); font-weight: 600; }

  /* Page heroes on inner pages — shorter, same family */
  .page-hero { padding-block: calc(var(--header-h) + var(--space-l)) var(--space-m); }
  .page-hero h1 { font-size: var(--step-4); max-width: 23ch; }
  .page-hero__sub { margin-top: var(--space-s); font-size: var(--step-1); color: var(--ink-soft); max-width: 54ch; }

  /* ------------------------------------------------------------------ *
   * Trade marquee — the strip of business types, doubled in markup so the
   * loop is seamless. Duplicate copy is aria-hidden so a screen reader
   * hears the list once.
   * ------------------------------------------------------------------ */
  .marquee {
    --marquee-dur: 46s;
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding-block: var(--space-s);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee__track {
    display: flex;
    width: max-content;
    gap: var(--space-m);
    animation: marquee-slide var(--marquee-dur) linear infinite;
  }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee-slide { to { translate: -50% 0; } }
  .marquee__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-m);
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .marquee__item::after {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
  }

  /* ------------------------------------------------------------------ *
   * Split showcase (home)
   * ------------------------------------------------------------------ */
  .split-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .split-panel {
    position: relative;
    min-height: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-m);
    overflow: hidden;
    isolation: isolate;
    color: var(--on-image);
  }
  .split-panel img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: scale 1.4s var(--ease);
  }
  .split-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,0.12) 15%, rgba(0,0,0,0.45) 62%, rgba(0,0,0,0.85) 100%);
  }
  .split-panel:hover img,
  .split-panel:focus-visible img { scale: 1.06; }
  .split-panel__label { font-size: var(--step--1); color: var(--on-image-soft); }
  .split-panel__title {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-display);
    font-size: var(--step-2);
    color: var(--on-image);
  }
  .split-panel__cta {
    margin-top: 0.9rem;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--step--1);
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.45);
  }
  @media (max-width: 760px) { .split-panel { min-height: 21rem; } }

  /* ------------------------------------------------------------------ *
   * Work cards
   * ------------------------------------------------------------------ */
  .work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(26rem, 100%), 1fr));
    gap: var(--space-m);
  }
  .work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    container-type: inline-size;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), translate var(--dur) var(--ease);
  }
  .work-card:hover,
  .work-card:focus-within {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    translate: 0 -3px;
  }
  /* A soft spotlight tracking the pointer. --mx/--my are written by
     site.js on pointermove; with no JS it simply never appears. */
  .work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    background: radial-gradient(
      18rem circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--accent) 12%, transparent),
      transparent 62%
    );
  }
  @media (hover: hover) and (pointer: fine) {
    .work-card:hover::after { opacity: 1; }
  }

  .work-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
  .work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.85s var(--ease); }
  .work-card:hover .work-card__media img { scale: 1.05; }

  .work-card__body {
    padding: var(--space-s) var(--space-s) var(--space-m);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .work-card__tag { font-size: var(--step--1); color: var(--accent); }
  .work-card__title { font-size: var(--step-2); margin-top: 0.35rem; }
  .work-card__desc { margin-top: 0.6rem; color: var(--ink-soft); flex-grow: 1; }
  .work-card__link { margin-top: var(--space-s); }
  /* The whole card is clickable, but only the title is a real link, so the
     accessible name stays clean and the URL is copyable from the title. */
  .work-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

  /* At a wide card the meta sits on one line; the query is on the card
     itself, so the same card behaves correctly in any column count. */
  @container (min-width: 34rem) {
    .work-card__body { padding: var(--space-m); }
    .work-card__title { font-size: var(--step-3); }
  }

  /* ------------------------------------------------------------------ *
   * Value grid
   * ------------------------------------------------------------------ */
  /* 15rem rather than 17rem so a four-item grid gets four columns at the
     container's full width instead of leaving one orphan on a second row.
     auto-fit collapses the spare track, so three-item grids stay three-up. */
  .value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--space-m);
  }
  .value-item { border-top: 1px solid var(--accent); padding-top: var(--space-s); }
  .value-item h3 {
    /* Optical compensation: see the note on --font-display. */
    font-size: clamp(1.35rem, 1.2rem + 0.55vw, 1.62rem);
    font-weight: 500;
  }
  .value-item p { margin-top: 0.5rem; color: var(--ink-soft); }
  .value-item__num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-1);
    color: var(--accent);
    margin-bottom: 0.3rem;
  }

  /* ------------------------------------------------------------------ *
   * Stat band
   * ------------------------------------------------------------------ */
  .stat-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: var(--space-m);
    border-block: 1px solid var(--line);
    padding-block: var(--space-m);
  }
  .stat__value {
    font-family: var(--font-display);
    font-size: var(--step-4);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.03em;
  }
  .stat__label { margin-top: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 22ch; }

  /* ------------------------------------------------------------------ *
   * Testimonials
   * ------------------------------------------------------------------ */
  .quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: var(--space-m);
  }
  .quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-m);
    display: flex;
    flex-direction: column;
  }
  .quote__mark {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.35;
    margin-bottom: 0.6rem;
  }
  .quote blockquote { font-size: var(--step-1); flex-grow: 1; }
  .quote figcaption { margin-top: var(--space-s); padding-top: var(--space-s); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); }
  .quote figcaption strong { display: block; color: var(--ink); }

  /* ------------------------------------------------------------------ *
   * Pricing
   * ------------------------------------------------------------------ */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: var(--space-m);
    align-items: stretch;
  }
  .price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-m);
  }
  .price-card--featured {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    box-shadow: var(--shadow-lg);
  }
  .price-card--featured :is(h3, .price-card__price) { color: var(--bg); }
  .price-card--featured :is(.price-card__desc, .price-card__best, .price-card__price span) { color: color-mix(in oklab, var(--bg) 68%, transparent); }
  .price-card--featured .price-card__list li::before { color: var(--accent-bright); }
  .price-card--featured hr { border-color: color-mix(in oklab, var(--bg) 22%, transparent); }
  .price-card--featured .btn-primary { background: var(--accent); color: var(--ink); }
  .price-card--featured .btn-primary::before { background: var(--bg); }

  .price-card__flag {
    position: absolute;
    inset-block-start: var(--space-m);
    inset-inline-end: var(--space-m);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step--1);
    color: var(--accent-bright);
  }
  .price-card h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; }
  .price-card__price { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; margin-top: var(--space-s); }
  .price-card__price span { font-family: var(--font-body); font-size: var(--step-0); color: var(--ink-soft); }
  .price-card__desc { margin-top: var(--space-s); color: var(--ink-soft); }
  .price-card__best { margin-top: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); }
  .price-card hr { border: none; border-top: 1px solid var(--line); margin-block: var(--space-s); }
  .price-card__list { display: flex; flex-direction: column; gap: 0.65rem; flex-grow: 1; }
  .price-card__list li { position: relative; padding-left: 1.4rem; font-size: var(--step--1); }
  .price-card__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 0.75rem; height: 1px;
    background: currentColor;
    color: var(--accent);
  }
  .price-card .btn { margin-top: var(--space-m); align-self: flex-start; }

  .extras {
    margin-top: var(--space-l);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .extra { background: var(--bg); padding: var(--space-s); }
  .extra__name { font-weight: 600; font-size: var(--step--1); }
  .extra__price { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--accent); margin-top: 0.25rem; }
  .extra__price span { font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-soft); }
  .extra__desc { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.35rem; }

  /* ------------------------------------------------------------------ *
   * Timeline
   * ------------------------------------------------------------------ */
  .timeline { display: flex; flex-direction: column; }
  .timeline-step {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: var(--space-s) var(--space-m);
    padding-block: var(--space-m);
    border-top: 1px solid var(--line);
    transition: background var(--dur) var(--ease);
  }
  .timeline-step:last-child { border-bottom: 1px solid var(--line); }
  .timeline-step__num { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--accent); }
  .timeline-step__title { font-size: var(--step-2); }
  .timeline-step__desc { margin-top: 0.6rem; color: var(--ink-soft); max-width: 58ch; }
  @media (max-width: 560px) {
    .timeline-step { grid-template-columns: 1fr; gap: 0.4rem; }
  }

  /* ------------------------------------------------------------------ *
   * FAQ — native exclusive accordion. The shared `name` attribute makes
   * the browser close the others for us; no JavaScript is involved.
   * ------------------------------------------------------------------ */
  .faq { border-top: 1px solid var(--line); }
  .faq__item { border-bottom: 1px solid var(--line); }
  .faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-s);
    padding-block: var(--space-s);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 1.18rem + 0.5vw, 1.58rem);
    font-weight: 500;
    list-style: none;
    transition: color var(--dur-fast) var(--ease);
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary:hover { color: var(--accent); }
  .faq__item summary::after {
    content: "";
    flex: none;
    width: 0.7rem; height: 0.7rem;
    margin-top: 0.45em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    rotate: 45deg;
    transition: rotate var(--dur) var(--ease);
  }
  .faq__item[open] summary { color: var(--accent); }
  .faq__item[open] summary::after { rotate: -135deg; }
  .faq__item > div { padding-bottom: var(--space-s); color: var(--ink-soft); max-width: 66ch; }
  /* Height interpolation for <details>, where the engine supports it */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size var(--dur) var(--ease), content-visibility var(--dur) allow-discrete;
    }
    .faq__item[open]::details-content { block-size: auto; }
  }

  /* ------------------------------------------------------------------ *
   * CTA band
   * ------------------------------------------------------------------ */
  .cta-band {
    background: var(--ink);
    color: var(--bg);
    position: relative;
    overflow: hidden;
  }
  .cta-band::before {
    content: "";
    position: absolute;
    inset: auto -10% -60% 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent), transparent 66%);
    pointer-events: none;
  }
  .cta-band h2 { color: var(--bg); font-size: var(--step-3); max-width: 23ch; }
  .cta-band p { margin-top: var(--space-s); max-width: 50ch; color: color-mix(in oklab, var(--bg) 72%, transparent); }
  .cta-band__row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-m);
  }
  .cta-band .btn-primary { background: var(--accent); color: var(--ink); }
  .cta-band .btn-primary::before { background: var(--bg); }
  .cta-band .btn-ghost { color: var(--bg); border-color: color-mix(in oklab, var(--bg) 40%, transparent); }
  .cta-band .btn-ghost:hover { background: var(--bg); color: var(--ink); }

  /* ------------------------------------------------------------------ *
   * Footer
   * ------------------------------------------------------------------ */
  .site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding-block: var(--space-l) var(--space-m);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--space-m) var(--space-l);
  }
  .footer-grid > :first-child { flex-basis: 24rem; }
  .footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.03em; }
  .footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
  .footer-tag { margin-top: var(--space-s); color: var(--ink-soft); max-width: 34ch; font-size: var(--step--1); }
  .footer-col h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em; margin-bottom: var(--space-s); }
  .footer-col li { margin-bottom: 0.55rem; font-size: var(--step--1); color: var(--ink-soft); }
  .footer-col a { transition: color var(--dur-fast) var(--ease); }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    margin-top: var(--space-l);
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem var(--space-m);
    font-size: var(--step--2);
    color: var(--ink-faint);
  }

  /* ------------------------------------------------------------------ *
   * Sticky mobile action bar — the site is shown on a phone, in person,
   * more often than on a desktop. Calling should never be more than one
   * thumb-reach away.
   * ------------------------------------------------------------------ */
  .action-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 40;
    display: none;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(10px);
  }
  .action-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding-block: 0.6rem;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    font-size: var(--step--2);
    font-weight: 600;
    color: var(--ink);
  }
  .action-bar a svg { width: 18px; height: 18px; color: var(--accent); }
  @media (max-width: 940px) {
    .action-bar { display: flex; }
    body { padding-bottom: 4rem; }
    html.nav-open .action-bar { display: none; }
  }

  /* ------------------------------------------------------------------ *
   * Case study pages
   * ------------------------------------------------------------------ */
  .case-hero__tag { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--accent); }
  .case-hero__facts {
    margin-top: var(--space-l);
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 45%), 1fr));
    gap: var(--space-s);
  }
  .case-hero__facts dt { font-size: var(--step--1); color: var(--ink-soft); }
  .case-hero__facts dd { margin-top: 0.3rem; font-weight: 600; }

  .case-columns { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: var(--space-m) var(--space-l); }
  .case-columns h2 { font-size: var(--step-2); }
  @media (max-width: 940px) { .case-columns { grid-template-columns: 1fr; } }

  .case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
    gap: var(--space-s);
  }
  .case-gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    transition: scale var(--dur-slow) var(--ease);
  }
  .case-gallery a:hover img { scale: 1.02; }

  .case-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-s);
    padding-block: var(--space-m);
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
  }
  .case-nav a:hover { color: var(--accent); }

  .logo-banner {
    display: block;
    text-align: center;
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
  }
  .logo-banner--dark  { background: #0E0D0B; }
  .logo-banner--light { background: #FDFBF6; border-block: 1px solid var(--line); }
  .logo-banner__mark { display: inline-block; transition: translate var(--dur) var(--ease), scale var(--dur) var(--ease); }
  .logo-banner:hover .logo-banner__mark,
  .logo-banner:focus-visible .logo-banner__mark { translate: 0 -4px; scale: 1.045; }
  .logo-banner__mark img {
    margin-inline: auto;
    height: clamp(46px, 6vw, 70px);
    width: auto;
    border-radius: 4px;
  }
  .logo-banner__mark img.is-badge { border-radius: 50%; }
  .logo-banner__cta {
    display: block;
    margin-top: 0.85rem;
    font-size: var(--step--1);
    font-weight: 600;
    opacity: 0;
    translate: 0 6px;
    transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
  }
  .logo-banner--dark  .logo-banner__cta { color: #D9B466; }
  .logo-banner--light .logo-banner__cta { color: #7A5C1E; }
  .logo-banner:hover .logo-banner__cta,
  .logo-banner:focus-visible .logo-banner__cta { opacity: 1; translate: 0 0; }

  /* ------------------------------------------------------------------ *
   * Forms
   * ------------------------------------------------------------------ */
  .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-s); }
  .field label { font-size: var(--step--1); font-weight: 600; }
  .field :is(input, textarea, select) {
    padding: 0.8rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  }
  .field :is(input, textarea):focus-visible,
  .field select:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
  }
  /* Grows with what's typed instead of forcing an inner scrollbar */
  .field textarea { field-sizing: content; min-height: 7rem; resize: vertical; }
  /* Only scold a field once it's been left in an invalid state */
  .field input:user-invalid, .field textarea:user-invalid { border-color: #B3261E; }
  .field__hint { font-size: var(--step--2); color: var(--ink-faint); }
  .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0 var(--space-s); }
  .hp-field { position: absolute; left: -9999px; }

  /* ------------------------------------------------------------------ *
   * Lightbox — built on <dialog>, so the browser supplies the top layer,
   * the focus trap, the backdrop and Escape-to-close.
   * ------------------------------------------------------------------ */
  .lightbox {
    max-width: min(92vw, 68rem);
    max-height: 92svh;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--on-image);
    overflow: visible;
  }
  .lightbox::backdrop {
    background: rgba(10, 8, 6, 0.88);
    backdrop-filter: blur(6px);
  }
  .lightbox[open] { animation: lb-in 0.3s var(--ease); }
  @keyframes lb-in { from { opacity: 0; scale: 0.97; } }
  .lightbox img {
    max-width: 100%;
    max-height: 76svh;
    width: auto;
    margin-inline: auto;
    border-radius: var(--radius);
    object-fit: contain;
  }
  .lightbox__caption { margin-top: 0.8rem; text-align: center; font-size: var(--step--1); color: var(--on-image-soft); }
  .lightbox__close {
    position: absolute;
    top: -2.6rem;
    right: 0;
    width: 2.2rem; height: 2.2rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--on-image);
    border-radius: 50%;
  }
  .lightbox__nav {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-size: var(--step--1);
    color: var(--on-image-soft);
  }
  .lightbox__nav button {
    width: 2.4rem; height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--on-image);
    transition: background var(--dur-fast) var(--ease);
  }
  .lightbox__nav button:hover { background: rgba(255, 255, 255, 0.14); }
  .case-gallery a { cursor: zoom-in; display: block; }

  .contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-l); }
  @media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }
  .contact-list { margin-top: var(--space-m); display: flex; flex-direction: column; gap: var(--space-s); }
  .contact-list a { display: block; font-family: var(--font-display); font-size: var(--step-2); transition: color var(--dur-fast) var(--ease); }
  .contact-list a:hover { color: var(--accent); }
  .contact-list a span { display: block; font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.15rem; }
}

/* ==========================================================================
   @layer utilities
   ========================================================================== */

@layer utilities {

  /* -- Reveal on scroll -------------------------------------------------
     Two implementations, in order of preference:
       1. A view() scroll timeline — the browser drives it, off the main
          thread, with nothing to observe and no class to toggle.
       2. IntersectionObserver via .is-visible from site.js.
     Content is visible by default, so a failure in either leaves the page
     readable rather than blank. ------------------------------------------ */
  .reveal { opacity: 1; }

  @supports not (animation-timeline: view()) {
    html.js-ready .reveal { opacity: 0; translate: 0 18px; transition: opacity var(--dur-slow) var(--ease), translate var(--dur-slow) var(--ease); }
    html.js-ready .reveal.is-visible { opacity: 1; translate: 0 0; }
    html.js-ready .reveal-group.is-visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
    html.js-ready .reveal-group.is-visible .reveal-child:nth-child(2) { transition-delay: 0.13s; }
    html.js-ready .reveal-group.is-visible .reveal-child:nth-child(3) { transition-delay: 0.21s; }
    html.js-ready .reveal-group.is-visible .reveal-child:nth-child(4) { transition-delay: 0.29s; }
  }

  @supports (animation-timeline: view()) {
    /* The range is expressed entirely in `entry` so it depends on how far the
       element has entered the viewport, not on how tall the viewport is. Using
       `cover` here left content half-faded on very tall screens. */
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 6% entry 58%;
    }
    .reveal-child {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 6% entry 66%;
    }
    .reveal-group { animation: none; opacity: 1; }
    /* Nothing above the fold should have to be scrolled into existence */
    .no-reveal, .hero .reveal { animation: none; opacity: 1; translate: none; }
  }
  @keyframes reveal-in {
    from { opacity: 0; translate: 0 20px; }
    to   { opacity: 1; translate: 0 0; }
  }

  /* -- Cross-document view transitions ----------------------------------
     Turns eleven separate HTML documents into something that navigates
     like a single application, with zero client-side routing. ----------- */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.22s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in  0.32s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in  { from { opacity: 0; translate: 0 8px; } }
  /* The header and brand mark persist across the change rather than
     cross-fading with the rest of the page. */
  ::view-transition-group(site-header),
  ::view-transition-group(brand) { animation-duration: 0.3s; }

  .center { text-align: center; }
  .mt-s { margin-top: var(--space-s); }
  .mt-m { margin-top: var(--space-m); }
  .mt-l { margin-top: var(--space-l); }
  .muted { color: var(--ink-soft); }
  .accent { color: var(--accent); }
  .nowrap { white-space: nowrap; }

  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  [hidden] { display: none !important; }
}

/* ==========================================================================
   Print — a site that gets shown in person also gets printed occasionally
   ========================================================================== */

@media print {
  .site-header, .action-bar, .scroll-progress, .nav-scrim, .cta-band, .marquee { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
  .reveal { opacity: 1 !important; animation: none !important; }
}
