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

/* ------------------------------------------------------------------ */
/* Fonts                                                              */
/* ------------------------------------------------------------------ */

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

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

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

/* ------------------------------------------------------------------ */
/* Reset                                                              */
/* ------------------------------------------------------------------ */

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  body { min-height: 100svh; }
  img, picture, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3 { overflow-wrap: break-word; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
}

/* ------------------------------------------------------------------ */
/* Tokens                                                             */
/* ------------------------------------------------------------------ */

@layer tokens {
  :root {
    color-scheme: light;

    /* Cool grey and ink navy */
    --bg: #eef0f2;
    --surface: #e4e7eb;
    --frame: #142033;                                       /* dark navy surround beyond the page on wide screens */
    --ink: #1f2329;
    --muted: #4a5059;
    --line: rgb(31 35 41 / 0.18);
    --accent: #243b5a;
    --accent-hover: #1a2d47;
    --accent-ink: #ffffff;
    --paper: #f3f4f6;
    --field: #1f3350;
    --field-ink: #ffffff;
    --field-muted: #c9d3e0;
    --field-soft: #dfe5ee;
    --field-line: rgb(255 255 255 / 0.3);
    --footer-muted: #b5bbc3;
    --header-bg: #f8f9fa;                                   /* top bar, a shade brighter than the page */
    --footer-mark: #2b3038;
    --box: #ffffff;                                         /* white boxes on the navy areas */
    --box-ink: #1f2329;
    --box-muted: #4a5059;
    --box-line: rgb(31 35 41 / 0.14);
    --box-accent: #243b5a;
    --box-accent-hover: #1a2d47;
    --tag-starter: #e6e9ed;                                 /* package name labels on the pricing page */
    --tag-starter-ink: #1f2329;
    --tag-business: #d9eedf;
    --tag-business-ink: #1d5434;
    --tag-custom: #f5e6bf;
    --tag-custom-ink: #5f4300;
    --addon-pages: #e3ecf7;                                 /* add-on tints: blue, green, teal, gold, grey (no pinks) */
    --addon-booking: #dcefe3;
    --addon-newsletter: #dcefee;
    --addon-copy: #f6ebcf;
    --addon-admin: #e9ecef;
    --hero-ink: #ffffff;                                    /* the navy top section of Home */
    --hero-muted: #c9d3e0;
    --hero-accent: #9fb8e0;
    --hero-line: rgb(255 255 255 / 0.22);
    --error: #8a2a1d;

    /* Type: one family, six sizes */
    --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --step--1: 0.875rem;                                    /* labels, meta, fine print */
    --step-0: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);     /* body, nav, buttons */
    --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* leads, card titles */
    --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);          /* project titles */
    --step-3: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);      /* section headings */
    --step-4: clamp(3.25rem, 1.6rem + 5vw, 6.5rem);         /* page title */
    --step-5: clamp(4rem, 20.5vw, 17.75rem);                /* footer wordmark, sized to the container */

    /* Space: one scale used everywhere */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --section-space: clamp(4.5rem, 8vw, 7.5rem);

    /* Layout */
    --container: 76rem;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --gap: clamp(1.5rem, 3vw, 3rem);
    --header-height: 4.5rem;

    --radius: 6px;                                          /* buttons, fields, small panels */
    --radius-lg: 12px;                                      /* framed screenshots */

    /* Shadows tinted with the ink colour, so they sit naturally on the grey */
    --shadow-sm: 0 1px 2px rgb(31 35 41 / 0.12), 0 2px 6px rgb(31 35 41 / 0.08);
    --shadow-md: 0 2px 4px rgb(31 35 41 / 0.08), 0 10px 24px rgb(31 35 41 / 0.14);
    --shadow-lg: 0 4px 10px rgb(31 35 41 / 0.1), 0 22px 44px rgb(31 35 41 / 0.22);
    --shadow-sheet: 0 0 48px rgb(31 35 41 / 0.28);
    --control-height: 3rem;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 600ms;
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
  }

  html { background: var(--frame); }

  /* Faint code tiled over the navy surround, held still while the page scrolls over it */
  body {
    background: var(--frame) url("/assets/img/code-texture.svg") 0 0 / 760px auto fixed;
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  /* Inner pages open with their section heading as the h1, styled the same */
  h2,
  .section h1 {
    font-size: var(--step-3);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  h3 {
    font-size: var(--step-1);
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  p, li, dd, summary { text-wrap: pretty; }

  a, button, summary {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgb(31 35 41 / 0.12);
  }

  a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 200ms ease, color 200ms ease;
  }

  a:hover { text-decoration-thickness: 2px; }

  :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
  }

  ::selection {
    background: var(--accent);
    color: var(--accent-ink);
  }

  /* Navy selection would vanish on the dark areas, so it inverts there */
  :is(.section--field, .hero, .section--navy, .site-footer) ::selection {
    background: var(--paper);
    color: var(--frame);
  }

  /* White boxes on the navy go back to the normal navy selection */
  .section--navy :is(.plan, .compare, .about__panel, .service-card, .intro-facts > div) ::selection,
  .hero .hero__facts ::selection {
    background: var(--box-accent);
    color: var(--accent-ink);
  }

  /* Browser furniture in the palette: scrollbars and the typing cursor */
  html { scrollbar-color: var(--muted) var(--frame); }

  input,
  textarea { caret-color: var(--accent); }

  strong { font-weight: 600; }

  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px; /* taste-skill-ignore: visually hidden text, not a rule */
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 100;
    padding: 0.75rem var(--space-2);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font-size: var(--step--1);
    transform: translateY(-200%);
  }

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

