/* reinstall.partners — built from the "E · A + C merged" board on the
   Reinstall Partners Brand canvas. Values follow the board; change the board
   first, then this file. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo.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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter.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;
}

:root {
  --teal: #0F4C4F;
  --deep: #0A2E30;
  --brass: #D2AE62;
  --cream: #F4F0E6;
  --paper: #FAF8F3;
  --ink: #14201F;
  --body: #33403F;
  --mist: #E1E8E6;   /* body text on deep teal (brightened from the board's #C9D3D1, Tyler 2026-11-30) */
  --r: 3px;          /* corner radius: buttons, slots, small panels */
  --r-lg: 5px;       /* corner radius: hero frame, photo */
  --rule: #DDD7C8;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
section[id] { scroll-margin-top: 16px; }

/* Text for screen readers and search engines only. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--teal); color: #FFFFFF; border-radius: var(--r);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); }
.site-header-inner {
  max-width: 1040px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
/* Sticky at every width (on phones it is one row: the mark and the menu button).
   A hairline shows once the page has scrolled (main.js adds .scrolled). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  transition: box-shadow 150ms ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--rule), 0 6px 18px rgba(10, 46, 48, 0.06); }
.site-header .site-header-inner { padding-top: 12px; padding-bottom: 12px; }
section[id] { scroll-margin-top: 72px; }
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1; color: #000000;
}
.brand-tag {
  font-weight: 600; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1; color: var(--teal);
}
.site-nav {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  font-size: 13px; font-weight: 500;
}
.site-nav a { color: var(--body); text-decoration: none; white-space: nowrap; padding: 12px 0; }
.site-nav a:hover { color: var(--deep); }
.site-nav .btn-nav {
  padding: 9px 16px; background: var(--teal); color: #FFFFFF; font-weight: 600;
  border-radius: var(--r);
}
.site-nav .btn-nav:hover { background: var(--deep); color: #FFFFFF; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1040px; margin: 0 auto;
  padding: clamp(24px, 3.5vw, 52px) var(--gutter) clamp(48px, 5.5vw, 80px);
  display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px);
}
.hero-head { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.hero h1 {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 600;
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.025em;
  color: var(--deep); text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.btn-primary {
  padding: 10px 17px; background: var(--teal); color: #FFFFFF; font-size: 13px; font-weight: 600;
  text-decoration: none; border-radius: var(--r);
}
.btn-primary:hover { background: var(--deep); color: #FFFFFF; }
.btn-link { padding: 10px 16px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* The hero visual shrinks so the whole hero (header, headline, buttons, frame) fits one
   screen height on desktop; it never goes below 560px wide unless the column is narrower. */
.hero-visual {
  width: min(100%, max(560px, calc((100svh - 350px) * 16 / 9)));
  margin: 0 auto; container-type: inline-size;
}
.hero-frame {
  position: relative; aspect-ratio: 16 / 9; background: transparent;
  border-radius: clamp(4px, 0.45vw, 6px);   /* same window-like corners as the product reel */
  /* No background of its own: a dark one shows as a hairline in the rounded corners, as it did on the product reel. */
  overflow: hidden; isolation: isolate; transform: translateZ(0);
}
/* The hero reel fills the frame; its poster is the reel's own last frame. */
.hero-video { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; cursor: pointer; }

