/* ==========================================================================
   Fujita Digital — design system
   Deep water, white foam, one red ping.
   Type: Mona Sans (variable width + weight). Wide and heavy for display,
   normal width for reading.
   ========================================================================== */

@layer reset, base, layout, components, pages, utilities;

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --water: #1f3be8;        /* brand: deep Pacific blue */
  --water-deep: #142ab8;   /* pressed / darker fields */
  --water-shelf: #2a46ee;  /* shallow-water shelf around the island */
  --water-land: #3d58f2;   /* land drawn on water */
  --night: #0d1640;        /* ink */
  --lehua: #ff5b47;        /* the ping — used only for being found */
  --foam: #ffffff;
  --shoal: #eef1f8;        /* quiet alternate surface */
  --mist: #d7ddec;         /* rules on light */
  --ink-2: #4a5170;        /* secondary text on light (7.8:1 on white) */
  --on-water-2: rgba(255, 255, 255, 0.84); /* secondary text on water (>= 5.9:1) */
  --on-water-line: rgba(255, 255, 255, 0.28);

  /* Type */
  --font: 'Mona Sans', 'Mona Sans Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display-xl: clamp(2.75rem, 1.2rem + 6.6vw, 8rem);
  --display-l: clamp(2.35rem, 1.3rem + 4.4vw, 5.5rem);
  --h2: clamp(1.95rem, 1.35rem + 2.4vw, 3.4rem);
  --h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  --lead: clamp(1.125rem, 1.04rem + 0.38vw, 1.375rem);
  --body: 1.0625rem;
  --small: 0.875rem;

  /* Space */
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1360px;
  --section: clamp(80px, 6rem + 4vw, 168px);
  --block: clamp(40px, 2rem + 2.4vw, 80px);

  /* Shape + motion */
  --pill: 999px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Header height used for scroll offsets */
  --header-h: 76px;
}

