/* ==========================================================================
   BB&S Associates LLC: site styles (homepage + inner pages)
   Palette: ivory paper, deep navy ink, aged brass. Oxblood "reviewer's pen"
   and the yellow highlight are reserved for findings.
   Layout is flexbox throughout (no CSS grid, per the brief).
   ========================================================================== */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --sheet: #fbf9f5;
  --ink: #0e1b2c;
  --ink-2: #33404f;
  --muted: #5b6472;
  --rule: #ddd5c6;
  --rule-strong: #bdb3a1;
  --navy: #0e1b2c;
  --navy-3: #1f3550;
  --navy-rule: rgb(255 255 255 / .12);
  --navy-text: #ece7dc;
  --navy-muted: #a9b2bf;
  --brass: #b08b4f;
  --brass-ink: #7a5c2a;   /* brass dark enough for small text on paper */
  --brass-light: #d4b47c; /* brass for text on navy */
  --pen: #9b3426;
  --highlight: #f0dc9a;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 5vw, 4rem);
  --header-h: 4.75rem;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-lg: 0 40px 80px -40px rgb(14 27 44 / .35);
}

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

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
abbr[title] { text-decoration: none; cursor: help; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--highlight); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Reading progress: pure CSS where scroll timelines exist, absent elsewhere. */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  background: var(--brass);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Shared type ---------- */

.eyebrow,
.kicker,
.chapter__index,
.step__num,
.cap__num,
.field label,
.direct small,
.also__label,
.service__h,
.lens__num,
.site-footer__h {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.75rem;
  padding: .45rem .9rem .45rem .75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-2);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pen);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(155 52 38 / .45); }
  70%, 100% { box-shadow: 0 0 0 8px rgb(155 52 38 / 0); }
}

.kicker { color: var(--brass-ink); margin-bottom: 1.25rem; }
.kicker--light { color: var(--brass-light); }

.section-title {
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.375rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.section-title em,
.statement__title em,
.contact__title em { color: var(--brass-ink); }
.section-title--wide { max-width: 24ch; }

.lead {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

/* ---------- Buttons & links ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .95rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
/* Fill sweeps up from the bottom on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pen);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: none; }
.btn:hover { border-color: var(--pen); }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }

.btn--small { min-height: 2.75rem; padding: .6rem 1.15rem; font-size: .9375rem; }

.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--brass-light); }
.btn--light:hover { border-color: var(--brass-light); }
.btn--light:focus-visible { outline-color: var(--brass-light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .55rem) / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
.link-arrow .icon { transition: transform .4s var(--ease); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow:hover .icon:last-child { transform: translateX(4px); }
.link-arrow--light { color: var(--navy-text); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(244 240 232 / .95);
  box-shadow: 0 1px 0 var(--rule);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgb(244 240 232 / .8); backdrop-filter: blur(14px) saturate(1.2); }
}
/* Hides on scroll down, returns on scroll up */
.site-header.is-hidden:not(.is-open):not(:focus-within) { transform: translateY(-100%); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.brand__logo { width: auto; height: 3.5rem; }
@media (max-width: 56em) { .brand__logo { height: 3rem; } }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; gap: 2rem; }
.site-nav__list a {
  position: relative;
  display: inline-flex;
  padding-block: .6rem;
  font-size: .9688rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .3rem;
  height: 1px;
  background: var(--pen);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current] { color: var(--ink); }
.site-nav__list a:hover::after,
.site-nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }

.site-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.site-nav__phone:hover { color: var(--pen); }
.site-nav__phone .icon { width: 1rem; height: 1rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding: .5rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 500;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 1.375rem;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle__bars { position: relative; transform: translateY(-3px); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 68em) {
  .site-nav__phone { display: none; }
}

@media (max-width: 56em) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: .5rem var(--gutter) 2rem;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--rule), 0 30px 40px -24px rgb(14 27 44 / .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.75rem);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--ink);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__phone { display: inline-flex; font-size: .9375rem; }
  .site-nav .btn { justify-content: center; }
}

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

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vh, 3.5rem));
  padding-bottom: clamp(6rem, 12vh, 8rem);
  /* brass glow + faint ruled-paper texture that echoes the record */
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgb(176 139 79 / .12), transparent 60%),
    repeating-linear-gradient(transparent 0 39px, rgb(14 27 44 / .035) 39px 40px);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(3rem, 6vw, 5rem);
}
.hero__copy { flex: 1 1 28rem; min-width: 0; }
.hero__visual { flex: 1 1 30rem; min-width: 0; position: relative; }