/* ------------------------------------------------------------------ */
/* Layout                                                             */
/* ------------------------------------------------------------------ */

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

  /*
   * The page is a sheet the width of the container, sitting on a darker
   * surround that shows on screens wider than the content. Section bands
   * stop at the sheet's edges rather than running to the window's. The
   * header stays full width, with its contents still on the container.
   */
  body > :is(main, footer) {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
  }

  /* overflow-x: clip keeps anything mid-animation (the dealt sample windows)
     from widening the page, without breaking the sticky intros inside */
  body > main {
    position: relative;
    z-index: 1;
    overflow-x: clip;
    background: var(--bg);
  }

  body > :is(main, footer) { box-shadow: var(--shadow-sheet); }

  /*
   * Every two-part section splits on the same centre line, so the second
   * column starts at the same x on every section of the page.
   */
  .split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: var(--space-4);
    align-items: start;
  }

  .stack {
    display: grid;
    align-content: start;
    gap: var(--space-3);
  }

  .section {
    padding-block: var(--section-space);
  }

  .section--surface { background: var(--surface); }

  /*
   * Navy with the fixed code texture, like the top of the homepage: each
   * inner page opens with one. The colour tokens flip inside it, so lines,
   * prices, tables and buttons inside turn white without rules of their own.
   */
  .section--navy {
    --ink: var(--hero-ink);
    --muted: var(--hero-muted);
    --line: var(--hero-line);
    --surface: var(--frame);
    --accent: var(--hero-ink);
    --accent-hover: var(--field-soft);
    --accent-ink: var(--frame);
    background: var(--frame) url("/assets/img/code-texture.svg") 0 0 / 760px auto fixed;
    color: var(--ink);
  }

  /*
   * On the navy, blocks that sit under a rule elsewhere become solid white
   * boxes, with the light-page colours back inside them.
   */
  .section--navy :is(.plan, .compare, .about__panel, .service-card, .intro-facts > div),
  .hero .hero__facts > div {
    --ink: var(--box-ink);
    --muted: var(--box-muted);
    --line: var(--box-line);
    --surface: var(--box);
    --accent: var(--box-accent);
    --accent-hover: var(--box-accent-hover);
    --accent-ink: #ffffff;
    padding: var(--space-3);
    border: 0;
    border-radius: var(--radius);
    background: var(--box);
    color: var(--ink);
    box-shadow: var(--shadow-md);
  }

  .hero .hero__facts > div { padding: var(--space-2) var(--space-3); }

  /*
   * Boxes leave less room for text, so the packages sit three across and
   * the add-ons get a full-width box with their prices in columns.
   */
  .section--navy .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .section--navy .plan--list { grid-column: 1 / -1; }

  .section--navy .plan--list .detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-4);
  }

  .section--navy .plan--list .detail-list div:first-child { border-top: 0; }

  /* Each add-on and care plan sits on its own soft tint instead of between rules */
  .section--navy .detail-list:has(.addon) { gap: var(--space-1) var(--space-2); }

  .section--navy .detail-list .addon {
    padding: 0.75rem var(--space-2);
    border: 0;
    border-radius: var(--radius);
  }

  .addon--pages { background: var(--addon-pages); }
  .addon--booking { background: var(--addon-booking); }
  .addon--newsletter { background: var(--addon-newsletter); }
  .addon--copy { background: var(--addon-copy); }
  .addon--admin { background: var(--addon-admin); }

  /* Care plans follow the package colours: grey, green, gold */
  .addon--basic { background: var(--tag-starter); }
  .addon--standard { background: var(--tag-business); }
  .addon--growth { background: var(--tag-custom); }


  .section--field {
    background: var(--field);
    color: var(--field-ink);
  }

  .section-head {
    align-items: end;
    row-gap: var(--space-3);
    margin-bottom: var(--space-5);
  }

  .section-head p { max-width: 42ch; }

  .lead {
    font-size: var(--step-1);
    line-height: 1.45;
  }

  .muted { color: var(--muted); }

  .section--field .section-head p { color: var(--field-soft); }
}

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */

@layer sections {

  /* Header --------------------------------------------------------- */

  /*
   * A light bar a shade brighter than the page, set off by a fine rule,
   * with a soft shadow once the page scrolls beneath it.
   */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 200ms ease;
  }

  .site-header.is-scrolled { box-shadow: var(--shadow-md); }

  .site-nav ul a { color: var(--muted); }

  .site-nav ul a:is(:hover, :focus-visible),
  .site-nav ul a[aria-current="page"] { color: var(--ink); }

  /* On simple pages without a menu, small phones get the logo without the name */
  @media (max-width: 30rem) {
    .page .wordmark__text {
      position: absolute;
      width: 1px;
      height: 1px; /* taste-skill-ignore: visually hidden text, not a rule */
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: var(--header-height);
  }

  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .site-nav ul {
    display: flex;
    gap: var(--space-4);
    font-size: var(--step--1);
  }

  .menu-toggle {
    min-height: 2.75rem;
    padding: 0 var(--space-2);
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: var(--paper);
  }

  /* Hero ----------------------------------------------------------- */

  /* Navy with faint code, the same as the surround, and white type */
  .hero {
    position: relative;
    display: grid;
    align-items: center;
    padding-block: var(--space-5);
    background: var(--frame) url("/assets/img/code-texture.svg") 0 0 / 760px auto fixed;
    color: var(--hero-ink);
  }

  .hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--gap);
    row-gap: var(--space-4);
    align-items: center;
  }

  /* The slideshow gets the wider share, so the screenshots read at size */
  .hero__copy { grid-column: 1; }

  .hero__title {
    font-size: var(--step-4);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.045em;
  }

  /* Each line is its own mask for the entrance; the padding keeps the
     descender of the g inside it */
  .hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
  }

  .hero__line > * { display: inline-block; }

  /* "Web" set in the mono, like a line of code */
  .hero__title em {
    padding-right: 0.04em;
    color: var(--hero-accent);
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.06em;
  }

  /* One sentence per line */
  .hero__slogan > span { display: block; }

  .hero__slogan {
    margin-top: var(--space-3);
    font-size: var(--step-2);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero__lead {
    max-width: 36ch;
    margin-top: var(--space-4);
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-4);
  }

  /*
   * A slideshow across the right half: the demo admin screens, then the
   * sample designs, each straight and readable in a plain browser-style
   * window. Slides sit on top of each other and cross-fade; slideshow.js
   * moves between them. Without the script only the first one shows.
   */
  .hero__showcase {
    grid-column: 2;
    display: grid;
    gap: var(--space-2);
  }

  .slideshow__slides {
    display: grid;
    margin: 0;
    padding: 0;
  }

  /* A long, even cross-fade: the next slide fades in over the last */
  .slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1600ms cubic-bezier(0.45, 0, 0.55, 1), visibility 0s linear 1600ms;
  }

  .slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 1600ms cubic-bezier(0.45, 0, 0.55, 1);
  }

  a.showcase__card:is(:hover, :focus-visible) { box-shadow: var(--shadow-lg); }

  .slideshow__controls {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-1);
    margin-top: var(--space-2);
  }

  .js .slideshow__controls { display: flex; }

  /* Square previous and next buttons, outlined in white on the navy */
  .slideshow__arrow {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--hero-line);
    background: none;
    color: var(--hero-ink);
    cursor: pointer;
    transition: border-color 200ms ease, background-color 200ms ease;
  }

  .slideshow__arrow:hover {
    border-color: var(--hero-ink);
    background: rgb(255 255 255 / 0.08);
  }

  .showcase__card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    transition: box-shadow 450ms var(--ease-out);
    background: var(--paper);
    text-decoration: none;
  }

  .showcase__card:focus-visible { outline-offset: 6px; }

  /* A small corner tag saying each screen is a demo or a concept, never a client */
  .showcase__card { position: relative; }

  .showcase__tag {
    position: absolute;
    top: var(--space-1);
    left: var(--space-1);
    padding: 0.25rem 0.5rem;
    background: var(--frame);
    color: var(--hero-ink);
    font-size: var(--step--1);
    line-height: 1.2;
  }

  .showcase__card img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Three plain facts in a row beneath, on the same quarter grid */
  .hero__facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .hero__facts div {
    display: grid;
    gap: 0.25rem;
    padding-top: var(--space-2);
    border-top: 1px solid var(--hero-line);
  }

  .hero__facts dt {
    font-size: var(--step--1);
    color: var(--muted);
  }

  .hero__facts dd {
    margin: 0;
    font-size: var(--step-1);
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  /* What I do ------------------------------------------------------ */

  /* Opening: heading, intro and actions on the left, three facts on the right */
  .page-intro__top { align-items: center; }

  .page-intro__copy .lead {
    max-width: 40ch;
    margin-top: var(--space-3);
  }

  .page-intro__copy .hero__actions { margin-top: var(--space-4); }

  .intro-facts {
    display: grid;
    gap: var(--space-2);
  }

  .section--navy .intro-facts > div {
    display: grid;
    gap: 0.25rem;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
  }

  .intro-facts dt {
    font-size: var(--step--1);
    color: var(--muted);
  }

  .intro-facts dd {
    margin: 0;
    font-size: var(--step-1);
  }

  .page-intro__group { margin-top: var(--section-space); }

  .page-intro__group > h2 { margin-bottom: var(--space-4); }

  /* The backend services as white boxes, three across */
  .service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .service-card {
    display: grid;
    align-content: start;
    gap: var(--space-1);
  }

  .service-card h3 {
    font-size: var(--step-1);
    font-weight: 500;
  }

  .service-card p { color: var(--muted); }

  /* The website services, open in three columns, each under a single rule */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4) var(--gap);
  }

  .feature {
    display: grid;
    align-content: start;
    gap: var(--space-1);
    padding: var(--space-3);
    border-top: 1px solid var(--line);
  }

  .feature h3 {
    font-size: var(--step-0);
    font-weight: 500;
  }

  .feature p { color: var(--muted); }

  /* The four that matter most to clients get a soft tint, the same pastels
     as the pricing add-ons; the rest stay plain under a rule */
  .feature-grid { gap: var(--space-3); }

  .feature[class*="feature--"] {
    border-top: 0;
    border-radius: var(--radius);
  }

  .feature--look { background: var(--addon-pages); }
  .feature--control { background: var(--addon-booking); }
  .feature--found { background: var(--addon-copy); }
  .feature--care { background: var(--addon-newsletter); }
  .feature--plain { background: var(--addon-admin); }

  /* A small line icon beside the title of each coloured service (Lucide shapes) */
  .feature h3:has(.feature__icon) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .feature__icon {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
  }

  /*
   * The process as a timeline: steps 1 to 5 run left to right along a line,
   * then 6 to 10 along the line below. Each number sits in a square marker,
   * and a line joins each marker to the next one in its row.
   */
  .timeline {
    --marker: 2.5rem;
    --timeline-gap: var(--space-3);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-5) var(--timeline-gap);
  }

  .timeline__step {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--space-1);
  }

  .timeline__step::before {
    content: "";
    position: absolute;
    top: calc(var(--marker) / 2);
    left: var(--marker);
    right: calc(var(--timeline-gap) * -1);
    border-top: 1px solid var(--field-line);
  }

  /* The last step in each row ends the line */
  .timeline__step:nth-child(5n)::before { content: none; }

  .timeline__num {
    display: grid;
    place-items: center;
    width: var(--marker);
    height: var(--marker);
    margin-bottom: var(--space-1);
    border: 1px solid var(--field-ink);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--field-ink);
  }

  .timeline__step h3 {
    font-size: var(--step-1);
    font-weight: 500;
  }

  .timeline__step p {
    font-size: var(--step--1);
    color: var(--field-muted);
  }

  /* Services ------------------------------------------------------- */

  /* Two independent columns, so opening an item only moves its own column */
  .services { row-gap: 0; }

  /* Backend work first, then websites, each under its own heading */
  .services__group {
    margin-bottom: var(--space-3);
    font-weight: 500;
  }

  .services + .services__group { margin-top: var(--space-5); }

  /* Pricing -------------------------------------------------------- */

  /* Backend work leads the pricing, on its own row above the website packages */
  .plans-lead { margin-bottom: var(--space-5); }

  .plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
  }

  /* Open columns under a single rule rather than filled cards */
  .plan {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--ink);
  }

  /* Box headings are h2s on the pricing page (under its h1), sized like h3s */
  .plan :is(h2, h3) {
    font-size: var(--step-1);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: normal;
  }

  /* Each package name sits in its own coloured label: grey, green, gold */
  :is(.plan--starter, .plan--business, .plan--custom) :is(h2, h3) {
    justify-self: start;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius);
  }

  .plan--starter :is(h2, h3) { background: var(--tag-starter); color: var(--tag-starter-ink); }
  .plan--business :is(h2, h3) { background: var(--tag-business); color: var(--tag-business-ink); }
  .plan--custom :is(h2, h3) { background: var(--tag-custom); color: var(--tag-custom-ink); }

  /* The package boxes grow a little under the pointer */
  :is(.plan--starter, .plan--business, .plan--custom) {
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  }

  :is(.plan--starter, .plan--business, .plan--custom):hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
  }

  .plan__price {
    font-size: var(--step-2);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .plan__fit {
    margin-top: auto;
    padding-top: var(--space-1);
    font-size: var(--step--1);
    color: var(--muted);
  }

  .extras { margin-top: var(--space-5); }

  .detail-list { display: grid; }

  /* A price drops below its label when the card is too narrow for both */
  .detail-list div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0 var(--space-2);
    padding-block: 0.625rem;
    border-bottom: 1px solid var(--line);
  }

  .detail-list div:first-child { border-top: 1px solid var(--line); }

  .detail-list dd {
    margin: 0 0 0 auto;
    text-align: right;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
  }

  .compare {
    margin-top: var(--space-5);
    border-block: 1px solid var(--ink);
  }

  /* Always open: the title sits above the table like a box heading */
  .compare__title {
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: normal;
  }

  .compare__hint {
    display: none;
    padding-top: var(--space-2);
    font-size: var(--step--1);
    color: var(--muted);
  }

  /* Positioned so visually hidden text in the cells is clipped here too,
     rather than widening the page */
  .table-scroll {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .compare-table {
    width: 100%;
    min-width: 44rem;
    border-collapse: collapse;
    font-size: var(--step--1);
    line-height: 1.45;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.875rem var(--space-2) 0.875rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  .compare-table tbody tr:last-child > * { border-bottom: 0; }

  .compare-table thead th {
    padding-block: var(--space-3) var(--space-2);
    font-size: var(--step-1);
    font-weight: 500;
    line-height: 1.25;
    vertical-align: bottom;
  }

  .compare-table thead th span {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--step--1);
    font-weight: 400;
    color: var(--muted);
  }

  .compare-table tbody th {
    width: 28%;
    font-weight: 500;
  }

  /* Row labels stay put while the plan columns scroll on narrow screens */
  .compare-table tbody th,
  .compare-table thead td {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
  }

  .compare-table td { width: 24%; }

  /* The comparison table follows suit: each plan column in its colour,
     full strength for the plan name and paler for the details beneath */
  .compare-table thead th,
  .compare-table td { padding-inline: var(--space-2); }

  .compare-table thead th:nth-child(2) { background: var(--tag-starter); }
  .compare-table thead th:nth-child(3) { background: var(--tag-business); }
  .compare-table thead th:nth-child(4) { background: var(--tag-custom); }

  .compare-table tbody td:nth-child(2) { background: color-mix(in srgb, var(--tag-starter) 45%, var(--box)); }
  .compare-table tbody td:nth-child(3) { background: color-mix(in srgb, var(--tag-business) 45%, var(--box)); }
  .compare-table tbody td:nth-child(4) { background: color-mix(in srgb, var(--tag-custom) 45%, var(--box)); }

  /* A nudge to the enquiry form for readers who've decided at the prices */
  /* Follows the care plan comparison's rule, so space alone separates it */
  .enquiry-prompt {
    align-items: center;
    margin-top: var(--space-5);
  }

  .enquiry-prompt p {
    max-width: 34ch;
    font-size: var(--step-1);
    line-height: 1.4;
  }

  .enquiry-prompt strong { font-weight: 500; }

  /* As the only thing in its own section, the section supplies the space */
  .container > .enquiry-prompt:first-child { margin-top: 0; }

  .enquiry-prompt .button { justify-self: start; }

  /* Sample designs ------------------------------------------------- */

  /*
   * Each design is shown open: its desktop screenshot, with the phone version
   * tucked against the corner. Hovering or focusing a design lifts the phone
   * into view and slowly scrolls the full-length screenshot to the bottom of
   * the page, then back up quickly on leaving. Name and style sit beneath.
   */
  .samples { row-gap: var(--space-5); }

  .sample__link {
    display: grid;
    gap: var(--space-2);
    text-decoration: none;
  }

  .sample__shots {
    position: relative;
    display: block;
    margin-bottom: var(--space-2);
  }

  .sample__frame {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transition: box-shadow 600ms var(--ease-out);
  }

  .sample__link:is(:hover, :focus-visible) .sample__frame { box-shadow: var(--shadow-lg); }

  .sample__frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 0%;
    transition: object-position 1200ms var(--ease-out);
  }

  .sample__link:is(:hover, :focus-visible) .sample__frame img {
    object-position: 50% 100%;
    transition: object-position 9s cubic-bezier(0.45, 0, 0.55, 1) 300ms;
  }

  .sample__phone {
    position: absolute;
    right: var(--space-3);
    bottom: calc(var(--space-3) * -1);
    width: 22%;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(var(--space-2));
    transition: transform 600ms var(--ease-out);
  }

  .sample__link:is(:hover, :focus-visible) .sample__phone { transform: translateY(calc(var(--space-3) * -1)); }

  .sample__phone img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
  }

  .sample__title {
    display: grid;
    gap: 0.125rem;
    padding-right: 26%;
  }

  .sample__name {
    font-size: var(--step-1);
    line-height: 1.25;
  }

  .sample__meta {
    font-size: var(--step--1);
    color: var(--muted);
  }

  .sample__open {
    justify-self: start;
    font-size: var(--step--1);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .sample__open::after { content: " →"; }

  .sample__link:is(:hover, :focus-visible) .sample__open { color: var(--accent); }

  /* Work ----------------------------------------------------------- */

  .projects { border-top: 1px solid var(--line); }

  .project {
    grid-template-rows: auto auto;
    row-gap: var(--space-1);
    align-items: baseline;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--line);
  }

  .project__title {
    grid-row: 1 / 3;
    font-size: var(--step-2);
    font-weight: 300;
    letter-spacing: -0.02em;
  }

  .project__desc,
  .project__meta { grid-column: 2; }

  .project__desc { max-width: 46ch; }

  .project__meta {
    font-size: var(--step--1);
    color: var(--muted);
  }

  /* About ---------------------------------------------------------- */

  .about__copy p { max-width: 54ch; }

  .about__panel {
    display: grid;
    gap: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--ink);
  }

  .about__panel h3 {
    font-size: var(--step-0);
    font-weight: 600;
    letter-spacing: 0;
  }

  .about__panel h3:not(:first-child) { margin-top: var(--space-3); }

  /* Process -------------------------------------------------------- */

  /* Steps 1–5 and 6–10 fold open in two independent columns */
  .process { row-gap: 0; }

  .process__num {
    flex: none;
    min-width: 2.75rem;
    color: var(--field-muted);
    font-variant-numeric: lining-nums tabular-nums;
  }

  .process__title { flex: 1; }

  /* FAQ ------------------------------------------------------------ */

  /* Contact -------------------------------------------------------- */

  .contact__intro p { max-width: 36ch; }

  /* Footer --------------------------------------------------------- */

  /* The wordmark at the bottom is cropped by the footer edge */
  .site-footer {
    padding-top: var(--space-5);
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
  }

  .site-footer__brand p:not(.site-footer__name) {
    max-width: 34ch;
    color: var(--footer-muted);
  }

  .site-footer__name { font-size: var(--step-1); }

  .site-footer nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1) var(--gap);
  }

  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-1) var(--space-4);
    margin-top: var(--space-5);
    padding-top: var(--space-3);
    border-top: 1px solid rgb(243 244 246 / 0.2);
    font-size: var(--step--1);
    color: var(--footer-muted);
  }

  /* Decorative, so the word is drawn by CSS rather than read or contrast-checked as text */
  .site-footer__mark::before { content: "Dashwood"; }

  .site-footer__mark {
    height: 0.62em;
    margin-top: var(--space-5);
    font-size: var(--step-5);
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--footer-mark);
    white-space: nowrap;
    user-select: none;
  }

  /* Simple pages (privacy, 404) ----------------------------------- */

  .page {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  .page__body { padding-block: var(--section-space); }

  .page__title {
    font-size: var(--step-3);
    font-weight: 300;
    margin-bottom: var(--space-4);
  }

  .prose { max-width: 62ch; }

  .prose h2 {
    margin: var(--space-4) 0 var(--space-2);
    font-size: var(--step-1);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .prose p + p { margin-top: var(--space-2); }

  .prose ul {
    display: grid;
    gap: var(--space-1);
    margin-block: var(--space-2);
    padding-left: 1.25rem;
  }

  .prose ul + p { margin-top: var(--space-2); }

  .page-footer {
    padding-block: var(--space-4);
    background: var(--ink);
    color: var(--paper);
    font-size: var(--step--1);
  }

  .page-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
}

/* ------------------------------------------------------------------ */
/* Components                                                         */
/* ------------------------------------------------------------------ */

@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 200ms ease, box-shadow 200ms ease, transform 150ms ease;
  }

  .button:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
  }

  .button:active {
    box-shadow: var(--shadow-sm);
    transform: translateY(1px);
  }
  .button[disabled] { cursor: progress; opacity: 0.75; }

  .hero .button {
    background: var(--hero-ink);
    color: var(--frame);
  }

  .hero .button:hover { background: var(--field-soft); }

  .button--small {
    min-height: 2.75rem;
    padding: 0 1.125rem;
  }

  .text-link { font-weight: 500; }

  /* Underlines that draw from the left. Text links keep theirs at rest;
     navigation links only show one on hover or focus. */
  .text-link,
  .site-nav ul a,
  .site-footer nav a {
    position: relative;
    text-decoration: none;
  }

  .text-link::after,
  .site-nav ul a::after,
  .site-footer nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.1em;
    border-bottom: 1px solid currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms var(--ease-out);
  }

  .text-link::after { transform: none; }

  .site-nav ul a:is(:hover, :focus-visible)::after,
  .site-footer nav a:is(:hover, :focus-visible)::after {
    transform: none;
    transform-origin: left;
  }

  /* The current page keeps its underline in the menu and footer */
  .site-nav ul a[aria-current="page"]::after,
  .site-footer nav a[aria-current="page"]::after { transform: none; }

  .text-link:hover::after { animation: redraw 600ms var(--ease-out); }

  @keyframes redraw {
    0% { transform: none; transform-origin: right; }
    45% { transform: scaleX(0); transform-origin: right; }
    46% { transform: scaleX(0); transform-origin: left; }
    100% { transform: none; transform-origin: left; }
  }

  /* Disclosure ----------------------------------------------------- */

  .disclosure > summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    padding-block: var(--space-3);
    font-size: var(--step-1);
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
  }

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

  .disclosure > summary::after {
    content: "+";
    flex: none;
    font-size: var(--step-2);
    font-weight: 300;
    line-height: 1;
    transition: transform 250ms var(--ease-out);
  }

  .disclosure[open] > summary::after { transform: rotate(45deg); }

  .disclosure > summary:hover { color: var(--accent); }

  /* A run of disclosures between single rules (services, process, FAQ) */
  .disclosure-list { border-top: 1px solid var(--line); }

  .disclosure-list .disclosure { border-bottom: 1px solid var(--line); }

  .disclosure-list .disclosure > p {
    max-width: 56ch;
    padding-bottom: var(--space-3);
    color: var(--muted);
  }

  /* On the moss process band: light rules, light text */
  .process .disclosure-list,
  .process .disclosure-list .disclosure { border-color: var(--field-line); }

  .process .disclosure > summary:hover { color: var(--field-muted); }

  /* Step text lines up under its title, not its number */
  .process .disclosure-list .disclosure > p {
    padding-left: calc(2.75rem + var(--space-3));
    color: var(--field-soft);
  }

  /* Form ----------------------------------------------------------- */

  .form { display: grid; gap: var(--space-3); }

  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .field { display: grid; gap: 0.375rem; }

  .field label {
    font-size: var(--step--1);
    font-weight: 500;
  }

  .field label .optional { font-weight: 400; color: var(--muted); }

  .field input,
  .field textarea {
    width: 100%;
    min-height: var(--control-height);
    padding: 0.625rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--surface);
    line-height: 1.5;
    transition: background-color 200ms ease, border-color 200ms ease;
  }

  .field textarea {
    min-height: 10rem;
    resize: vertical;
  }

  /* Fields on a surface band take the page colour so they still read as fields */
  .section--surface .field input,
  .section--surface .field textarea { background: var(--bg); }

  .field input:focus-visible,
  .field textarea:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 0;
    background: var(--paper);
  }

  .field [aria-invalid="true"] { border-bottom: 2px solid var(--error); }

  .field__hint,
  .field__error {
    font-size: var(--step--1);
    line-height: 1.4;
  }

  .field__hint { color: var(--muted); }
  .field__error { color: var(--error); }
  .field__error:empty { display: none; }

  /* Spam trap: kept out of sight and out of the tab order */
  .form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px; /* taste-skill-ignore: off-screen spam trap, not a rule */
    overflow: hidden;
  }

  .form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
  }

  .form__privacy {
    max-width: 34ch;
    font-size: var(--step--1);
    color: var(--muted);
  }

  .form__status { line-height: 1.5; }

  .form__status:empty { display: none; }

  .form__status[data-state="success"] {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    background: var(--field);
    color: var(--field-ink);
  }

  .form__status[data-state="error"] {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--error);
  }

  .turnstile:empty { display: none; }
}