/* Mona Sans, self-hosted. Variable in weight and width; the subsets and
   unicode ranges match what Google Fonts serves. Licence: fonts/OFL.txt. */
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('/fonts/mona-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: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('/fonts/mona-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallback so the swap to Mona Sans doesn't shift layout. */
@font-face {
  font-family: 'Mona Sans Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
  ol, ul { padding: 0; }
  img, svg, video, picture { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  [hidden] { display: none !important; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
@layer base {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
    interpolate-size: allow-keywords;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  body {
    background: var(--foam);
    color: var(--night);
    font-family: var(--font);
    font-size: var(--body);
    line-height: 1.6;
    font-stretch: 100%;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
  }

  h1, h2, h3, h4 {
    font-weight: 780;
    font-stretch: 112%;
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  h2 { font-size: var(--h2); }
  h3 { font-size: var(--h3); font-stretch: 106%; font-weight: 680; line-height: 1.15; letter-spacing: -0.012em; }
  h4 { font-size: 1.0625rem; font-stretch: 104%; font-weight: 680; letter-spacing: -0.005em; line-height: 1.3; }

  p, li { text-wrap: pretty; }
  strong { font-weight: 650; }

  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
  a:hover { text-decoration-thickness: 2px; }

  :focus-visible {
    outline: 3px solid var(--night);
    outline-offset: 3px;
    border-radius: 4px;
  }

  ::selection { background: var(--water); color: var(--foam); }
  .field-water :focus-visible, .field-night :focus-visible, .site-footer :focus-visible,
  .panel--water :focus-visible, .package--featured :focus-visible, .receipt__card :focus-visible, .tally :focus-visible,
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) :focus-visible { outline-color: var(--foam); }

  hr { border: 0; border-top: 1px solid var(--mist); margin: var(--block) 0; }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
@layer layout {
  .wrap {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .wrap--narrow { max-width: calc(52rem + var(--gutter) * 2); }

  .section { padding-block: var(--section); }
  .section--tight { padding-block: calc(var(--section) * 0.62); }
  .section--flush-top { padding-top: 0; }

  /* Colour fields */
  .field-water { background: var(--water); color: var(--foam); }
  .field-night { background: var(--night); color: var(--foam); }
  .field-shoal { background: var(--shoal); }

  .grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.2vw, 32px);
  }

  .stack > * + * { margin-top: var(--stack, 1.1em); }

  .measure { max-width: 38rem; }
  .measure-wide { max-width: 48rem; }
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
@layer components {

  /* Skip link ------------------------------------------------------------ */
  .skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    background: var(--night);
    color: var(--foam);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
  }
  .skip-link:focus { top: 12px; }

  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }

  /* Logo ------------------------------------------------------------------
     Two copies of the approved logo share one box: white over the homepage's
     blue hero, full colour on the white header. Only opacity changes, so the
     swap can't shift the layout. */
  .brand-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: none; }
  .brand-logo {
    position: relative;
    display: block;
    height: var(--logo-h, 48px);
    aspect-ratio: 247 / 96;
  }
  .brand-logo__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
  }
  .brand-logo__img--white { opacity: 0; }
  .site-footer .brand-logo__img--white { opacity: 1; }
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) .brand-logo__img--white { opacity: 1; }
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) .brand-logo__img--color { opacity: 0; }
  @media (max-width: 600px) { .site-header .brand-logo { --logo-h: 42px; } }
  @media (prefers-reduced-motion: reduce) { .brand-logo__img { transition: none; } }

  /* Buttons ---------------------------------------------------------------- */
  .btn {
    --btn-bg: var(--water);
    --btn-fg: var(--foam);
    --btn-ring: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    min-height: 54px;
    padding: 0 1.6em;
    border: 2px solid transparent;
    border-radius: var(--pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: inset 0 0 0 1.5px var(--btn-ring);
    font-size: 1rem;
    font-weight: 650;
    font-stretch: 108%;
    letter-spacing: -0.005em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
  }
  .btn:hover { --btn-bg: var(--water-deep); text-decoration: none; }
  .btn:active { transform: translateY(1px); }

  /* The ping inside a primary button. It answers hover with a single ripple. */
  .btn__ping {
    position: relative;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lehua);
  }
  .btn__ping::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--lehua);
    opacity: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .btn:hover .btn__ping::after { animation: ripple 0.9s var(--ease-out); }
  }

  .btn--light { --btn-bg: var(--foam); --btn-fg: var(--night); }
  .btn--light:hover { --btn-bg: #e6eaff; }

  .btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-ring: currentColor; }
  .btn--ghost:hover { --btn-bg: rgba(13, 22, 64, 0.06); }
  .field-water .btn--ghost:hover,
  .field-night .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); }

  .btn--sm { min-height: 44px; padding: 0 1.15em; font-size: 0.9375rem; }
  .btn--lg { min-height: 62px; padding: 0 2em; font-size: 1.0625rem; }

  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

  /* Plain text link with a moving underline */
  .link {
    font-weight: 620;
    font-stretch: 106%;
    color: var(--water);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.28em;
  }
  .field-water .link, .field-night .link { color: var(--foam); }
  .link:hover { text-decoration-thickness: 2.5px; }
  .link svg { display: inline-block; margin-left: 5px; vertical-align: -0.08em; }

  /* Header --------------------------------------------------------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--night);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  }
  .site-header.is-scrolled { border-bottom-color: var(--mist); }
  /* backdrop-filter would make the header the containing block for the
     fixed mobile menu, so it is dropped while the menu is open. */
  .site-header.is-open {
    background: var(--foam);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--mist);
  }

  /* Pages that open on deep water start with a transparent header. */
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--foam);
  }
  .js[data-hero='water'] .site-header { margin-bottom: calc(var(--header-h) * -1); }

  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
  }

  .primary-nav { display: flex; align-items: center; gap: 4px; }
  .primary-nav > a,
  .nav-disclosure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--pill);
    background: none;
    font-size: 0.96875rem;
    font-weight: 560;
    font-stretch: 104%;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  .primary-nav > a:hover,
  .nav-disclosure:hover,
  .nav-disclosure[aria-expanded='true'] { background: rgba(13, 22, 64, 0.07); }
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) .primary-nav > a:hover,
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) .nav-disclosure:hover,
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) .nav-disclosure[aria-expanded='true'] { background: rgba(255, 255, 255, 0.14); }

  .primary-nav > a[aria-current='page'],
  .nav-disclosure.is-current { box-shadow: inset 0 -2px 0 0 currentColor; border-radius: 0; }

  .nav-disclosure svg { transition: transform 0.25s var(--ease-out); }
  .nav-disclosure[aria-expanded='true'] svg { transform: rotate(180deg); }

  .nav-item { position: relative; }

  /* Services panel */
  .services-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    width: min(560px, 80vw);
    padding: 10px;
    border-radius: 20px;
    background: var(--foam);
    color: var(--night);
    box-shadow: 0 0 0 1px rgba(13, 22, 64, 0.08), 0 24px 60px -20px rgba(13, 22, 64, 0.35);
  }
  .services-panel a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
  }
  .services-panel a:hover, .services-panel a[aria-current='page'] { background: var(--shoal); }
  .services-panel strong { font-size: 1.0625rem; font-stretch: 110%; font-weight: 700; }
  .services-panel span { grid-column: 1; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
  .services-panel .panel-all {
    margin-top: 6px;
    border-top: 1px solid var(--mist);
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    color: var(--water);
  }

  .header-cta { display: flex; align-items: center; gap: 8px; }
  .js[data-hero='water'] .site-header:not(.is-scrolled):not(.is-open) .header-cta .btn { --btn-bg: var(--foam); --btn-fg: var(--night); }

  /* Mobile menu */
  .menu-toggle {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: transparent;
  }
  .menu-toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
  }
  .menu-toggle span:nth-child(1) { top: 19px; }
  .menu-toggle span:nth-child(2) { top: 27px; }
  .is-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .is-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    overflow-y: auto;
    padding: 12px var(--gutter) 40px;
    background: var(--foam);
    color: var(--night);
    border-top: 1px solid var(--mist);
  }
  .mobile-menu ul { list-style: none; }
  .mobile-menu .mm-primary a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mist);
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    font-weight: 780;
    font-stretch: 116%;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-decoration: none;
  }
  .mobile-menu .mm-primary a small {
    font-size: 0.875rem;
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: 0;
    color: var(--ink-2);
    text-align: right;
  }
  .mobile-menu .mm-primary a[aria-current='page'] { color: var(--water); }
  .mobile-menu .mm-secondary { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
  .mobile-menu .mm-secondary a { display: inline-block; padding: 10px 0; font-weight: 560; }
  .mobile-menu .btn { width: 100%; margin-top: 28px; }
  .mobile-menu .mm-note { margin-top: 14px; color: var(--ink-2); font-size: var(--small); text-align: center; }

  @media (max-width: 960px) {
    .primary-nav, .header-cta .btn { display: none; }
    .menu-toggle { display: inline-block; }
  }
  @media (min-width: 961px) {
    .mobile-menu { display: none !important; }
  }

  /* Sticky mobile CTA ----------------------------------------------------- */
  .dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 90;
    display: none;
    transform: translateY(140%);
    transition: transform 0.4s var(--ease-out);
  }
  .dock .btn { --btn-bg: var(--night); --btn-fg: var(--foam); width: 100%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35), 0 14px 40px -12px rgba(13, 22, 64, 0.6); }
  .dock.is-visible { transform: none; }
  @media (max-width: 760px) {
    html:has(body.has-dock) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .dock { display: block; }
    body.has-dock { padding-bottom: 84px; }
  }

  /* Section heads -------------------------------------------------------- */
  .section-head { display: grid; gap: 20px; margin-bottom: var(--block); }
  .section-head p { color: var(--ink-2); font-size: var(--lead); line-height: 1.5; max-width: 40rem; }
  .field-water .section-head p, .field-night .section-head p { color: var(--on-water-2); }
  .section-head--split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.2vw, 32px);
    align-items: end;
  }
  .section-head--split > :first-child { grid-column: 1 / span 7; }
  .section-head--split > :last-child { grid-column: 8 / -1; }
  @media (max-width: 900px) {
    .section-head--split > :first-child, .section-head--split > :last-child { grid-column: 1 / -1; }
  }

  .display-l {
    font-size: var(--display-l);
    font-weight: 820;
    font-stretch: 118%;
    letter-spacing: -0.04em;
    line-height: 0.96;
  }

  .lead { font-size: var(--lead); line-height: 1.5; }
  .muted { color: var(--ink-2); }
  .field-water .muted, .field-night .muted { color: var(--on-water-2); }

  /* Ping (map pins, list markers, status) ---------------------------------- */
  .ping {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lehua);
    box-shadow: 0 0 0 3px rgba(255, 91, 71, 0.22);
    vertical-align: middle;
  }

  /* Ticked list ----------------------------------------------------------- */
  .ticks { list-style: none; display: grid; gap: 12px; }
  .ticks li { position: relative; padding-left: 30px; }
  .ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  }
  .field-water .ticks li::before { background-color: var(--foam); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231f3be8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

  /* Journey (Found → Chosen → Booked) ------------------------------------ */
  .journey { list-style: none; display: grid; gap: 0; counter-reset: stage; }
  .stage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.2vw, 32px);
    row-gap: 24px;
    padding-block: clamp(36px, 4vw, 64px);
    border-top: 1px solid var(--mist);
    align-items: start;
  }
  .stage:last-child { border-bottom: 1px solid var(--mist); }
  .stage__word {
    grid-column: 1 / span 5;
    font-size: clamp(3rem, 1.6rem + 5.4vw, 7.25rem);
    font-weight: 860;
    font-stretch: 125%;
    letter-spacing: -0.05em;
    line-height: 0.86;
  }
  .stage__word small {
    display: block;
    margin-bottom: 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-stretch: 104%;
    letter-spacing: 0;
    color: var(--water);
  }
  .stage__body { grid-column: 7 / span 6; display: grid; gap: 18px; }
  .stage__body h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); }
  .stage__body > p { color: var(--ink-2); font-size: 1.0625rem; }
  .stage__services { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
  .stage__services a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--pill);
    background: var(--shoal);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }
  .stage__services a:hover { background: var(--water); color: var(--foam); }
  .field-shoal .stage__services a { background: var(--foam); box-shadow: inset 0 0 0 1px var(--mist); gap: 8px; color: var(--water); }
  .field-shoal .stage__services a:hover { background: var(--water); color: var(--foam); box-shadow: none; }
  @media (max-width: 900px) {
    .stage__word, .stage__body { grid-column: 1 / -1; }
  }

  /* Project showcase ------------------------------------------------------ */
  .project {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.2vw, 32px);
    row-gap: 28px;
    align-items: center;
  }
  .project + .project { margin-top: clamp(72px, 9vw, 150px); }
  .project__media { grid-column: 1 / span 8; position: relative; }
  .project__info { grid-column: 9 / -1; display: grid; gap: 16px; align-content: start; }
  .project:nth-child(even) .project__media { grid-column: 5 / -1; order: 2; }
  .project:nth-child(even) .project__info { grid-column: 1 / span 4; order: 1; }
  .project__name {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
    font-weight: 840;
    font-stretch: 120%;
    letter-spacing: -0.045em;
    line-height: 0.95;
  }
  .project__meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
  .project__meta li {
    padding: 6px 12px;
    border-radius: var(--pill);
    background: var(--shoal);
    font-size: 0.875rem;
    font-weight: 560;
  }
  .field-water .project__meta li { background: rgba(255, 255, 255, 0.12); }
  .project__info p { color: var(--ink-2); }
  .field-water .project__info p { color: var(--on-water-2); }
  @media (max-width: 900px) {
    .project__media, .project__info,
    .project:nth-child(even) .project__media,
    .project:nth-child(even) .project__info { grid-column: 1 / -1; order: initial; }
  }

  /* Device frames: a browser window with a phone laid over its corner. */
  .devices { position: relative; padding-bottom: 6%; padding-right: 9%; }
  .browser {
    overflow: hidden;
    border-radius: 14px;
    background: var(--foam);
    box-shadow: 0 0 0 1px rgba(13, 22, 64, 0.1), 0 40px 80px -40px rgba(13, 22, 64, 0.5);
  }
  .browser__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: #f1f3f9;
    border-bottom: 1px solid #e2e6f0;
  }
  .browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e6; }
  .browser__bar span {
    margin-left: 12px;
    padding: 3px 14px;
    border-radius: var(--pill);
    background: var(--foam);
    color: var(--ink-2);
    font-size: 0.75rem;
    font-weight: 500;
    font-style: normal;
  }
  .browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
  .phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24%;
    padding: 6px;
    border-radius: 26px;
    background: var(--night);
    box-shadow: 0 30px 60px -24px rgba(13, 22, 64, 0.6);
  }
  .phone img { width: 100%; border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
  .project__media a { display: block; text-decoration: none; }
  @media (prefers-reduced-motion: no-preference) {
    .project__media .browser, .project__media .phone { transition: transform 0.6s var(--ease-out); }
    .project__media a:hover .browser { transform: translateY(-6px); }
    .project__media a:hover .phone { transform: translateY(-14px) rotate(-1.5deg); }
  }

  /* Statement band -------------------------------------------------------- */
  .statement {
    font-size: var(--display-l);
    font-weight: 820;
    font-stretch: 120%;
    letter-spacing: -0.045em;
    line-height: 0.98;
    max-width: 16ch;
  }

  /* Reasons (why us) ------------------------------------------------------ */
  .reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 72px); list-style: none; }
  .reason { padding-block: 28px 32px; border-top: 1px solid var(--on-water-line); display: grid; gap: 10px; }
  .field-shoal .reason, .reason--light { border-top-color: var(--mist); }
  .reason h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); }
  .reason p { color: var(--on-water-2); }
  .field-shoal .reason p, .reason--light p { color: var(--ink-2); }
  @media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

  /* Process --------------------------------------------------------------- */
  .process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
  .process li { position: relative; padding: 46px 28px 0 0; counter-increment: step; display: grid; gap: 10px; align-content: start; }
  .process li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--water);
    color: var(--foam);
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 1;
  }
  .process li::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 30px;
    right: 0;
    height: 2px;
    background: var(--mist);
  }
  .process li:last-child::after { display: none; }
  .process h3 { font-size: 1.3rem; }
  .process p { color: var(--ink-2); font-size: 1rem; }
  .process .when { font-size: 0.875rem; font-weight: 600; color: var(--water); }
  @media (max-width: 900px) {
    .process { grid-template-columns: 1fr; gap: 0; }
    .process li { padding: 0 0 36px 54px; }
    .process li::after { top: 30px; bottom: 0; left: 14px; right: auto; width: 2px; height: auto; }
  }

  /* FAQ --------------------------------------------------------------------- */
  .faq { border-top: 1px solid var(--mist); }
  .faq details { border-bottom: 1px solid var(--mist); }
  .faq summary {
    position: relative;
    display: block;
    padding: 24px 56px 24px 0;
    list-style: none;
    cursor: pointer;
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.35rem);
    font-weight: 660;
    font-stretch: 106%;
    letter-spacing: -0.012em;
    line-height: 1.3;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--shoal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M12 18h12M18 12v12' stroke='%230d1640' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 36px no-repeat;
    transition: transform 0.3s var(--ease-out), background-color 0.2s;
  }
  .faq details[open] summary::after { transform: rotate(45deg); background-color: var(--water); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M12 18h12M18 12v12' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .faq summary:hover::after { background-color: var(--mist); }
  .field-shoal .faq summary::after { background-color: var(--foam); }
  .faq details[open] summary:hover::after { background-color: var(--water-deep); }
  .faq .answer { padding: 0 56px 28px 0; color: var(--ink-2); max-width: 46rem; }
  .faq .answer > * + * { margin-top: 0.8em; }
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* Closing CTA ------------------------------------------------------------ */
  .closer { position: relative; overflow: hidden; }
  .closer__inner { position: relative; z-index: 1; display: grid; gap: 28px; }
  .closer__title {
    font-size: clamp(2.6rem, 1.2rem + 5vw, 6.5rem);
    font-weight: 880;
    font-stretch: 125%;
    letter-spacing: -0.055em;
    line-height: 0.88;
    max-width: 14ch;
  }
  .closer__sub { max-width: 34rem; font-size: var(--lead); color: var(--on-water-2); }
  .closer__rings {
    position: absolute;
    right: -22vw;
    top: 50%;
    transform: translateY(-35%);
    width: 70vw;
    max-width: 1100px;
    aspect-ratio: 1;
    pointer-events: none;
  }
  .closer__rings circle { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.2; }
  .closer__rings .core { fill: var(--lehua); stroke: none; }
  .closer__email { color: var(--on-water-2); }
  .closer__email a { color: var(--foam); font-weight: 600; }

  /* Footer ---------------------------------------------------------------- */
  .site-footer { background: var(--night); color: var(--foam); padding-block: 72px 36px; }
  .footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 40px; }
  .footer-brand { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
  .footer-brand .brand-logo { --logo-h: 56px; }
  .footer-brand p { color: rgba(255, 255, 255, 0.78); max-width: 26rem; }
  .footer-col { grid-column: span 2; }
  .footer-col h2 { font-size: 0.875rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: rgba(255, 255, 255, 0.72); margin-bottom: 14px; }
  .footer-col ul { list-style: none; display: grid; gap: 4px; }
  .footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 500; }
  .footer-col a:hover { text-decoration: underline; }
  .footer-contact { grid-column: span 3; }
  .footer-contact a { word-break: break-word; }
  .footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--small);
  }
  .footer-base nav { display: flex; gap: 20px; }
  .footer-base a { color: inherit; }
  @media (max-width: 1000px) {
    .footer-brand { grid-column: 1 / -1; }
    .footer-col, .footer-contact { grid-column: span 4; }
  }
  @media (max-width: 620px) {
    .footer-col, .footer-contact { grid-column: span 6; }
    .footer-contact { grid-column: 1 / -1; }
  }

  /* Page hero (inner pages) ------------------------------------------------ */
  .page-hero { padding-block: clamp(56px, 4rem + 4vw, 136px) clamp(56px, 3rem + 3vw, 104px); }
  .page-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 40px; align-items: end; }
  .page-hero__text { grid-column: 1 / span 7; display: grid; gap: 24px; }
  .page-hero__art { grid-column: 8 / -1; }
  .page-hero h1 {
    font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem);
    font-weight: 840;
    font-stretch: 120%;
    letter-spacing: -0.045em;
    line-height: 0.94;
  }
  .page-hero .lead { color: var(--ink-2); max-width: 36rem; }
  .h1-kicker {
    display: block;
    margin-bottom: 18px;
    font-size: clamp(0.9375rem, 0.88rem + 0.2vw, 1.0625rem);
    font-weight: 600;
    font-stretch: 104%;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--water);
  }
  .field-water.page-hero .lead { color: var(--on-water-2); }
  .page-hero--solo .page-hero__text { grid-column: 1 / span 9; }
  @media (max-width: 900px) {
    .page-hero__text, .page-hero__art, .page-hero--solo .page-hero__text { grid-column: 1 / -1; }
  }

  .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: var(--small); font-weight: 560; }
  .breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
  .breadcrumb a { text-decoration: none; opacity: 0.8; }
  .breadcrumb a:hover { text-decoration: underline; opacity: 1; }

  /* Feature grid (what's included) ----------------------------------------- */
  .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); list-style: none; }
  .feature { padding-block: 26px 30px; border-top: 2px solid var(--night); display: grid; gap: 10px; align-content: start; }
  .feature h3 { font-size: 1.25rem; font-stretch: 108%; }
  .feature p { color: var(--ink-2); font-size: 1rem; }
  .field-water .feature { border-top-color: var(--foam); }
  .field-water .feature p { color: var(--on-water-2); }
  @media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

  /* Split block (text beside graphic) -------------------------------------- */
  .split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 40px; align-items: center; }
  .split__text { grid-column: 1 / span 6; display: grid; gap: 20px; }
  .split__art { grid-column: 8 / -1; }
  .split--flip .split__text { grid-column: 7 / -1; order: 2; }
  .split--flip .split__art { grid-column: 1 / span 5; order: 1; }
  .split__text > p { color: var(--ink-2); }
  .field-water .split__text > p, .field-night .split__text > p { color: var(--on-water-2); }
  @media (max-width: 900px) {
    .split__text, .split__art, .split--flip .split__text, .split--flip .split__art { grid-column: 1 / -1; order: initial; }
  }

  /* Comparison table -------------------------------------------------------- */
  .compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
  .compare th, .compare td { padding: 18px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mist); }
  .compare thead th { font-size: 0.9375rem; font-weight: 650; color: var(--ink-2); border-bottom: 2px solid var(--night); }
  .compare tbody th { font-weight: 620; width: 30%; }
  .compare td:last-child { color: var(--night); font-weight: 560; }
  .compare td:nth-child(2) { color: var(--ink-2); }
  @media (max-width: 700px) {
    .compare thead { display: none; }
    .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
    .compare tr { padding: 18px 0; border-bottom: 1px solid var(--mist); }
    .compare th, .compare td { padding: 4px 0; border: 0; }
    .compare tbody th { width: 100%; }
    .compare td::before { content: attr(data-label) ': ' / ''; font-weight: 650; color: var(--night); }
  }

  /* Packages ---------------------------------------------------------------- */
  .packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; align-items: stretch; }
  .package {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 18px;
    padding: clamp(26px, 2.6vw, 40px);
    border-radius: 24px;
    background: var(--foam);
    box-shadow: inset 0 0 0 1px var(--mist);
  }
  .package--featured { background: var(--water); color: var(--foam); box-shadow: 0 40px 80px -36px rgba(13, 22, 64, 0.55); }
  @media (min-width: 961px) { .package--featured { transform: translateY(-14px); } }
  .package__flag {
    position: absolute;
    top: -14px;
    left: clamp(26px, 2.6vw, 40px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: var(--pill);
    background: var(--night);
    color: var(--foam);
    font-size: 0.8125rem;
    font-weight: 620;
  }
  .package h3 { font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.9rem); font-stretch: 118%; font-weight: 820; letter-spacing: -0.035em; }
  .package__for { color: var(--ink-2); }
  .package--featured .package__for { color: var(--on-water-2); }
  .package .ticks { gap: 10px; font-size: 1rem; }
  .package--featured .ticks li::before { background-color: var(--foam); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231f3be8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .package .btn { width: 100%; }
  @media (max-width: 960px) { .packages { grid-template-columns: 1fr; max-width: 560px; } }

  /* Founder note ------------------------------------------------------------ */
  .note {
    position: relative;
    display: grid;
    gap: 22px;
    max-width: 46rem;
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
    line-height: 1.45;
    font-weight: 450;
    letter-spacing: -0.01em;
  }
  .note__sign { display: flex; align-items: center; gap: 14px; font-size: 1rem; line-height: 1.35; }
  .note__sign strong { display: block; font-size: 1.0625rem; }
  .note__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
  .note__monogram {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--water);
    color: var(--foam);
    font-weight: 800;
    font-stretch: 120%;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
  }

  /* Forms ------------------------------------------------------------------- */
  .form { display: grid; gap: 28px; }
  .form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
  .form legend, .field label { font-weight: 620; font-size: 1rem; padding: 0; margin-bottom: 4px; }
  .form legend .muted, .field label .muted { font-weight: 450; }
  .field { display: grid; gap: 8px; align-content: start; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
  .input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1.5px solid #8089a8;
    border-radius: 12px;
    background: var(--foam);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  textarea.input { min-height: 140px; resize: vertical; }
  select.input { appearance: none; padding-right: 44px; background: var(--foam) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230d1640' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
  .input:hover { border-color: var(--ink-2); }
  .input::placeholder { color: var(--ink-2); opacity: 1; }
  .input:focus { outline: 2px solid transparent; outline-offset: 0; border-color: var(--water); box-shadow: 0 0 0 4px rgba(31, 59, 232, 0.18); }
  .input:user-invalid { border-color: #c4321f; }
  .field .error { display: none; color: #b42a18; font-size: 0.9375rem; font-weight: 520; }
  .field:has(.input:user-invalid) .error { display: block; }
  .hint { color: var(--ink-2); font-size: 0.9375rem; }

  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { position: relative; }
  .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .chip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--pill);
    border: 1.5px solid #8089a8;
    background: var(--foam);
    font-size: 0.96875rem;
    font-weight: 540;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
  }
  .chip span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.5;
    transition: background-color 0.15s, opacity 0.15s;
  }
  .chip span:hover { border-color: var(--ink-2); }
  @media (forced-colors: active) {
    .chip input:checked + span { border: 3px solid Highlight; }
    .chip input:checked + span::before { forced-color-adjust: none; background: Highlight; }
  }
  .chip input:checked + span { background: var(--night); border-color: var(--night); color: var(--foam); }
  .chip input:checked + span::before { background: var(--foam); border-color: var(--foam); opacity: 1; }
  .chip input:focus-visible + span { outline: 3px solid var(--night); outline-offset: 3px; }

  .form-foot { display: grid; gap: 14px; }
  .form-foot .hint a { color: inherit; }
  @media (min-width: 641px) { .form-foot .btn { justify-self: start; } }
  .hp { position: absolute; left: -9999px; }

  /* Booking ----------------------------------------------------------------- */
  .booking-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--foam);
    box-shadow: inset 0 0 0 1px var(--mist);
    min-height: 720px;
  }
  .booking-frame .calendly-inline-widget { min-width: 300px; height: 720px; }
  .booking-fallback { display: grid; place-items: center; min-height: 720px; padding: 40px; text-align: center; }
  .booking-fallback > div { display: grid; gap: 14px; max-width: 26rem; justify-items: center; }
  .booking-fallback.is-overlay { position: absolute; inset: 0; background: var(--foam); }

  .choice-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--shoal); }
  .choice-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--pill);
    font-weight: 600;
    text-decoration: none;
  }
  .choice-tabs a:hover { background: var(--foam); }

  /* Prose (legal pages) ----------------------------------------------------- */
  .prose { max-width: 44rem; }
  .prose > * + * { margin-top: 1em; }
  .prose h2 { font-size: 1.6rem; margin-top: 2em; }
  .prose ul { padding-left: 1.2em; }
  .prose li + li { margin-top: 0.4em; }
  .prose a { color: var(--water); font-weight: 560; }
  .prose .draft-note { padding: 14px 18px; border-radius: 12px; background: var(--shoal); color: var(--ink-2); font-size: 0.9375rem; }

  /* Stat / proof row --------------------------------------------------------- */
  .proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px clamp(20px, 3vw, 48px); list-style: none; }
  .proof li { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--on-water-line); align-content: start; }
  .field-shoal .proof li, .proof--light li { border-top-color: var(--mist); }
  .proof b { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); font-weight: 840; font-stretch: 122%; letter-spacing: -0.05em; line-height: 1; }
  .proof span { color: var(--on-water-2); font-size: 1rem; }
  .field-shoal .proof span, .proof--light span { color: var(--ink-2); }
  .proof small { display: block; margin-top: 4px; font-size: 0.8125rem; opacity: 0.85; }
  @media (max-width: 760px) { .proof { grid-template-columns: 1fr; gap: 8px; } }

  /* Industry list ------------------------------------------------------------ */
  .industries { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
  .industries li {
    padding: 10px 18px;
    border-radius: var(--pill);
    background: var(--foam);
    box-shadow: inset 0 0 0 1px var(--mist);
    font-weight: 560;
  }
  .field-water .industries li { background: transparent; box-shadow: inset 0 0 0 1px var(--on-water-line); }

  /* Diagrams (service illustrations) --------------------------------------- */
  .diagram { width: 100%; height: auto; overflow: visible; }
  .diagram text { font-family: var(--font); }
}