.hero__title {
  max-width: 13ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__title em {
  white-space: nowrap;
  color: var(--pen);
  background: linear-gradient(var(--pen), var(--pen)) 0 94% / 100% 2px no-repeat;
}
/* Underline is drawn after the record finding is marked: the two are one gesture. */
.js .hero__title em { background-size: 0 2px; transition: background-size 1s var(--ease) 4.2s; }
.js .hero__title.is-split em { background-size: 100% 2px; }

/* Word-by-word rise (words are wrapped by script.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 55ms + 150ms); }
.is-split .w > span { transform: none; }

.hero__lede {
  max-width: 33rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.hero__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: clamp(2.5rem, 6vh, 3.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.hero__creds li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.hero__creds .icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--sheet);
  border: 1px solid var(--rule);
  color: var(--brass-ink);
}

/* Image frame: unmasks upward on load, then drifts on scroll */
.hero__frame {
  position: relative;
  width: min(100%, 34rem);
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.hero__frame img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 50%, rgb(14 27 44 / .35));
  pointer-events: none;
}
.js .hero__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out) .1s; }
.js .hero__frame img { scale: 1.12; transition: scale 1.8s var(--ease) .1s; }
.js .hero__frame.is-in { clip-path: inset(0 0 0 0); }
.js .hero__frame.is-in img { scale: 1; }

/* Rotating credential seal */
.seal {
  position: absolute;
  top: -2.25rem;
  right: -1.25rem;
  z-index: 2;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--navy-text);
  box-shadow: 0 20px 40px -20px rgb(14 27 44 / .6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;
}
.seal__ring text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  fill: var(--brass-light);
}
.seal__core { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.seal__core b { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; }
.seal__core small { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-muted); margin-top: .2rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Record device (hero signature) ---------- */

.record {
  --lh: 2.25rem;
  --margin: 3rem;
  position: absolute;
  left: 0;
  bottom: -4rem;
  z-index: 3;
  width: min(27rem, 82%);
}

.record__sheet {
  position: relative;
  padding: 1rem 1.25rem 1.25rem var(--margin);
  background-color: var(--sheet);
  /* Ruled lines aligned to the entry rhythm, plus a legal-pad margin rule. */
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin) - 12px), rgb(155 52 38 / .3) calc(var(--margin) - 12px), rgb(155 52 38 / .3) calc(var(--margin) - 11px), transparent calc(var(--margin) - 11px)),
    repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), rgb(14 27 44 / .06) calc(var(--lh) - 1px) var(--lh));
  background-position: 0 0, 0 3.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgb(14 27 44 / .5);
  font-family: var(--mono);
  font-size: .75rem;
}

.record__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  height: 2.5rem;
  color: var(--muted);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.redact {
  display: inline-block;
  width: 3rem;
  height: .7em;
  background: var(--ink);
  vertical-align: -.05em;
  opacity: .82;
}

.record__lines { position: relative; }
.record__lines li {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: .875rem;
  min-height: var(--lh);
  align-items: center;
  line-height: 1.35;
}
.record__lines time { flex: 0 0 2.5rem; color: var(--muted); }
.record__lines span { color: var(--ink); }

/* Highlighter sweep behind the finding */
.record .is-finding span { position: relative; }
.record .is-finding span::before {
  content: "";
  position: absolute;
  inset: -.15em -.3em;
  z-index: -1;
  background: var(--highlight);
  transform-origin: 0 50%;
}
/* Finding marker, keyed to the margin note */
.record .is-finding::after {
  content: "01";
  margin-left: auto;
  padding-left: .5rem;
  color: var(--pen);
  font-size: .625rem;
}
.record .is-ref span {
  background: linear-gradient(var(--pen), var(--pen)) 0 100% / 100% 1px no-repeat;
}
/* Margin bracket: each spanned entry draws a segment from its midline to the next one's */
.record .is-span::before {
  content: "";
  position: absolute;
  top: 50%;
  bottom: -50%;
  left: calc(var(--margin) * -1 + 1rem);
  width: 1px;
  background: var(--pen);
  transform-origin: 50% 0;
}
.record .is-ref time::before,
.record .is-finding time::before {
  content: "";
  position: absolute;
  left: calc(var(--margin) * -1 + 1rem);
  top: 50%;
  width: .45rem;
  height: 1px;
  background: var(--pen);
}

/* Reading rule that sweeps down the entries (offset = sheet padding + head height) */
.record__scan {
  position: absolute;
  top: 3.5rem;
  left: var(--margin);
  right: 1.25rem;
  height: calc(var(--lh) * 5);
  pointer-events: none;
  opacity: 0;
}
.record__scan i {
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: 0;
  height: var(--lh);
  background: linear-gradient(rgb(240 220 154 / 0), rgb(240 220 154 / .4));
  border-bottom: 1px solid rgb(155 52 38 / .55);
}