/* ---------- Sections ---------- */
.band-deep { background: var(--deep); }
.band-cream { background: var(--cream); }
.band-brass { background: var(--brass); }
.band-white { background: #FFFFFF; }

.split {
  max-width: 1040px; margin: 0 auto; padding: clamp(56px, 6.5vw, 96px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.split.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.split.rev .split-img { order: -1; }
.split.tight { padding: clamp(52px, 6vw, 84px) var(--gutter); }
.stack { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.illo-img { display: block; width: 100%; max-width: 270px; height: auto; margin: 0 auto; }

.section-title {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 600;
  font-size: clamp(24px, 2.4vw, 33px); line-height: 1.05; letter-spacing: -0.025em;
  text-decoration: underline; text-decoration-color: var(--brass);
  text-decoration-thickness: 0.09em; text-underline-offset: 0.2em;
}
.band-deep .section-title { color: var(--cream); }
.band-cream .section-title, .band-white .section-title { color: var(--teal); }
.band-brass .section-title { color: var(--deep); text-decoration-color: var(--deep); }

.copy { margin: 0; font-size: 14px; line-height: 1.7; }
.band-deep .copy { color: var(--mist); }
.band-cream .copy, .band-white .copy { color: var(--body); }
.band-brass .copy { color: #2A2410; }

/* What We Build: the live demo button over the product reel (reinstall-biz plan 014). */
.build {
  max-width: 1040px; margin: 0 auto; padding: clamp(56px, 6.5vw, 96px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 36px); text-align: center;
}
.product-slot {
  width: 100%; aspect-ratio: 21 / 9; background: #EEF2F1; border: 1px dashed #B9C6C4;
  border-radius: var(--r); display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; font-size: 14px; color: #4A5756;
}
/* The reel: the video's own 16:9, with window-like corners and shadow. The edge is a shadow,
   not a border, so the box stays exactly 16:9 and the video fills it. No background of its own:
   a dark one shows as a hairline in the rounded corners, where the box's clip and the video's meet. */
.product-slot.has-reel {
  position: relative; aspect-ratio: 16 / 9; padding: 0; background: transparent; overflow: hidden;
  border: 0; border-radius: clamp(4px, 0.45vw, 6px);
  box-shadow: 0 0 0 1px rgba(10, 46, 48, 0.10), 0 2px 6px rgba(10, 46, 48, 0.08), 0 24px 60px rgba(10, 46, 48, 0.18);
}
.reel-video { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
/* Chrome flickers a <video> clipped to rounded corners by its parent while scrolling; giving the player
   its own compositing layer and rounding the video itself avoids it. */
.product-slot.has-reel { isolation: isolate; transform: translateZ(0); }
.reel-video { cursor: pointer; }
/* Play / restart button over the reel: shown until it plays, again when paused, as restart at the end. */
.reel-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(56px, 7vw, 84px); height: clamp(56px, 7vw, 84px); padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(10, 46, 48, 0.86); color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 30px rgba(10, 46, 48, 0.35);
  transition: transform 150ms ease, background-color 150ms ease, opacity 200ms ease;
}
.reel-play:hover { background: var(--teal); transform: translate(-50%, -50%) scale(1.06); }
.reel-play svg { width: 40%; height: 40%; display: block; }
.reel-play .icon-restart { display: none; }
/* Shared by the hero reel's frame (.hero-frame), which takes the same playing / paused / ended classes. */
.ended > .reel-play .icon-play { display: none; }
.ended > .reel-play .icon-restart { display: block; }
.playing > .reel-play { opacity: 0; pointer-events: none; }
.reel-play { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .reel-play { transition: none; } }
/* The reels' mute button: at the frame's corner, there only while the reel plays and the pointer is over the
   video panel (or the button has keyboard focus). A touch screen has no hover, so there it shows while playing. */
.reel-sound {
  position: absolute; right: clamp(8px, 1.4%, 14px); bottom: clamp(8px, 2.4%, 14px); z-index: 1;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 46, 48, 0.78); color: #FFFFFF;
  opacity: 0; pointer-events: none; transition: opacity 180ms ease-out, background 180ms ease-out;
}
.reel-sound:hover { background: var(--teal); }
.reel-sound svg { width: 18px; height: 18px; display: block; }
.reel-sound .icon-muted { display: none; }
.muted > .reel-sound .icon-sound { display: none; }
.muted > .reel-sound .icon-muted { display: block; }
.playing:hover > .reel-sound, .playing > .reel-sound:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: none) { .playing > .reel-sound { opacity: 1; pointer-events: auto; } }
@media (prefers-reduced-motion: reduce) { .reel-sound { transition: none; } }
/* A reel taken full screen on a phone (main.js): the whole picture on black, no rounded corners. */
.hero-frame:fullscreen, .product-slot:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; background: #000; }
.hero-frame:fullscreen video, .product-slot:fullscreen video { object-fit: contain; border-radius: 0; }
.hero-frame:-webkit-full-screen, .product-slot:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; background: #000; }
.hero-frame:-webkit-full-screen video, .product-slot:-webkit-full-screen video { object-fit: contain; border-radius: 0; }

/* Testimonial */
.quote { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* The quote leads the band and the stamp stays small beside it (plan 009, both reviews). */
.quote blockquote {
  margin: 0; max-width: 42ch; font-family: Archivo, sans-serif; font-weight: 500;
  font-size: clamp(21px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.01em; color: var(--cream);
}
/* The opening and closing marks of the pull quote: large brass accents that hang outside the text's line height. */
.quote-mark { color: var(--brass); font-size: 3em; font-weight: 500; line-height: 0; vertical-align: -0.34em; }
.quote-mark:first-child { margin-right: 0.04em; }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; }
.quote-name { font-size: 15px; font-weight: 600; color: var(--brass); }
.quote-role { font-size: 13px; color: var(--mist); }
#testimonial .illo-img { max-height: 200px; object-fit: contain; }

/* How We Work: the two retainer prices as figures (plan 009, both reviews). */
/* Deep-teal outlined cards on the brass band, as wide as their figures (Tyler, 2026-12-01). */
.figures { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.figures div {
  display: flex; flex-direction: column-reverse; gap: 4px;
  padding: 14px 20px; border: 1.5px solid var(--deep); border-radius: var(--r);
}
.figures dt { font-size: 13px; color: var(--deep); }
.figures dd {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 600; font-size: clamp(22px, 2vw, 26px);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--deep); white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* On the deep-teal band the same cards are brass, with cream labels (Who We Work Best With). */
.band-deep .figures div { border-color: var(--brass); }
.band-deep .figures dd { color: var(--brass); }
.band-deep .figures dt { color: var(--mist); }

/* How to Get Started: the booking button where the reader decides (plan 009, both reviews). */
.cta-row { margin: 4px 0; }
.cta-row .btn-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; font-size: 14px; }

/* Who We Are: profile */
.profile { grid-column: 1 / -1; padding: 8px 0 0; display: flex; gap: 32px; align-items: flex-start; }   /* photo beside the text at every width */
/* The gap above the profile is 30% tighter than the section's other gaps (Tyler, 2026-12-01). */
.profile { margin-top: calc(clamp(40px, 6vw, 96px) * -0.3); }
.profile-links svg { width: 17px; height: 17px; }
.profile-photo { width: 120px; height: 120px; flex: none; border-radius: var(--r-lg); object-fit: cover; display: block; }
.profile-body { flex: 1 1 0; min-width: 0; padding-top: 0; display: flex; flex-direction: column; gap: 10px; }
.profile-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.profile-name { margin: 0; font-family: Archivo, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.1; color: var(--deep); }
.profile-role { margin: 2px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--teal); }
.profile-links { display: flex; gap: 0; margin-right: -9px; }
.profile-links a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--teal); }
.profile-links a:hover { color: var(--deep); }
.profile-bio { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--body); }

