/*
  Typography note: this concept pairs Bodoni Moda for editorial
  headlines with Manrope for body and interface copy. The local OFL
  variable webfonts cover Bodoni Moda 400–500 and Manrope 300–600.
*/
@font-face {
  font-display: swap;
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 500;
  src: url("../fonts/bodoni-moda/bodoni-moda-latin.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 600;
  src: url("../fonts/manrope/manrope-latin.woff2") format("woff2");
}

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

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-height) + 12px); }
  body, h1, h2, h3, p, figure, fieldset, dl, dd { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input, select { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer tokens {
  :root {
    /* Two-colour identity (Bakos Style Guide §2.2): Bakos Blue #00053E (Pantone 282 C) + white. */
    --blue: #00053E;
    --white: #ffffff;
    --text: var(--blue);
    --muted: #52557C;
    --line: rgba(0, 5, 62, 0.16);
    --muted-inverse: rgba(255, 255, 255, 0.74);
    --line-inverse: rgba(255, 255, 255, 0.26);
    --focus: var(--blue);
    --success: #237A45;
    --error: #9c262d;
    --error-surface: #f2d8d6;
    --display: "Bodoni Moda", Georgia, serif;
    --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --gutter-max: 88px;
    --gutter: clamp(24px, 4.6vw, var(--gutter-max));
    --content: 1680px;
    --section-space: clamp(32px, 3.5vw, 56px);
    --story-image: clamp(260px, 24vw, 380px);
    --header-height: 124px;
    --header-logo-size: 108px;
    --header-nav-size: 0.5rem;
    --footer-nav-size: 0.72rem;
    --footer-logo-size: 80px;
    --closing-fade: clamp(36px, 2.5vw, 48px);
    --control-height: 50px;
    --motion-ui: 180ms;
    --motion-header: 320ms;
    --motion-text: 700ms;
    --motion-image: 1000ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-header: cubic-bezier(0.22, 0.61, 0.36, 1);
  }
}

@layer base {
  body {
    background: var(--white);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
  }

  body.consultation-open,
  body.nav-open { overflow: hidden; }
  a { color: inherit; }

  :where(main[id], section[id], h1[id], h2[id], h3[id]) { scroll-margin-top: 0; }

  h1, h2, h3 {
    color: var(--blue);
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
    text-wrap: balance;
  }

  h1 { font-size: clamp(4.1rem, 7.4vw, 8.2rem); }
  h2 { font-size: clamp(3.1rem, 5.7vw, 6.2rem); }
  h3 { font-size: clamp(2rem, 3.2vw, 3.6rem); }

  :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 5px;
  }

  ::selection { background: var(--blue); color: var(--white); }
}

@layer layout {
  .editorial-section,
  .heritage-inner,
  .story-page-hero,
  .story-block,
  .story-chapter,
  .story-offer,
  .story-generations,
  .final-invitation,
  .site-footer,
  .contact-legal {
    padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
  }

  .editorial-section { padding-block: var(--section-space); }
  .point-of-view { padding-top: clamp(96px, 12vw, 168px); }
  .services { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .services > .section-label,
  .services > .chapter-heading { grid-column: 1 / -1; }
  .environments {
    padding-bottom: clamp(20px, 1.6vw, 30px);
    padding-top: clamp(48px, 5vw, 80px);
  }

  .hero {
    background: var(--blue);
    color: var(--white);
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: max(720px, 100svh);
    overflow: hidden;
    position: relative;
  }

  .site-header {
    align-items: center;
    background: rgba(0, 5, 62, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: grid;
    gap: clamp(18px, 3vw, 44px);
    grid-template-columns: 1fr auto;
    left: 0;
    min-height: var(--header-height);
    padding: 8px max(var(--gutter), calc((100% - var(--content)) / 2));
    position: fixed;
    right: 0;
    top: 0;
    z-index: 30;
  }

  body:not(:has([data-hero])) .site-header {
    background: var(--blue);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav { align-self: end; grid-column: 1 / -1; justify-self: end; }
  .hero-copy {
    align-self: end;
    margin-bottom: clamp(28px, 4vh, 54px);
    max-width: min(64rem, 72vw);
    padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2));
    position: relative;
    z-index: 2;
  }

  .hero-foot {
    align-items: stretch;
    border-top: 1px solid var(--line-inverse);
    display: grid;
    grid-template-columns: minmax(100px, 2fr) minmax(550px, 7fr);
    padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2));
    position: relative;
    z-index: 2;
  }

  .point-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(24px, 3vw, 44px);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-top: clamp(24px, 3vw, 40px);
  }

  .point-grid > h2 { align-self: start; grid-column: 1 / span 7; grid-row: 1; }
  .point-copy { align-self: end; grid-column: 1 / span 5; grid-row: 2; padding-top: 8px; }
  .point-detail { grid-column: 8 / -1; grid-row: 1 / span 2; margin: 0; }

  .chapter-heading {
    display: grid;
    gap: clamp(20px, 3vw, 44px);
    grid-template-columns: minmax(0, 2fr) minmax(240px, 0.7fr);
    margin-block: clamp(20px, 3vw, 40px);
  }

  .service-chapter {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    margin-top: 0;
  }

  .service-chapter .service-image { grid-column: 1; grid-row: 1; }
  .service-chapter .service-caption { grid-column: 2; grid-row: 1; }
  .service-chapter-reverse { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
  .service-chapter-reverse .service-image { grid-column: 2; grid-row: 1; }
  .service-chapter-reverse .service-caption { grid-column: 1; grid-row: 1; }

  .environment-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(16px, 2vw, 28px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(40px, 5vw, 80px);
  }

  .environment-landscape,
  .environment-portrait { grid-column: auto; margin-top: 0; }

  .heritage {
    background: linear-gradient(180deg, var(--white) 0%, var(--blue) clamp(72px, 9vw, 140px));
    color: var(--white);
  }
  .heritage-inner { padding-block: calc(var(--section-space) + clamp(40px, 5vw, 84px)) clamp(14px, 1.4vw, 20px); }

  .heritage-grid {
    align-items: center;
    display: grid;
    gap: clamp(24px, 6vw, 80px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    margin-top: clamp(28px, 5vw, 72px);
  }

  .final-invitation {
    align-items: center;
    background: var(--blue);
    color: var(--white);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 9fr) minmax(180px, 3fr);
    padding-block: clamp(64px, 3.55vw, 68px) clamp(30px, 2vw, 36px);
  }

  .final-invitation--from-white {
    background: linear-gradient(180deg, var(--white) 0, var(--blue) var(--closing-fade), var(--blue) 100%);
  }

  .story-hero {
    --hero-position: 50% 62%;
  }

  .story-hero .hero-copy {
    max-width: min(46rem, 82vw);
    padding-bottom: clamp(36px, 5vh, 72px);
  }

  .story-main { background: var(--white); color: var(--text); }

  .story-spread.service-chapter {
    grid-template-columns: 56% 44%;
    min-height: clamp(500px, 66svh, 680px);
    padding: 0;
    width: 100%;
  }
  .story-spread.service-chapter-reverse { grid-template-columns: 44% 56%; }
  .story-spread.story-personal {
    grid-template-columns: 50% 50%;
    min-height: clamp(520px, 60svh, 640px);
  }

  .story-archive {
    background: var(--blue);
    color: var(--white);
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto auto;
  }
  .archive-track { min-width: 0; }

  .site-footer {
    align-items: stretch;
    background: var(--blue);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    column-gap: clamp(24px, 2vw, 36px);
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    min-height: 118px;
    padding-block: clamp(18px, 1vw, 20px);
  }

  .consultation-frame {
    display: grid;
    grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
    min-height: 100dvh;
  }

  .brief-intro {
    align-content: space-between;
    background: var(--blue);
    color: var(--white);
    display: grid;
    min-height: 100dvh;
    padding: clamp(100px, 12vh, 150px) clamp(32px, 5vw, 90px) clamp(36px, 6vw, 82px) max(var(--gutter), calc((100vw - var(--content)) / 2));
  }

  .brief-shell {
    background: var(--white);
    color: var(--text);
    min-height: 100dvh;
    padding: clamp(100px, 12vh, 150px) max(var(--gutter), calc((100vw - var(--content)) / 2)) clamp(60px, 8vw, 120px) clamp(34px, 6vw, 108px);
  }

  .contact-hero {
    --hero-position: 58% 48%;
    grid-template-rows: 1fr auto;
  }

  .story-hero .hero-copy h1 {
    color: var(--white);
    font-size: clamp(3.4rem, 6vw, 6.4rem);
    max-width: 12ch;
  }

  .story-hero .story-kicker,
  .story-hero .hero-summary {
    color: rgba(255, 255, 255, 0.88);
  }

  .story-hero .provenance-list dt { color: var(--muted-inverse); }
  .story-hero .provenance-list dd { color: var(--white); }

  .contact-hero .hero-copy {
    max-width: min(42rem, 78vw);
    padding-bottom: clamp(36px, 5vh, 64px);
  }

  .contact-legal {
    background: var(--white);
    padding-block: clamp(36px, 4vw, 56px);
  }
}