/* Finding note: hangs off the sheet's right edge, over the photograph */
.record__note {
  position: absolute;
  left: calc(100% - 7rem);
  bottom: calc(100% - 1.5rem);
  width: 15rem;
  padding: .9rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--navy-text);
  box-shadow: 0 24px 40px -20px rgb(14 27 44 / .6);
}
.record__note-label,
.record__note-delta {
  display: block;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.record__note-label { color: var(--highlight); }
.record__note p { margin: .35rem 0 .5rem; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.2; }
.record__note-delta { color: var(--navy-muted); }

.record__caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.record__replay {
  flex: none;
  white-space: nowrap;
  min-height: 2rem;
  padding: .25rem 0;
  border: 0;
  background: none;
  color: var(--pen);
  font: inherit;
  cursor: pointer;
}
.record__replay:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Armed = JS present and motion allowed. Without it, the finished state shows. */
.record.is-armed .record__sheet { opacity: 0; transform: translateY(24px); }
.record.is-armed .record__lines li { clip-path: inset(0 100% 0 0); }
.record.is-armed .is-finding span::before { transform: scaleX(0); }
.record.is-armed .is-span::before { transform: scaleY(0); }
.record.is-armed .is-ref span { background-size: 0 1px; }
.record.is-armed .is-ref time::before,
.record.is-armed .is-finding time::before,
.record.is-armed .is-finding::after { opacity: 0; }
.record.is-armed .record__note { opacity: 0; transform: translateY(12px); }

.record.is-playing .record__sheet { animation: record-in .8s var(--ease) .9s forwards; }
.record.is-playing .record__lines li {
  animation: record-read .55s var(--ease) forwards;
  animation-delay: calc(1.4s + var(--i) * .3s);
}
.record.is-playing .record__scan { animation: record-scan-fade 2.2s linear 1.35s forwards; }
.record.is-playing .record__scan i { animation: record-scan 1.8s var(--ease-in-out) 1.35s forwards; }
.record.is-playing .is-finding span::before { animation: record-mark .7s var(--ease) 2.95s forwards; }
.record.is-playing .is-finding::after,
.record.is-playing .is-ref time::before,
.record.is-playing .is-finding time::before { animation: record-fade .4s var(--ease) 3.3s forwards; }
.record.is-playing .is-ref span { animation: record-underline .5s var(--ease) 3.35s forwards; }
.record.is-playing .is-span::before {
  animation: record-bracket .25s linear forwards;
  animation-delay: calc(3.5s + (var(--i) - 1) * .22s);
}
.record.is-playing .record__note { animation: record-in .8s var(--ease) 4s forwards; }

@keyframes record-in { to { opacity: 1; transform: none; } }
/* Final inset is negative so the margin bracket outside each entry isn't clipped */
@keyframes record-read { to { clip-path: inset(-60% -2rem -60% -5rem); } }
@keyframes record-scan { from { transform: translateY(0); } to { transform: translateY(calc(var(--lh) * 3)); } }
@keyframes record-scan-fade { 0%, 100% { opacity: 0; } 8%, 80% { opacity: 1; } }
@keyframes record-mark { to { transform: scaleX(1); } }
@keyframes record-fade { to { opacity: 1; } }
@keyframes record-underline { to { background-size: 100% 1px; } }
@keyframes record-bracket { to { transform: scaleY(1); } }

/* Note tucks beneath the sheet when there's no room beside it */
@media (max-width: 80em) {
  .record__note { position: relative; left: auto; bottom: auto; margin: -1.25rem -1rem 0 auto; }
}

@media (max-width: 56em) {
  .hero__frame { width: 100%; aspect-ratio: 5 / 4; }
  .record { position: relative; bottom: auto; width: auto; margin: -5rem .75rem 0; }
  .seal { width: 6.5rem; height: 6.5rem; top: -1.5rem; right: -.25rem; }
  .seal__core b { font-size: 1.75rem; }
  .seal__ring text { font-size: 13px; }
}

@media (max-width: 30em) {
  .record { --margin: 2rem; --lh: auto; margin-inline: 0; }
  .record__sheet { padding-right: .875rem; font-size: .6875rem; background-image: linear-gradient(90deg, transparent calc(var(--margin) - 9px), rgb(155 52 38 / .3) calc(var(--margin) - 9px), rgb(155 52 38 / .3) calc(var(--margin) - 8px), transparent calc(var(--margin) - 8px)); }
  .record__lines li { min-height: 2.5rem; padding-block: .35rem; gap: .6rem; }
  .record__lines time { flex-basis: 2.25rem; }
  .record__head > span:last-child { display: none; }
  .record .is-span::before, .record .is-ref time::before, .record .is-finding time::before { left: calc(var(--margin) * -1 + .65rem); }
  .record__scan { display: none; }
  .record__note { width: auto; margin: -1rem .5rem 0 1.5rem; }
  .hero__frame { aspect-ratio: 1; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding-block: 1.6rem;
  background: var(--navy);
  color: var(--navy-text);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.2;
  white-space: nowrap;
}
.marquee__list li::after {
  content: "";
  width: .5rem;
  height: .5rem;
  background: var(--brass);
  transform: rotate(45deg);
}
.marquee__list li:nth-child(even) { font-style: italic; color: var(--brass-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */

.statement { padding-block: clamp(5.5rem, 13vh, 10rem); }
.statement__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.statement__text { flex: 1.35 1 30rem; min-width: 0; }
.statement__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.statement__body { max-width: 36rem; margin-top: 2rem; color: var(--ink-2); font-size: 1.125rem; }
.statement__media {
  flex: 1 1 20rem;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.statement__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Chapters ---------- */

.chapter { padding-block: clamp(5.5rem, 12vh, 9rem); }

.chapter__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.chapter__index {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
}
.chapter__index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--pen);
  letter-spacing: 0;
}
.chapter__question {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  color: var(--muted);
}
.chapter__head--stacked { flex-direction: column; align-items: flex-start; gap: .75rem; }

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 1.5rem 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}
.inline-cta .link-arrow { font-family: var(--sans); font-size: 1rem; color: var(--pen); }

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

.about { background: var(--sheet); border-block: 1px solid var(--rule); }
.about .inline-cta { background: var(--paper); }

.about__body {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}
.about__text { flex: 1.5 1 30rem; min-width: 0; }
.about__text > p:not(.lead) { max-width: 38rem; margin-top: 1.25rem; color: var(--ink-2); }
.about__text .lead { max-width: 38rem; }

.portrait { position: relative; flex: 1 1 18rem; max-width: 26rem; min-width: 0; }
.portrait__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.portrait__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 20px 40px -20px rgb(14 27 44 / .45);
}
.portrait__tag strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.1; }
.portrait__tag span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-ink); }

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pillar {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 1.5rem 1.25rem 1.375rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.pillar:hover,
.js .pillar.is-visible:hover { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: 0 24px 40px -28px rgb(14 27 44 / .4); }
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
}
.pillar h3 { margin-top: 1.125rem; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.15; }
.pillar p { margin-top: .4rem; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

.ruler { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.ruler__figure { display: flex; align-items: flex-end; gap: .25rem; }
.ruler__num,
.ruler__plus {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 7.5rem);
  line-height: .8;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
}
.ruler__plus { color: var(--pen); transition: opacity .5s var(--ease); }
.ruler__unit {
  margin-left: 1.25rem;
  padding-bottom: .4rem;
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ruler.is-counting .ruler__plus { opacity: 0; }

.ruler__scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 2.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.ruler__tick {
  position: relative;
  width: 1px;
  height: .5rem;
  background: var(--rule-strong);
  transform-origin: 50% 0;
}
.ruler__tick--major { height: 1rem; background: var(--ink); }
.ruler__tick--major span {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .625rem;
  color: var(--muted);
}
.ruler__tick--now { height: 1.25rem; background: var(--pen); }
.ruler__tick--now span { left: auto; right: 0; transform: none; color: var(--pen); }

.js .ruler .ruler__tick { transform: scaleY(0); transition: transform .5s var(--ease); transition-delay: calc(var(--t) * 28ms); }
.js .ruler.is-visible .ruler__tick { transform: none; }

/* ---------- 02 Approach ---------- */

.approach__body {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}
.approach__media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  flex: 1 1 26rem;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.approach__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; }
.approach__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  background: rgb(14 27 44 / .88);
  color: var(--navy-text);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
}
@supports (backdrop-filter: blur(1px)) {
  .approach__badge { background: rgb(14 27 44 / .7); backdrop-filter: blur(10px); }
}
.approach__count b { color: var(--highlight); font-weight: 500; }
.approach__label { padding-left: 1rem; border-left: 1px solid var(--navy-rule); text-transform: uppercase; transition: opacity .3s var(--ease); }
.approach__label.is-swapping { opacity: 0; }