/* ------------------------------------------------------------------ */
/* Motion                                                             */
/* ------------------------------------------------------------------ */

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    /*
     * The logo assembles: the D comes in from the left and the w from the
     * right, locking together. On the homepage it plays as the header's
     * wordmark takes over from the hero title on scroll; on other pages, once
     * on the first page of a visit (main.js sets .mark-intro on the root).
     */
    .mark__d,
    .mark__w { transform-box: view-box; }

    .mark-intro .mark__d { animation: mark-d 1000ms var(--ease-out) 150ms both; }
    .mark-intro .mark__w { animation: mark-w 1000ms var(--ease-out) 150ms both; }

    @keyframes mark-d {
      from { opacity: 0; transform: translateX(-420px); }
    }

    @keyframes mark-w {
      from { opacity: 0; transform: translateX(520px); }
    }

    /*
     * Hero entrance, once on load: each line of the title rises out of its
     * mask, then the rest of the hero follows.
     */
    .hero__line > * { animation: rise 900ms var(--ease-out) both; }
    .hero__line + .hero__line > * { animation-delay: 100ms; }

    .hero__slogan { animation: lift var(--duration) var(--ease-out) 250ms both; }
    .hero__lead { animation: lift var(--duration) var(--ease-out) 350ms both; }
    .hero__actions { animation: lift var(--duration) var(--ease-out) 450ms both; }
    .hero__facts { animation: lift var(--duration) var(--ease-out) 550ms both; }

    .hero__showcase { animation: lift var(--duration) var(--ease-out) 300ms both; }

    /*
     * On the homepage the hero title is the brand: it shrinks away as the
     * page scrolls and the header's wordmark fades in to take over. Tied to
     * scroll position, so it runs off the main thread and needs no script.
     * Browsers without scroll timelines keep the wordmark in place throughout.
     */
    @supports (animation-timeline: scroll()) {
      .hero__title {
        transform-origin: left top;
        animation: title-away linear both;
        animation-timeline: scroll(root);
        animation-range: 0 30svh;
      }

      body:has(.hero) .wordmark {
        animation: wordmark-in linear both;
        animation-timeline: scroll(root);
        animation-range: 18svh 32svh;
      }

      body:has(.hero) .wordmark :is(.mark__d, .mark__w) {
        animation-timeline: scroll(root);
        animation-range: 16svh 34svh;
        animation-fill-mode: both;
        animation-timing-function: var(--ease-out);
      }

      body:has(.hero) .wordmark .mark__d { animation-name: mark-d; }
      body:has(.hero) .wordmark .mark__w { animation-name: mark-w; }

      /* Never invisible while it has keyboard focus */
      body:has(.hero) .wordmark:focus-visible,
      body:has(.hero) .wordmark:focus-visible :is(.mark__d, .mark__w) { animation: none; }

      @keyframes title-away {
        to { transform: translateY(-40%) scale(0.35); opacity: 0; }
      }

      @keyframes wordmark-in {
        from { opacity: 0; transform: translateY(0.5rem); }
      }
    }

    /* Disclosures ease open where the browser can animate to auto height;
       elsewhere they open instantly as before */
    @supports (interpolate-size: allow-keywords) {
      :root { interpolate-size: allow-keywords; }

      .disclosure::details-content {
        block-size: 0;
        overflow: hidden;
        transition:
          block-size 350ms var(--ease-out),
          content-visibility 350ms allow-discrete;
      }

      .disclosure[open]::details-content { block-size: auto; }
    }

    @keyframes rise {
      from { transform: translateY(105%); }
    }

    @keyframes lift {
      from { opacity: 0; transform: translateY(16px); }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* Sample screenshots stay at the top of the page */
    .sample__link:is(:hover, :focus-visible) .sample__frame img { object-position: 50% 0%; }

    .disclosure > summary::after,
    .sample__frame img,
    .sample__phone,
    .slide,
    :is(.plan--starter, .plan--business, .plan--custom),
    .text-link::after,
    .site-nav ul a::after,
    .site-footer nav a::after {
      transition: none;
      animation: none;
    }
  }
}