/* --------------------------------------------------------------------------
   Home hero — Oʻahu, searching
   -------------------------------------------------------------------------- */
@layer pages {
  .hero {
    position: relative;
    overflow: clip;
    padding-top: calc(var(--header-h) + clamp(20px, 3.2vw, 48px));
    padding-bottom: clamp(48px, 6vw, 96px);
  }
  .hero__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.2vw, 32px);
    align-items: center;
    min-height: min(78svh, 860px);
  }
  .hero__text { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 2; display: grid; gap: clamp(18px, 2vw, 28px); }
  .hero__title {
    font-size: min(var(--display-xl), 11svh);
    font-weight: 880;
    font-stretch: 125%;
    letter-spacing: -0.052em;
    line-height: 0.88;
    max-width: 9.5ch;
  }
  .hero__title .line { display: block; }
  .hero__sub { max-width: 35rem; font-size: var(--lead); line-height: 1.5; color: var(--on-water-2); }
  .hero__sub strong { color: var(--foam); font-weight: 600; }
  .hero__reassure { display: block; color: var(--on-water-2); font-size: 0.9375rem; }

  .hero__map { grid-column: 6 / -1; grid-row: 1; position: relative; margin-right: calc(var(--gutter) * -0.6); }

  @media (max-width: 1100px) {
    .hero__text { grid-column: 1 / span 8; }
    .hero__map { grid-column: 5 / -1; }
  }
  @media (max-width: 860px) {
    .hero__grid { min-height: 0; row-gap: 12px; }
    .hero__text { grid-column: 1 / -1; grid-row: auto; }
    .hero__map { grid-column: 1 / -1; grid-row: auto; width: min(100% + var(--gutter), 680px); margin: 8px calc(var(--gutter) * -1) 0 auto; }
    .hero__title { max-width: 11ch; font-stretch: 112%; font-size: clamp(2.75rem, 11.5vw, 6.25rem); }
  }

  /* The map */
  .islands { position: relative; width: 100%; }
  .islands > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .islands .shelf-2 { fill: none; stroke: var(--water-shelf); stroke-width: 26; stroke-linejoin: round; opacity: 0.55; }
  .islands .shelf-1 { fill: none; stroke: #3450f0; stroke-width: 10; stroke-linejoin: round; opacity: 0.7; }
  .islands .land { fill: var(--water-land); stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.2; stroke-linejoin: round; }
  .islands .place { fill: rgba(255, 255, 255, 0.7); font-size: 17px; font-weight: 520; font-stretch: 104%; letter-spacing: 0.01em; }

  /* Search pins: a ping on the island and the query typed beside it. */
  .pin {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: 0;
    height: 0;
  }
  .pin__dot {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lehua);
    box-shadow: 0 0 0 3px var(--foam);
  }
  .pin__dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--foam);
    opacity: 0;
  }
  .pin__query {
    position: absolute;
    bottom: 18px;
    left: -24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px 10px 13px;
    border-radius: var(--pill);
    background: var(--foam);
    color: var(--night);
    font-size: clamp(0.8125rem, 0.74rem + 0.25vw, 0.96875rem);
    font-weight: 520;
    line-height: 1;
    white-space: nowrap;
    width: max-content;
    box-shadow: 0 16px 34px -16px rgba(5, 12, 60, 0.6);
  }
  .pin__query::after {
    content: '';
    position: absolute;
    left: 18px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: var(--foam);
    transform: rotate(45deg);
    border-radius: 2px;
  }
  .pin--right .pin__query { left: auto; right: -24px; }
  .pin--right .pin__query::after { left: auto; right: 18px; }
  .pin__query svg { flex: none; width: 15px; height: 15px; color: var(--water); }
  .pin__text { display: inline-block; }
  .pin__caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--water); vertical-align: -0.15em; opacity: 0; }

  /* Choreography: pins land one after another, each query types itself out.
     Runs once on load; reduced-motion users see the finished state. */
  @media (prefers-reduced-motion: no-preference) {
    .js .islands .land, .js .islands .shelf-1, .js .islands .shelf-2 { animation: rise 1.1s var(--ease-out) both; }
    .js .islands .shelf-1 { animation-delay: 0.08s; }
    .js .islands .shelf-2 { animation-delay: 0.16s; }
    .js .pin { --d: calc(0.9s + var(--i) * 0.75s); }
    .js .pin__dot { animation: drop 0.55s var(--ease-out) var(--d) both; }
    .js .pin__dot::after { animation: ripple 1.4s var(--ease-out) calc(var(--d) + 0.25s) 2; }
    .js .pin__query { animation: pop 0.45s var(--ease-out) calc(var(--d) + 0.1s) both; transform-origin: 24px 100%; }
    .js .pin--right .pin__query { transform-origin: calc(100% - 24px) 100%; }
    /* Fully visible at rest; the animation only hides it during the delay
       (fill backwards) and while typing, so it can never end short. */
    .js .pin__text {
      animation: type calc(var(--len) * 0.05s) steps(var(--len), end) calc(var(--d) + 0.35s) backwards;
    }
    .js .pin__caret { animation: caret 0.45s steps(1) calc(var(--d) + 0.35s + var(--len) * 0.05s) 6 alternate; }

    .js .hero__title .line { animation: headline 1s var(--ease-out) both; }
    .js .hero__title .line:nth-child(2) { animation-delay: 0.08s; }
    .js .hero__title .line:nth-child(3) { animation-delay: 0.16s; }
    .js .hero__title .line:nth-child(4) { animation-delay: 0.24s; }
    .js .hero__sub, .js .hero .actions, .js .hero__reassure { animation: fade 0.9s var(--ease-out) 0.35s both; }
  }

  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes drop { from { opacity: 0; transform: translateY(-16px) scale(0.6); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes caret { 0% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes ripple { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
  @keyframes headline { from { opacity: 0; transform: translateY(0.25em); font-stretch: 100%; } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  @media (max-width: 600px) {
    .hero__map { width: auto; margin: 8px calc(var(--gutter) * -1) 0; }
    .pin--hide-sm { display: none; }
    .islands .place { font-size: 30px; }
    .islands .place--minor { display: none; }
  }

  /* Home: "what changes" strip under the hero */
  .marquee-note { border-top: 1px solid var(--on-water-line); padding-top: 20px; margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-water-2); font-size: 0.9375rem; }
  .marquee-note span { display: inline-flex; align-items: center; gap: 10px; }

  /* Contact page */
  .contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 48px; align-items: start; }
  .contact-main { grid-column: 1 / span 7; }
  .contact-side { grid-column: 9 / -1; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
  @media (max-width: 960px) {
    .contact-main, .contact-side { grid-column: 1 / -1; position: static; }
  }
  .next-steps { list-style: none; display: grid; gap: 18px; counter-reset: n; }
  .next-steps li { position: relative; padding-left: 44px; counter-increment: n; }
  .next-steps li::before {
    content: counter(n);
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--water);
    color: var(--foam);
    font-size: 0.8125rem;
    font-weight: 700;
  }
  .next-steps strong { display: block; }
  .next-steps span { color: var(--ink-2); font-size: 0.96875rem; }

  .panel { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--shoal); }
  .panel--water { background: var(--water); color: var(--foam); }

  /* 404 */
  .lost { min-height: 70svh; display: grid; align-items: center; }
}

/* --------------------------------------------------------------------------
   Illustrations, timeline, contact, 404
   -------------------------------------------------------------------------- */
@layer components {
  .wordmark-link { display: inline-flex; min-height: 44px; align-items: center; }

  .split--top { align-items: start; }
  @media (min-width: 901px) {
    .split--top > .split__text:not(.split__text--wide) { position: sticky; top: calc(var(--header-h) + 32px); }
  }
  .reasons > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* SEO proof band: stacked, number beside caption, number as the anchor. */
  .split--proof .split__art { grid-column: 7 / -1; }
  .split--proof .proof { grid-template-columns: 1fr; }
  .split--proof .proof li { grid-template-columns: auto 1fr; align-items: end; column-gap: 24px; }
  .split--proof .proof b { font-size: var(--display-l); }
  .split--proof .proof small { grid-column: 2; }
  @media (max-width: 900px) { .split--proof .split__art { grid-column: 1 / -1; } }

  .reasons--single { grid-template-columns: 1fr; }

  .note blockquote { margin: 0; }
  .note .link { font-size: 1.0625rem; }
  .note blockquote p + p { margin-top: 0.9em; }

  .h3-size { font-size: var(--h3); font-stretch: 106%; font-weight: 680; line-height: 1.15; letter-spacing: -0.012em; }

  /* Illustrations ---------------------------------------------------------- */
  .art { margin: 0; }
  .anatomy-notes { display: none; }
  @media (max-width: 600px) {
    .art--anatomy { overflow: hidden; }
    .art--anatomy .diagram { width: 165%; max-width: none; }
    .art--anatomy .anatomy-labels { display: none; }
    .anatomy-notes { display: grid; gap: 8px; margin-top: 18px; padding-left: 1.2em; color: var(--ink-2); font-size: 0.9375rem; }
  }
  .split__text--wide { grid-column: 1 / span 7; }
  @media (max-width: 900px) { .split__text--wide { grid-column: 1 / -1; } }
  .studio-map .sm-shelf { fill: none; stroke: var(--shoal); stroke-width: 56; stroke-linejoin: round; }
  .studio-map .sm-land { fill: #e3e8f5; stroke: #c3cbe0; stroke-width: 2; stroke-linejoin: round; }
  .studio-map .sm-ring { fill: none; stroke: var(--lehua); stroke-width: 3; opacity: 0.3; }
  .studio-map .sm-ping { fill: var(--lehua); stroke: var(--foam); stroke-width: 5; }
  .studio-map .sm-label { fill: var(--night); font-size: 30px; font-weight: 700; font-stretch: 110%; }
  .art__cap { margin-top: 14px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; max-width: 34rem; }

  /* Local search results mock */
  .serp {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: var(--foam);
    box-shadow: 0 0 0 1px var(--mist), 0 40px 80px -40px rgba(13, 22, 64, 0.45);
    font-size: 0.9375rem;
  }
  .serp__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--pill);
    background: var(--shoal);
    font-weight: 520;
  }
  .serp__bar svg { width: 16px; height: 16px; color: var(--water); }
  .serp__map { overflow: hidden; border-radius: 14px; background: #edf1fa; }
  .serp__map svg { width: 100%; height: auto; }
  .serp__list { list-style: none; display: grid; gap: 4px; }
  .serp__list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--ink-2);
    font-size: 0.875rem;
  }
  .serp__list b { color: var(--night); font-size: 1rem; font-weight: 650; }
  .serp__list .stars { grid-row: 1; grid-column: 2; color: var(--night); letter-spacing: 1px; }
  .serp__list .stars.dim { color: #b7bfd6; }
  .serp__list .is-you { background: #eef1ff; box-shadow: inset 0 0 0 1.5px var(--water); }
  .serp__actions { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 8px; }
  .serp__actions i {
    font-style: normal;
    padding: 5px 12px;
    border-radius: var(--pill);
    background: var(--foam);
    box-shadow: inset 0 0 0 1px var(--mist);
    color: var(--water);
    font-size: 0.8125rem;
    font-weight: 600;
  }
  .serp__ai { padding: 14px 16px; border-radius: 14px; background: var(--night); color: var(--foam); }
  .serp__ai strong { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 650; color: rgba(255, 255, 255, 0.8); }
  .serp__ai strong::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lehua); }
  .serp__ai p { margin-top: 6px; line-height: 1.45; }
  .serp__ai u { text-decoration-color: var(--lehua); text-decoration-thickness: 2px; text-underline-offset: 3px; }

  /* Automation timeline */
  .timeline { list-style: none; display: grid; gap: 4px; position: relative; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: var(--mist);
  }
  .timeline li {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 'dot time' 'dot body' 'dot tag';
    column-gap: 18px;
    row-gap: 2px;
    padding: 14px 0;
  }
  .timeline li::before {
    content: '';
    grid-area: dot;
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10.5 16.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px no-repeat;
    box-shadow: 0 0 0 5px var(--foam);
  }
  .timeline li:first-child::before { background: var(--night); box-shadow: 0 0 0 5px var(--foam), 0 0 0 10px rgba(13, 22, 64, 0.12); }
  .timeline .timeline__time { grid-area: time; font-size: 0.8125rem; font-weight: 650; color: var(--water); }
  .timeline div { grid-area: body; display: grid; gap: 2px; }
  .timeline strong { font-size: 1.0625rem; font-weight: 650; font-stretch: 104%; line-height: 1.3; }
  .timeline span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
  .timeline em {
    grid-area: tag;
    justify-self: start;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: var(--pill);
    background: var(--shoal);
    color: var(--water);
    font-size: 0.75rem;
    font-weight: 650;
    font-style: normal;
  }
  .timeline em.is-human { color: var(--ink-2); }
  @media (prefers-reduced-motion: no-preference) {
    .timeline.will-reveal li { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i) * 0.45s); }
    .timeline.will-reveal.is-in li { opacity: 1; transform: none; }
  }

  /* Process on water ------------------------------------------------------- */
  .field-water .process li::before { background: var(--foam); color: var(--water); }
  .field-water .process li::after { background: var(--on-water-line); }
  .field-water .process p { color: var(--on-water-2); }
  .field-water .process .when { color: var(--foam); opacity: 0.85; }

  /* Live speed reason */
  .speed b { color: var(--foam); font-weight: 700; font-variant-numeric: tabular-nums; }

  /* Contact ------------------------------------------------------------------ */
  .page-hero--contact h1 {
    font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.75rem);
    font-weight: 860;
    font-stretch: 122%;
    letter-spacing: -0.05em;
    line-height: 0.9;
    max-width: 12ch;
  }
  .contact-email { display: inline-flex; align-items: center; gap: 10px; color: var(--foam); font-weight: 620; word-break: break-all; }
  .panel h3 { font-size: 1.25rem; }

  /* 404 and thanks */
  .lost h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); font-weight: 840; font-stretch: 120%; letter-spacing: -0.045em; line-height: 0.94; max-width: 14ch; }
  .lost__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
  .lost__art { width: 100%; max-width: 420px; justify-self: end; }
  @media (max-width: 860px) {
    .lost__grid { grid-template-columns: 1fr; }
    .lost__art { max-width: 280px; justify-self: start; }
  }
}