.approach__list { flex: 1.1 1 28rem; min-width: 0; }
.approach__list .lead { max-width: 34rem; color: var(--ink-2); }

.caps { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.cap {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
/* Active indicator: a pen stroke down the left edge */
.cap::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--pen);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .6s var(--ease);
}
.cap.is-active::before { transform: none; }
.cap__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.cap.is-active .cap__icon { background: var(--navy); border-color: var(--navy); color: var(--brass-light); }
.cap__num { color: var(--brass-ink); }
.cap h3 { margin-top: .35rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.12; }
.cap p { margin-top: .5rem; max-width: 32rem; color: var(--muted); transition: color .5s var(--ease); }
.cap.is-active p { color: var(--ink-2); }

@media (max-width: 56em) {
  .approach__media { position: relative; top: auto; }
  .approach__media img { aspect-ratio: 3 / 2; }
  .cap::before { left: -.75rem; }
}

/* ---------- 03 Explain (dark) ---------- */

.explain {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--navy-text);
}
/* soft brass glow behind the translator */
.explain::before {
  content: "";
  position: absolute;
  width: 50rem;
  height: 50rem;
  right: -15rem;
  top: -10rem;
  background: radial-gradient(closest-side, rgb(176 139 79 / .16), transparent);
  pointer-events: none;
}
.explain .chapter__index,
.explain .chapter__question { color: var(--navy-muted); }
.explain .chapter__index span { color: var(--highlight); border-color: var(--navy-rule); }
.explain .section-title em { color: var(--brass-light); }
.explain :focus-visible { outline-color: var(--highlight); }