/* Get Started links */
.copy a { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* FAQ */
.faq-grid {
  max-width: 1040px; margin: 0 auto; padding: clamp(56px, 6.5vw, 96px) var(--gutter);
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.faq-list { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.faq-list .section-title { margin: 0 0 24px; }
.faq-illo { display: block; width: 100%; height: auto; order: -1; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.faq-item:last-of-type { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-family: Archivo, sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
/* Lucide chevron-right, turned down when the item is open. */
.faq-chevron { width: 17px; height: 17px; flex: none; color: var(--teal); transition: transform 0.15s ease; }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }
.faq-item p { margin: 8px 0 0 29px; font-size: 14px; line-height: 1.7; color: var(--body); }

/* Footer */
.site-footer { background: var(--deep); }   /* dark teal, like the band-deep sections */
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 22px var(--gutter) 36px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--mist);
}
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand .mark { width: 22px; height: 22px; flex: none; display: block; }   /* the reversed mark (brand README): tint square, teal P, brass leg */
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--mist); padding: 12px 0; }
.footer-nav a:hover { color: #FFFFFF; }

/* ---------- Legal pages ---------- */
/* Styled after the firm's agreement pages: uppercase teal section heads behind a brass square, brass bullets, a cream card. */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 120px); }
.legal-head { margin: 0 0 32px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.legal .eyebrow {
  margin: 0 0 12px; font-family: Archivo, sans-serif; font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase; color: #9A7A33;
}
.legal h1 {
  margin: 0 0 10px; font-family: Archivo, sans-serif; font-weight: 600; font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08; letter-spacing: -0.025em; color: var(--deep);
}
.legal .effective { margin: 0; font-size: 14px; color: #5F6B6A; }
.legal h2 {
  display: flex; align-items: center; gap: 10px; margin: 44px 0 14px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
}
.legal h2::before { content: ""; width: 9px; height: 9px; background: var(--brass); flex: none; }
.legal h3 { margin: 24px 0 8px; font-family: Archivo, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--deep); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--body); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 6px 0; padding-left: 4px; }
.legal li::marker { color: var(--brass); }
.legal strong { color: var(--ink); }
/* Data retention: label beside its period, ruled rows. */
.legal ul.legal-terms { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.legal-terms li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 24px;
  margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.legal-terms li strong { font-weight: 500; color: var(--ink); }
.legal-terms li span { font-family: Archivo, sans-serif; font-weight: 600; color: var(--teal); }
@media (max-width: 560px) { .legal-terms li { grid-template-columns: minmax(0, 1fr); } }
.legal-contact { background: var(--cream); border-left: 3px solid var(--brass); padding: 16px 20px; }
.legal-contact p { margin: 0; }

/* ---------- Phone menu: a button in the header opens a full-screen menu ---------- */
.menu-toggle, .mobile-menu { display: none; }
@media (max-width: 700px) {
  .site-header .site-nav { display: none; }
  .site-header-inner { flex-wrap: nowrap; }
  /* Same teal and corners as the header's "Book a call" button. */
  .menu-toggle {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r); cursor: pointer;
    background: var(--teal); color: #FFFFFF;
  }
  .menu-toggle:hover { background: var(--deep); }
  .menu-toggle svg { width: 20px; height: 20px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  /* The open menu sits under the header, so the header's button closes it. */
  body.menu-open .site-header { z-index: 70; box-shadow: none; }
  .mobile-menu {
    flex-direction: column; align-items: flex-start; gap: 4px;
    position: fixed; inset: 0; z-index: 60; overflow-y: auto;
    padding: 88px var(--gutter) 40px; background: var(--paper);
    /* Fades and rises 8px: 180ms open, 120ms close (plan 009). */
    opacity: 0; translate: 0 8px;
    transition: opacity 120ms ease, translate 120ms ease, display 120ms allow-discrete;
  }
  .mobile-menu:not([hidden]) {
    display: flex; opacity: 1; translate: none;
    transition: opacity 180ms cubic-bezier(0.2, 0.7, 0.2, 1), translate 180ms cubic-bezier(0.2, 0.7, 0.2, 1), display 180ms allow-discrete;
  }
  @starting-style { .mobile-menu:not([hidden]) { opacity: 0; translate: 0 8px; } }
  @media (prefers-reduced-motion: reduce) { .mobile-menu, .mobile-menu:not([hidden]) { transition: none; translate: none; } }
  .mobile-menu a:not(.btn-primary) {
    padding: 10px 0; font-family: Archivo, sans-serif; font-weight: 600; font-size: 26px;
    letter-spacing: -0.02em; color: var(--deep); text-decoration: none;
  }
  .mobile-menu .btn-primary { margin-top: 20px; font-size: 15px; padding: 14px 22px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero load sequence (only when html.anim) ----------
   About 1.5 seconds on first load: the header slides down, the headline rises, the buttons rise, the
   hero frame lifts and settles, and "with you" lands last. */
.anim .site-header { animation: hero-drop 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim .hero h1 { animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both; }
/* "with you" starts last, just after the hero frame begins to lift (Tyler, 2026-12-01; was 320ms). */
.anim .hero h1 em { display: inline-block; animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 600ms both; }
.anim .hero-ctas { animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms both; }
/* The frame's fade finishes in 450ms while its lift keeps 1000ms, so it never sits half-faded (plan 009). */
.anim .hero-visual { animation: hero-lift 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) 520ms both, hero-fade 450ms ease-out 520ms both; }
@keyframes hero-drop { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: none; } }
@keyframes hero-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes hero-lift { from { translate: 0 36px; scale: 0.97; } to { translate: none; scale: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Underline reveal (only when html.anim) ----------
   Each section title's underline draws in left to right as the title scrolls into view (main.js wraps
   the title text in .ul and adds .in). Brass, or deep teal on the brass sections. */
.section-title { --ul: var(--brass); }
.band-brass .section-title { --ul: var(--deep); }
.anim .section-title.drawn { text-decoration: none; }
.anim .section-title .ul {
  background-image: linear-gradient(var(--ul), var(--ul)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 0.09em; padding-bottom: 0.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 440ms cubic-bezier(0.2, 0.7, 0.2, 1) 60ms;   /* plan 009: was 700ms after 150ms */
}
.anim .section-title.in .ul { background-size: 100% 0.09em; }

/* ---------- Section reveal (only when html.anim; main.js adds .reveal, then .revealed) ----------
   A section's content fades in and rises 16px as one piece, on the house curve. The band stays put. */
.anim .reveal {
  opacity: 0; translate: 0 16px;
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), translate 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.anim .reveal.revealed { opacity: 1; translate: none; }

/* ---------- Engraving parallax (only when html.anim) ----------
   As an engraving passes through the screen it moves a little against the scroll (48px over its whole
   pass). Scroll-driven, on the compositor, no JS; browsers without view timelines show it still. */
@supports (animation-timeline: view()) {
  .anim .split-img img, .anim .faq-illo { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
}
@keyframes parallax {
  from { translate: 0 24px; }
  to   { translate: 0 -24px; }
}
/* Stacked, the engraving sits on its title's row, so it holds still there. */
@media (max-width: 900px) { .anim .split-img img, .anim .faq-illo { animation: none; } }

/* FAQ answers slide open where the browser supports animating <details> (others just open). */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 260ms ease, content-visibility 260ms allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq-item::details-content { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Stacked (tablet and phone): a small engraving sits on the title's row, at its right, its bottom on the
     title's bottom; the rest of the section runs full width below. A tall engraving leaves space above a short
     title, which is fine (Tyler, 2026-12-02). The testimonial's stamp sits on the name and role rows instead.
     The text wrappers (.stack, .quote, .faq-list) step aside so their children join the grid. */
  .split, .split.rev, .faq-grid {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 16px; align-items: start;
    /* As wide as the prose (62ch of the 14px copy = 54.25ch at the grid's 16px), left-aligned with the header,
       so the engraving ends where the text does rather than out at the window's edge. */
    max-width: calc(54.25ch + 2 * var(--gutter)); margin: 0;
  }
  .split .stack, .split .quote, .faq-list { display: contents; }
  .split .stack > *, .split > *, .faq-grid .faq-item { grid-column: 1 / -1; }
  .split .section-title, .faq-grid .section-title { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
  .split .split-img, .split.rev .split-img, .faq-grid .faq-illo { grid-column: 2; grid-row: 1; align-self: end; order: 0; }
  .illo-img, .faq-illo {
    /* One height for every engraving, so each drawing's top lands the same distance into its section; the width
       follows the drawing's shape. The <img> width/height attributes give the shape before the lazy image loads,
       so there is no late re-layout (plan 009, Lighthouse). The images are cropped to the drawing. */
    width: auto; height: clamp(104px, 24vw, 168px); max-width: none; max-height: none;
    margin: 0; object-fit: contain; object-position: right bottom;
  }
  /* The engraving's row already opens each section with space above a short title, so the band's top padding
     is about half the desktop's: the engraving's top lands about where desktop content starts (Tyler, 2026-12-02).
     Not the testimonial, which opens with its quote. */
  .split, .faq-grid { padding-top: clamp(24px, 4vw, 36px); }
  #testimonial .split { padding-top: clamp(52px, 6vw, 84px); }
  /* Every section the same way round here, title left and engraving right; the desktop's alternating sides
     read oddly when stacked (Tyler, 2026-12-02). */
  .faq-grid { row-gap: 0; }
  .faq-grid .faq-item:first-of-type { margin-top: 16px; }
  .profile { margin-top: 16px; }
  /* Testimonial: quote full width, then the name and role with the stamp beside them, its top on the name's
     top, so a stamp taller than the two lines extends the band downward. */
  #testimonial .split { row-gap: 24px; }
  #testimonial blockquote { grid-column: 1 / -1; grid-row: 1; }
  #testimonial figcaption { grid-column: 1; grid-row: 2; align-self: start; }
  #testimonial .split-img { grid-column: 2; grid-row: 2; align-self: start; }
  #testimonial .illo-img { object-position: right top; }
  /* Stacked prose stops at a readable measure (plan 009, both reviews). */
  .copy, .figures { max-width: 62ch; }
}
/* Phones: the profile's photo, name, role and links share one row; the bio runs full width below (Tyler, 2026-12-02). */
@media (max-width: 700px) {
  .profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 16px; align-items: center; }
  .profile-body { display: contents; }
  .profile-photo { width: 104px; height: 104px; grid-column: 1; grid-row: 1; }
  .profile-head { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 6px; }
  .profile-links { margin: 0 0 0 -9px; }   /* the first icon's glyph lines up with the name */
  .profile-bio { grid-column: 1 / -1; grid-row: 2; }
}
/* Tablet: the header stays on one row (plan 009, both reviews). */
@media (min-width: 701px) and (max-width: 900px) {
  .site-header-inner { flex-wrap: nowrap; gap: 16px; }
  .site-nav { flex-wrap: nowrap; gap: 0 10px; font-size: 12.5px; }   /* four links and the button fit from 701px */
  .site-nav .btn-nav { padding: 9px 12px; }
  .brand { gap: 10px; flex: none; }
  .brand-name { white-space: nowrap; }
}
@media (max-width: 560px) {
  .site-nav { gap: 0 20px; }
  .profile-body { padding-top: 0; }
}