@layer pages {
  .hero__kicker {
    display: block;
    margin-bottom: clamp(12px, 1.2vw, 18px);
    font-size: clamp(0.9375rem, 0.88rem + 0.2vw, 1.0625rem);
    font-weight: 560;
    font-stretch: 104%;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--on-water-2);
  }
  .hero__title { display: block; }
}

/* --------------------------------------------------------------------------
   Guides and case studies
   -------------------------------------------------------------------------- */
@layer pages {
  .article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 40px; align-items: start; }
  .article__aside { grid-column: 1 / span 4; display: grid; gap: 32px; position: sticky; top: calc(var(--header-h) + 32px); }
  .article__body { grid-column: 6 / -1; max-width: 46rem; }
  @media (max-width: 960px) {
    .article__aside, .article__body { grid-column: 1 / -1; position: static; }
  }
  .article__body > section + section { margin-top: 2.6em; }
  .article__body h2 { margin-top: 0; }
  .article__body h3 { font-size: 1.2rem; margin-top: 1.6em; }
  .article__body > section > * + * { margin-top: 1em; }
  .article__body code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--shoal); }
  .article__end { margin-top: 3em; padding-top: 28px; border-top: 2px solid var(--night); display: grid; gap: 16px; }

  .byline { display: flex; align-items: center; gap: 14px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
  .byline strong { display: block; color: var(--night); font-size: 1rem; }
  .byline a { color: inherit; }

  .toc { padding: 22px 24px; border-radius: var(--radius); background: var(--shoal); }
  .toc h2 { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
  .toc ol { margin-top: 12px; padding-left: 1.3em; display: grid; gap: 8px; font-size: 0.9375rem; }
  .toc a { color: var(--night); text-decoration-color: var(--mist); text-underline-offset: 3px; }
  .toc a:hover { text-decoration-color: currentColor; }
  @media (max-width: 960px) { .toc ol { gap: 4px; } .toc a { display: inline-block; padding-block: 6px; } }

  .checklist { list-style: none; padding: 0 !important; display: grid; gap: 4px; }
  .prose .checklist li + li { margin-top: 0; }
  .checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--mist); }
  .checklist input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--water); cursor: pointer; }
  .checklist label { cursor: pointer; }
  .checklist input:checked + label { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--mist); }

  .compare--plain td:last-child { font-weight: 400; color: var(--ink-2); }

  .guide-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  @media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }
  .guide-list a { display: grid; gap: 12px; height: 100%; padding: 28px; border-radius: var(--radius); border-top: 3px solid var(--water); background: var(--shoal); color: var(--night); text-decoration: none; }
  .guide-list a:hover { background: #e3e8f5; }
  .field-shoal .guide-list a { background: var(--foam); box-shadow: inset 0 0 0 1px var(--mist); }
  .field-shoal .guide-list a:hover { background: #f7f8fc; }
  .field-shoal .project__meta li { background: var(--foam); }
  .guide-list strong { font-size: var(--h3); font-stretch: 108%; line-height: 1.15; }
  .guide-list span { color: var(--ink-2); }

  .steps__n { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 6px; border-radius: 50%; background: var(--foam); color: var(--night); font-size: 0.8em; vertical-align: 0.1em; }

  .takeaways { padding: 22px 24px; border-radius: var(--radius); background: var(--shoal); border-left: 4px solid var(--water); }
  .takeaways__title { font-size: 1.1rem !important; margin: 0 0 10px !important; }
  .takeaways ul { margin: 0; }
  .next-step { margin-top: 2.6em; padding: 26px 28px; border-radius: var(--radius); background: var(--night); color: var(--foam); }
  .next-step h2 { margin: 0 0 8px; font-size: 1.4rem; }
  .next-step a { color: var(--foam); }
  .sources { padding-left: 1.3em; font-size: 0.9375rem; color: var(--ink-2); }
  .article__body > section, .article__body > div { margin-top: 2.2em; }
  .article__body > .takeaways { margin-top: 0; }
  .article__body h2 { margin-top: 1.8em; }
  .post-list { list-style: none; display: grid; gap: 0; }
  .post-list a { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--mist); color: var(--night); text-decoration: none; }
  .post-list li:last-child a { border-bottom: 1px solid var(--mist); }
  .post-list time { font-size: var(--small); color: var(--ink-2); font-weight: 560; }
  .post-list strong { font-size: var(--h3); font-stretch: 108%; line-height: 1.15; }
  .post-list span { color: var(--ink-2); max-width: 46rem; }
  .post-list a:hover strong { color: var(--water); }
  .case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; list-style: none; }
  .case-facts li { padding-block: 18px; border-top: 1px solid var(--mist); display: grid; gap: 4px; }
  .project__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
  .ticks--light li::before { background-color: var(--foam); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%230d1640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .case-facts b { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
}

@media print {
  .article__aside .toc, .article__end .btn, .breadcrumb { display: none; }
  .article__body { grid-column: 1 / -1; }
  .checklist input { -webkit-appearance: none; appearance: none; border: 1.5px solid #000; border-radius: 3px; }
  .checklist input:checked { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.4l3.4 3.2L14 5.6' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / 100% no-repeat; }
  .checklist input:checked + label { color: #000; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
@layer utilities {
  .mt-0 { margin-top: 0 !important; }
  .mt-s { margin-top: 16px; }
  .mt-m { margin-top: 32px; }
  .mt-l { margin-top: var(--block); }
  .center { text-align: center; }
  .nowrap { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .dock, .site-footer, .closer { display: none; }
  body { color: #000; }
}

/* --------------------------------------------------------------------------
   Estimator (/estimate/)
   Questions sit on rules in a quiet column; the receipt is the one loud
   element: a deep-water card whose figures update as you choose.
   -------------------------------------------------------------------------- */
@layer pages {
  .estimate-hero__anchors { margin-top: 18px; font-weight: 620; font-stretch: 106%; max-width: 44rem; }

  .estimator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    grid-template-areas: 'questions receipt' 'send receipt';
    gap: 0 clamp(32px, 4vw, 72px);
    align-items: start;
  }
  .estimator__questions { grid-area: questions; min-width: 0; }
  .receipt { grid-area: receipt; position: sticky; top: calc(var(--header-h) + 16px); }
  .estimator__send { grid-area: send; display: grid; gap: 22px; margin-top: 8px; padding-top: 40px; border-top: 1px solid var(--mist); }
  @media (max-width: 1023px) {
    .estimator { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'questions' 'receipt' 'send'; }
    .receipt { position: static; margin-top: 8px; }
  }

  .estimator__nojs { padding: 16px 18px; border-radius: 12px; background: var(--shoal); }
  .js .estimator__nojs { display: none; }

  /* Questions */
  .q { border: 0; margin: 0; padding: 32px 0; min-width: 0; border-top: 1px solid var(--mist); }
  .estimator__nojs + .q, .js .estimator__questions > .q:first-of-type { border-top: 0; padding-top: 8px; }
  .q > legend, .q .sub > legend { padding: 0; float: left; width: 100%; margin-bottom: 16px; }
  .q > legend ~ *, .q .sub > legend ~ * { clear: both; }
  .q__title { display: block; font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.55rem); font-stretch: 112%; font-weight: 760; letter-spacing: -0.02em; line-height: 1.15; }
  .q__hint { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }
  .q .sub { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
  .q .sub > legend { font-weight: 650; font-size: 1rem; margin-bottom: 12px; }
  .q .hint { margin-top: 10px; }

  .options { display: grid; gap: 10px; }
  .options--row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px 14px;
    min-height: 56px;
    padding: 15px 18px;
    border: 1.5px solid var(--mist);
    border-radius: 14px;
    background: var(--foam);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  }
  .options--compact .option { padding: 12px 16px; }
  .option:hover { border-color: #8089a8; }
  .option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--water); cursor: inherit; }
  .option:has(input:checked) { border-color: var(--water); background: #f3f5ff; box-shadow: inset 0 0 0 1px var(--water); }
  .option:has(input:focus-visible) { outline: 3px solid var(--night); outline-offset: 2px; }
  .option input:focus-visible { outline: none; }
  .option.is-disabled, .option:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
  .option__body { display: grid; gap: 2px; }
  .option__title { font-weight: 650; font-stretch: 104%; line-height: 1.3; }
  .option__detail { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
  .option__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; line-height: 1.3; }
  .option__price small { display: block; font-weight: 450; color: var(--ink-2); font-size: 0.8125rem; }
  @media (max-width: 480px) {
    .option { grid-template-columns: auto minmax(0, 1fr); }
    .option__price { grid-column: 2; text-align: left; }
  }

  .why { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--shoal); box-shadow: inset 3px 0 0 var(--water); }

  .pages > label { font-weight: 650; }
  .stepper { display: inline-flex; align-items: center; gap: 8px; }
  .stepper__btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid #8089a8;
    border-radius: 50%;
    background: var(--foam);
    font-size: 1.4rem;
    line-height: 1;
  }
  .stepper__btn:hover { border-color: var(--night); background: var(--shoal); }
  .stepper__btn:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
  .stepper__input { width: 96px; text-align: center; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
  .stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

  .pages-help, .advanced { margin-top: 16px; }
  .pages-help summary, .advanced summary { cursor: pointer; width: fit-content; min-height: 44px; display: flex; align-items: center; font-weight: 620; color: var(--water); text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1.5px; }
  .pages-help summary:hover, .advanced summary:hover { text-decoration-thickness: 2.5px; }
  .pages-help__body { display: grid; gap: 12px; margin-top: 10px; max-width: 30rem; }
  .pages-help__body > label { font-weight: 620; }
  .pages-help__body .btn { justify-self: start; }
  .advanced .options { margin-top: 10px; }

  /* The receipt */
  .receipt__card {
    padding: clamp(24px, 2.4vw, 36px);
    border-radius: 28px;
    background: var(--water);
    color: var(--foam);
    box-shadow: 0 40px 80px -40px rgba(13, 22, 64, 0.6);
  }
  .receipt__title { font-size: 1rem; font-weight: 620; font-stretch: 104%; letter-spacing: 0; color: var(--on-water-2); }
  .receipt__plan { margin-top: 6px; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); font-stretch: 116%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
  .figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin: 24px 0 0; }
  .figures div { display: grid; gap: 4px; align-content: start; }
  .figures dt { font-size: 0.875rem; color: var(--on-water-2); }
  .figures dd { margin: 0; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); font-stretch: 116%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .figures dd small { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 450; font-stretch: 100%; letter-spacing: 0; color: var(--on-water-2); }
  .figures__total { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--on-water-line); }
  .figures__total dd { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-stretch: 122%; font-weight: 860; letter-spacing: -0.045em; }
  /* While the card is sticky, the details scroll inside it so the call to
     action is always on screen, even on a short laptop display. */
  @media (min-width: 1024px) {
    .receipt__card { display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 32px); }
    .receipt__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.45) transparent; }
    .receipt__scroll:focus-visible { outline: 2px solid var(--foam); outline-offset: 2px; border-radius: 6px; }
    .receipt__actions { flex: none; padding-top: 16px; border-top: 1px solid var(--on-water-line); }
  }
  .receipt__custom { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); font-size: 0.9375rem; }
  .ledger { margin-top: 22px; }
  .ledger h3 { margin-top: 18px; font-size: 0.875rem; font-stretch: 104%; font-weight: 650; letter-spacing: 0; color: var(--on-water-2); }
  .ledger ul { list-style: none; margin-top: 6px; }
  .ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--on-water-line); font-size: 0.9375rem; line-height: 1.4; }
  .ledger li > span:last-child { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ledger li small { display: block; font-size: 0.8125rem; color: var(--on-water-2); }
  .ledger__sum { font-weight: 700; }
  .receipt__note, .receipt__fine { margin-top: 14px; font-size: 0.875rem; color: var(--on-water-2); line-height: 1.5; }
  .receipt__fine { padding-top: 14px; border-top: 1px solid var(--on-water-line); }
  .receipt__actions { display: grid; gap: 10px; margin-top: 18px; }
  .receipt__actions .btn { width: 100%; }
  .receipt__tools { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .tool { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--foam); font-weight: 620; text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1.5px; }
  .tool:hover { text-decoration-thickness: 2.5px; }
  .receipt__status { font-size: 0.875rem; color: var(--on-water-2); overflow-wrap: anywhere; }
  .receipt__status:empty { display: none; }

  /* Payment schedule */
  .schedules { display: grid; gap: 32px; }
  @media (min-width: 1000px) {
    .schedules { grid-template-columns: 1fr 1fr; align-items: start; }
    .schedule__same { grid-column: 1 / -1; }
  }
  .schedule { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .schedule caption { text-align: left; font-weight: 700; font-stretch: 106%; padding-bottom: 10px; }
  .schedule th, .schedule td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--mist); text-align: right; vertical-align: top; }
  .schedule th[scope='row'], .schedule thead th:first-child { text-align: left; font-weight: 600; }
  .schedule thead th { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
  .schedule tfoot th, .schedule tfoot td { font-weight: 750; border-bottom: 0; }
  .schedule td:last-child { font-weight: 700; }
  .schedule__same { font-weight: 620; }
  @media (max-width: 640px) {
    .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .schedule tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
    .schedule th, .schedule td { border: 0; padding: 0; }
    .schedule th[scope='row'] { grid-column: 1 / -1; }
    .schedule td { display: contents; }
    .schedule td::before { content: attr(data-label); color: var(--ink-2); text-align: left; }
    .schedule tfoot td[colspan] { display: none; }
  }

  /* Mobile tally */
  .tally {
    position: fixed;
    z-index: 40;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 20px;
    border-radius: var(--pill);
    background: var(--night);
    color: var(--foam);
    box-shadow: 0 20px 40px -16px rgba(13, 22, 64, 0.6);
  }
  .tally__figures { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
  .tally .btn { white-space: nowrap; }
  @media (max-width: 1023px) { html:has([data-tally]) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
  @media (min-width: 1024px) { .tally { display: none !important; } }
}

@media print {
  .estimate-hero .lead, .estimate-hero__anchors, .estimator__questions, .estimator__send, .receipt__actions, .tally, #estimate-faq, .breadcrumb { display: none !important; }
  .estimator { display: block; }
  .receipt { position: static; }
  .receipt__scroll { overflow: visible !important; max-height: none !important; }
  .receipt__card { display: block !important; max-height: none !important; background: none; color: #000; box-shadow: none; border: 1px solid #999; padding: 16px; }
  .receipt__title, .figures dt, .figures dd small, .ledger h3, .ledger li small, .ledger .ledger__others li, .receipt__note, .receipt__fine { color: #333; }
  .ledger li, .figures__total, .receipt__fine { border-color: #ccc; }
}

/* --------------------------------------------------------------------------
   Pricing page additions
   -------------------------------------------------------------------------- */
@layer pages {
  .page-hero__price { margin-top: 16px; max-width: 44rem; font-weight: 620; font-stretch: 104%; }
  .page-hero__price + .actions { margin-top: 24px; }
  .choice-tabs { flex-wrap: wrap; }

  .package { grid-template-rows: auto auto auto 1fr auto; }
  /* Line the prices, sums and lists up across the three cards. */
  @media (min-width: 961px) {
    @supports (grid-template-rows: subgrid) {
      .packages { row-gap: 0; }
      .package { grid-row: span 5; grid-template-rows: subgrid; row-gap: 18px; }
    }
  }
  .package__price { display: grid; gap: 4px; }
  .package__price strong { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-stretch: 120%; font-weight: 840; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
  .package__price span { color: var(--ink-2); font-size: 0.9375rem; }
  .package--featured .package__price span { color: var(--on-water-2); }

  .pricelist { list-style: none; }
  .pricelist li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--mist); }
  .pricelist li small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; }
  .footer-col a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
  .pricelist li > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Pricing page, second version: websites, monthly plans and the calculator
   each get their own section.
   -------------------------------------------------------------------------- */
@layer pages {
  .pricing-hero .actions { margin-top: 28px; }
  .pricing-hero .hint { margin-top: 12px; }
  .pricing-hero h1 { max-width: 18ch; }

  .package__price strong small { font-size: 0.45em; font-weight: 620; font-stretch: 100%; letter-spacing: 0; }
  .package-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3vw, 40px); color: var(--ink-2); }
  .package-notes strong { color: var(--night); }

  .promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px clamp(20px, 2.4vw, 36px); margin-top: 24px; font-size: 0.9375rem; }
  @media (max-width: 760px) { .promises { grid-template-columns: minmax(0, 1fr); } }
  .disclose { border-top: 1px solid var(--mist); }
  .disclose:last-of-type { border-bottom: 1px solid var(--mist); }
  .disclose > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-weight: 650; font-stretch: 104%; cursor: pointer; list-style: none; }
  .disclose > summary::-webkit-details-marker { display: none; }
  .disclose > summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--water); }
  .disclose[open] > summary::after { content: '−'; }
  .disclose > summary:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
  .disclose > :not(summary) { margin-bottom: 20px; }

  .table-wrap { overflow-x: auto; }
  .tiers-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
  .tiers-table th, .tiers-table td { padding: 11px 8px; border-bottom: 1px solid var(--mist); text-align: center; vertical-align: middle; line-height: 1.3; }
  .tiers-table th:first-child { padding-left: 0; text-align: left; font-weight: 500; }
  .tiers-table thead th { font-weight: 720; font-stretch: 106%; }
  .tiers-table thead th:first-child { color: var(--ink-2); font-weight: 500; }
  .tick { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; vertical-align: -0.2em; }
  @media (max-width: 640px) {
    .tiers-table { font-size: 0.8125rem; }
    .tiers-table th, .tiers-table td { padding: 10px 4px; }
    .tiers-table th:first-child { width: 40%; }
  }

  /* Monthly ladder: rows that open, so five plans never look like a wall of cards. */
  .planrows { display: grid; gap: 10px; list-style: none; }
  .planrow { border-radius: 16px; background: var(--foam); box-shadow: inset 0 0 0 1px var(--mist); }
  .planrow > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; min-height: 84px; padding: 16px 52px 16px 22px; position: relative; cursor: pointer; list-style: none; }
  .planrow > summary::-webkit-details-marker { display: none; }
  .planrow > summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--water); }
  .planrow[open] > summary::after { content: '−'; }
  .planrow > summary:hover { box-shadow: inset 0 0 0 1.5px #8089a8; border-radius: 16px; }
  .planrow > summary:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; border-radius: 16px; }
  .planrow__name { display: grid; gap: 2px; }
  .planrow__name strong { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-stretch: 108%; font-weight: 740; letter-spacing: -0.015em; line-height: 1.2; }
  .planrow__name span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
  .planrow__price { display: grid; justify-items: end; line-height: 1.1; white-space: nowrap; }
  .planrow__price strong { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); font-stretch: 116%; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .planrow__price span { color: var(--ink-2); font-size: 0.8125rem; }
  .planrow__body { display: grid; gap: 12px; padding: 4px 22px 22px; }
  .planrow__body .ticks { gap: 8px; font-size: 0.9375rem; }
  @media (max-width: 480px) {
    .planrow > summary { padding: 14px 44px 14px 16px; gap: 12px; }
    .planrow > summary::after { right: 14px; }
    .planrow__body { padding: 2px 16px 18px; }
  }

  /* The calculator gets a full-width blue field of its own. */
  .quote-cta .lead { color: var(--on-water-2); margin-top: 16px; }
  .quote-cta .actions { margin-top: 24px; }
  .quote-cta__note { margin-top: 14px; color: var(--on-water-2); font-size: 0.9375rem; }
  .quote-cta h3 { font-size: 1.0625rem; font-weight: 680; letter-spacing: 0; }
  .quote-cta__examples { display: grid; gap: 8px; margin-top: 12px; list-style: none; }
  .quote-cta__examples a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--on-water-line); text-decoration: none; line-height: 1.3; transition: background-color 0.15s; }
  .quote-cta__examples a:hover { background: rgba(255, 255, 255, 0.18); }
  .quote-cta__examples strong { font-weight: 720; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .quote-cta .ticks { margin-top: 12px; gap: 8px; font-size: 0.9375rem; }

  /* Package cards on a phone: clear air around the flag, price first in the eye. */
  @media (max-width: 960px) {
    .packages { gap: 30px; max-width: none; }
    .package { gap: 14px; padding: 26px 22px; }
    .package-notes { grid-template-columns: minmax(0, 1fr); }
    .package__price strong { font-size: 2.5rem; }
  }

  /* Calculator: package choice and extras a package already includes. */
  .pages { margin-top: 22px; }
  .option.is-included { opacity: 1; cursor: default; background: var(--shoal); }
  .option.is-included input { opacity: 0.45; }
  .option.is-included .option__price { color: var(--water); }
  .ledger__others { list-style: none; }
  .ledger .ledger__others li { display: block; color: var(--on-water-2); padding: 6px 0; font-size: 0.875rem; }
  .receipt__actions > .tool { justify-self: start; }
}