.explain__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.explain__intro { flex: 1 1 22rem; min-width: 0; }
.explain__intro > p { max-width: 30rem; margin-top: 1.5rem; color: var(--navy-muted); }
.explain__intro > p.explain__hint { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-light); }

.translate {
  flex: 1.3 1 30rem;
  min-width: 0;
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 50px 90px -40px rgb(0 0 0 / .6);
}
.translate__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.translate__dots { display: flex; gap: .4rem; }
.translate__dots i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--rule); }
.translate__dots i:first-child { background: var(--pen); opacity: .7; }

.translate__switch {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
}
.translate__switch button {
  position: relative;
  z-index: 1;
  min-height: 2.5rem;
  padding: .5rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color .35s var(--ease);
}
.translate__switch button[aria-pressed="true"] { color: var(--paper); }
.translate__switch :focus-visible { outline-color: var(--pen); }
.translate__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--navy);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.translate__list { padding: .5rem 1.5rem; }
.translate__list li {
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.translate__list li:first-child { border-top: 0; }
/* Both versions occupy the same full-width slot (the second is pulled back over
   the first), so each row is as tall as its longer version and never jumps on toggle. */
.translate__list .t {
  flex: 0 0 100%;
  min-width: 0;
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s linear .55s;
  transition-delay: calc(var(--i) * 70ms);
}
.t--clinical { font-family: var(--mono); font-size: clamp(.9375rem, 1.4vw, 1.0625rem); color: var(--ink); }
.t--clinical abbr { border-bottom: 1px dotted var(--rule-strong); }
.t--plain { margin-left: -100%; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.3; }

html:not(.js) .translate__switch { display: none; }
html:not(.js) .translate__list li { flex-direction: column; align-items: flex-start; }
html:not(.js) .translate__list .t--plain { margin: .5rem 0 0; }

.js .translate[data-mode="clinical"] .t--plain,
.js .translate[data-mode="plain"] .t--clinical {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.js .translate[data-mode="clinical"] .t--clinical,
.js .translate[data-mode="plain"] .t--plain {
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s;
  transition-delay: calc(var(--i) * 70ms + 120ms);
}
.translate__note { padding: .875rem 1.5rem 1rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; color: var(--muted); }

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

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.card {
  position: relative;
  flex: 1 1 24rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease), opacity .9s var(--ease);
}
/* Whole card is one link, stretched over the card */
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__link:focus-visible { outline-offset: -4px; }
.card:hover,
.card:focus-within,
.js .card.is-visible:hover,
.js .card.is-visible:focus-within { transform: translateY(-6px); border-color: var(--rule-strong); box-shadow: 0 40px 70px -40px rgb(14 27 44 / .45); }

.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img,
.card:focus-within .card__media img { transform: scale(1.05); }
.card__chip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgb(251 249 245 / .92);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.card__chip .icon { width: 1rem; height: 1rem; color: var(--brass-ink); }

.card__body { flex: 1; display: flex; flex-direction: column; padding: 2rem clamp(1.5rem, 3vw, 2.25rem); }
.card__title { max-width: 20ch; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.08; }

.ticks { margin: 1.5rem 0 2rem; }
.ticks li {
  display: flex;
  gap: .875rem;
  padding: .65rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: .9688rem;
}
.ticks li::before {
  content: "";
  flex: none;
  width: .8rem;
  height: .45rem;
  margin-top: .45rem;
  border-left: 1.5px solid var(--pen);
  border-bottom: 1.5px solid var(--pen);
  transform: rotate(-45deg);
}

.card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-weight: 500;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.card__cta .icon { transition: transform .45s var(--ease); }
.card:hover .card__cta,
.card:focus-within .card__cta { background: var(--navy); color: var(--paper); }
.card:hover .card__cta .icon,
.card:focus-within .card__cta .icon { transform: translateX(4px); }

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

.process { background: var(--sheet); border-top: 1px solid var(--rule); }

.steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
/* Connecting line through the step nodes, drawn on reveal */
.steps::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--rule-strong) 80%, transparent);
  transform-origin: 0 50%;
}
.js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease-in-out) .2s; }
.js .steps.is-drawn::before { transform: none; }