/*
 * Moving between pages cross-fades instead of flashing blank, and the header
 * holds still. Browsers without cross-page view transitions load as normal.
 */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .site-header { view-transition-name: site-header; }

  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 350ms; }
}

/* ------------------------------------------------------------------ */
/* Breakpoints                                                        */
/* ------------------------------------------------------------------ */

/* Large screens: the hero fills the first screen below the header */
@media (min-width: 60.0625rem) {
  .hero { min-height: calc(100svh - var(--header-height)); }

  /*
   * The timeline turns the corner between its rows: from 05 the line runs
   * out past the last column, drops into the gap between the rows, crosses
   * back to the first column and falls into 06.
   */
  .timeline__step:nth-child(5)::before {
    content: "";
    right: calc(var(--space-2) * -1);
  }

  .timeline__step:nth-child(5)::after {
    content: "";
    position: absolute;
    top: calc(var(--marker) / 2);
    right: calc(var(--space-2) * -1);
    bottom: calc(var(--space-5) / -2);
    border-right: 1px solid var(--field-line);
  }

  .timeline__step:nth-child(6)::after {
    content: "";
    position: absolute;
    top: calc(var(--space-5) / -2);
    left: calc(var(--marker) / 2);
    width: calc(5 * 100% + 4 * var(--timeline-gap) - var(--marker) / 2 + var(--space-2));
    height: calc(var(--space-5) / 2);
    border-top: 1px solid var(--field-line);
    border-left: 1px solid var(--field-line);
  }

  /* Short intros stay in view beside the longer column they introduce */
  .faq__intro,
  .contact__intro {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
  }
}