/* The sticky call button becomes a small corner button, so it can't sit over
   content, and pages can opt out of it altogether. */
@layer components {
  @media (max-width: 760px) {
    .dock { left: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
    .dock .btn { width: auto; min-height: 48px; padding: 0 1.1em; font-size: 0.9375rem; }
    html:has(body.has-dock) { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    body.has-dock { padding-bottom: 72px; }
  }
}

/* --------------------------------------------------------------------------
   Calculator, guided version: one step at a time, with the receipt beside it.
   Without JavaScript every step shows at once and these controls stay hidden.
   -------------------------------------------------------------------------- */
@layer pages {
  .estimate-hero .lead, .pricing-hero .lead { margin-top: 18px; }
  .estimate-hero { padding-block: clamp(24px, 2vw, 40px) clamp(20px, 2vw, 32px); }
  .estimate-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem); }
  .estimate-hero .lead { font-size: 1.0625rem; max-width: 44rem; }
  .estimate-hero__anchors { margin-top: 8px; font-size: 0.9375rem; }
  .js .estimator:not(.at-review):not(.is-all) .receipt__tools, .js .estimator:not(.at-review):not(.is-all) .receipt__actions > .tool { display: none; }
  .js .estimator.at-review .receipt__tools { gap: 0 18px; }

  .flow, .panel__nav, .panel__step { display: none; }
  .js .flow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; position: sticky; top: var(--header-h); z-index: 5; padding: 12px 0; margin-bottom: 8px; background: var(--foam); }
  .js .panel__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 8px; }
  .js .panel__nav .btn:only-child { margin-left: auto; }
  .js .panel__step { display: block; font-size: var(--small); font-weight: 650; color: var(--water); margin-bottom: 4px; }
  .js .step-panel[data-panel='review'] .panel__nav .btn:only-child { margin-left: 0; }

  .flow__bar { grid-column: 1 / -1; height: 4px; border-radius: var(--pill); background: var(--mist); overflow: hidden; }
  .flow__bar span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--water); transition: width 0.45s var(--ease-out); }
  .flow__steps { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
  .flow__step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: var(--pill); background: none; color: var(--ink-2); font-weight: 620; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
  .flow__step:hover { background: var(--shoal); color: var(--night); }
  .flow__step:focus-visible, .flow__all:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
  .flow__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #8089a8; font-size: 0.8125rem; font-variant-numeric: tabular-nums; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
  .flow__step.is-done .flow__n { background: var(--shoal); box-shadow: inset 0 0 0 1.5px var(--water); color: var(--water); }
  .flow__step[aria-current='step'] { color: var(--night); }
  .flow__step[aria-current='step'] .flow__n { background: var(--water); box-shadow: none; color: var(--foam); }
  .flow__all { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: var(--small); text-decoration: underline; text-underline-offset: 0.25em; }
  .flow__all:hover { color: var(--night); }
  @media (max-width: 560px) {
    .flow__all { display: none; }
    .flow__step { padding: 0 6px 0 2px; }
    .flow__step:not([aria-current='step']) span:not(.flow__n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .flow__steps { justify-content: space-between; }
  }

  /* One panel at a time. .is-all is the expert view, and the fallback. */
  .js .estimator:not(.is-all) .step-panel:not(.is-current) { display: none; }
  .js .estimator:not(.is-all):not(.at-review) .estimator__send { display: none; }
  .is-all .panel__nav, .is-all .panel__step { display: none !important; }
  .step-panel:focus { outline: none; }
  .js .step-panel.is-current { animation: panel-in 0.38s var(--ease-out); }
  .is-all .step-panel.is-current { animation: none; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
  @media (max-width: 1023px) {
    .js .estimator:not(.is-all):not(.at-review) .receipt { display: none; }
  }
  .js .step-panel > .q:first-of-type { border-top: 0; padding-top: 8px; }
  .q--plain { padding-bottom: 24px; }
  .business-type { margin-top: 24px; max-width: 30rem; }
  .business-type label { font-weight: 650; }
  .option__art { color: var(--water); display: grid; }
  .glyph__accent { stroke: var(--water); }
  .glyph__fill { fill: #e7ebff; }
  .glyph__ping { fill: var(--lehua); stroke: none; transform-origin: 20px 16px; }
  .option:has(input:checked) .glyph__ping { animation: ping-pop 0.5s var(--ease-out); }
  @keyframes ping-pop { 40% { transform: scale(1.45); } }

  /* Options respond when pressed and when chosen. */
  .option { transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease-out); }
  .option:active { transform: scale(0.992); }
  .option:has(input:checked) { animation: chosen 0.28s var(--ease-out); }
  @keyframes chosen { 50% { box-shadow: inset 0 0 0 2px var(--water), 0 0 0 4px rgba(31, 59, 232, 0.14); } }
  .option:has(.option__art) { grid-template-columns: auto auto minmax(0, 1fr) auto; }

  /* Starting points and goals: tiles with their own drawing. */
  .options--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option--tile { grid-template-columns: auto minmax(0, 1fr) !important; align-content: start; }
  .option--tile input { grid-column: 1; grid-row: 1; }
  .option--tile .option__art { grid-column: 2; grid-row: 1; justify-self: start; }
  .option--tile .option__body { grid-column: 1 / -1; margin-top: 6px; }
  .options--goals { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .option--goal { align-items: center; min-height: 64px; padding: 10px 14px; }
  .option--goal .glyph { width: 30px; height: 30px; }
  @media (max-width: 560px) { .options--tiles { grid-template-columns: minmax(0, 1fr); } }

  /* Package cards. */
  .options--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .option--card { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-rows: auto 1fr auto; padding: 18px; }
  .option--card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(13, 22, 64, 0.5); }
  .option--card:has(input:checked):hover { box-shadow: inset 0 0 0 1px var(--water); }
  .option--card input { grid-column: 1; grid-row: 1; }
  .option--card .option__art { grid-column: 2; grid-row: 1; justify-self: end; }
  .option--card .option__body { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
  .option--card .option__price { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; text-align: left; font-size: 1.5rem; font-stretch: 116%; font-weight: 800; letter-spacing: -0.03em; }
  .option--card .option__title { font-size: 1.125rem; font-weight: 740; }
  .option--card .option__gain { order: -1; color: var(--water); font-weight: 650; font-size: 0.8125rem; margin: 0 0 4px; }
  .option--featured { border-color: var(--water); }
  .stack { width: 84px; height: auto; }
  .sheet { fill: var(--foam); stroke: #aab2cc; stroke-width: 1.5; transition: stroke 0.2s; }
  .sheet--top { stroke: var(--night); }
  .sheet__bar { stroke: var(--water); stroke-width: 4; stroke-linecap: round; }
  .sheet__line { stroke: #aab2cc; stroke-width: 2; stroke-linecap: round; fill: none; }
  .option:has(input:checked) .sheet { stroke: var(--water); }
  @media (max-width: 860px) { .options--cards { grid-template-columns: minmax(0, 1fr); } }

  /* What a choice contains appears once it's chosen. */
  .option__more { display: none; gap: 6px; margin-top: 10px; font-size: 0.875rem; line-height: 1.4; color: var(--night); }
  .option:has(input:checked) .option__more { display: grid; animation: panel-in 0.3s var(--ease-out); }
  .option--card .option__more { display: grid; animation: none; }
  .option__more span { padding-left: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%231f3be8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 2px / 13px no-repeat; }
  .option__gain { margin-top: 4px; color: var(--night); font-size: 0.875rem; font-weight: 560; }
  .meter { margin-top: 2px; }
  .bar { fill: var(--mist); }
  .bar--on { fill: var(--water); }
  .option:has(input:checked) .bar--on { fill: var(--water); }
  @media (max-width: 480px) {
    .option:has(.option__art) { grid-template-columns: auto minmax(0, 1fr); }
    .option:has(.option__art) .option__art { grid-column: 2; grid-row: 1; justify-self: start; }
    .option:has(.option__art) .option__body { grid-column: 1 / -1; }
    .option:has(.option__art) .option__price { grid-column: 1 / -1; }
    .option--goal.option { grid-template-columns: auto auto minmax(0, 1fr); }
    .option--goal .option__art { grid-column: 2 !important; }
    .option--goal .option__body { grid-column: 3 !important; }
  }

  /* The receipt's live picture. */
  .blueprint { display: grid; gap: 10px; margin-top: 14px; }
  .tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  .tile { position: relative; width: 22px; height: 28px; border-radius: 4px; background: var(--foam); }
  .tile::before { content: ''; position: absolute; left: 4px; right: 4px; top: 5px; height: 3px; border-radius: 2px; background: var(--water); }
  .tile::after { content: ''; position: absolute; left: 4px; right: 7px; top: 12px; height: 8px; background: repeating-linear-gradient(to bottom, var(--mist) 0 2px, transparent 2px 4px); }
  .tile.is-new { animation: tile-in 0.42s var(--ease-out) both; }
  @keyframes tile-in { from { opacity: 0; transform: translateY(8px) scale(0.7); } }
  .tiles__more { font-size: 0.8125rem; font-weight: 700; margin-left: 2px; }
  .chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .chip { padding: 2px 9px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.16); font-size: 0.75rem; font-weight: 620; }
  .blueprint__help { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--on-water-2); }
  .blueprint .bar { fill: rgba(255, 255, 255, 0.24); }
  .blueprint .bar--on { fill: var(--foam); }
  .ledger li.is-new { animation: line-in 1.3s var(--ease-out); }
  @keyframes line-in { 0% { background: rgba(255, 255, 255, 0.24); } 100% { background: transparent; } }
  .delta { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--pill); background: var(--foam); color: var(--water); font-size: 0.75rem; font-weight: 750; font-variant-numeric: tabular-nums; animation: delta 2.6s var(--ease-out) forwards; }
  @keyframes delta { 0% { opacity: 0; transform: translateY(5px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

  /* Review step. */
  .payback { display: grid; gap: 8px; margin-top: 20px; padding: 20px; border-radius: 14px; background: var(--shoal); }
  .payback label { font-weight: 650; }
  .payback__row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
  .payback__row .input { width: 140px; background: var(--foam); }
  .payback__result { font-weight: 620; }
  .count-on__title { margin-top: 28px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
  .count-on { margin-top: 12px; gap: 8px; font-size: 0.9375rem; }

  /* Pricing page and home additions. */
  .price-anchors { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 3vw, 44px); margin-top: 22px; list-style: none; }
  .price-anchors li { display: grid; gap: 2px; }
  .price-anchors strong { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2.1rem); font-stretch: 116%; font-weight: 820; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .price-anchors span { color: var(--ink-2); font-size: 0.9375rem; }
  .pricing-hero h1 { max-width: 24ch; }
  .value-case { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px clamp(24px, 4vw, 64px); margin-block: clamp(32px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--shoal); }
  .value-case h3 { margin-bottom: 10px; }
  .value-case__list { display: grid; gap: 14px; list-style: none; }
  @media (max-width: 760px) { .value-case { grid-template-columns: minmax(0, 1fr); } }
  .planrow__name .planrow__glance { margin-top: 4px; color: var(--night); font-size: 0.875rem; font-weight: 560; }
  .plans-table { min-width: 720px; }
  .table-wrap:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
  .after-yes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); list-style: none; counter-reset: yes; }
  .after-yes li { display: grid; gap: 4px; align-content: start; padding: 20px 0; border-top: 1px solid var(--mist); counter-increment: yes; }
  .after-yes li::before { content: counter(yes); color: var(--water); font-weight: 800; font-stretch: 116%; font-size: 1.25rem; }
  .after-yes strong { font-stretch: 106%; font-weight: 700; }
  .after-yes span { color: var(--ink-2); font-size: 0.9375rem; }
  @media (max-width: 760px) { .after-yes { grid-template-columns: minmax(0, 1fr); } }
  .who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); list-style: none; }
  .who a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; min-height: 88px; padding: 18px 0; border-top: 1px solid var(--mist); color: var(--night); text-decoration: none; }
  .who strong { font-size: 1.125rem; font-stretch: 106%; font-weight: 700; }
  .who span { grid-column: 1; color: var(--ink-2); font-size: 0.9375rem; }
  .who svg { grid-column: 2; grid-row: 1 / 3; color: var(--water); transition: transform 0.2s var(--ease-out); }
  .who a:hover strong { color: var(--water); }
  .who a:hover svg { transform: translateX(4px); }
  @media (max-width: 760px) { .who { grid-template-columns: minmax(0, 1fr); } }
  .estimate-note { padding: 14px 16px; margin-bottom: 20px; border-radius: 12px; background: var(--shoal); box-shadow: inset 3px 0 0 var(--water); }
  .linklike { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.25em; }
  /* While the analytics choice is open it replaces the booking dock on phones,
     and focused fields scroll clear of it. */
  .has-consent .dock { display: none; }
  .has-consent { scroll-padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  .consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 640px; padding: 14px 18px; border-radius: var(--radius); background: var(--foam); box-shadow: 0 20px 50px -18px rgba(13, 22, 64, 0.6), inset 0 0 0 1px var(--mist); }
  .consent p { flex: 1 1 280px; font-size: 0.9375rem; line-height: 1.4; }
}