.step { position: relative; flex: 1 1 13rem; min-width: 0; }
.step__node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--sheet);
  color: var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.step:hover .step__node { background: var(--navy); border-color: var(--navy); color: var(--brass-light); }
.step__num { display: block; margin-top: 1.5rem; color: var(--brass-ink); }
.step h3 { margin: .5rem 0 .6rem; font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; }
.step p { font-size: .9688rem; color: var(--ink-2); }

@media (max-width: 56em) {
  .steps { flex-direction: column; gap: 2.5rem; }
  .steps::before { left: 1.75rem; right: auto; top: 1.75rem; bottom: 1.75rem; width: 1px; height: auto; background: var(--rule-strong); transform-origin: 50% 0; }
  .js .steps::before { transform: scaleY(0); }
  .step { flex: none; padding-left: 5rem; }
  .step__node { position: absolute; left: 0; top: 0; }
  .step__num { margin-top: .25rem; }
}

/* ---------- CTA band ---------- */

.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 16vh, 10rem);
  background: var(--navy);
  color: var(--navy-text);
}
.band__bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 75% 50%;
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(14 27 44 / .9) 30%, rgb(14 27 44 / .15));
}
.band__inner { position: relative; z-index: 1; }
.band__title {
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.band__title em { color: var(--brass-light); }
.band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.band :focus-visible { outline-color: var(--brass-light); }

@media (max-width: 40em) {
  .band::after { background: linear-gradient(180deg, rgb(14 27 44 / .75), rgb(14 27 44 / .92)); }
}

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

.contact { padding-block: clamp(5.5rem, 12vh, 9rem); }
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}
.contact__intro { flex: 1 1 20rem; min-width: 0; }
.contact__intro > p { max-width: 26rem; margin-top: 1.25rem; color: var(--ink-2); font-size: 1.125rem; }
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 5.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.direct { margin-top: 2.5rem; }
.direct li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.direct li:last-child { border-bottom: 1px solid var(--rule); }
.direct__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
}
.direct li > span:last-child { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.direct small { color: var(--muted); font-size: .6875rem; margin-bottom: .2rem; }
.direct a { text-decoration: none; transition: color .3s var(--ease); }
.direct a:hover { color: var(--pen); }

.form {
  flex: 1.4 1 30rem;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: var(--shadow-lg);
}
.form__title { flex: 1 1 100%; font-family: var(--serif); font-size: 1.875rem; line-height: 1.1; }
.field { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; }
.field--half { flex: 1 1 13rem; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field label { margin-bottom: .5rem; color: var(--muted); }
.optional { margin-left: .4rem; text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .85; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem .9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2.25rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6472' stroke-width='1.5'/%3E%3C/svg%3E") right .9rem center no-repeat;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgb(176 139 79 / .3);
}
.field [aria-invalid="true"] { border-color: var(--pen); }

.field__hint { display: flex; gap: .5rem; align-items: flex-start; margin-top: .6rem; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.field__hint .icon { width: 1rem; height: 1rem; margin-top: .1rem; color: var(--brass-ink); }
.field__error { font-size: .8125rem; color: var(--pen); }
.field__error:not(:empty) { margin-top: .5rem; }

.form__foot {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: .25rem;
}
.form__status { font-size: .9375rem; color: var(--ink-2); }

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

.site-footer {
  background: var(--navy);
  color: var(--navy-muted);
  font-size: .9375rem;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-block: clamp(4rem, 9vh, 6rem) 3rem;
  border-bottom: 1px solid var(--navy-rule);
}
.site-footer__mark {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  color: var(--navy-text);
}
.site-footer__mark em { color: var(--brass-light); }
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem clamp(2rem, 8vw, 7rem);
  padding-block: 3rem;
}
.site-footer__brand { flex: 1 1 18rem; max-width: 24rem; }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__logo { height: 4.5rem; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font-style: normal; }
.site-footer__h { margin-bottom: .5rem; color: var(--brass-light); }
.site-footer__col a {
  color: var(--navy-text);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.site-footer__col a:hover, .site-footer__col a:focus-visible { background-size: 100% 1px; }
.site-footer :focus-visible { outline-color: var(--brass-light); }
.site-footer__legal { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--navy-rule); font-size: .8125rem; }
@media (max-width: 56em) { .site-footer__legal { padding-bottom: 6rem; } } /* clears the CTA dock */

/* ---------- Mobile CTA dock ---------- */

.dock { display: none; }
@media (max-width: 56em) {
  .dock {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 3.25rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--paper);
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 20px 40px -16px rgb(14 27 44 / .6);
    transform: translateY(calc(100% + 2rem));
    transition: transform .5s var(--ease);
  }
  .dock.is-shown { transform: none; }
}

/* ==========================================================================
   Inner pages: About, Services, Notary, Contact.
   Built from the homepage parts; only what they lack is added here.
   ========================================================================== */

/* ---------- Page hero ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vh, 3rem));
  padding-bottom: clamp(4rem, 9vh, 6.5rem);
  background:
    radial-gradient(50rem 34rem at 90% 0%, rgb(176 139 79 / .12), transparent 60%),
    repeating-linear-gradient(transparent 0 39px, rgb(14 27 44 / .035) 39px 40px);
  border-bottom: 1px solid var(--rule);
}
.page-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.page-hero__copy { flex: 1 1 26rem; min-width: 0; }
.page-hero__visual { flex: 1 1 28rem; min-width: 0; position: relative; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { text-decoration: none; transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--pen); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule-strong); }
.crumbs [aria-current] { color: var(--ink); }

.page-hero__title {
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.page-hero__title em { color: var(--pen); }

.hero__frame--wide { width: 100%; aspect-ratio: 4 / 3; }

/* Small paper tag pinned to the hero image */
.page-hero__tag {
  position: absolute;
  left: clamp(-1.5rem, -2vw, -.5rem);
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .875rem;
  max-width: 19rem;
  padding: .9rem 1.15rem;
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 24px 40px -22px rgb(14 27 44 / .5);
  font-size: .875rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.page-hero__tag .icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
}
.page-hero__tag strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.1; color: var(--ink); }
@media (max-width: 40em) { .page-hero__tag { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; } }