@layer components {
  .site-header :focus-visible,
  .nav-sheet :focus-visible,
  .hero-paths :focus-visible,
  .heritage :focus-visible,
  .final-invitation :focus-visible,
  .site-footer :focus-visible,
  .brief-close:focus-visible { outline-color: var(--white); }

  a[data-open-brief] { cursor: pointer; }

  .skip-link {
    background: var(--white);
    color: var(--blue);
    left: 16px;
    padding: 12px 18px;
    position: fixed;
    top: -80px;
    z-index: 100;
  }

  .skip-link:focus { top: 16px; }

  .hero-media,
  .hero-media img,
  .hero-veil {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }

  .hero-media { pointer-events: none; z-index: 0; }
  .hero-media img { object-fit: cover; object-position: var(--hero-position, 50% 55%); }
  .hero-veil { background: linear-gradient(180deg, rgba(0, 5, 62, 0.62) 0%, rgba(0, 5, 62, 0.48) 40%, rgba(0, 5, 62, 0.58) 80%, rgba(0, 5, 62, 0.88) 100%); pointer-events: none; z-index: 1; }

  .brand {
    display: block;
    height: var(--header-logo-size);
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--header-logo-size);
  }
  .brand img { height: 100%; object-fit: contain; width: 100%; }

  .site-nav { align-items: stretch; display: flex; gap: clamp(14px, 0.8vw, 16px); }

  .site-nav a,
  .sheet-nav a {
    align-items: flex-end;
    border: 0;
    color: var(--white);
    display: flex;
    font-family: var(--body);
    font-size: var(--header-nav-size);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    min-height: 44px;
    padding: 0 0 8px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--motion-header) var(--ease-header);
  }

  .site-nav > a::after {
    background: currentColor;
    bottom: 5px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--motion-header) var(--ease-header);
    width: 100%;
  }

  .sheet-nav a { font-size: var(--footer-nav-size); }
  .site-nav > a:hover::after,
  .site-nav > a:focus-visible::after,
  .site-nav > a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .primary-action {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--white);
    border-radius: 0;
    color: var(--blue);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 26px;
    justify-self: end;
    letter-spacing: 0.13em;
    min-height: 50px;
    padding: 13px 22px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color var(--motion-header) var(--ease-header),
      border-color var(--motion-header) var(--ease-header),
      color var(--motion-header) var(--ease-header),
      transform var(--motion-ui) var(--ease-standard);
  }

  .primary-action:hover { background: transparent; color: var(--white); }
  .primary-action:active { transform: translateY(1px); }

  .closing-action {
    align-items: flex-end;
    align-self: end;
    color: var(--white);
    display: inline-flex;
    font-size: var(--footer-nav-size);
    font-weight: 500;
    justify-self: end;
    letter-spacing: 0.12em;
    line-height: 1.2;
    min-height: 44px;
    padding: 0 0 8px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
  }

  .closing-action::after {
    background: currentColor;
    bottom: 5px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform var(--motion-header) var(--ease-header);
    width: 100%;
  }

  .closing-action:hover::after,
  .closing-action:focus-visible::after { transform: scaleX(1); }

  .brand img { transition: transform var(--motion-header) var(--ease-header); }
  .brand:hover img,
  .brand:focus-visible img { transform: scale(1.025); }

  .nav-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line-inverse);
    border-radius: 0;
    color: var(--white);
    cursor: pointer;
    display: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 12px;
    justify-self: end;
    letter-spacing: 0.14em;
    min-height: 48px;
    padding: 10px 16px;
    text-transform: uppercase;
    transition: background-color var(--motion-header) var(--ease-header),
      border-color var(--motion-header) var(--ease-header),
      color var(--motion-header) var(--ease-header);
  }

  .nav-toggle[aria-expanded="true"] { background: var(--white); border-color: var(--white); color: var(--blue); }

  .nav-sheet {
    background: var(--blue);
    color: var(--white);
    display: grid;
    inset: 0;
    padding: clamp(120px, 22vh, 200px) var(--gutter) var(--gutter);
    position: fixed;
    z-index: 25;
  }

  .sheet-nav { align-content: start; display: grid; gap: 6px; }

  .sheet-nav a,
  .sheet-nav button {
    align-items: center;
    border: 0;
    border-top: 1px solid var(--line-inverse);
    cursor: pointer;
    display: flex;
    font-size: clamp(1.5rem, 6.4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    min-height: 76px;
    justify-content: space-between;
    padding-inline: 0;
    text-decoration: none;
    text-transform: uppercase;
  }

  .sheet-nav button {
    background: transparent;
    color: var(--white);
    cursor: pointer;
    justify-content: space-between;
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .eyebrow,
  .section-label,
  .form-kicker,
  .story-date {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .section-label-light { color: var(--muted-inverse); }

  .hero-copy h1 {
    color: var(--white);
    font-size: clamp(4.3rem, 6.6vw, 7.4rem);
    margin-top: 28px;
    max-width: 12.1em;
  }
  .hero-summary { font-size: clamp(1rem, 1.05vw, 1.15rem); font-weight: 300; margin-top: 28px; max-width: 44ch; }

  .hero-path-label {
    align-items: center;
    color: var(--muted-inverse);
    cursor: default;
    display: flex;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .hero-paths { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-paths :where(a, button) {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line-inverse);
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-size: 0.7rem;
    font-weight: 600;
    justify-content: space-between;
    letter-spacing: 0.12em;
    min-height: 80px;
    padding: 16px 22px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color var(--motion-ui) var(--ease-standard),
      color var(--motion-ui) var(--ease-standard),
      transform var(--motion-ui) var(--ease-standard);
  }

  .hero-paths :where(a, button):hover,
  .hero-paths :where(a, button):focus-visible {
    background: var(--white);
    color: var(--blue);
  }

  .hero-paths :where(a, button):focus-visible { box-shadow: inset 0 0 0 3px var(--blue); }
  .hero-paths :where(a, button):active { background: rgba(255, 255, 255, 0.86); transform: translateY(1px); }

  .point-grid > h2 { max-width: 14ch; }
  .point-copy > p,
  .chapter-heading > p { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.18rem); font-weight: 300; }

  .text-action,
  .chapter-action {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 24px;
    letter-spacing: 0.13em;
    min-height: 44px;
    padding: 11px 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--motion-ui) var(--ease-standard),
      transform var(--motion-ui) var(--ease-standard);
  }

  .text-action:hover,
  .chapter-action:hover { opacity: 0.68; transform: translateX(2px); }
  .text-action:active,
  .chapter-action:active { opacity: 0.82; transform: translateX(1px); }
  .point-copy .text-action { margin-top: 28px; }
  .point-detail img { aspect-ratio: 4 / 5; height: auto; max-height: clamp(320px, 42vh, 560px); object-fit: cover; width: 100%; }
  .point-detail figcaption,
  .environment-grid figcaption,
  .archive-object figcaption {
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    padding-top: 13px;
    text-transform: uppercase;
  }

  .chapter-heading h2 { max-width: 14ch; }
  .chapter-heading > p { align-self: end; max-width: 38ch; }

  .service-image { height: clamp(300px, 26vw, 460px); min-height: clamp(300px, 26vw, 460px); overflow: hidden; }
  .service-image img { height: 100%; object-fit: cover; width: 100%; }
  .service-caption {
    align-content: stretch;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(20px, 2.5vw, 36px);
  }

  .service-caption h3 { font-size: clamp(1.8rem, 2.6vw, 2.8rem); }
  .service-caption > p { color: var(--muted); margin-top: 14px; max-width: 32ch; }
  .service-caption .chapter-action { justify-self: start; margin-top: 22px; }

  .environments-heading { margin-bottom: clamp(16px, 2vw, 28px); }
  .environment-grid figure { display: grid; grid-template-rows: auto auto; margin: 0; }
  .environment-grid img { height: clamp(260px, 24vw, 380px); object-fit: cover; width: 100%; }
  .environment-landscape img { object-position: 50% 50%; }
  .environment-portrait img { object-position: 50% center; }
  .environment-grid figcaption { display: flex; justify-content: space-between; }
  .environment-grid figcaption span:first-child { color: var(--blue); font-weight: 600; }
  .environment-grid figcaption span:last-child { color: var(--muted); text-align: right; }

  .story-copy h1,
  .story-copy h2 { color: var(--blue); margin-top: 20px; max-width: 18ch; }
  .story-page-hero .story-copy h1 { font-size: clamp(2.4rem, 3.6vw, 3.2rem); }
  .story-copy > p:not(.story-date):not(.story-kicker) { color: var(--muted); margin-top: 16px; max-width: 46ch; }
  .story-kicker {
    color: var(--blue);
    font-family: var(--display);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-top: 16px;
    max-width: 22ch;
  }
  .story-hero .hero-copy h1 {
    color: var(--white);
    font-size: clamp(3.4rem, 6vw, 6.4rem);
    max-width: 12ch;
  }
  .story-hero .story-kicker,
  .story-hero .hero-summary {
    color: rgba(255, 255, 255, 0.9);
    max-width: 28ch;
  }
  .story-hero .provenance-list dt { color: var(--muted-inverse); }
  .story-hero .provenance-list dd { color: var(--white); }
  .story-copy h2 { font-size: clamp(2.4rem, 3.6vw, 3.2rem); }
  .story-brief {
    border-bottom: 1px solid var(--line);
    color: var(--blue);
    display: inline-block;
    font-weight: 500;
    margin-top: 28px;
    max-width: 36ch;
    min-height: 44px;
    padding-bottom: 6px;
    text-decoration: none;
  }
  .story-brief:hover,
  .story-brief:focus-visible { opacity: 0.68; }
  .story-close-block > p { color: var(--muted); max-width: 46ch; }
  .provenance-list {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px clamp(18px, 2.4vw, 36px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .provenance-list > li,
  .provenance-list > div { align-items: baseline; display: flex; gap: 10px; }
  .provenance-list dt,
  .provenance-list .provenance-label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .provenance-list dd { margin: 0; }

  .story-spread.service-chapter { gap: 0; }
  .story-spread .story-pane,
  .story-archive .story-pane {
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 5vw, 88px);
  }
  .story-pane h2 {
    font-size: clamp(2.4rem, 3.25vw, 4rem);
    line-height: 1.08;
    max-width: 17ch;
    text-wrap: balance;
  }
  .story-pane p {
    font-size: clamp(0.94rem, 1.05vw, 1.08rem);
    line-height: 1.75;
    max-width: 44ch;
  }
  .story-pane p + p { margin-top: 20px; }
  .story-pane h2 + p { margin-top: 28px; }
  .story-spread .story-pane p { color: var(--muted); }
  .story-spread .service-image {
    --story-caption-height: 44px;
    background: var(--blue);
    height: auto;
    min-height: 0;
    position: relative;
  }
  .story-spread .service-image img {
    height: calc(100% - var(--story-caption-height));
    inset: 0 0 var(--story-caption-height);
    object-fit: cover;
    object-position: center 20%;
    position: absolute;
    width: 100%;
  }
  .story-spread .service-image figcaption {
    align-items: center;
    bottom: 0;
    color: var(--white);
    display: flex;
    font-size: 0.6rem;
    gap: 8px 20px;
    justify-content: space-between;
    letter-spacing: 0.08em;
    min-height: var(--story-caption-height);
    padding: 10px 24px;
    position: absolute;
    text-transform: uppercase;
    width: 100%;
  }
  .story-personal .story-pane { padding: clamp(40px, 4.5vw, 80px); }
  .story-personal .story-pane h2,
  .story-offer h2 { font-size: clamp(2.3rem, 2.9vw, 3.4rem); max-width: 15ch; }
  .story-personal .story-pane p { max-width: 48ch; }
  .story-personal .service-image img { object-position: center 38%; }
  .story-offer {
    display: grid;
    gap: clamp(32px, 4vw, 72px);
    grid-template-columns: 0.9fr 1fr 1fr;
    padding: clamp(64px, 6vw, 104px) clamp(40px, 4.5vw, 80px);
  }
  .story-offer p { color: var(--muted); max-width: none; }
  .story-main + .final-invitation { padding-inline: clamp(40px, 4.5vw, 80px); }
  .story-archive h2 { color: var(--white); }
  .story-archive .story-pane p { color: rgba(255, 255, 255, 0.82); }
  .story-archive .story-pane {
    align-self: end;
    grid-column: 1;
    grid-row: 1;
    padding: clamp(36px, 3.4vw, 64px) clamp(36px, 3.4vw, 64px) 0;
  }
  .story-archive :focus-visible { outline-color: var(--white); outline-offset: -5px; }
  .archive-track {
    display: grid;
    outline-offset: -5px;
  }
  .archive-slide {
    background: var(--blue);
    display: grid;
    gap: 20px;
    grid-template-rows: minmax(0, 1fr) auto;
    margin: 0;
    min-width: 0;
    padding: 36px clamp(28px, 4vw, 64px) 28px;
  }
  .archive-slide img {
    align-self: center;
    height: 100%;
    max-height: 580px;
    min-height: 0;
    object-fit: contain;
    width: 100%;
  }
  .archive-slide figcaption {
    align-items: baseline;
    color: rgba(255,255,255,0.82);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.67rem;
    gap: 8px 24px;
    justify-content: space-between;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  .archive-controls {
    align-self: start;
    grid-column: 1;
    grid-row: 2;
    padding: 28px clamp(36px, 3.4vw, 64px) clamp(36px, 3.4vw, 64px);
  }
  .archive-control-row { align-items: center; display: flex; gap: 4px; }
  .archive-controls button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px;
  }
  .archive-control-row > button:not(.archive-play) {
    border: 1px solid var(--line-inverse);
    font-size: 1.35rem;
  }
  .archive-control-row > button:not(.archive-play):hover { background: var(--white); color: var(--blue); }
  .archive-status { font-size: 0.75rem; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
  .archive-controls .archive-play {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-left: auto;
    text-transform: uppercase;
  }
  .archive-dots { display: flex; flex-wrap: wrap; margin-top: 12px; }
  .archive-dots button span { background: rgba(255,255,255,0.35); border-radius: 50%; height: 5px; width: 5px; }
  .archive-dots button[aria-current="true"] span { background: var(--white); }
  .archive-dots button:hover span { background: var(--white); }
  .story-archive.is-enhanced .archive-track {
    align-items: stretch;
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .archive-track::-webkit-scrollbar { display: none; }
  .story-archive.is-enhanced .archive-slide {
    flex: 0 0 100%;
    min-height: clamp(560px, 76svh, 720px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  #story-final-title { font-size: clamp(2.6rem, 4.2vw, 4.4rem); max-width: 16ch; }

  .final-invitation .section-label { padding-top: 12px; }
  .final-invitation h2 {
    color: var(--white);
    font-size: clamp(3.8rem, 4.6vw, 5.4rem);
    max-width: 14ch;
  }
  .final-invitation .closing-action { align-self: end; }

  .footer-brand {
    align-self: center;
    display: block;
    grid-column: 1;
    grid-row: 1;
    height: var(--footer-logo-size);
    justify-self: start;
    width: var(--footer-logo-size);
  }
  .footer-brand img {
    height: 100%;
    image-rendering: auto;
    object-fit: contain;
    width: 100%;
  }

  .footer-nav {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 4px clamp(24px, 1.7vw, 32px);
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .footer-nav a,
  .footer-nav button,
  .footer-email {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-size: var(--footer-nav-size);
    font-weight: 500;
    letter-spacing: 0.12em;
    min-height: 44px;
    padding: 6px 0;
    text-decoration: none;
    text-transform: uppercase;
  }
  .footer-nav [aria-current="page"] { opacity: 0.7; }

  .footer-email {
    align-self: end;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    letter-spacing: 0.01em;
    margin-left: 0;
    overflow-wrap: normal;
    text-transform: none;
    white-space: nowrap;
  }

  .footer-meta {
    align-items: center;
    align-self: end;
    color: var(--muted-inverse);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.6rem;
    gap: 4px 18px;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    justify-self: start;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .footer-meta a { align-items: center; display: inline-flex; min-height: 44px; text-decoration: none; }


  .footer-brand,
  .footer-email,
  .footer-nav a,
  .footer-nav button,
  .footer-meta a {
    transition: opacity var(--motion-ui) var(--ease-standard),
      transform var(--motion-ui) var(--ease-standard);
  }
  .footer-brand:hover { opacity: 0.72; }
  .footer-email:hover,
  .footer-nav a:hover,
  .footer-nav button:hover,
  .footer-meta a:hover { opacity: 0.72; transform: translateY(-2px); }
  .footer-nav [data-open-brief]:active { opacity: 0.82; transform: translateY(1px); }

  .contact-hero .contact-heading h1 {
    color: var(--white);
    font-size: clamp(3.4rem, 6vw, 6.4rem);
    max-width: 10ch;
  }
  .contact-hero .showroom-statement {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    margin-top: 20px;
    max-width: 36ch;
  }
  .contact-hero .contact-channel {
    margin-top: 28px;
  }
  .contact-hero .provenance-list dt {
    color: var(--muted-inverse);
  }
  .contact-hero .contact-email {
    color: var(--white);
  }
  .contact-email {
    align-items: center;
    display: inline-flex;
    font-family: var(--body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    min-height: 44px;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: opacity var(--motion-ui) var(--ease-standard);
  }
  .contact-email:hover,
  .contact-email:focus-visible { opacity: 0.68; }
  .contact-facts { min-width: 0; }
  .contact-facts dl {
    display: grid;
    gap: clamp(20px, 3vw, 36px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }
  .contact-facts dl > div { display: grid; gap: 6px; }
  .contact-facts dt { color: var(--muted); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
  .contact-facts dd { font-weight: 500; overflow-wrap: anywhere; }

  .consultation-layer {
    background: var(--blue);
    border: 0;
    color: var(--white);
    height: 100dvh;
    inset: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    width: 100%;
  }

  .consultation-layer::backdrop { background: rgba(0, 5, 62, 0.88); }

  .consultation-layer.brief-page {
    display: block;
    min-height: 100dvh;
  }

  .consultation-layer.is-dialog-fallback {
    display: block;
    position: fixed;
    z-index: 100;
  }

  .discard-panel {
    align-items: center;
    background: rgba(0, 5, 62, 0.88);
    display: grid;
    inset: 0;
    justify-items: center;
    padding: var(--gutter);
    position: fixed;
    z-index: 60;
  }

  .discard-card {
    background: var(--white);
    color: var(--text);
    max-width: 560px;
    padding: clamp(28px, 5vw, 56px);
    width: 100%;
  }

  .discard-card h3 { margin-top: 18px; }
  .discard-card > p:not(.form-kicker) { color: var(--muted); margin-top: 20px; }
  .discard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .discard-actions button {
    border: 1px solid var(--blue);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    min-height: 48px;
    padding: 12px 18px;
    text-transform: uppercase;
  }
  .discard-actions button:first-child { background: var(--blue); color: var(--white); }
  .discard-actions button:last-child { background: transparent; color: var(--blue); }

  .brief-close {
    align-items: center;
    background: var(--blue);
    border: 1px solid var(--white);
    border-radius: 0;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 24px;
    letter-spacing: 0.13em;
    min-height: 48px;
    padding: 10px 16px;
    position: fixed;
    right: var(--gutter);
    text-transform: uppercase;
    top: 24px;
    z-index: 40;
  }

  a.brief-close { text-decoration: none; }

  .brief-noscript {
    background: var(--error-surface);
    color: var(--blue);
    display: grid;
    font-size: 0.78rem;
    gap: 4px;
    left: var(--gutter);
    padding: 12px 16px;
    position: fixed;
    right: calc(var(--gutter) + 148px);
    top: 24px;
    z-index: 41;
  }

  .brief-close span:last-child { font-size: 1.35rem; font-weight: 300; line-height: 1; }
  .brief-intro :is(h1, h2) { color: var(--white); font-size: clamp(3.1rem, 5.7vw, 6.2rem); margin-top: 36px; max-width: 12ch; }
  .brief-intro > div:first-child > p:not(.section-label) { color: var(--muted-inverse); font-weight: 300; margin-top: 34px; max-width: 40ch; }
  .brief-note { border-top: 1px solid var(--line-inverse); display: flex; font-size: 0.65rem; justify-content: space-between; letter-spacing: 0.12em; padding-top: 16px; text-transform: uppercase; }

  .brief-progress { align-items: center; color: var(--muted); display: flex; font-size: 0.68rem; gap: 24px; letter-spacing: 0.13em; text-transform: uppercase; }
  .brief-progress[hidden] { display: none; }
  .progress-track { background: var(--line); display: block; height: 3px; overflow: hidden; width: 132px; }
  .progress-track span { background: var(--blue); display: block; height: 100%; transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform var(--motion-ui) var(--ease-standard); width: 100%; }

  .brief-form { margin-top: clamp(58px, 7vw, 100px); }
  .form-step h3,
  .brief-success h3 { margin-top: 20px; max-width: 16ch; }
  .form-guidance { color: var(--muted); margin-top: 22px; max-width: 54ch; }
  .form-kicker { color: var(--blue); }
  .required-marker {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1;
    margin-left: 0.2em;
    vertical-align: 0.25em;
  }
  .required-legend {
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 14px;
    max-width: 54ch;
  }

  .service-options { display: grid; margin-top: 46px; }
  .service-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 24px;
    grid-template-columns: 40px minmax(150px, 0.7fr) 1fr;
    min-height: 86px;
    padding: 18px 8px;
    text-align: left;
    width: 100%;
  }

  .service-option:last-child { border-bottom: 1px solid var(--line); }
  .service-option:hover { background: rgba(0, 5, 62, 0.04); }
  .service-option[aria-pressed="true"] {
    background: var(--blue);
    box-shadow: inset 4px 0 0 var(--white);
    color: var(--white);
    padding-inline: 18px;
  }
  .service-option strong {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .service-option[aria-pressed="true"] strong::after {
    content: "Selected";
    display: block;
    font-family: var(--body);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-top: 5px;
    text-transform: uppercase;
  }
  .service-option > span:last-child { color: var(--muted); font-size: 0.85rem; font-weight: 300; }
  .service-option[aria-pressed="true"] > span:last-child { color: var(--muted-inverse); }
  .option-index { font-size: 0.65rem; letter-spacing: 0.12em; }

  .style-options { border: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 46px; padding: 0; }
  .style-option { cursor: pointer; display: grid; position: relative; }
  .style-option input,
  .choice-list input,
  .compact-options input,
  .area-card input {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
  .style-option img { aspect-ratio: 1; height: auto; object-fit: cover; width: 100%; }
  .style-option > span { border: 1px solid var(--line); border-top: 0; display: grid; min-height: 110px; padding: 20px; }
  .style-option strong {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .style-option small { color: var(--muted); font-weight: 300; margin-top: 8px; }
  .style-option:has(input:checked) > span { background: var(--blue); box-shadow: inset 0 0 0 2px var(--white); color: var(--white); }
  .style-option:has(input:checked) strong::after {
    content: " · Selected";
    font-family: var(--body);
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .style-option:has(input:checked) small { color: var(--muted-inverse); }
  .style-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 5px; }

  .choice-list { border: 0; display: grid; margin-top: 46px; padding: 0; }
  .choice-list label { border-top: 1px solid var(--line); cursor: pointer; min-height: 58px; position: relative; }
  .choice-list label:last-child { border-bottom: 1px solid var(--line); }
  .choice-list span { align-items: center; display: flex; min-height: 58px; padding: 8px 12px; }
  .choice-list span::after { content: "+"; font-size: 1.4rem; font-weight: 300; margin-left: auto; }
  .choice-list input:checked + span { background: var(--blue); box-shadow: inset 4px 0 0 var(--white); color: var(--white); padding-inline: 20px; }
  .choice-list input:checked + span::after {
    content: "Selected";
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .choice-list input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

  .area-options { border: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 46px; padding: 0; }
  .area-card { cursor: pointer; display: grid; position: relative; }
  .area-card > span {
    align-items: center;
    border: 1px solid var(--line);
    display: grid;
    font-size: 0.82rem;
    font-weight: 500;
    gap: 12px;
    grid-template-columns: 16px 1fr;
    letter-spacing: 0.01em;
    min-height: 64px;
    padding: 14px 16px;
  }
  .area-card > span::before {
    background: transparent;
    border: 1px solid currentColor;
    content: "";
    height: 12px;
    transition: border-color var(--motion-ui) var(--ease-standard),
      transform var(--motion-ui) var(--ease-standard);
    width: 12px;
  }
  .area-card:has(input:checked) > span {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: inset 0 0 0 2px var(--white);
    color: var(--white);
  }
  .area-card:has(input:checked) > span::before {
    border: 0;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    height: 13px;
    transform: rotate(45deg) translate(-2px, -2px);
    width: 7px;
  }
  .area-card:has(input:focus-visible) > span { outline: 3px solid var(--focus); outline-offset: 3px; }

  .interior-detail {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 24px;
  }

  .interior-detail > p {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .interior-announcement {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 14px;
    min-height: 1.4em;
  }

  .compact-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .compact-options label { cursor: pointer; position: relative; }
  .compact-options span { align-items: center; border: 1px solid var(--line); display: flex; font-weight: 500; min-height: 44px; padding: 8px 14px; }
  .compact-options span::before {
    border: 1px solid currentColor;
    content: "";
    flex: 0 0 auto;
    height: 11px;
    margin-right: 9px;
    width: 11px;
  }
  .compact-options input:checked + span { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--white); color: var(--white); }
  .compact-options input:checked + span::before {
    border: 0;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    height: 12px;
    margin-inline: 2px 11px;
    transform: rotate(45deg) translate(-2px, -2px);
    width: 7px;
  }
  .compact-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

  .file-field { border: 1px dashed rgba(0, 5, 62, 0.38); cursor: pointer; display: grid; margin-top: 46px; padding: 38px; text-align: center; }
  .file-field input { margin: 0 auto 20px; max-width: 100%; min-width: 0; width: 100%; }
  .file-title { font-family: var(--display); font-size: 1.4rem; font-weight: 400; letter-spacing: -0.02em; }
  .file-help { color: var(--muted); font-size: 0.75rem; margin-top: 8px; }
  .file-status { color: var(--muted); font-size: 0.75rem; margin-top: 12px; }
  .file-status:empty { margin: 0; }
  .file-list { list-style: none; padding: 0; }
  .file-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 64px minmax(0, 1fr) auto; padding-block: 12px; }
  .file-thumbnail { align-items: center; background: var(--white); border: 1px solid var(--line); color: var(--blue); display: flex; font-size: 0.7rem; height: 64px; justify-content: center; width: 64px; }
  .file-thumbnail img { height: 100%; object-fit: contain; width: 100%; }
  .file-caption { display: grid; font-size: 0.8rem; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
  .file-caption small { color: var(--muted); font-size: 0.7rem; }
  .file-remove { background: transparent; border: 0; color: var(--blue); cursor: pointer; font: inherit; font-size: 0.7rem; min-height: 44px; min-width: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
  .file-spinner { animation: file-spin 800ms linear infinite; border: 2px solid var(--blue); border-radius: 50%; border-right-color: transparent; height: 20px; width: 20px; }
  @keyframes file-spin { to { transform: rotate(360deg); } }
  .text-field { display: grid; gap: 9px; margin-top: 26px; }
  .text-field > span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .text-field small { color: var(--muted); font-weight: 400; letter-spacing: 0.1em; margin-left: 8px; text-transform: uppercase; }
  .field-label-row { align-items: baseline; display: flex; justify-content: space-between; }
  .field-label-row > span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .text-field .field-optional { font-size: 0.72rem; letter-spacing: 0; margin: 0; text-transform: none; }
  .text-field input {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-size: 1rem;
    min-height: 56px;
    padding: 14px 16px;
    transition: border-color var(--motion-ui) var(--ease-standard);
  }
  .text-field input:focus-visible { border-color: var(--blue); outline: 2px solid var(--focus); outline-offset: 2px; }
  .text-field input[aria-invalid="true"] { border-color: var(--error); }
  .text-field:has(input:focus-visible) > span { color: var(--blue); }
  .text-field:has(input[aria-invalid="true"]) > span { color: var(--error); }
  .text-field .field-help { color: var(--muted); font-size: 0.74rem; font-weight: 400; letter-spacing: 0; margin: 0; text-transform: none; }

  .details-grid { display: grid; gap: 20px 28px; grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
  .details-grid .text-field { align-content: start; margin-top: 0; }
  .consent-field { align-items: flex-start; cursor: pointer; display: flex; gap: 12px; margin-top: 30px; min-height: 44px; }
  .consent-field input { accent-color: var(--blue); flex: 0 0 auto; height: 20px; margin-top: 3px; width: 20px; }
  .consent-field span { font-size: 0.82rem; }
  .consent-optional { margin-top: 16px; }

  .field-error { color: var(--error); display: block; font-size: 0.75rem; min-height: 1.2em; }
  .text-field > .field-error { color: var(--error); letter-spacing: normal; margin-left: 0; text-transform: none; }
  .details-grid .field-error:empty { display: none; }
  .error-summary { background: var(--error-surface); border-left: 3px solid var(--error); margin-bottom: 28px; padding: 14px 18px; }

  .form-actions { align-items: center; display: flex; justify-content: space-between; margin-top: 48px; }
  .back-button,
  .next-button {
    border-radius: 0;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    min-height: 48px;
    padding: 12px 20px;
    text-transform: uppercase;
  }
  .back-button { background: transparent; border: 0; color: var(--text); padding-left: 0; }
  .next-button { background: var(--blue); border: 1px solid var(--blue); color: var(--white); min-width: 160px; }
  .next-button:hover { background: var(--white); color: var(--blue); }

  .brief-success { padding-top: clamp(80px, 11vw, 150px); }
  .brief-success .success-mark {
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--success);
    display: grid;
    font-family: var(--display);
    font-size: 2rem;
    height: 64px;
    justify-items: center;
    margin-bottom: 28px;
    width: 64px;
  }
  .brief-success p:not(.form-kicker) { color: var(--muted); margin-top: 24px; max-width: 44ch; }
  .brief-success .brief-note-local { color: var(--muted); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; line-height: 1.5; margin-top: 32px; max-width: 52ch; }
  .brief-success .text-action { margin-top: 42px; }
  .cf-turnstile { margin-top: 24px; min-height: 65px; }
  .back-button:disabled,
  .next-button:disabled { cursor: wait; opacity: 0.62; }

  .privacy-hero { align-items: end; background: var(--blue); display: grid; min-height: clamp(390px, 48svh, 560px); }
  .privacy-heading { color: var(--white); margin-inline: auto; padding: calc(var(--header-height) + 84px) var(--gutter) 72px; width: min(100%, calc(var(--content) + (2 * var(--gutter)))); }
  .privacy-heading h1 { color: inherit; font-family: var(--display); font-size: clamp(3.4rem, 8vw, 7.4rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.92; margin-top: 18px; }
  .privacy-heading > p:last-child { color: rgba(255, 255, 255, 0.72); font-size: 0.76rem; margin-top: 24px; }
  .privacy-content { margin-inline: auto; max-width: 860px; padding: clamp(72px, 9vw, 128px) var(--gutter); }
  .privacy-content h2 { color: var(--blue); font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; margin-top: 64px; }
  .privacy-content h2:first-child { margin-top: 0; }
  .privacy-content p { color: var(--muted); font-size: clamp(0.94rem, 1.3vw, 1.06rem); line-height: 1.8; margin-top: 20px; }
  .privacy-content a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

  .sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
}

@layer motion {
  .js [data-reveal] {
    opacity: 1;
    transform: translateY(28px);
  }

  .js [data-reveal="image"] {
    opacity: 1;
    transform: translateY(28px);
  }

  .js [data-reveal="image"] img {
    opacity: 0;
    transform: scale(1.04);
  }

  .js-anim [data-reveal] {
    transition: transform var(--motion-text) var(--ease-emphasized);
  }

  .js-anim [data-reveal="image"] {
    transition: transform var(--motion-image) var(--ease-emphasized);
  }

  .js-anim [data-reveal="image"] img {
    transition:
      opacity var(--motion-image) var(--ease-emphasized),
      transform var(--motion-image) var(--ease-emphasized);
  }

  .js [data-reveal].is-visible {
    transform: none;
  }

  .js [data-reveal="image"].is-visible {
    transform: none;
  }

  .js [data-reveal="image"].is-visible img {
    opacity: 1;
    transform: none;
  }

  .js-anim .services > .service-chapter:nth-child(3) { transition-delay: 120ms; }
  .js-anim .environment-grid figure:nth-child(2) { transition-delay: 120ms; }
  .js-anim .environment-grid figure:nth-child(3) { transition-delay: 240ms; }
  .js-anim .final-invitation .closing-action { transition-delay: 120ms; }

  .form-step.is-step-entering { animation: step-forward var(--motion-text) var(--ease-emphasized) both; }
  .form-step.is-step-entering[data-direction="back"] { animation-name: step-back; }

  .nav-sheet { opacity: 0; transition: opacity var(--motion-ui) var(--ease-standard); }
  .nav-sheet.is-open { opacity: 1; }

  @keyframes step-forward {
    from { transform: translateX(28px); }
    to { transform: none; }
  }

  @keyframes step-back {
    from { transform: translateX(-28px); }
    to { transform: none; }
  }
}

@layer utilities {
  [hidden] { display: none !important; }

  @media (min-width: 781px) and (max-height: 950px) {
    .brief-intro,
    .brief-shell { padding-block: 82px 36px; }
    .brief-intro h2 { font-size: clamp(3.2rem, 4.8vw, 5.2rem); margin-top: 20px; }
    .brief-intro > div:first-child > p:not(.section-label) { margin-top: 20px; }
    .brief-form { margin-top: 28px; }
    .form-step h3 { font-size: clamp(2.1rem, 3.4vw, 3.4rem); max-width: 22ch; }
    .form-guidance { margin-top: 14px; }
    .service-options,
    .style-options,
    .choice-list,
    .area-options,
    .file-field { margin-top: 22px; }
    .service-option { min-height: 68px; padding-block: 10px; }
    .style-option > span { min-height: 78px; padding: 14px; }
    .choice-list label,
    .choice-list span { min-height: 46px; }
    .area-card > span { min-height: 54px; padding: 10px 14px; }
    .interior-detail { margin-top: 18px; padding-top: 14px; }
    .compact-options { margin-top: 10px; }
    .details-grid { margin-top: 20px; }
    .text-field { margin-top: 14px; }
    .consent-field { margin-top: 18px; }
    .form-actions { margin-top: 26px; }
  }

  @media (min-width: 1600px) and (max-height: 950px) {
    .hero-copy { max-width: min(64rem, 72vw); }
  }

  /* Homepage hero headline on two lines (Ryan, 21 September): "Welcome to" /
     "Bakos Private Clients." — the split spans exist only on the landing hero. */
  .hero-copy h1 .hero-line { display: block; }
  .hero-copy h1 .hero-line:first-child { font-size: 0.78em; }
  .hero-copy h1:has(.hero-line) { width: max-content; max-width: 94vw; }
  .final-invitation #final-title { font-size: clamp(2.2rem, 3.4vw, 4rem); max-width: 22ch; }

  @media (max-width: 1100px) {
    .hero-foot { grid-template-columns: 130px 1fr; }
    .point-grid > h2 { grid-column: 1 / span 7; grid-row: 1; }
    .point-copy { grid-column: 1 / span 6; grid-row: 2; }
    .point-detail { grid-column: 8 / -1; grid-row: 1 / span 2; margin: 0; }
    .consultation-frame { grid-template-columns: minmax(290px, 4fr) minmax(0, 8fr); }
  }

  @media (max-width: 1023px) {
    :root {
      --header-height: 96px;
      --header-logo-size: 80px;
    }
    .site-nav { display: none; }
    .site-header { grid-template-columns: 1fr auto; min-height: var(--header-height); }
    .nav-toggle { display: flex; justify-self: end; }
    .environments { content-visibility: auto; contain-intrinsic-size: auto 520px; padding-inline: 0; }
    .environments > .section-label,
    .environments > .environments-heading { padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2)); }
    .environment-grid {
      grid-auto-flow: column;
      grid-auto-columns: min(82vw, 560px);
      grid-template-columns: none;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
      scroll-padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
      scroll-snap-type: x mandatory;
    }
    .environment-grid figure { scroll-snap-align: start; }
    .environment-grid img { height: clamp(280px, 60vw, 420px); }
  }

  @media (max-width: 1023px) {
    .story-spread.service-chapter,
    .story-spread.service-chapter-reverse { grid-template-columns: 1fr; }
    .story-spread .service-image,
    .story-spread .service-caption { grid-column: 1; grid-row: auto; }
    .story-spread .service-image { --story-caption-height: 64px; min-height: 0; height: calc(70vw + 64px); max-height: 650px; }
    .story-spread .story-pane { padding: 40px max(24px, 6vw); }
    .story-spread .service-image img { object-position: center 30%; }
    .story-archive { display: flex; flex-direction: column; }
    .story-archive .story-pane { align-self: stretch; padding: 44px max(24px, 6vw) 24px; }
    .story-pane h2 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
    .story-pane p { max-width: 54ch; }
    .archive-controls { align-self: stretch; padding: 0 max(24px, 6vw) 32px; }
    .archive-control-row { max-width: none; }
    .archive-dots { justify-content: space-between; margin-top: 4px; }
    .archive-dots button { min-width: 0; width: 44px; }
    .story-archive.is-enhanced .archive-slide {
      flex-basis: 100%;
      height: clamp(360px, 110vw, 540px);
      min-height: 0;
      padding: 20px 24px 28px;
    }
    .archive-slide figcaption { display: grid; gap: 4px; }
    .story-spread .service-image figcaption { align-content: center; display: grid; font-size: 0.6rem; gap: 4px; padding: 10px 24px; }
  }

  @media (max-width: 1200px) {
    .story-offer { grid-template-columns: 1fr 1fr; }
    .story-offer h2 { grid-column: 1 / -1; max-width: 22ch; }
  }
  @media (max-width: 700px) {
    .story-offer { gap: 24px; grid-template-columns: 1fr; padding: 48px 24px; }
    .story-main + .final-invitation { padding-inline: 24px; }
    .story-offer h2 { max-width: 15ch; }
  }

  @media (max-width: 780px) {
    h1 { font-size: clamp(3.6rem, 12.5vw, 5.5rem); }
    h2 { font-size: clamp(2.9rem, 10vw, 4.8rem); }
    h3 { font-size: clamp(2.1rem, 7.6vw, 3.4rem); }
    .hero-copy h1 { font-size: clamp(3.6rem, 12.5vw, 5.5rem); }
    .hero { min-height: max(700px, 100svh); }
    .hero-media img { object-position: 58% center; }
    .hero-copy { margin-bottom: clamp(28px, 4vh, 48px); max-width: 88vw; }
    .hero-foot { grid-template-columns: 1fr; padding-inline: 0; }
    .hero-path-label { display: none; }
    .hero-paths :where(a, button):first-child { border-left: 0; }
    .point-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .point-grid > h2 { grid-column: 1 / -1; grid-row: 1; }
    .point-detail { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    .point-copy { grid-column: 1 / -1; grid-row: 3; }
    .point-detail img { aspect-ratio: 16 / 10; }
    .chapter-heading { grid-template-columns: 1fr; }
    .chapter-heading > p { margin-left: auto; }
    .service-chapter,
    .service-chapter-reverse { grid-template-columns: 1fr; }
    .service-chapter .service-image,
    .service-chapter .service-caption,
    .service-chapter-reverse .service-image,
    .service-chapter-reverse .service-caption { grid-column: 1; grid-row: auto; }
    .services { grid-template-columns: 1fr; }
    .service-caption { min-height: auto; }
    .heritage-grid { grid-template-columns: 1fr; }
    .story-chapter {
      gap: 24px;
      grid-template-columns: 1fr;
    }
    .story-hero .hero-copy h1 { font-size: clamp(3.2rem, 12vw, 4.6rem); }
    .archive-object { margin-left: 0; max-width: none; }
    .story-clipping { margin-inline: 0; max-width: none; }
    .story-offer .story-clipping,
    .story-closing-clip {
      margin-inline: 0;
      max-width: none;
    }
    .story-tray {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .story-feature-media img { aspect-ratio: 4 / 3; }
    .story-generations-copy {
      gap: 16px;
      grid-template-columns: 1fr;
    }
    .final-invitation { gap: 24px; grid-template-columns: 1fr; }
    .final-invitation h2 { font-size: clamp(2.9rem, 10vw, 4.8rem); }
    .final-invitation .closing-action { justify-self: start; }
    .site-footer {
      column-gap: 24px;
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-rows: repeat(3, auto);
      min-height: 0;
      padding-block: clamp(22px, 3vw, 24px);
      row-gap: clamp(14px, 2vw, 16px);
    }
    .footer-brand { grid-column: 1; grid-row: 1; height: 64px; width: 64px; }
    .footer-nav { flex-wrap: nowrap; grid-column: 1 / -1; grid-row: 2; justify-content: space-between; justify-self: stretch; }
    .footer-email { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-left: 0; }
    .footer-meta { align-self: end; grid-column: 2; grid-row: 1; justify-content: flex-end; justify-self: end; text-align: right; }
    .contact-hero .contact-heading h1 { font-size: clamp(3.2rem, 12vw, 4.6rem); }
    .contact-facts dl { grid-template-columns: 1fr; gap: 20px; }
    .consultation-frame { grid-template-columns: 1fr; }
    .brief-intro { display: none; }
    .brief-shell { min-height: 100dvh; padding: 100px var(--gutter) 56px; }
    .brief-close { right: var(--gutter); }
  }

  @media (max-width: 560px) {
    :root {
      --gutter: 20px;
      --header-height: 84px;
      --header-logo-size: 68px;
    }
    h1 { font-size: clamp(3.35rem, 15vw, 4.5rem); }
    h2 { font-size: clamp(2.65rem, 12vw, 3.5rem); }
    h3 { font-size: clamp(2rem, 9vw, 2.7rem); }
    .hero-copy h1 { font-size: clamp(3.35rem, 15vw, 4.5rem); }
    .site-header { gap: 12px; min-height: var(--header-height); padding-block: 8px; }
    .nav-toggle { font-size: 0.64rem; gap: 10px; padding: 9px 13px; }
    .hero-copy { margin-bottom: 46px; max-width: 94vw; }
    .hero-summary { margin-top: 24px; max-width: 32ch; }
    .hero-paths :where(a, button) { align-items: flex-start; flex-direction: column; font-size: 0.59rem; gap: 6px; min-height: 76px; padding: 14px 10px; }
    .hero-paths :where(a, button) span:last-child { align-self: flex-end; }
    .point-grid { gap: 24px 16px; margin-top: 32px; }
    .point-copy { grid-column: 1 / -1; }
    .point-detail { grid-column: 1 / -1; }
    .chapter-heading { gap: 22px; margin-block: 32px 48px; }
    .chapter-heading > p { margin-left: 0; }
    .service-image { height: clamp(280px, 72vw, 340px); min-height: clamp(280px, 72vw, 340px); }
    .service-caption { min-height: auto; padding: 26px 22px 30px; }
    .environment-grid { gap: 24px 16px; }
    .environment-grid figcaption { display: grid; gap: 4px; }
    .environment-grid figcaption span:last-child { text-align: left; }
    .heritage-grid { gap: 36px; margin-top: 34px; }
    .archive-object figcaption { display: grid; gap: 4px; }
    .final-invitation { gap: 24px; }
    .footer-nav { gap: 4px 16px; }
    .footer-meta { gap: 4px 16px; }
    .contact-email { font-size: clamp(1rem, 4vw, 1.15rem); }
    .contact-hero .showroom-statement { font-size: 1.05rem; max-width: 100%; }
    .contact-facts dl { grid-template-columns: 1fr; }
    .brief-intro { display: none; }
    .brief-shell { padding: 84px var(--gutter) 40px; }
    .brief-progress { gap: 14px; }
    .brief-form { margin-top: 20px; }
    .form-step h3 { margin-top: 12px; max-width: 18ch; }
    .form-guidance { margin-top: 14px; }
    .service-options,
    .style-options,
    .choice-list,
    .area-options,
    .file-field { margin-top: 14px; }
    .service-option { gap: 9px; grid-template-columns: 26px 1fr; min-height: 64px; padding-block: 8px; }
    .service-option > span:last-child { grid-column: 2; }
    .style-options { grid-template-columns: 1fr; }
    .style-option { grid-template-columns: 64px 1fr; }
    .style-option img { height: 100%; width: 100%; }
    .style-option > span { border-left: 0; border-top: 1px solid var(--line); min-height: 64px; padding: 6px 10px; }
    .style-option small { margin-top: 2px; }
    .area-options { grid-template-columns: repeat(2, 1fr); }
    .details-grid { grid-template-columns: 1fr; }
    .file-field { padding: 28px 16px; }
    .form-actions { gap: 12px; margin-top: 12px; }
    .next-button { min-width: 140px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
    .js [data-reveal] {
      clip-path: none;
      opacity: 1;
      transform: none;
    }
  }
}