@media print {
  .flow, .panel__nav, .tally, .consent, .blueprint, [data-schedule-section] .section-head p { display: none !important; }
  .receipt { display: block !important; }
  [data-schedule-section][hidden] { display: none !important; }
  .delta { display: none; }
}

@layer pages {
  .options--cards { padding-top: 12px; }
  .option--featured .option__gain { position: absolute; top: -11px; left: 12px; right: 12px; width: fit-content; margin: 0; padding: 2px 10px; border-radius: var(--pill); background: var(--water); color: var(--foam); font-size: 0.71875rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .option--card .option__gain { order: 0; }
}

/* --------------------------------------------------------------------------
   Calculator, after the independent review.
   -------------------------------------------------------------------------- */
@layer pages {
  /* Open on the task. */
  .estimate-hero { padding-block: 16px 16px; }
  .estimate-hero h1 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.7rem); }
  .estimate-hero .breadcrumb { margin-bottom: 10px; }
  .estimate-hero .lead { margin-top: 10px; font-size: 1rem; max-width: 52rem; }

  /* Layout follows the column, not the window. */
  .estimator__questions { container: questions / inline-size; }
  @media (max-width: 1240px) and (min-width: 1024px) { .estimator { grid-template-columns: minmax(0, 1fr) 350px; column-gap: 28px; } }
  .estimator { grid-template-areas: 'questions receipt' 'extras receipt' 'send receipt'; }
  .review-extras { grid-area: extras; display: grid; gap: 28px; padding-bottom: 32px; min-width: 0; }
  .js .estimator:not(.is-all):not(.at-review) .review-extras { display: none; }
  @media (max-width: 1023px) { .estimator { grid-template-areas: 'questions' 'receipt' 'extras' 'send'; } .review-extras { margin-top: 28px; } }

  /* Review: the estimate in full, nothing clipped. */
  .js .estimator.at-review .receipt { position: static; }
  .js .estimator.at-review .receipt__card { max-height: none; }
  .js .estimator.at-review .receipt__scroll { overflow: visible; margin-right: 0; padding-right: 0; }
  .js .estimator.at-review .receipt__tools { font-size: 0.875rem; }
  .js .estimator.is-empty .figures, .js .estimator.is-empty .receipt__tools, .js .estimator.is-empty .review-extras { display: none; }
  .js .estimator.at-review .step-panel[data-panel='review'] .q--plain { padding-bottom: 12px; }

  /* The receipt keeps its figures on a short laptop screen. */
  @media (min-width: 1024px) {
    .js .estimator:not(.at-review) .receipt__scroll { scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); padding-bottom: 20px; }
    .js .estimator:not(.at-review) .receipt__scroll::-webkit-scrollbar { display: none; }
  }
  @media (min-width: 1024px) and (max-height: 900px) {
    .js .estimator:not(.at-review) .blueprint { grid-auto-flow: column; justify-content: start; align-items: center; margin-top: 8px; gap: 12px; }
    .js .estimator:not(.at-review) .blueprint .chips, .js .estimator:not(.at-review) .blueprint__help span { display: none; }
    .js .estimator:not(.at-review) .tile { width: 15px; height: 20px; }
    .js .estimator:not(.at-review) .tile::after { display: none; }
    .js .estimator:not(.at-review) .tile::before { top: 4px; left: 3px; right: 3px; height: 2px; }
    .js .estimator:not(.at-review) .figures { margin-top: 12px; gap: 10px 18px; }
    .js .estimator:not(.at-review) .figures__total { padding-top: 10px; }
    .js .estimator:not(.at-review) .figures__total dd { font-size: 2rem; }
    .js .estimator:not(.at-review) .receipt__card { padding: 22px 26px; }
  }

  /* Plain numerals at display size: the tabular zero reads like a terminal. */
  .figures dd { font-variant-numeric: normal; }

  /* Rows that scan: details open once chosen. */
  .option__note { color: var(--night); font-size: 0.875rem; font-weight: 540; line-height: 1.4; margin-top: 2px; }
  .option__expand { display: grid; gap: 6px; margin-top: 8px; }
  .option__expand .option__more { display: grid; margin-top: 2px; animation: none; }
  .js .option:not(:has(input:checked)) .option__expand { display: none; }
  .js .option:has(input:checked) .option__expand { animation: panel-in 0.3s var(--ease-out); }
  .option__gain { margin-top: 0; }
  @media (max-width: 480px) {
    .option--plan.option { grid-template-columns: auto minmax(0, 1fr) auto; }
    .option--plan .option__art { display: none; }
    .option--plan .option__body { grid-column: 2; }
    .option--plan .option__price { grid-column: 3; grid-row: 1; text-align: right; }
    .option--plan .option__expand { grid-column: 1 / -1; }
  }

  /* Package cards: one short badge, aligned contents. */
  .option__flag { position: absolute; top: -11px; left: 14px; padding: 2px 10px; border-radius: var(--pill); background: var(--water); color: var(--foam); font-size: 0.71875rem; font-weight: 680; line-height: 1.5; white-space: nowrap; }
  .option--card .option__art { justify-self: end; }
  .option--card .option__detail { display: block; min-height: 7.25em; }
  .option--card .option__expand { display: grid !important; }
  .js .option--card:has(input:checked) .option__expand { animation: none; }
  /* Narrow column: rows, not squeezed cards. */
  @container questions (max-width: 700px) {
    .option__flag { left: 44px; }
    .flow__step { padding: 0 6px 0 2px; min-width: 44px; justify-content: center; }
    .flow__step:not([aria-current='step']) span:not(.flow__n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .flow__steps { justify-content: flex-start; }
  }
  @media (max-width: 560px) {
    .flow__step { min-width: 44px; justify-content: center; }
    .flow__steps { gap: 0; }
  }

  /* Arrival note and phone feedback. */
  .arrival { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; padding: 10px 16px; border-radius: 12px; background: var(--shoal); box-shadow: inset 3px 0 0 var(--water); font-size: 0.9375rem; }
  .arrival[hidden] { display: none; }
  .js .arrival .flow__all { display: inline-flex; align-items: center; }
  .step-panel > .why { margin: 0 0 12px; }
  .tally__figures { position: relative; white-space: nowrap; font-size: 0.875rem; }
  .tally__delta { position: absolute; left: -6px; top: -36px; margin: 0; box-shadow: 0 6px 16px -8px rgba(13, 22, 64, 0.7); }
  .tally__delta[hidden] { display: none; }

  /* Phone schedule: only what applies. */
  @media (max-width: 640px) {
    .schedule td.is-none, .schedule td.is-none::before { display: none; }
    .schedule tfoot tr { grid-template-columns: 1fr auto; }
    .schedule tfoot th[scope='row'] { grid-column: 1; }
    .schedule tfoot td::before { content: none; }
  }

  .step-panel { scroll-margin-top: calc(var(--header-h) + 90px); }

  /* Pricing cards at laptop widths. */
  .package__flag { white-space: nowrap; }
  @media (min-width: 961px) and (max-width: 1240px) {
    .package__flag { font-size: 0.6875rem; padding-inline: 8px; }
    .package .btn { line-height: 1.25; height: auto; padding-block: 10px; }
    .package--featured { padding-top: 40px; }
  }
}