/* ---------- Jump links ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .5rem 1rem .5rem .5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--sheet);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.jump a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--pen);
}
.jump a:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.jump a:hover span { background: var(--navy-3); color: var(--brass-light); }

/* ---------- Service detail (image + text, alternating) ---------- */

.service { padding-block: clamp(5rem, 11vh, 8rem); border-bottom: 1px solid var(--rule); }
.service--alt { background: var(--sheet); }
.service__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(3rem, 6vw, 6rem);
}
.service--flip .service__inner { flex-direction: row-reverse; }
.service__media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  flex: 1 1 24rem;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.service__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service__media .card__chip { z-index: 1; }
.service__body { flex: 1.15 1 28rem; min-width: 0; }
.service__body > p:not(.lead) { max-width: 38rem; margin-top: 1.25rem; color: var(--ink-2); }
.service__body .lead { max-width: 38rem; }

.service__cols { display: flex; flex-wrap: wrap; gap: 0 2.5rem; margin-top: 2.25rem; }
.service__col { flex: 1 1 15rem; min-width: 0; }
.service__col .ticks { margin: .75rem 0 0; }
.service__h { color: var(--brass-ink); }

.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }

@media (max-width: 56em) {
  .service__media { position: relative; top: auto; }
  .service__media img { aspect-ratio: 3 / 2; }
  .service--flip .service__inner { flex-direction: row; }
}

/* ---------- Notary strip (homepage + services) ---------- */

.also {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--navy);
  color: var(--navy-text);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease);
}
.also:hover,
.also:focus-within,
.js .also.is-visible:hover,
.js .also.is-visible:focus-within { transform: translateY(-4px); box-shadow: 0 40px 70px -40px rgb(14 27 44 / .6); }
.also__media { flex: 1 1 16rem; min-width: 0; min-height: 13rem; overflow: hidden; }
.also__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.also:hover .also__media img { transform: scale(1.05); }
.also__body {
  flex: 2 1 26rem;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.also__text { flex: 1 1 18rem; min-width: 0; }
.also__label { color: var(--brass-light); }
.also__title { margin-top: .5rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.05; }
.also__title em { color: var(--brass-light); }
.also__text p:last-child { margin-top: .6rem; max-width: 34rem; color: var(--navy-muted); font-size: .9688rem; }
.also .card__link:focus-visible { outline-color: var(--brass-light); }
.also__cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .5s var(--ease);
}
.also__cta .icon { transition: transform .45s var(--ease); }
.also:hover .also__cta { background: var(--brass-light); }
.also:hover .also__cta .icon { transform: translateX(4px); }

/* ---------- Dark panel (credentials, notary checklist) ---------- */

.panel {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 12vh, 9rem);
  background: var(--navy);
  color: var(--navy-text);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(44rem 30rem at 0% 100%, rgb(176 139 79 / .16), transparent 60%);
  pointer-events: none;
}
.panel .wrap { position: relative; }
.panel .chapter__index { color: var(--navy-muted); }
.panel .chapter__index span { color: var(--highlight); border-color: var(--navy-rule); }
.panel .chapter__question { color: var(--navy-muted); }
.panel .section-title em { color: var(--brass-light); }
.panel .lead { max-width: 38rem; color: var(--navy-muted); }
.panel :focus-visible { outline-color: var(--highlight); }

.creds { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--navy-rule); }
.cred {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--navy-rule);
}
.cred__abbr {
  flex: 0 0 9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: .9;
  color: var(--brass-light);
}
.cred__text { flex: 1 1 22rem; min-width: 0; }
.cred h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.1; }
.cred p { margin-top: .5rem; max-width: 40rem; color: var(--navy-muted); }

