/* Brandon Tinder redesign. Palette from BRAND-BRIEF.md section 9; reasoning in docs/DESIGN-DIRECTION.md.
   Fonts are self-hosted so the CSP can stay 'self'. SIL OFL 1.1, see fonts/OFL-*.txt.
   Newsreader is pinned to its display optical size (72) and to weights 400-600. */

@font-face {
  font-family: "Newsreader Display";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/newsreader-display.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader Display";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/newsreader-display-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  --ink: #0D1A2B;
  --navy: #14273F;
  --charcoal: #24282E;
  --ivory: #F5F2EC;
  --sand: #ECE7DE;
  --blue: #42698D;
  --brass: #B4915D;      /* decorative; never small text on light backgrounds */

  --serif: "Newsreader Display", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 112rem;
  --gut: clamp(1.25rem, 4vw, 3.75rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  --head-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Each surface sets its own reading colors; components only use these names. */
.on-dark, .on-navy {
  --fg: #F5F2EC;
  --head: #FFFFFF;
  --muted: #BAC5D2;
  --label: #D2B488;
  --hair: rgba(245, 242, 236, .18);
  --hair-strong: rgba(245, 242, 236, .42);
  --btn-bg: #F5F2EC;
  --btn-fg: #14273F;
  --focus: #E2C795;
  background: var(--bg);
  color: var(--fg);
}
.on-dark { --bg: var(--ink); }
.on-navy { --bg: var(--navy); }
.on-light, .on-sand {
  --fg: #24282E;
  --head: #14273F;
  --muted: #4E5560;
  --label: #35597A;
  --hair: #CFC6B5;
  --hair-strong: #8A8375;
  --btn-bg: #14273F;
  --btn-fg: #F5F2EC;
  --focus: #2F5578;
  background: var(--bg);
  color: var(--fg);
}
.on-light { --bg: var(--ivory); }
.on-sand { --bg: var(--sand); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
html.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--focus, #2F5578); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  color: var(--head);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.018em;
}
h3 { font-weight: 500; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ivory);
  color: var(--navy);
}
.skip-link:focus { top: .75rem; }

/* Only ever shown on the redesign preview host, see setupPreviewBar() in site.js. */
.preview-bar {
  margin: 0;
  padding: .45rem 1rem;
  background: var(--brass);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}
.preview-bar a { text-decoration-color: currentColor; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sec { padding-block: clamp(4.5rem, 11vw, 10rem); }

.label {
  margin: 0;
  color: var(--label);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.statement {
  margin: 0;
  color: var(--head);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.3vw, 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.024em;
}
.statement em { color: var(--label); }

.lede { max-width: 38rem; color: var(--fg); font-size: clamp(1.125rem, 1rem + .55vw, 1.4375rem); line-height: 1.45; }
.quiet { color: var(--muted); }

/* ---------- The pulled-taut underline ---------- */
.taut { position: relative; display: inline-block; white-space: nowrap; }
.taut svg {
  position: absolute;
  left: 0;
  bottom: -.04em;
  width: 100%;
  height: .14em;
  overflow: visible;
  pointer-events: none;
}
.taut path {
  fill: none;
  stroke: var(--brass);
  stroke-width: clamp(2px, .036em, 5px);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--head-h);
  gap: 1rem;
}
.brand { color: var(--head); font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; }
.nav-toggle {
  display: none;
  padding: .55rem .95rem;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  background: none;
  color: var(--fg);
  font: 600 .9375rem/1 var(--sans);
  cursor: pointer;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--fg); font-size: .9875rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}
.nav-phone { display: none; }

@media (max-width: 60rem) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--head-h));
    height: calc(100dvh - var(--head-h));
    padding: clamp(1.5rem, 6vh, 3rem) var(--gut);
    background: var(--ink);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; flex-direction: column; justify-content: space-between; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--hair); }
  .site-nav li a {
    display: block;
    padding-block: .55rem;
    color: var(--head);
    font-family: var(--serif);
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    letter-spacing: -.02em;
    line-height: 1.15;
  }
  .nav-phone { display: block; margin: 2rem 0 0; color: var(--muted); }
  .site-nav .nav-phone a { color: var(--fg); font-size: 1.25rem; text-decoration: underline; text-decoration-color: var(--brass); }
}

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.4rem;
  border: 1.5px solid var(--btn-bg);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.btn::after {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--brass);
  transition: width .35s var(--ease), background .25s;
}
.btn:hover::after { width: 2.4rem; }
.btn-primary:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-primary:hover::after { background: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--hair-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.more { font-weight: 600; }

/* ---------- Home hero ---------- */
.hero { overflow: clip; }
.hero-grid { min-height: min(calc(100vh - var(--head-h)), 60rem); min-height: min(calc(100svh - var(--head-h)), 60rem); }
.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 10;
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  padding-block: clamp(2rem, 6vh, 4.5rem) clamp(2.5rem, 8vh, 5.5rem);
}
.hero-id { margin: 0 0 clamp(1.5rem, 4vh, 3rem); letter-spacing: 0; line-height: 1.2; }
.hero-name { display: block; color: var(--head); font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.375rem); letter-spacing: -.012em; }
.hero-role { display: block; margin-top: .3rem; color: var(--muted); font-family: var(--sans); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); font-weight: 500; line-height: 1.35; }
.line { display: block; overflow: clip; padding-bottom: .2em; margin-bottom: -.2em; }
.line > span { display: block; }
.hero .lede { margin: clamp(1.5rem, 4vh, 2.5rem) 0 clamp(1.5rem, 3.5vh, 2.25rem); }
.hero-portrait { position: relative; z-index: 1; grid-column: 8 / 13; grid-row: 1; margin: 0 calc(var(--edge) * -1) 0 0; }
.hero-portrait picture { display: block; height: 100%; }
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--ink) 0%, rgba(13, 26, 43, 0) 36%),
    linear-gradient(to top, var(--ink) 0%, rgba(13, 26, 43, 0) 28%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .line > span { animation: rise 1s var(--ease) both; }
  .hero .line:nth-child(2) > span { animation-delay: .08s; }
  .hero .line:nth-child(3) > span { animation-delay: .16s; }
  .hero-id, .hero .lede, .hero .actions { animation: settle .9s .3s var(--ease) both; }
  .taut svg { animation: appear .3s .55s both; }
  @keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes settle { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }

  @supports (animation-timeline: scroll()) {
    .hero-portrait img {
      animation: drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    @keyframes drift { to { transform: translateY(5%); } }
  }
}

@media (max-width: 60rem) {
  .hero-grid { display: flex; flex-direction: column; min-height: 0; padding-inline: 0; }
  .hero-portrait { order: -1; margin: 0; height: min(40svh, 24rem); }
  .hero-portrait::after { background: linear-gradient(to top, var(--ink) 0%, rgba(13, 26, 43, 0) 34%); }
  .hero-copy { align-self: stretch; margin-top: -1.5rem; padding: 0 var(--gut) 3rem; }
  .hero .actions { order: 3; margin-top: 1.5rem; }
  .hero .lede { order: 4; margin: 1.75rem 0 0; }
  .hero .btn { flex: 1 1 100%; justify-content: space-between; }
}

/* ---------- The thread: default is a plain stacked layout; .thread-live pins it ---------- */
.thread-stage { padding: clamp(4.5rem, 11vw, 8rem) var(--gut); }
.thread-head { max-width: 40rem; }
.thread-head h2 { margin-top: 1rem; font-size: clamp(2.25rem, 4.4vw, 4.5rem); }
.thread-head p:last-child { margin: 1.25rem 0 0; color: var(--muted); }
.thread-svg { display: block; width: 100%; height: 15rem; margin-block: 1.5rem; overflow: visible; }
.thread-path { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thread-dot { fill: var(--navy); stroke: var(--brass); stroke-width: 2; transition: fill .3s; }
.thread-dot.on { fill: var(--brass); }
.thread-leader { stroke: var(--hair-strong); stroke-width: 1; transition: opacity .35s; }
.knot-notes { margin: 0 0 clamp(4rem, 10vw, 6rem); padding: 0; border-top: 1px solid var(--hair); list-style: none; }
.knot-notes li { padding-block: 1rem; border-bottom: 1px solid var(--hair); }

.stops { position: relative; margin: 2.5rem 0 0; padding: 0 0 0 2.25rem; list-style: none; }
.stops::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .6rem;
  bottom: .6rem;
  width: 2px;
  background: var(--brass);
  transform: scaleY(var(--rail, 1));
  transform-origin: top;
}
.stops li { position: relative; padding-bottom: 2rem; }
.stops li:last-child { padding-bottom: 0; }
.stops li::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: .4rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--brass);
}
.stop-n { display: block; color: var(--label); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.stops h3 { margin: .15rem 0 .4rem; font-size: clamp(1.5rem, 1.2rem + .9vw, 2.125rem); }
.stops p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.thread-live .thread { height: 340vh; }
.thread-live .thread-stage {
  position: sticky;
  top: var(--head-h);
  height: calc(100vh - var(--head-h));
  height: calc(100svh - var(--head-h));
  padding: 0;
  overflow: clip;
}
.thread-live .thread-svg { position: absolute; inset: 0; height: 100%; margin: 0; }
.thread-live .thread-head { position: absolute; left: var(--edge); top: clamp(2rem, 8vh, 5rem); width: min(36vw, 36rem); max-width: none; transition: opacity .45s; }
.thread-live .thread-after { width: min(62vw, 64rem); opacity: 0; }
.thread-live .thread-after p:last-child { max-width: 38rem; }
.thread-live .is-clear .thread-after { opacity: 1; }
.thread-live .is-taut .thread-before, .thread-live .is-taut .knot-notes li, .thread-live .is-taut .thread-leader { opacity: 0; }
.thread-live .knot-notes { position: absolute; inset: 0; margin: 0; border: 0; pointer-events: none; }
.thread-live .knot-notes li {
  position: absolute;
  width: clamp(11rem, 15vw, 15rem);
  padding: 0;
  border: 0;
  color: var(--fg);
  font-size: .9375rem;
  line-height: 1.4;
  transition: opacity .35s;
}
.thread-live .knot-notes li:nth-child(1) { left: 42%; top: 7%; }
.thread-live .knot-notes li:nth-child(2) { left: 74%; top: 5%; }
.thread-live .knot-notes li:nth-child(3) { right: var(--edge); top: 38%; }
.thread-live .knot-notes li:nth-child(4) { left: 73%; bottom: 7%; }
.thread-live .knot-notes li:nth-child(5) { left: 38%; bottom: 7%; }

.thread-live .stops {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: clamp(1.5rem, 6vh, 4.5rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
}
.thread-live .stops::before, .thread-live .stops li::before { display: none; }
.thread-live .stops li { padding: 0; opacity: 0; transform: translateY(.75rem); transition: opacity .45s, transform .6s var(--ease); }
.thread-live .stops li.on { opacity: 1; transform: none; }

/* ---------- Section heads and editorial rows ---------- */
.sec-head { row-gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5.5rem); }
.sec-head .label { grid-column: 1 / 4; padding-top: .9rem; }
.sec-head h2 { grid-column: 4 / 13; font-size: clamp(2.25rem, 5vw, 5.25rem); }
.sec-head .sec-sub { grid-column: 4 / 10; margin: 0; color: var(--muted); }

.rows { margin: 0; padding: 0; border-top: 1px solid var(--hair); list-style: none; }
.row { position: relative; padding-block: clamp(1.75rem, 3.4vw, 3.25rem); border-bottom: 1px solid var(--hair); row-gap: .75rem; }
.row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.row:hover::after { transform: scaleX(1); }
.row-n { grid-column: 1 / 4; margin: 0; padding-top: .35rem; color: var(--label); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.row-title { grid-column: 4 / 9; font-size: clamp(1.75rem, 1.2rem + 1.7vw, 3rem); line-height: 1.08; }
.row-title small { display: block; margin-top: .45rem; color: var(--muted); font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.row-body { grid-column: 9 / 13; }
.row-body p:last-child { margin-bottom: 0; }
.row--title-only .row-title { grid-column: 4 / 13; }
.receive { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--hair); font-size: 1rem; line-height: 1.5; }
.receive strong { display: block; margin-bottom: .2rem; color: var(--label); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.after-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(2.25rem, 4vw, 3.5rem); }

/* ---------- Splits, lists, portraits ---------- */
.split { row-gap: 2.5rem; }
.split-head { grid-column: 1 / 6; }
.split-head h2 { margin-top: .9rem; font-size: clamp(2.125rem, 3.8vw, 4rem); }
.split-body { grid-column: 7 / 13; }
.ticks { margin: 0; padding: 0; border-top: 1px solid var(--hair); list-style: none; }
.ticks li { padding-block: 1.1rem; border-bottom: 1px solid var(--hair); font-size: clamp(1.0625rem, .95rem + .4vw, 1.3125rem); line-height: 1.42; }
.spaced { margin-top: 1.5rem; }

.big-line { font-size: clamp(2.5rem, 6vw, 7rem); line-height: 1.02; letter-spacing: -.024em; }
.big-line-after { grid-column: 7 / 13; margin: clamp(1.75rem, 4vw, 3.5rem) 0 0; font-size: clamp(1.125rem, 1rem + .55vw, 1.4375rem); line-height: 1.45; }
.big-line-wrap .big-line { grid-column: 1 / 13; }

.portrait { margin: 0; }
.portrait img { width: 100%; }
.intro-photo { grid-column: 1 / 6; }
.intro-text { grid-column: 7 / 13; align-self: center; }
.intro-text h2 { margin: .9rem 0 1.5rem; font-size: clamp(2.125rem, 3.8vw, 4rem); }

.headshot { grid-column: 1 / 4; }
.bio-text { grid-column: 4 / 11; }
.bio-text h2 { margin: .9rem 0 1.25rem; font-size: clamp(2rem, 3.2vw, 3.25rem); }

/* ---------- Inner page heads ---------- */
.page-hero { padding-block: clamp(3.5rem, 11vh, 9rem) clamp(3rem, 8vh, 6rem); }
.page-hero h1 { max-width: 16em; margin-top: 1.25rem; font-size: clamp(2.75rem, 6.6vw, 8rem); line-height: 1; letter-spacing: -.024em; }
.page-hero .lede { margin: clamp(1.5rem, 4vh, 2.5rem) 0 0; color: var(--muted); }
.page-hero .actions { margin-top: 2rem; }

.about-hero { padding-block: clamp(3rem, 8vh, 6rem) clamp(4rem, 10vh, 7rem); row-gap: 2.5rem; }
.about-photo { grid-column: 1 / 6; }
.about-copy { grid-column: 7 / 13; align-self: center; }
.about-copy h1 { margin: 1rem 0 1.5rem; font-size: clamp(2.75rem, 5.2vw, 6rem); line-height: 1; letter-spacing: -.024em; }
.about-copy p:last-child { margin-bottom: 0; }

/* Static version of the process line on Work With Me */
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 2.25rem 0 0; }
.process::before {
  content: "";
  position: absolute;
  left: calc(var(--gut) * -1);
  right: calc(var(--gut) * -1);
  top: .34rem;
  bottom: auto;
  width: auto;
  height: 2px;
  background: var(--brass);
  transform: none;
}
.process li { padding: 0; }
.process li::before { left: 0; top: -2.25rem; }

/* ---------- Closing band ---------- */
.closing { padding-block: clamp(5rem, 13vw, 12rem); }
.closing .statement { max-width: 13em; }
.closing h2:not(.statement) { max-width: 15em; font-size: clamp(2.5rem, 6vw, 7rem); line-height: 1.02; letter-spacing: -.024em; }
.closing .actions { margin-top: clamp(2rem, 4vw, 3.5rem); }
.closing-phone { margin: 1.75rem 0 0; color: var(--muted); }
.closing-phone a { color: var(--fg); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { padding-block: clamp(3rem, 9vh, 7rem) clamp(4rem, 10vh, 8rem); row-gap: 3rem; }
.contact-intro { grid-column: 1 / 6; }
.contact-intro h1 { margin-top: 1rem; font-size: clamp(2.75rem, 6vw, 7rem); line-height: 1; letter-spacing: -.024em; }
.contact-intro .lede { margin: 1.5rem 0 0; color: var(--muted); }
.phone-block { margin-top: clamp(2rem, 6vh, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.phone-block p { margin: 0 0 .35rem; color: var(--muted); }
.phone-big { color: var(--head); font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.5rem); letter-spacing: -.015em; line-height: 1.1; white-space: nowrap; }
.contact-panel { grid-column: 7 / 13; padding: clamp(1.5rem, 3vw, 3rem); border-radius: 2px; }

.route-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.75rem; border: 1.5px solid var(--navy); border-radius: 2px; }
.route-tabs button {
  padding: .85rem .75rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 600 .9875rem/1.25 var(--sans);
  cursor: pointer;
}
.route-tabs button[aria-selected="true"] { background: var(--navy); color: var(--ivory); }
.route-tabs button:focus-visible { outline-offset: -5px; }
.route-tabs button[aria-selected="true"]:focus-visible { outline-color: var(--ivory); }

form.inquiry { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field label { color: var(--navy); font-size: .9875rem; font-weight: 600; }
.field .hint { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.field input, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  background: #FFFEFB;
  color: var(--charcoal);
  font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.req { color: #9A2B2B; }
.form-status, .form-offline { margin: 0; padding: .9rem 1.1rem; border-left: 4px solid var(--blue); background: #FFFEFB; font-size: 1rem; line-height: 1.45; }
.form-status.notice, .form-offline { border-left-color: var(--brass); }
.form-status[hidden], .form-offline[hidden] { display: none; }

/* ---------- 404 ---------- */
.lost-knot { display: block; width: min(34rem, 100%); height: 13rem; margin-top: clamp(2rem, 6vh, 4rem); overflow: visible; }
.lost-knot path { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-top: 1px solid var(--hair); font-size: 1rem; }
.footer-grid { row-gap: 1.75rem; }
.footer-name { grid-column: 1 / 7; color: var(--head); font-family: var(--serif); font-size: clamp(2.25rem, 4.4vw, 4.5rem); letter-spacing: -.022em; line-height: 1; text-decoration: none; }
.footer-role { grid-column: 1 / 7; margin: 0; color: var(--muted); }
.footer-nav { grid-column: 8 / 11; grid-row: 1 / 3; margin: 0; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: .4rem; }
.footer-contact { grid-column: 11 / 13; grid-row: 1 / 3; margin: 0; white-space: nowrap; }
.fine { grid-column: 1 / 13; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--hair); color: var(--muted); font-size: .875rem; }

/* ---------- Scroll reveals (enabled by site.js only when motion is allowed) ---------- */
.reveal-on [data-reveal]:not(.in) { opacity: 0; transform: translateY(1.25rem); }
.reveal-on [data-reveal] { transition: opacity .7s var(--ease), transform .9s var(--ease); }

/* ---------- Narrow screens ---------- */
@media (max-width: 60rem) {
  .sec-head .label, .sec-head h2, .sec-head .sec-sub,
  .split-head, .split-body,
  .row-n, .row-title, .row-body, .row--title-only .row-title,
  .big-line-after,
  .intro-photo, .intro-text,
  .headshot, .bio-text,
  .about-photo, .about-copy,
  .contact-intro, .contact-panel,
  .footer-name, .footer-role, .footer-nav, .footer-contact { grid-column: 1 / -1; grid-row: auto; }
  .sec-head .label { padding-top: 0; }
  .row-n { padding-top: 0; }
  .intro-photo, .about-photo { max-width: 26rem; }
  .headshot { max-width: 14rem; }
  .process { display: block; padding: 0 0 0 2.25rem; }
  .process::before { left: .3rem; right: auto; top: .6rem; bottom: .6rem; width: 2px; height: auto; }
  .process li + li { margin-top: 2rem; }
  .process li::before { left: -2.25rem; top: .4rem; }
}