@media print {
  .review-extras, .arrival { display: none !important; }
}

@layer pages {
  @media (max-width: 480px) {
    .options .option.option--plan { grid-template-columns: auto minmax(0, 1fr) auto; }
    .options .option.option--plan input { grid-column: 1; grid-row: 1; }
    .options .option.option--plan .option__body { grid-column: 2; grid-row: 1; }
    .options .option.option--plan .option__price { grid-column: 3; grid-row: 1; }
    .options .option.option--plan:has(input:checked) .option__body { grid-column: 2 / -1; grid-row: 2; }
  }
}

/* --------------------------------------------------------------------------
   Calculator, after the second review. Last in the file on purpose.
   -------------------------------------------------------------------------- */
@layer pages {
  /* Rows share one structure: the price sits top right in every state. */
  .options .option.option--plan { position: relative; grid-template-columns: auto auto minmax(0, 1fr); }
  .options .option.option--plan .option__price { position: absolute; top: 15px; right: 18px; }
  .options .option.option--plan:has(.option__price) .option__title { padding-right: 6em; }
  @media (max-width: 480px) {
    .options .option.option--plan { grid-template-columns: auto minmax(0, 1fr); }
    .options .option.option--plan input { grid-column: 1; grid-row: 1; }
    .options .option.option--plan .option__art { display: none; }
    .options .option.option--plan .option__body, .options .option.option--plan:has(input:checked) .option__body { grid-column: 2; grid-row: 1; }
    .options .option.option--plan .option__price { grid-column: auto; grid-row: auto; }
  }
  .option__more span { display: block; }

  /* Package cards: three across only when each has room, otherwise rows. */
  .option--card .option__price { white-space: normal; line-height: 1.15; }
  @container questions (max-width: 740px) {
    .options .option.option--card { position: relative; grid-template-columns: auto minmax(0, 1fr) !important; grid-template-rows: auto; padding: 15px 18px; }
    .options .option.option--card input { grid-column: 1; grid-row: 1; }
    .options .option.option--card .option__art { display: none; }
    .options .option.option--card .option__body { grid-column: 2; grid-row: 1; margin-top: 0; }
    .options .option.option--card .option__title { padding-right: 7.5em; }
    .options .option.option--card .option__price { position: absolute; top: 14px; right: 18px; grid-column: auto; grid-row: auto; width: max-content; max-width: 9em; margin: 0; font-size: 1.125rem; text-align: right; }
    .options .option.option--card .option__detail { min-height: 0; }
    .options--cards { grid-template-columns: minmax(0, 1fr); }
    .option--card { transform: none !important; }
    .flow__step { padding: 0 6px 0 2px; min-width: 44px; justify-content: center; }
    .flow__step:not([aria-current='step']) span:not(.flow__n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .flow__steps { justify-content: flex-start; }
  }

  /* Tally: two lines inside the pill, with the change beside them. */
  .tally { padding: 8px 8px 8px 18px; }
  .tally__figures { position: static; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.8125rem; line-height: 1.25; }
  .tally__figures > span:first-child { display: grid; min-width: 0; }
  .tally__figures > span:first-child span { white-space: nowrap; }
  .tally .btn { flex: none; }
  .tally__delta { position: static; flex: none; box-shadow: none; margin: 0; }

  /* Receipt: figures stay in view; only the line items scroll. */
  @media (min-width: 1024px) {
    .js .estimator:not(.at-review) .receipt__scroll { display: flex; flex-direction: column; overflow: hidden; margin-right: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
    .js .estimator:not(.at-review) .receipt__detail { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-right: -12px; padding: 0 12px 16px 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.45) transparent; }
    .js .estimator:not(.at-review) .receipt__detail:focus-visible { outline: 2px solid var(--foam); outline-offset: 2px; border-radius: 6px; }
    .js .estimator:not(.at-review) .figures, .js .estimator:not(.at-review) .receipt__head, .js .estimator:not(.at-review) .blueprint { flex: none; }
  }
  .figures dd small { line-height: 1.35; text-wrap: balance; }

  /* Review: the next step is right there. */
  .review-actions { margin-top: 20px; }
  .js .estimator.is-empty .review-actions { display: none; }
  .js .step-panel[data-panel='review'] .panel__nav { padding-top: 0; }
  .js .step-panel[data-panel='review'] .panel__nav .btn { min-height: 44px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ink-2); font-weight: 560; text-decoration: underline; text-underline-offset: 0.25em; }
  .js .estimator.at-review .receipt__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

  /* Phones: more screen for the work. */
  @media (max-width: 560px) {
    html:has(.estimator) .site-header { position: static; }
    .js .flow { top: 0; padding: 6px 0; gap: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
    .js .panel__step { display: none; }
    .step-panel { scroll-margin-top: 70px; }
  }

  /* Plain zeros everywhere prices appear. */
  .ledger li > span:last-child, .schedule, .option__price, .tally__figures, .pricelist li > span:last-child, .planrow__price strong, .package__price strong, .price-anchors strong, .tiers-table { font-variant-numeric: normal; }
  .price-anchors strong small { font-size: 0.5em; font-weight: 620; font-stretch: 100%; letter-spacing: 0; }

  /* One disclosure style: a row that shows it opens. */
  .advanced > summary, .pages-help > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: auto; min-height: 52px; padding: 10px 16px; border: 1.5px solid var(--mist); border-radius: 12px; color: var(--night); font-weight: 620; text-decoration: none; list-style: none; cursor: pointer; transition: border-color 0.15s; }
  .advanced > summary::-webkit-details-marker, .pages-help > summary::-webkit-details-marker { display: none; }
  .advanced > summary::after, .pages-help > summary::after { content: '+'; flex: none; font-size: 1.4rem; line-height: 1; color: var(--water); }
  .advanced[open] > summary::after, .pages-help[open] > summary::after { content: '−'; }
  .advanced > summary:hover, .pages-help > summary:hover { border-color: #8089a8; text-decoration: none; }
  .advanced > summary:focus-visible, .pages-help > summary:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
  .advanced .advanced > summary { min-height: 46px; }
  .js .step-panel > .q[hidden] + .q { border-top: 0; padding-top: 8px; }

  /* Included is a benefit, not a disabled control. */
  .options .option.is-included { opacity: 1; background: #f3f5ff; border-color: var(--mist); }
  .options .option.is-included input { -webkit-appearance: none; appearance: none; opacity: 1; width: 20px; height: 20px; border-radius: 5px; background: var(--water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
  .options .option.is-included .option__price { color: var(--water); font-weight: 750; }

  /* Heroes line up, and the crumb gets air. */
  .estimate-hero .breadcrumb, .pricing-hero .breadcrumb { margin-bottom: 16px; }
  .pricing-hero { padding-top: 16px; }

  /* Clip what's hidden inside a scrolling table. */
  .table-wrap { position: relative; }
  @media (max-width: 360px) { .package__flag { white-space: normal; right: 16px; border-radius: 12px; text-align: center; } }
}

html:not(.js) [data-pages-empty], html:not(.js) .pages-help { display: none; }

@media print {
  .schedule, .schedule tr { break-inside: avoid; }
  .schedule__same { margin-top: 12px; }
  [data-schedule-section][hidden] { display: block !important; }
  .review-actions { display: none !important; }
  .receipt__detail { overflow: visible !important; max-height: none !important; }
  .js .estimator .receipt__scroll { display: block !important; overflow: visible !important; }
}

@layer pages {
  .options .option.option--plan:not(:has(.option__art)) { grid-template-columns: auto minmax(0, 1fr); }
}

@layer pages {
  /* Room for the sticky receipt to finish, so its top never slides under the header. */
  .receipt__detail { margin-top: 10px; }
}

/* --------------------------------------------------------------------------
   Calculator, third review: one card anatomy and a result moment.
   -------------------------------------------------------------------------- */
@layer pages {
  .js-only { display: none; }
  .js .js-only { display: inline; }
  html:not(.js) .payback { display: none; }

  /* Our own controls, everywhere in the calculator. */
  .option input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid #8089a8; border-radius: 50%; background: var(--foam) center / 100% no-repeat; transition: background-color 0.18s, border-color 0.18s, transform 0.18s var(--ease-out); }
  .option input[type='checkbox'] { border-radius: 7px; }
  .option:hover input:not(:checked):not(:disabled) { border-color: var(--night); }
  .option input:checked { border-color: var(--water); background-color: var(--water); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: tick-in 0.26s var(--ease-out); }
  @keyframes tick-in { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } }
  @media (forced-colors: active) { .option input { -webkit-appearance: auto; appearance: auto; } }

  /* Tiles and cards: art and text share a left edge, the check sits top right. */
  .options .option.option--tile, .options .option.option--card { position: relative; grid-template-columns: minmax(0, 1fr) !important; }
  .options .option.option--tile input, .options .option.option--card input { position: absolute; top: 14px; right: 14px; margin: 0; }
  .options .option.option--tile .option__art, .options .option.option--card .option__art { grid-column: 1; grid-row: 1; justify-self: start; }
  .options .option.option--tile .option__body, .options .option.option--card .option__body { grid-column: 1; grid-row: 2; }
  .options .option.option--card .option__price { grid-column: 1; grid-row: 3; }
  .option__art .glyph { display: block; }
  @container questions (max-width: 740px) {
    .options .option.option--card { grid-template-columns: auto minmax(0, 1fr) !important; }
    .options .option.option--card input { position: static; grid-column: 1; grid-row: 1; margin-top: 1px; }
    .options .option.option--card .option__body { grid-column: 2; grid-row: 1; }
    .options .option.option--card .option__price { grid-column: auto; grid-row: auto; }
  }
  .plan-includes { display: grid; margin-top: 12px; padding: 0 4px; }
  .plan-includes .link { display: inline; }
  .advanced[hidden] { display: none; }

  /* The step bar: done looks done. */
  .flow__step.is-done .flow__n { font-size: 0; background: #e7ebff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231f3be8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; }

  /* The result moment. */
  .step-panel[data-panel='review'] .q__title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
  .review-total { display: grid; gap: 6px; margin-top: 18px; }
  .review-total[hidden] { display: none; }
  .review-total strong { font-size: clamp(3rem, 2rem + 3.6vw, 4.75rem); font-stretch: 122%; font-weight: 860; letter-spacing: -0.045em; line-height: 1; color: var(--water); }
  .review-total span { font-size: 1.0625rem; color: var(--ink-2); }
  .js .step-panel.is-current .review-total strong { animation: panel-in 0.5s var(--ease-out); }
  .js .estimator.at-review .receipt__actions > .btn { display: none; }
  .js .estimator.at-review .receipt__actions > .receipt__more { display: none; }
  .js .step-panel[data-panel='review'] .panel__nav { align-items: center; padding-top: 4px; }
  .js .step-panel[data-panel='review'] .panel__nav .btn { min-width: 44px; padding-inline: 4px; }
  .receipt__more { display: none; }
  #schedule-title, #estimate-faq-title { font-size: var(--h3); }
  .schedules:not(:has(.schedule + .schedule)) { grid-template-columns: minmax(0, 1fr); }
  #estimate-faq { padding-top: clamp(40px, 4vw, 72px); }

  /* "from" is a label, not a number. */
  .figures__from { font-size: 0.8125rem; font-weight: 560; font-stretch: 100%; letter-spacing: 0; color: var(--on-water-2); }
  .figures dd { white-space: normal; }

  /* Receipt details. */
  .tiles__count { display: none; font-size: 0.8125rem; font-weight: 650; margin-left: 2px; }
  @media (min-width: 1024px) {
    .js .estimator:not(.at-review) .receipt__actions { border-top: 0; padding-top: 8px; }
    .js .estimator:not(.at-review) .receipt__detail { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
  }
  @media (min-width: 1024px) and (max-height: 900px) {
    .js .estimator:not(.at-review) .tile { display: none; }
    .js .estimator:not(.at-review) .tiles__more { display: none; }
    .js .estimator:not(.at-review) .tiles__count { display: inline; margin-left: 0; color: var(--on-water-2); }
  }
  @media (min-width: 1024px) and (max-height: 720px) {
    .js .estimator:not(.at-review):not(.is-all) .receipt__detail { display: none; }
    .js .estimator:not(.at-review):not(.is-all) .receipt__more { display: inline-flex; justify-self: start; }
    .js .estimator:not(.at-review):not(.is-all) .receipt__card { padding-block: 16px; }
    .js .estimator:not(.at-review):not(.is-all) .receipt__actions > a.tool { display: none; }
  }

  /* Phone: terms in three even columns; the estimate as a sheet over the step. */
  @media (max-width: 560px) {
    .options--row { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
    .options--row .option { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
    .options--row .option__body { grid-column: 1; }
  }
  .peek-close { display: none; }
  @media (max-width: 1023px) {
    html.peek-lock { overflow: hidden; }
    .js .estimator.is-peek::after { content: ''; position: fixed; inset: 0; z-index: 110; background: rgba(13, 22, 64, 0.5); animation: fade-in 0.2s; }
    .js .estimator.is-peek .receipt { display: block !important; position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 120; margin: 0; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; animation: sheet-in 0.3s var(--ease-out); }
    .js .estimator.is-peek .receipt__card { position: relative; border-radius: 22px 22px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .js .estimator.is-peek .peek-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: var(--foam); font-size: 1.4rem; line-height: 1; }
    @keyframes sheet-in { from { transform: translateY(40%); opacity: 0; } }
    @keyframes fade-in { from { opacity: 0; } }
  }

  /* Home and pricing rough edges. */
  .who svg { width: 18px; height: 18px; }
  .package .ticks { align-content: start; gap: 10px; }
  .planrow__link { display: inline-flex; align-items: center; min-height: 44px; }
  @media (max-width: 480px) {
    .planrow > summary { grid-template-columns: minmax(0, 1fr); }
    .planrow__name strong { padding-right: 6.5em; }
    .planrow__price { position: absolute; top: 15px; right: 44px; }
  }
}

@media print {
  .peek-close, .receipt__more { display: none !important; }
}

@layer pages {
  @media (max-width: 360px) {
    .options .option.option--plan:has(.option__price) .option__title { padding-right: 0; }
    .options .option.option--plan:has(.option__price) .option__title + .option__detail { margin-top: 26px; }
    .options .option.option--card .option__title { padding-right: 0; }
    .options .option.option--card .option__body { padding-top: 26px; }
    .options .option.option--card .option__price { left: 52px; right: auto; text-align: left; }
    .options .option.option--plan .option__price { left: 52px; right: auto; top: 40px; }
    .options .option.option--plan:not(:has(.option__art)) .option__price { left: 52px; }
  }
}

/* --------------------------------------------------------------------------
   Calculator, fourth review.
   -------------------------------------------------------------------------- */
@layer pages {
  /* Details open smoothly. */
  .option__expand-in { display: grid; gap: 6px; min-height: 0; overflow: hidden; }
  .option__expand { display: grid !important; grid-template-rows: 1fr; gap: 0; margin-top: 0; animation: none !important; transition: grid-template-rows 0.24s var(--ease-out); }
  .option__expand-in::before { content: ''; display: block; height: 2px; }
  .js .option:not(:has(input:checked)) .option__expand { grid-template-rows: 0fr; }
  .js .option--card:not(:has(input:checked)) .option__expand { grid-template-rows: 1fr; }
  @container questions (max-width: 740px) {
    .js .option--card:not(:has(input:checked)) .option__expand { grid-template-rows: 0fr; }
  }

  /* Pricing rows on phones: name and price share a line, the rest runs full width. */
  @media (max-width: 480px) {
    .planrow > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
    .planrow__name { display: contents; }
    .planrow__name strong { grid-column: 1; grid-row: 1; padding-right: 0; }
    .planrow__name > span { grid-column: 1 / -1; }
    .planrow__price { position: static; grid-column: 2; grid-row: 1; }
    .planrow__price span { display: inline; }
  }

  /* Controls the phone rule shouldn't have hidden. */
  .js .step-panel .flow__all { display: inline-flex; align-items: center; }
  .flow__all[hidden] { display: none !important; }

  /* Result: three figures of equal rank, and a quieter itemized estimate. */
  .review-total { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(16px, 2.4vw, 36px); margin-top: 22px; padding: clamp(18px, 2vw, 26px); border-radius: 18px; background: var(--water); color: var(--foam); }
  .review-total > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
  .review-total > div > span { font-size: 0.875rem; color: var(--on-water-2); }
  .review-total strong { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); color: var(--foam); letter-spacing: -0.035em; font-stretch: 116%; line-height: 1.05; font-weight: 820; }
  .review-total strong small { font-size: 0.8125rem; font-weight: 560; font-stretch: 100%; letter-spacing: 0; color: var(--on-water-2); }
  @media (max-width: 560px) {
    .review-total { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-total > div:last-child { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--on-water-line); }
    .review-total > div:last-child strong { font-size: 2.3rem; }
    .review-actions .btn { width: 100%; }
  }
  .js .estimator.at-review .receipt__card { --on-water-2: var(--ink-2); --on-water-line: var(--mist); background: var(--foam); color: var(--night); box-shadow: inset 0 0 0 1.5px var(--mist); }
  .js .estimator.at-review .figures { display: none; }
  .js .estimator.at-review .blueprint .tile { box-shadow: inset 0 0 0 1px var(--mist); }
  .js .estimator.at-review .chip { background: var(--shoal); }
  .js .estimator.at-review .blueprint .bar { fill: var(--mist); }
  .js .estimator.at-review .blueprint .bar--on { fill: var(--water); }
  .js .estimator.at-review .tool { color: var(--water); }
  .js .estimator.at-review .receipt__custom { background: var(--shoal); }
  .js .estimator.at-review .receipt__actions { border-top-color: var(--mist); }
  .js .step-panel[data-panel='review'] .panel__nav .btn { min-height: 48px; padding: 0 1.4em; border: 0; color: var(--night); font-weight: 650; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--night); }

  /* Empty estimates don't pretend. */
  .js .estimator.is-empty .receipt__detail, .js .estimator.is-empty .receipt__actions > .btn, .js .estimator.is-empty .receipt__actions > .tool { display: none; }

  /* Short laptops: figures and the call stay; the breakdown is one tap away. */
  @media (min-width: 1024px) and (max-height: 820px) {
    .js .estimator:not(.at-review):not(.is-all) .receipt__detail { display: none; }
    .js .estimator:not(.at-review):not(.is-all) .receipt__more { display: inline-flex; justify-self: start; }
    .js .estimator:not(.at-review):not(.is-all) .receipt__actions > a.tool { display: none; }
    .js .estimator:not(.at-review):not(.is-all) .blueprint__help span { display: inline; }
    .js .estimator:not(.at-review):not(.is-all) .blueprint__help { display: flex; }
  }
  @media (min-width: 1024px) and (max-height: 900px) {
    .js .estimator:not(.at-review) .blueprint__help span { display: inline; }
  }

  /* Goal cards: text gets the room. */
  .options--goals { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); grid-auto-rows: 1fr; }
  .options .option.option--goal { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; }
  .option--goal .option__title { font-size: 0.9375rem; line-height: 1.25; }
  .plans-note { margin-top: 14px; }
  .delta { font-variant-numeric: normal; }
}

@media print {
  .js .estimator .figures { display: grid !important; }
  .review-total { display: none !important; }
}

@layer pages {
  .js .estimator.at-review.is-empty .receipt__tools, .js .estimator.is-empty .receipt__actions > .receipt__more { display: none; }
  .js .estimator.at-review.is-empty .receipt__head { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Calculator, fifth review.
   -------------------------------------------------------------------------- */
@layer pages {
  /* Short laptops: what you chose stays named, and the breakdown link shows. */
  @media (min-width: 1024px) and (max-height: 820px) {
    .js .estimator:not(.at-review):not(.is-all) .receipt__actions > .receipt__more.tool { display: inline-flex; justify-self: start; min-height: 36px; }
    .js .estimator:not(.at-review) .blueprint { display: flex; flex-wrap: wrap; }
    .js .estimator:not(.at-review) .blueprint .chips { display: flex; }
  }

  /* The next step is always in reach above phone width. */
  @media (min-width: 561px) {
    .js .estimator:not(.is-all) .step-panel:not([data-panel='review']) .panel__nav { position: sticky; bottom: 0; z-index: 4; padding-block: 12px; background: var(--foam); box-shadow: 0 -1px 0 var(--mist); }
  }

  /* Result: orientation first, then figures, actions and the itemized estimate. */
  .js .estimator:not(.is-all) .step-panel[data-panel='review'].is-current { display: flex; flex-direction: column; }
  .js .estimator:not(.is-all) .step-panel[data-panel='review'] .panel__step { order: 0; }
  .js .estimator:not(.is-all) .step-panel[data-panel='review'] .panel__nav { order: 1; padding-bottom: 8px; }
  .js .estimator:not(.is-all) .step-panel[data-panel='review'] .panel__nav .btn { min-height: 44px; padding-inline: 1.2em; }
  .js .estimator:not(.is-all) .step-panel[data-panel='review'] .q--plain { order: 2; padding-top: 4px; }

  /* Phone: the change chip floats clear of the figures; the sheet's call stays pinned. */
  .tally__delta { position: absolute; left: 14px; top: -30px; box-shadow: 0 6px 16px -8px rgba(13, 22, 64, 0.7); }
  @media (max-width: 1023px) {
    .js .estimator.is-peek .receipt__actions { position: sticky; bottom: 0; z-index: 2; margin: 12px calc(clamp(24px, 2.4vw, 36px) * -1) calc(max(20px, env(safe-area-inset-bottom)) * -1); padding: 12px clamp(24px, 2.4vw, 36px) max(14px, env(safe-area-inset-bottom)); background: var(--water); box-shadow: 0 -1px 0 var(--on-water-line); }
    .js .estimator.is-peek .receipt__actions > .tool { display: none; }
  }
  .js .estimator.at-review .receipt__tools .tool { min-height: 40px; font-size: 0.875rem; }
}

@layer pages {
  @media (min-width: 561px) { html:has(.estimator) { scroll-padding-top: calc(var(--header-h) + 96px); } }
  .js .estimator.at-review .receipt__tools .tool { min-height: 44px; }
}

/* Subscription terms: the pricing callout and the estimator's term summary. */
@layer pages {
  .terms-callout {
    margin: 0 0 var(--block, 32px);
    padding: 16px 20px;
    border-left: 4px solid var(--water);
    border-radius: 0 12px 12px 0;
    background: var(--foam);
    max-width: 52rem;
  }
  .terms-list { display: grid; gap: 10px; margin: 8px 0 0; }
  .terms-list > div { display: grid; grid-template-columns: minmax(7.5rem, 9rem) 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--mist); }
  .terms-list dt { font-weight: 680; font-stretch: 106%; }
  .terms-list dd { margin: 0; color: var(--ink-2); }
  @media (max-width: 560px) { .terms-list > div { grid-template-columns: 1fr; } }

  /* Founder portrait on the About page (shown once site.founderPhoto is set). */
  .founder-portrait { margin: 0 0 24px; max-width: 360px; }
  .founder-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--shoal); }
  .note__photo { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
  .founder-portrait figcaption { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
}

/* Family disclosure on portfolio cards, and client quotes (src/data/testimonials.mjs). */
@layer pages {
  .project__info .project__relation { font-size: 0.9375rem; font-weight: 560; color: var(--night); }
  .field-water .project__info .project__relation { color: var(--foam); }
  .quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 20px; list-style: none; }
  .quote { display: grid; gap: 16px; height: 100%; margin: 0; padding: 24px; border-radius: var(--radius); background: var(--foam); border: 1px solid var(--mist); }
  .quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.5; }
  .quote figcaption { color: var(--ink-2); font-size: 0.9375rem; }
  .quote figcaption strong { display: block; color: var(--night); }
  .quote__disclosure { display: block; margin-top: 4px; font-style: italic; }
}

/* Long words in display headings wrap instead of widening the page on small phones. */
@layer pages {
  h1, .hero__title, .display-l { overflow-wrap: break-word; }
}