/* Checklist card on the dark panel */
.panel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(3rem, 6vw, 6rem);
}
.panel__intro { flex: 1 1 22rem; min-width: 0; }
.checklist {
  flex: 1.2 1 26rem;
  min-width: 0;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6);
}
.checklist__title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.checklist ol { margin-top: 1rem; counter-reset: check; }
.checklist li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  counter-increment: check;
}
.checklist li::before {
  content: counter(check, decimal-leading-zero);
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--pen);
}
.checklist strong { display: block; font-weight: 600; }
.checklist li span { color: var(--ink-2); font-size: .9688rem; }
.checklist__note {
  display: flex;
  gap: .6rem;
  margin-top: .5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.checklist__note .icon { margin-top: .1rem; color: var(--brass-ink); }

/* ---------- Lenses (about: three ways of reading) ---------- */

.lenses { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.lens {
  position: relative;
  flex: 1 1 17rem;
  min-width: 0;
  padding: 2rem 1.75rem 2.25rem;
  border-top: 2px solid var(--ink);
  background: linear-gradient(var(--sheet), transparent);
}
.lens__num { color: var(--pen); }
.lens h3 { margin-top: 1rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 2.4vw, 2rem); line-height: 1.1; }
.lens p { margin-top: .75rem; color: var(--ink-2); }
.lens q {
  display: block;
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--highlight);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--muted);
}

/* ---------- Notary: acts list + office / mobile options ---------- */

.acts { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.acts__list { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.acts__list li {
  padding: .6rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.2;
}

.options { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.option {
  flex: 1 1 22rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
}
.option h3 { margin-top: 1.25rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.05; }
.option p { margin-top: .6rem; max-width: 30rem; color: var(--ink-2); }
.option__addr { margin: 1.25rem 0 .75rem; font-style: normal; font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.option__area { margin-bottom: .75rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.option .link-arrow { margin-top: auto; }
.option--dark { border-color: var(--navy); background: var(--navy); color: var(--navy-text); }
.option--dark p { color: var(--navy-muted); }
.option--dark .option__area { margin-top: 1.25rem; color: var(--brass-light); }
.option--dark .pillar__icon { background: var(--brass-light); color: var(--navy); }
.option--dark :focus-visible { outline-color: var(--brass-light); }

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

.chapter .wrap > .lead { max-width: 40rem; }

.faq__inner { display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 6rem); align-items: flex-start; }
.faq__intro { flex: 1 1 18rem; min-width: 0; }
.faq__intro > p { max-width: 24rem; margin-top: 1.25rem; color: var(--ink-2); }
.faq__list { flex: 1.6 1 28rem; min-width: 0; border-top: 1px solid var(--rule-strong); }
.faq__list details { border-bottom: 1px solid var(--rule-strong); }
.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 2vw, 1.625rem);
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--pen); }
.faq__list summary::after {
  content: "+";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.25rem;
  transition: transform .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); color: var(--paper); }
.faq__list details > div { max-width: 40rem; padding: 0 3.5rem 1.75rem 0; color: var(--ink-2); }
.faq__list details > div a { color: var(--pen); }

/* ---------- Contact page extras ---------- */

.contact--page { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.contact--page .form { background: var(--paper); }
.contact--page .field input,
.contact--page .field select,
.contact--page .field textarea { background-color: var(--sheet); }

.hours {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--brass);
  background: var(--paper);
  font-size: .9375rem;
  color: var(--ink-2);
}
.hours strong { display: block; margin-bottom: .25rem; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); }

/* ---------- Scroll reveals ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Once revealed, lifting elements get their hover transitions back (the reveal rule overrides them) */
.js .card[data-reveal].is-visible,
.js .pillar[data-reveal].is-visible,
.js .also[data-reveal].is-visible {
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease), opacity .9s var(--ease);
  transition-delay: 0s;
}

/* Mask reveal for images: uncovered from the bottom, like turning up a page */
.js [data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-in-out);
}
.js [data-reveal="mask"] img { scale: 1.15; transition: scale 1.8s var(--ease); }
.js [data-reveal="mask"].is-visible { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"].is-visible img { scale: 1; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="mask"], .js .hero__frame { clip-path: none; }
  .js [data-reveal="mask"] img, .js .hero__frame img { scale: 1; }
  .w > span { transform: none; }
  .js .ruler .ruler__tick,
  .js .steps::before { transform: none; }
  .js .hero__title em { background-size: 100% 2px; }
  .marquee__track { animation: none; width: auto; }
  .marquee__list[aria-hidden] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: .5rem; padding-inline: 1rem; }
  .marquee__list li { white-space: normal; }
  .seal__ring { animation: none; }
  .progress { display: none; }
}