@media (max-width: 60rem) {
  .hero__copy,
  .hero__showcase { grid-column: 1 / -1; }

  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about,
  .faq,
  .contact,
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }

  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page-intro__top { grid-template-columns: minmax(0, 1fr); }

  .service-cards,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Narrower screens: one column, the line running down past each marker */
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-4);
  }

  .timeline__step { padding-left: calc(var(--marker) + var(--space-3)); }

  .timeline__num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .timeline__step::before,
  .timeline__step:nth-child(5n)::before {
    content: "";
    top: var(--marker);
    bottom: calc(var(--space-4) * -1);
    left: calc(var(--marker) / 2);
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--field-line);
  }

  .timeline__step:last-child::before { content: none; }

  .section--navy .plan--list .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*
 * Navigation collapses before the links run out of room. It's collapsed from
 * the first paint, so the header never jumps when the script arrives;
 * no-js.css, loaded from a noscript tag, lays it out flat again for visitors
 * without JavaScript.
 */
@media (min-width: 70.0625rem) {
  .menu-toggle { display: none; }
}

@media (max-width: 70rem) {
  .site-nav[data-menu] {
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--header-bg);
    border-top: 1px solid var(--line);
  }

  .site-nav[data-menu].is-open { display: flex; }

  .site-nav[data-menu] ul {
    flex-direction: column;
    gap: 0;
    font-size: var(--step-1);
  }

  .site-nav[data-menu] ul a {
    display: block;
    padding-block: 0.625rem;
  }

  .site-nav[data-menu] ul a::after { display: none; }
}

@media (max-width: 48rem) {
  .section--navy .plans { grid-template-columns: minmax(0, 1fr); }


  .section-head { margin-bottom: var(--space-4); }

  .section-head,
  .services,
  .samples,
  .extras,
  .enquiry-prompt,
  .process,
  .project { grid-template-columns: minmax(0, 1fr); }

  /* Stacked, each pair of columns reads as one list */
  :is(.services, .process) > .disclosure-list + .disclosure-list { border-top: 0; }

  .project__title { grid-row: auto; }

  .project__desc,
  .project__meta { grid-column: 1; }
}

@media (max-width: 40rem) {
  .plans { grid-template-columns: minmax(0, 1fr); }

  .service-cards,
  .feature-grid { grid-template-columns: minmax(0, 1fr); }

  .section--navy .plan--list .detail-list { grid-template-columns: minmax(0, 1fr); }

  .section--navy .plan--list .detail-list div:first-child { border-top: 0; }

  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }

  .compare__hint { display: block; }

  .compare-table { min-width: 36rem; }

  .compare-table tbody th { width: 8.5rem; }

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