/* ============================================================
   ASHTON ADVISORS — Stylesheet
   ============================================================
   Canonical UI building blocks. When adding new UI, reach for
   one of these classes — don't invent new ones.

   BUTTONS — pick one of four:
     .btn.btn--primary    Navy filled, cream text. Reserved for the
                          single highest-priority action on a page
                          (nav "Book a consult").
     .btn.btn--gold       Gold filled, ink text. Use for primary CTA
                          on a section (Send, Subscribe, "Reach out").
                          Modifier classes: .contact-send-btn /
                          .newsletter-subscribe-btn for width-constrained
                          variants on forms.
     .btn.btn--ghost      Outlined transparent. Use for secondary actions
                          paired with a primary CTA (e.g., "See client work"
                          beside "Explore the practice").
     .btn-expand          Paper-bg, ink-bordered, mono-uppercase label,
                          chevron icon. Use for any expand/collapse toggle.
                          Existing aliases: .case-card__toggle,
                          .work-index__more-btn, .clients__more-btn,
                          .insights-grid__more-btn (all share styles).

   EYEBROWS / SMALL LABELS — pick one of three:
     .eyebrow             Sans, uppercase, gold-deep on cream / gold on ink.
                          Sits above section headings as a "section name"
                          marker, with a hairline rule before.
     .label-mono          Mono, uppercase, mute. For stamps, sectional
                          numbering, tags. Existing aliases: .idx,
                          .svc-row__num, .case__tag, .case-card__type,
                          .timeline__firm.
     .label-badge         Color-filled pill, mono, uppercase. For status /
                          category badges (industry tags, practice tags).

   STATE CLASSES (toggled by scripts.js) — six total:
     .is-active   .is-expanded   .is-on   .is-open
     .is-scrolled   .is-visible
   These are the only classes JS touches. Refactoring CSS is safe as
   long as these state classes keep their behavior.

   COLOR TOKENS (defined in :root):
     --ink (navy #0A1F3D)   --canvas (cream #F7F3EA)
     --gold (#C9A961)       --gold-deep (#826A2E — AA-pass on cream)
     --gold-2 (#A88846)
     --char (#1A1A1A — body text)   --mute (#6B6B6B — secondary text)
     --rule (#E1DAC6 — hairlines)   --rule-dark (rgba on dark sections)
     --signal (#2A6F5C)     --warn (#B45F1F)

   SPACING TOKENS (R6):
     --space-section-mobile / --space-section-desktop / --space-hero /
     --space-page-head / --space-card-padding / --space-card-gap

   MOBILE POLISH HISTORY:
     This stylesheet has accumulated five rounds of mobile polish
     (Round 2, 3, 5, 5b, 6). They are intentionally kept as separate
     sections so the cascade is easy to trace. A future refactor could
     collapse them into a single mobile.css partial organized by
     component — that's tracked in the audit report.
   ============================================================ */

/* ============================================
   ASHTON STRATEGIES — Design System
   Premium corporate aesthetic
   Edit brand tokens in :root to rebrand instantly
   ============================================ */

:root {
  /* —— Brand colors (swap these to rebrand) —— */
  --ink:        #0A1F3D;   /* primary navy */
  --ink-2:      #15315c;   /* navy lift */
  --canvas:     #F7F3EA;   /* warm cream */
  --canvas-2:   #EFE9D8;   /* cream shade */
  --gold:       #C9A961;   /* signature accent */
  --gold-2:     #A88846;
  --gold-deep:  #826A2E;   /* AA-pass on cream — used for small text on light bg */
  --paper:      #FFFFFF;
  --char:       #1A1A1A;   /* body text */
  --mute:       #6B6B6B;   /* secondary text */
  --rule:       #E1DAC6;   /* hairline */
  --rule-dark:  rgba(255,255,255,0.12);
  --signal:     #2A6F5C;   /* positive */
  --warn:       #B45F1F;

  /* —— Typography —— */
  --serif: "Fraunces", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* —— Type scale —— */
  --t-display: clamp(3rem, 7vw, 6.5rem);
  --t-h1:      clamp(2.25rem, 4.6vw, 4rem);
  --t-h2:      clamp(1.75rem, 3vw, 2.75rem);
  --t-h3:      clamp(1.25rem, 1.8vw, 1.5rem);
  --t-lead:    clamp(1.125rem, 1.4vw, 1.375rem);
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-eyebrow: 0.75rem;

  /* —— Layout —— */
  --max:   1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 9rem);
  --radius-s: 4px;
  --radius:   10px;
  --radius-l: 22px;

  /* —— Motion —— */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 480ms;
  --dur-fast: 220ms;
}

/* —— Reset —— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--char);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* —— Container —— */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--ink { background: var(--ink); color: var(--canvas); }
.section--ink .mute { color: rgba(255,255,255,0.6); }
.section--paper { background: var(--paper); }

/* —— Typography —— */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: inherit;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  /* Eliminate orphan/widow words on multi-line headings */
  text-wrap: balance;
}
/* Body copy: pretty wrapping prevents single-word last lines on long paragraphs */
p, li { text-wrap: pretty; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); font-family: var(--sans); font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
.display {
  font-family: var(--serif);
  font-size: var(--t-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--char); max-width: 60ch; }
.section--ink .lead { color: rgba(255,255,255,0.85); }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}
.section--ink .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before { background: var(--gold); }
.mute { color: var(--mute); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* —— Numerals / framing —— */
.idx {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mute);
  font-feature-settings: "tnum" 1;
}
.section--ink .idx { color: rgba(255,255,255,0.5); }

/* —— Buttons & links —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary { background: var(--ink); color: var(--canvas); }
.btn--primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10,31,61,0.18); }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--canvas); }
.section--ink .btn--ghost { color: var(--canvas); border-color: rgba(255,255,255,0.4); }
.section--ink .btn--ghost:hover { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* In-line text link with animated underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding-bottom: 2px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--dur) var(--ease);
}
.tlink:hover::after { transform-origin: left; transform: scaleX(0); animation: underline 700ms var(--ease) 100ms forwards; }
@keyframes underline { 0% { transform-origin: left; transform: scaleX(0); } 100% { transform-origin: left; transform: scaleX(1); } }

/* —— Header / nav —— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  background: rgba(247,243,234,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.015em; }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.brand strong { font-weight: 500; color: var(--ink); }
.brand span.divider { width: 1px; height: 14px; background: var(--rule); }
.brand small { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

.nav__links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: nowrap; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--char);
  position: relative;
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, 0) scale(0);
  transition: transform var(--dur-fast) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active::after,
.nav__links a:hover::after { transform: translate(-50%, 0) scale(1); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__menu-btn { display: none; }

@media (max-width: 980px) {
  .nav__links, .nav__cta .btn:not(.btn--primary) { display: none; }
  .nav__menu-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--rule);
  }
  .nav__menu-btn span {
    width: 16px; height: 1.5px; background: var(--ink); position: relative;
  }
  .nav__menu-btn span::before, .nav__menu-btn span::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  }
  .nav__menu-btn span::before { top: -5px; }
  .nav__menu-btn span::after { top: 5px; }
}
/* Hide signal pill earlier to keep nav links visible longer */
@media (max-width: 1180px) { .nav__signal { display: none; } }
.menu-overlay {
  position: fixed; inset: 0; background: var(--ink); color: var(--canvas);
  z-index: 60; display: none; flex-direction: column; padding: 5rem var(--gutter) 3rem;
}
.menu-overlay.is-open { display: flex; }
.menu-overlay a { font-family: var(--serif); font-size: 2rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule-dark); }
.menu-overlay__close {
  position: absolute; top: 1.4rem; right: var(--gutter); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* —— Hero —— */
.hero { padding-top: clamp(6rem, 11vw, 8rem); padding-bottom: clamp(3rem, 7vw, 6rem); position: relative; }

.hero__display {
  font-family: var(--serif);
  font-size: var(--t-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
}
.hero__display em {
  font-style: italic;
  color: var(--gold);
  font-feature-settings: "ss01" 1;
  position: relative;
}
.hero__display em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 0.06em;
  background: var(--gold);
  opacity: 0.25;
}
.hero__sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: end;
  margin-top: 2rem;
}
.hero__sub p { max-width: 50ch; font-size: var(--t-lead); color: var(--char); }
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* —— Hero stat strip —— */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.hero__stats > div { padding-right: 1rem; border-right: 1px solid var(--rule); padding-left: 1rem; }
.hero__stats > div:first-child { padding-left: 0; }
.hero__stats > div:last-child { border-right: 0; }
.hero__stats .num { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 0.2rem; }
.hero__stats .num small { font-size: 1.2rem; color: var(--gold); }
.hero__stats .label { font-size: 0.85rem; color: var(--mute); margin-top: 0.6rem; line-height: 1.4; }
@media (max-width: 720px) { .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; } .hero__stats > div { padding: 0.75rem 1rem; } .hero__stats > div:nth-child(2) { border-right: 0; } }

/* —— Section header —— */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head__meta { display: flex; flex-direction: column; gap: 0.5rem; }
.sec-head h2 { max-width: 18ch; }
@media (max-width: 880px) { .sec-head { grid-template-columns: 1fr; gap: 1.25rem; } }

/* —— Capability grid —— */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.cap {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  cursor: pointer;
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease);
  padding-inline: 0;
  position: relative;
}
.cap:nth-child(2n-1) { border-right: 1px solid var(--rule); padding-right: 2rem; }
.cap:nth-child(2n) { padding-left: 2rem; }
.cap:hover { background: rgba(10,31,61,0.025); }
.cap__num { font-family: var(--mono); font-size: 0.75rem; color: var(--gold-deep); letter-spacing: 0.1em; padding-top: 0.4rem; }
.section--ink .cap__num { color: var(--gold); }
.cap__icon {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--canvas-2);
  color: var(--ink);
  margin-bottom: 0.9rem;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast);
}
.cap__icon svg { width: 20px; height: 20px; }
.cap:hover .cap__icon { background: var(--ink); color: var(--gold); transform: rotate(-3deg) scale(1.05); }
.cap__body h3 { margin-bottom: 0.6rem; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
.cap__body p { color: var(--mute); font-size: 0.95rem; max-width: 50ch; }
.cap__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.cap:hover .cap__arrow { background: var(--ink); color: var(--canvas); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap:nth-child(2n-1) { border-right: 0; padding-right: 0; }
  .cap:nth-child(2n) { padding-left: 0; }
}

/* —— Approach / process —— */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.approach__steps { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule-dark); }
.approach__step {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  cursor: pointer;
  transition: padding-inline var(--dur) var(--ease);
}
.approach__step:hover { padding-inline: 0.75rem; }
.approach__step .step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding-top: 0.3rem;
}
.approach__step h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--canvas); letter-spacing: -0.015em; margin-bottom: 0.5rem; line-height: 1.2; }
.approach__step p { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 48ch; }
@media (max-width: 880px) { .approach { grid-template-columns: 1fr; gap: 2rem; } }

/* —— Case studies —— */

/* Three-card variant: full-width feat hero + two equal-width side cards.
   At ≤880px each card stacks to full width so text doesn't get squeezed. */

@media (max-width: 880px) {

}
.case {
  position: relative;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  display: flex; flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -20px rgba(10,31,61,0.2); }

.case + .case--full { grid-column: span 12; min-height: 0; }

.case:hover .case__art { transform: rotate(15deg) scale(1.05); }

@media (max-width: 880px) {

}

/* —— Quote / testimonial —— */
.quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 32ch; }

@media (max-width: 880px) { .quote { grid-template-columns: 1fr; gap: 2rem; } }

/* —— Logo strip —— */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.logos > div {
  display: grid; place-items: center;
  border-right: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity var(--dur-fast);
  letter-spacing: -0.01em;
}
.logos > div:hover { opacity: 1; }
.logos > div:last-child { border-right: 0; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(3, 1fr); } .logos > div:nth-child(3n) { border-right: 0; } .logos > div:nth-child(n+4) { border-top: 1px solid var(--rule); } }

/* —— Insights —— */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.insight {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 1.6rem;
  min-height: 320px;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
  position: relative;
  overflow: hidden;
}
.insight:hover { transform: translateY(-3px); border-color: var(--ink); }
.insight__cover {
  height: 130px;
  margin: -1.6rem -1.6rem 1.4rem;
  background: var(--canvas-2);
  position: relative;
  overflow: hidden;
}
.insight__meta { display: flex; gap: 0.8rem; align-items: center; font-size: 0.78rem; color: var(--mute); margin-bottom: 0.8rem; }
.insight__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.insight__type { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.insight h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 300; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); flex-grow: 0; margin-bottom: 0.85rem; }
.insight--pov h3 { font-style: italic; }
.insight p { font-size: 0.9rem; color: var(--mute); flex-grow: 1; }
.insight__more { margin-top: 1.2rem; font-size: 0.85rem; font-weight: 500; color: var(--ink); display: inline-flex; gap: 0.4rem; align-items: center; }
@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; } }

/* —— Team —— */

.member {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 1.4rem;
  border: 1px solid var(--rule);
}

.member h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }

@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .team-grid { grid-template-columns: 1fr; } }

/* —— Forms —— */
.form { display: grid; gap: 1.25rem; max-width: 580px; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); font-weight: 600; }
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--dur-fast);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.section--ink .field input, .section--ink .field textarea, .section--ink .field select { color: var(--canvas); border-bottom-color: var(--rule-dark); }
.section--ink .field input:focus, .section--ink .field textarea:focus { border-bottom-color: var(--gold); }
.section--ink .field label { color: rgba(255,255,255,0.55); }

/* —— Footer —— */
.footer { background: var(--ink); color: var(--canvas); padding: 5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid var(--rule-dark); }
.footer__brand h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; max-width: 22ch; line-height: 1.2; margin-bottom: 1.25rem; color: var(--canvas); }
.footer__brand p { color: rgba(255,255,255,0.6); max-width: 36ch; font-size: 0.95rem; }
.footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; font-weight: 600; font-family: var(--sans); }
.footer__col a { display: block; padding: 0.35rem 0; color: rgba(255,255,255,0.85); transition: color var(--dur-fast); font-size: 0.95rem; }
.footer__col a:hover { color: var(--gold); }
.footer__base { display: flex; justify-content: space-between; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer__base a { color: rgba(255,255,255,0.7); margin-right: 1.4rem; }
.footer__base a:hover { color: var(--gold); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer__brand { grid-column: span 2; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: span 1; } }

/* —— Page header (interior pages) —— */
.page-head { padding-top: clamp(7rem, 13vw, 10rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.page-head__row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.page-head h1 { max-width: 14ch; }
.page-head p { max-width: 48ch; color: var(--mute); font-size: var(--t-lead); }
.page-head__crumb { display: flex; gap: 0.6rem; align-items: center; font-size: 0.78rem; color: var(--mute); margin-bottom: 1.2rem; }
.page-head__crumb a { color: var(--gold); }
@media (max-width: 880px) { .page-head__row { grid-template-columns: 1fr; gap: 1.5rem; } }

/* —— Service detail blocks —— */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.svc-row:last-child { border-bottom: 0; }
.svc-row__num { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); letter-spacing: 0.12em; }
.svc-row__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.svc-row__head h2 { margin: 0.5rem 0 0; }
.svc-row__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--canvas-2);
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast);
}
.svc-row__icon svg { width: 24px; height: 24px; }
.svc-row:hover .svc-row__icon { background: var(--ink); color: var(--gold); transform: rotate(-3deg) scale(1.04); }

/* —— Engagement format indicator (Sprint / Engagement / Fractional) —— */
.svc-row__formats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  margin: 1.4rem 0 0.4rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 640px) {
  .svc-row__formats { gap: 0.3rem; flex-wrap: wrap; }
}
.svc-row__formats-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  margin-right: 0.4rem;
  white-space: nowrap;
}
.svc-row__format {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--paper);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.svc-row__format:hover {
  border-color: var(--gold);
  background: rgba(201,169,97,0.08);
  color: var(--gold-2);
}
.svc-row h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 400; margin: 0.7rem 0 1rem; letter-spacing: -0.02em; color: var(--ink); max-width: 20ch; }
.svc-row__lead { font-size: var(--t-lead); color: var(--char); max-width: 50ch; line-height: 1.5; }
.svc-row__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.5rem; margin-top: 1.4rem; }
.svc-row__list li { display: flex; gap: 0.65rem; align-items: baseline; font-size: 0.88rem; line-height: 1.45; color: var(--char); }
.svc-row__list li::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }
.svc-row__panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 2rem; }
.svc-row__panel h3 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--mute); margin-bottom: 1.2rem; }
.svc-row__panel ol { display: flex; flex-direction: column; gap: 0.5rem; counter-reset: a; }
.svc-row__panel ol li {
  display: grid; grid-template-columns: 24px 1fr; gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  line-height: 1.45;
}
.svc-row__panel ol li:first-child { border-top: 0; padding-top: 0; }
.svc-row__panel ol li::before {
  counter-increment: a;
  content: counter(a, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  padding-top: 0.15rem;
}
@media (max-width: 880px) { .svc-row { grid-template-columns: 1fr; } .svc-row__list { grid-template-columns: 1fr; } }

/* —— Animations on scroll —— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* —— Marquee —— */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 2rem 0;
}

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* —— Cursor accent (decorative dot) —— */
.dot-accent { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline: 0.4rem; vertical-align: middle; }

/* —— Misc —— */
.divider { height: 1px; background: var(--rule); margin-block: var(--section-y); }
.section--ink .divider { background: var(--rule-dark); }

.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--mute);
  background: rgba(255,255,255,0.5);
}
.section--ink .tag { color: rgba(255,255,255,0.75); border-color: var(--rule-dark); background: transparent; }

/* —— Toggle (dark/light) —— */

/* —— Cards row —— */
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 880px) { .cards-row { grid-template-columns: 1fr; } }
.card-plain {
  padding: 1.8rem;
  background: var(--paper);
  border-radius: var(--radius-l);
  border: 1px solid var(--rule);
}
.card-plain .num { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); letter-spacing: -0.02em; }
.card-plain h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0.5rem 0 0.6rem; }
.card-plain p { color: var(--mute); font-size: 0.92rem; }

/* Engagement-format card variant — three cards (Sprint / Engagement / Fractional)
   that introduce the formats. Stylized so the bottom typical-commitment line
   reads as a labeled pill, anchoring the card identity. */
.card-plain--format {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card-plain--format::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  opacity: 0.7;
}
.card-plain--format:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: 0 14px 32px -16px rgba(10, 31, 61, 0.18);
}
.card-plain--format .num {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.card-plain--format h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.card-plain--format p {
  font-size: 0.92rem;
  line-height: 1.5;
  flex-grow: 1;
}
.card-plain__pill {
  margin-top: 1.2rem;
  padding: 0.55rem 0.95rem;
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  align-self: flex-start;
  line-height: 1.5;
  white-space: nowrap;     /* keep all 3 pills on a single line for visual parity */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-plain__pill .gold {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
}
@media (max-width: 760px) {
  .card-plain__pill { font-size: 0.62rem; padding: 0.5rem 0.85rem; }
}

/* —— FAQ / accordion-ish —— */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 1.4rem 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 1.3rem; cursor: pointer; list-style: none; letter-spacing: -0.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--gold); transition: transform var(--dur-fast); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--mute); margin-top: 0.8rem; max-width: 60ch; font-size: 0.95rem; }

/* —— Print / accessibility —— */
/* Focus rings — visible on both cream and ink backgrounds.
   Navy outline + gold halo on cream; cream outline + gold halo on ink. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.45);
  border-radius: 3px;
}
.section--ink :focus-visible,
.nav :focus-visible,
.footer :focus-visible {
  outline-color: var(--canvas);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.55);
}
.btn:focus-visible,
.btn--primary:focus-visible,
.btn--ghost:focus-visible,
.btn--gold:focus-visible,
.tlink:focus-visible,
.nav__menu-btn:focus-visible {
  outline-offset: 3px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* —— Hero canvas backdrop —— */
.hero__bg {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.hero__inner { position: relative; z-index: 1; }
@media (max-width: 880px) { .hero__bg { width: 100%; opacity: 0.25; } }

/* ============================================
   TECH POLISH OVERLAY  (v2 — digital-native pass)
   Stripe/Anthropic-inspired surface refresh.
   Layered on top of the base system without
   restructuring layouts.
   ============================================ */

:root {
  /* Tech-gradient accent palette (used sparingly over canvas) */
  --grad-violet: #6E5CFF;
  --grad-teal:   #2FB6A6;
  --grad-blue:   #3D7FE0;
  --grad-rose:   #E07A5F;
  --grad-gold:   #C9A961;

  --shadow-sm: 0 1px 2px rgba(10,31,61,0.06);
  --shadow-md: 0 8px 24px -8px rgba(10,31,61,0.14);
  --shadow-lg: 0 24px 60px -20px rgba(10,31,61,0.20);
  --shadow-glow: 0 0 0 1px rgba(201,169,97,0.22), 0 24px 60px -24px rgba(110,92,255,0.22);
}

/* —— Ambient body backdrop ——
   Two very soft, fixed-position color washes that sit beneath the cream canvas.
   You barely see them — they just give the page a digital, slightly luminous feel. */
body { position: relative; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 8%, rgba(110, 92, 255, 0.10), transparent 38%),
    radial-gradient(circle at 92% 14%, rgba(47, 182, 166, 0.10), transparent 42%),
    radial-gradient(circle at 78% 92%, rgba(201, 169, 97, 0.12), transparent 45%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(10,31,61,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,61,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
}
.section--ink, .footer { position: relative; z-index: 0; }

/* Cursor-following ambient glow — subtle, only on fine-pointer devices */
@media (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 540px; height: 540px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(110, 92, 255, 0.10), rgba(47, 182, 166, 0.06) 35%, transparent 65%);
    transition: opacity 400ms ease;
    opacity: 0;
    mix-blend-mode: multiply;
    will-change: transform;
  }
  .cursor-glow.is-on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none !important; } }

/* —— Gradient text utilities ——
   For one or two emphasis words inside an h1/h2 — never the whole headline. */
.gradient-text {
  background: linear-gradient(95deg, var(--ink) 0%, var(--grad-blue) 38%, var(--grad-violet) 70%, var(--grad-teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 220% 100%;
  animation: gradShift 14s ease-in-out infinite;
}

.section--ink .gradient-text {
  background: linear-gradient(95deg, var(--canvas) 0%, var(--grad-teal) 40%, var(--grad-violet) 80%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% 100%;
  animation: gradShift 14s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Replace the underline on hero em with a real gradient — Anthropic-style emphasis */
.hero__display em {
  background: linear-gradient(95deg, var(--gold) 0%, var(--grad-rose) 55%, var(--grad-violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__display em::after {
  background: linear-gradient(90deg, var(--gold), var(--grad-rose), var(--grad-violet));
  opacity: 0.18;
  height: 0.10em;
  border-radius: 999px;
}

/* —— Tech labels (mono "// section / 01" style markers) —— */

.section--ink .tech-label { color: rgba(255,255,255,0.5); }
.section--ink .tech-label::before { color: var(--gold); }

/* Polished eyebrow with built-in chevron — keeps base behavior */
.eyebrow.eyebrow--tech::before {
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--gold);
  background: transparent;
}

/* Corner-bracket framing — like a viewfinder */

/* —— Now / live pulse indicator —— */
.now-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.now-pulse__dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(42,111,92,0.6);
  animation: nowPulse 2.2s ease-out infinite;
}
@keyframes nowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(42,111,92,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(42,111,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,111,92,0); }
}
.section--ink .now-pulse { color: rgba(255,255,255,0.75); border-color: var(--rule-dark); background: rgba(255,255,255,0.04); }

/* —— Glass card (frosted) —— */

.section--ink .glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.5);
}

/* —— Terminal-style stat card ——
   Displays a number/value with a faux command-prompt header. */

@keyframes caret { 50% { opacity: 0; } }

/* —— Tech rule (architectural divider with tick marks) —— */

.section--ink .tech-rule::before, .section--ink .tech-rule::after { background: linear-gradient(90deg, transparent, var(--rule-dark) 12%, var(--rule-dark) 88%, transparent); }
.section--ink .tech-rule { color: rgba(255,255,255,0.55); }

/* —— Polished primary button (subtle gradient sheen) —— */
.btn--primary {
  background: linear-gradient(180deg, #112748, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--shadow-sm);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease);
  pointer-events: none;
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--gold {
  background: linear-gradient(180deg, #d3b673, var(--gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), var(--shadow-sm);
}

/* Magnetic button hook — JS adds CSS variable; falls back to base hover */
.btn[data-magnetic] { transform: translate(var(--mx, 0), var(--my, 0)); }

/* —— Nav refresh: gradient brand mark on hover, signal pill slot —— */
.brand:hover .brand__mark {
  background: linear-gradient(135deg, var(--ink) 0%, var(--grad-violet) 100%);
  transform: rotate(-4deg);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast);
}
.brand__mark { transition: transform var(--dur-fast) var(--ease), background var(--dur-fast); }
.nav__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: 0.4rem;
  white-space: nowrap;
}
.nav__signal .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(42,111,92,0.55);
  animation: nowPulse 2.2s ease-out infinite;
}
@media (max-width: 980px) { .nav__signal { display: none; } }

/* —— Card refresh: tighter hover state with gradient border glow —— */
.case, .insight {
  position: relative;
}
.case::before, .insight::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(110,92,255,0.0) 50%, rgba(201,169,97,0.0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background var(--dur) var(--ease);
}
.case:hover::before, .insight:hover::before {
  background: linear-gradient(135deg, rgba(47,182,166,0.45) 0%, rgba(110,92,255,0.45) 50%, rgba(201,169,97,0.55) 100%);
}
.case:hover { box-shadow: var(--shadow-glow); }
.insight:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); }

/* Featured case keeps its dark feel but gets a subtle inner mesh */

/* —— Capability row hover: subtle gradient wash —— */
.cap:hover {
  background:
    linear-gradient(90deg, rgba(110,92,255,0.05), rgba(47,182,166,0.04));
}

/* —— Section--ink: ambient mesh —— */
.section--ink::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(110,92,255,0.18), transparent 35%),
    radial-gradient(circle at 92% 88%, rgba(47,182,166,0.14), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(201,169,97,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.section--ink > * { position: relative; z-index: 1; }

/* —— Footer: same ambient treatment, slightly stronger —— */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 4% 6%, rgba(110,92,255,0.20), transparent 32%),
    radial-gradient(circle at 96% 10%, rgba(47,182,166,0.15), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(201,169,97,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.footer::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("footer-constellation.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.footer > * { position: relative; z-index: 1; }

/* —— Hero stats: monospace numerals + subtle data-style underline —— */
.hero__stats .num { font-feature-settings: "tnum" 1, "ss01" 1; }
.hero__stats .num small { color: transparent; background: linear-gradient(180deg, var(--gold), var(--grad-rose)); -webkit-background-clip: text; background-clip: text; }
.hero__stats > div { position: relative; }
.hero__stats > div::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--grad-rose));
  opacity: 0;
  transition: opacity var(--dur) var(--ease), width var(--dur) var(--ease);
}
.hero__stats > div:hover::after { opacity: 1; width: 56px; }

/* —— Marquee: gradient stretch on the comma separator + soft edge fade —— */
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

/* —— FAQ: open state gets a soft gradient strip —— */
.faq details[open] {
  background:
    linear-gradient(90deg, rgba(110,92,255,0.04), transparent 60%);
  padding-inline: 1rem;
  margin-inline: -1rem;
  border-radius: 8px;
}

/* —— Page-head: tech-corner + monospace coordinate stamp on interior pages —— */
.page-head { position: relative; }
.page-head__stamp {
  position: absolute;
  right: var(--gutter);
  top: clamp(2.4rem, 4vw, 3.4rem);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-align: right;
  line-height: 1.6;
  display: none;
  z-index: 2;
}
.page-head__stamp .gold { color: var(--gold); }
@media (min-width: 1100px) { .page-head__stamp { display: block; } }

/* —— Cosmic page-head modifier — comet imagery as a quiet atmospheric
       backdrop behind breadcrumb + h1 + intro paragraph. Reusable across pages
       to reinforce the celestial brand language (constellation, footer
       micro-constellation, Houston anchor). Cream wash gradient keeps text
       fully legible; gold radial in upper-right echoes the comet streak. —— */
.page-head--cosmic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-head--cosmic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: image-set(
    url('bio-strip-comet.webp') type('image/webp'),
    url('bio-strip-comet.jpg') type('image/jpeg')
  );
  background-image: -webkit-image-set(
    url('bio-strip-comet.webp') type('image/webp'),
    url('bio-strip-comet.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 60%;
  opacity: 0.54;
  z-index: -2;
  pointer-events: none;
}
.page-head--cosmic::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247,243,234,0.25) 0%, rgba(247,243,234,0.65) 55%, rgba(247,243,234,0.95) 100%),
    radial-gradient(circle at 88% 22%, rgba(201,169,97,0.10), transparent 38%);
  z-index: -1;
  pointer-events: none;
}

/* Corner variant — pushes the stamp tighter into the upper-right
   corner so a long intro paragraph cannot collide with it. */
.page-head__stamp--corner {
  top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  line-height: 1.35;
  opacity: 0.78;
}
/* R19w4 — give the right-column paragraph a top buffer so it never touches the corner stamp */
@media (min-width: 1100px) {
  .page-head--cosmic .page-head__row > *:last-child { padding-top: 1.4rem; }
}

/* —— Footer brand mark with gradient on hover —— */
.footer__brand h3 { transition: background-position var(--dur) var(--ease); }

/* —— Selection color —— */
::selection { background: rgba(110,92,255,0.22); color: var(--ink); }
.section--ink ::selection { background: rgba(201,169,97,0.30); color: var(--canvas); }

/* —— Scrollbar (subtle, on Webkit) —— */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(10,31,61,0.35), rgba(110,92,255,0.35));
  border-radius: 999px;
  border: 2px solid var(--canvas);
}
::-webkit-scrollbar-track { background: transparent; }

/* —— Reveal upgrade: slight scale-in for cards —— */
.reveal.reveal--soft { transform: translateY(18px) scale(0.985); }
.reveal.reveal--soft.is-visible { transform: none; }

/* Small motion preference safeguard */
@media (prefers-reduced-motion: reduce) {
  .gradient-text, .section--ink .gradient-text { animation: none; }

  .now-pulse__dot, .nav__signal .dot { animation: none; }

}

/* —— Home Insights teaser: compact gold-stripe POV strip —— */
.home-insights {
  padding-block: clamp(3rem, 5vw, 4rem);
}
.home-insights__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.8rem, 3vw, 2.5rem);
}
.home-insights__head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  max-width: 26ch;
}
.home-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.home-insight {
  padding: 1.6rem 1.4rem 1.4rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease);
  min-height: 200px;
}
.home-insight:last-child { border-right: 0; }
.home-insight::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.home-insight:hover { background: var(--canvas-2); }
.home-insight__tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}
.home-insight h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--ink);
  flex-grow: 1;
  margin: 0;
}
.home-insight__more {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mute);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: color var(--dur-fast);
}
.home-insight:hover .home-insight__more { color: var(--gold); }

@media (max-width: 880px) {
  .home-insights__head { grid-template-columns: 1fr; gap: 1rem; }
  .home-insights__grid { grid-template-columns: 1fr; }
  .home-insight { border-right: 0; min-height: 0; }
}

/* —— Tech-forward: scroll-progress bar (Vercel/Anthropic style) ——
   Sits above the nav, animates a thin gradient as the user scrolls. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg,
    var(--gold) 0%,
    var(--grad-rose) 25%,
    var(--grad-violet) 50%,
    var(--grad-teal) 75%,
    var(--gold) 100%);
  background-size: 200% 100%;
  animation: scrollProgressShimmer 6s linear infinite;
  z-index: 100;
  box-shadow: 0 0 8px rgba(110, 92, 255, 0.5);
  transition: width 80ms linear;
  pointer-events: none;
}
@keyframes scrollProgressShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { animation: none; transition: none; }
}

/* —— Tech-forward: animated gradient divider ——
   A reusable thin horizontal line with a flowing gradient highlight,
   suggesting "ambient compute" / live system. Use between sections sparingly. */

@keyframes aiDividerFlow {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(400%); opacity: 0; }
}

.section--ink .ai-divider {
  background: linear-gradient(90deg, transparent 0%, var(--rule-dark) 8%, var(--rule-dark) 92%, transparent 100%);
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {

}

/* —— Tech-forward: build-version footer stamp ——
   Subtle Anthropic-style version stamp tucked into footer. */
.build-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.build-stamp::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,169,97,0.4);
  animation: nowPulse 2.6s ease-out infinite;
}

/* —— Home Ventures card — tight to the section above, generous below
       so it sits visually centered between Selected Work and Insights teaser —— */
.home-ventures {
  padding-top: 0;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.home-ventures .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-ventures__card {
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-l);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px -30px rgba(10,31,61,0.30);
}
.home-ventures__card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(110,92,255,0.20), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(47,182,166,0.16), transparent 42%);
  pointer-events: none;
  z-index: -1;
}
.home-ventures__principal {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.95rem;
  align-items: center;
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 320px;
}
.home-ventures__principal-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  position: relative;
  background: var(--canvas-2);
  box-shadow: 0 0 0 1px rgba(201,169,97,0.5), 0 0 0 4px rgba(255,255,255,0.06);
}
.home-ventures__principal-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.7);
  transform-origin: center 22%;
  filter: saturate(1.04);
  display: block;
}
.home-ventures__principal figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  gap: 0.15rem;
}
.home-ventures__principal-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
}
.home-ventures__principal-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--canvas);
  margin-top: 0.25rem;
}
.home-ventures__principal-role {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 880px) {
  .home-ventures__card { grid-template-columns: 1fr; gap: 2rem; }
}

/* —— Dark-section seam: visible divider between adjacent dark navy bands —— */
.dark-section-seam {
  height: 6px;
  background:
    linear-gradient(90deg, transparent 0%, var(--gold) 12%, var(--gold) 88%, transparent 100%);
  position: relative;
  box-shadow: 0 0 14px rgba(201,169,97,0.45), inset 0 0 0 1px rgba(201,169,97,0.5);
}
.dark-section-seam::before, .dark-section-seam::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 8%;
  background: var(--ink);
}
.dark-section-seam::before { left: 0; }
.dark-section-seam::after  { right: 0; }

/* —— Industry focus strip (Home page · 4 verticals with icons) —— */
.industries-strip {
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  position: relative;
  overflow: hidden;
}
.industries-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(110,92,255,0.16), transparent 38%),
    radial-gradient(circle at 90% 50%, rgba(47,182,166,0.12), transparent 38%);
  pointer-events: none;
  z-index: 0;
}
.industries-strip__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.industries-strip__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.industries-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.industry-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--canvas);
  border-left: 1px solid rgba(255,255,255,0.10);
  transition: color var(--dur-fast), background var(--dur-fast);
  cursor: default;
  white-space: nowrap;
}
.industry-pill:first-child { border-left: 0; }
.industry-pill:hover { color: var(--gold); }
.industry-pill__icon {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}
.industry-pill:hover .industry-pill__icon { transform: scale(1.08) rotate(-2deg); }

@media (max-width: 880px) {
  .industries-strip__inner { grid-template-columns: 1fr; gap: 1rem; }
  .industries-strip__grid { grid-template-columns: 1fr 1fr; }
  .industry-pill { padding: 0.5rem 0.9rem; }
  .industry-pill:nth-child(3) { border-left: 0; }
  .industry-pill:nth-child(1), .industry-pill:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.10); }
}

/* —— Testimonials carousel (Home page · Client voice) ——
   Compact NYT-magazine-style pull-quote band sitting between the intro
   section and the Ashton | Ventures dark card. Auto-rotates every 7s. */
.testimonials {
  background: var(--ink);
  color: var(--canvas);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.testimonials::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(110,92,255,0.20), transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(47,182,166,0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(201,169,97,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.testimonials__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
}
.testimonials__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
}
.testimonials__pager {
  display: inline-flex; gap: 0.45rem; align-items: baseline;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
}
.testimonials__pager-current { color: var(--gold); font-weight: 600; }
.testimonials__pager-sep { color: rgba(255,255,255,0.25); }

.testimonials__quote-mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.6;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.4rem;
  user-select: none;
  text-shadow: 0 0 40px rgba(201,169,97,0.18);
}

.testimonials__track {
  position: relative;
  /* min-height accommodates the longest quote (Brandon · power utility) on small viewports — generous so the dots never touch attribution */
  min-height: clamp(220px, 26vw, 260px);
}
.testimonials__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.testimonials__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.testimonials__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--canvas);
  max-width: 36ch;
  margin: 0 auto;
}

.testimonials__attr {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}
.testimonials__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.testimonials__sep { color: rgba(255,255,255,0.3); font-family: var(--mono); font-size: 0.72rem; }
.testimonials__industry {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Dot navigation */
.testimonials__nav {
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.testimonials__dot {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transition: background var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.testimonials__dot:hover { background: rgba(255,255,255,0.35); }
.testimonials__dot.is-active {
  background: var(--gold);
  width: 40px;
}

@media (max-width: 600px) {
  .testimonials__quote { max-width: 28ch; }
  .testimonials__attr { flex-direction: column; gap: 0.3rem; }
  .testimonials__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__slide { transition: opacity 200ms linear; transform: none; }
}

/* —— Reduced-motion: cover .reveal scroll animations + hover transforms ——
   The base reveal effect (translateY 24px → 0) and the cap/svc-row/btn hover
   lifts can trigger vestibular discomfort. Suppress them for users who've
   opted out of motion at the OS level. */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal--soft,
  .reveal--delay-1,
  .reveal--delay-2,
  .reveal--delay-3,
  .reveal--delay-4 {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 200ms linear !important;
  }
  .cap:hover .cap__icon,
  .cap:hover .cap__arrow,
  .svc-row:hover .svc-row__icon,
  .btn--primary:hover,
  .svc-row__format:hover {
    transform: none !important;
  }
}

/* —— Hero topline (eyebrow + principal byline) —— */
.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero__principal {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hero__principal:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,0.85);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -12px rgba(201,169,97,0.35);
}
.hero__principal-photo {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--canvas-2);
  box-shadow: 0 0 0 1px rgba(201,169,97,0.4), 0 0 0 4px rgba(255,255,255,0.7);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.hero__principal:hover .hero__principal-photo {
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px rgba(201,169,97,0.18);
}
.hero__principal-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.8);
  transform-origin: center 22%;
  filter: saturate(1.04);
  transition: transform var(--dur) var(--ease);
}
.hero__principal:hover .hero__principal-photo img { transform: scale(1.92); }
.hero__principal-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero__principal-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__principal-role {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 2px;
}
@media (max-width: 640px) {
  .hero__topline { gap: 1rem; }
  .hero__principal { padding: 0.45rem 0.85rem 0.45rem 0.5rem; }
  .hero__principal-photo { width: 38px; height: 38px; }
  .hero__principal-name { font-size: 0.88rem; }
  .hero__principal-role { font-size: 0.62rem; }
}

/* ============================================================
   MOBILE-AUDIT SAFETY RULES
   Catch-all responsive fixes for inline 2-col grids that didn't
   have explicit @media breakpoints. Targets common phone widths
   (375–430px iPhone, 414px Pro Max). Keeps layouts safe at small
   widths without re-engineering each page.
   ============================================================ */
@media (max-width: 760px) {
  /* CTA section pattern used on home, work, services, about, case-studies */
  .section .wrap > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* About page: education seal grid + personal interests grid */
  .edu-grid, .personal { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  /* Contact form: side-by-side fields stack on mobile */
  .field-row { grid-template-columns: 1fr !important; gap: 1rem !important; }
  /* Highlights grid (Work page) — tighten gap on mobile */
  .highlights-grid { gap: 0.75rem; }
  /* Case-studies CTA wraps cleanly */
  .cs-cat { gap: 1.25rem !important; }
}

/* Very small phones (≤ 430px iPhone Pro Max) — extra polish */
@media (max-width: 430px) {
  /* Slightly tighter outer gutter so content uses available width */
  :root { --gutter: 1rem; }
  /* Scale page-head h1 a hair smaller — clamp() already handles this but reinforce */
  .page-head h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.1; }
  /* Hero principal badge: keep but tighten */
  .hero__principal { padding: 0.4rem 0.7rem 0.4rem 0.45rem; }
  /* Footer: ensure brand block doesn't span 2 cols on tiny screens */
  .footer__brand h3 { font-size: 1.5rem; }
  /* Case-card masthead: stack on extra-small */
  .case-card__masthead { gap: 0.6rem !important; padding: 1.2rem 1.2rem; }
  /* Case-card title heading: tighter */
  .case-card__title h3 { font-size: 1.15rem !important; line-height: 1.25 !important; }
  /* Case-card brief: tighter */
  .case-card__brief { font-size: 0.92rem; padding-inline: 1.2rem; }
  /* Case-card body padding shrinks */
  .case-card__body > * { padding: 1.2rem !important; }
  /* Outcome footer padding */
  .case-card__outcome { padding: 1.2rem !important; }
  /* Coverage stats labels shrink to fit on narrow phones */
  .case-coverage__lbl { font-size: 0.65rem; }
}

/* Prevent any horizontal overflow on mobile — catches edge cases
   where inline-block content or wide unbreakable strings would
   force a horizontal scrollbar */
html, body { overflow-x: hidden; }

/* ============================================================
   MOBILE — comprehensive nav + case-card overhaul
   ============================================================
   Targets common phone widths (375–430px iPhone, 360–430px Android).
   Goals: brand readable in one line, primary CTA fits, hamburger
   always reachable, case-card masthead never overlaps.
   ============================================================ */

/* Brand wordmark must never wrap to two lines */
.brand strong { white-space: nowrap; }

/* ---- Nav at tablet & smaller (≤760px) ---- */
@media (max-width: 760px) {
  .nav__row { gap: 0.75rem; padding-block: 0.7rem; }
  .brand { font-size: 1rem; gap: 0.5rem; }
  .brand__mark { width: 26px; height: 26px; font-size: 0.85rem; }
  .nav__cta { gap: 0.5rem; }
  .nav__cta .btn--primary {
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  /* Drop the arrow svg inside the CTA at narrow widths to save space */
  .nav__cta .btn--primary .arrow { display: none; }
  /* Hamburger sits 36px now to feel right next to a smaller CTA */
  .nav__menu-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ---- Nav at small phone widths (≤480px) ---- */
@media (max-width: 480px) {
  .nav__row { padding-block: 0.55rem; gap: 0.5rem; }
  .brand strong { font-size: 0.92rem; }
  .brand__mark { width: 24px; height: 24px; font-size: 0.8rem; }
  .nav__cta .btn--primary {
    padding: 0.5rem 0.8rem;
    font-size: 0.72rem;
    border-radius: 999px;
  }
  .nav__menu-btn { width: 34px !important; height: 34px !important; }
}

/* ---- Nav at extra-small (≤380px iPhone SE) ---- */
@media (max-width: 380px) {
  .nav__cta .btn--primary {
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
  }
}

/* ---- Case-card masthead: stack cleanly on mobile (≤640px) ---- */
@media (max-width: 640px) {
  .case-card__masthead {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 1.1rem 1.2rem 0.9rem !important;
    align-items: flex-start !important;
  }
  /* Type badge moves to its own row, smaller, gold-bordered chip — not overlapping */
  .case-card__type {
    font-size: 0.66rem !important;
    padding: 0.3rem 0.6rem !important;
    align-self: flex-start;
    white-space: nowrap;
  }
  .case-card__client-name {
    font-size: 1.1rem !important;
    line-height: 1.25 !important;
  }
  .case-card__client-sector {
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    font-size: 0.66rem;
  }
}

/* ---- Hero text breathing on phones ---- */
@media (max-width: 480px) {
  .hero__display { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.05; }
  .hero__sub p { font-size: 0.95rem; }
  .hero { padding-bottom: clamp(2rem, 5vw, 4rem); }
  /* Tighten the page-head stamp on phones — at 380px it can overlap content */
  .page-head__stamp { display: none !important; }
}

/* ---- Glance tile breathing on small phones ---- */
@media (max-width: 460px) {
  .glance-tile { padding: 1rem 1.1rem 0.95rem; }
  .glance-tile__title { font-size: 0.95rem; }
}

/* ---- Touch targets: bump tappable padding for easier mobile use ---- */
@media (max-width: 760px) {
  .menu-overlay a { padding: 1rem 0; }
  .footer__col a { display: block !important; padding: 0.45rem 0 !important; font-size: 0.95rem; }
  .footer__base a { padding: 0.3rem 0; display: inline-block; }
}

/* ============================================================
   POLISH ROUND 2 — typography rhythm + CTA parity + footer spacing
   ============================================================ */

/* "View all →" and similar text-links should never break across lines */
.tlink { white-space: nowrap; flex-shrink: 0; }

/* CTA button pairs (Start a conversation + See areas of practice) — visually balanced */
.btn--gold, .btn--ghost { white-space: nowrap; }
@media (min-width: 600px) {
  /* When in a flex row together, give the primary + ghost CTA equal min-width so they read as a pair */
  .section--ink .btn--gold + .btn--ghost,
  .section .btn--gold + .btn--ghost,
  .section--paper .btn--gold + .btn--ghost {
    min-width: 220px;
  }
  .section--ink .btn--gold,
  .section .btn--gold,
  .section--paper .btn--gold {
    min-width: 220px;
  }
  .btn--gold, .btn--ghost {
    justify-content: center;
  }
}

/* Footer firm links — proper line-by-line stacking at all widths */
.footer__col a { display: block; padding: 0.4rem 0; }

/* Selected Work case cards — slightly tighter so 3 cards aren't so vertical */
.case { padding: clamp(1.4rem, 2.4vw, 2rem); }
.case h3.case__title { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.2; }
.case .case__desc { font-size: 0.92rem; }

/* ============================================================
   ROUND 3 — About timeline / Edu / Certs + Case-Studies mobile
   ============================================================ */

/* About — Education cards smaller on mobile */
@media (max-width: 760px) {
  .edu { padding: 1.6rem 1.4rem 1.4rem !important; }
  .edu__inst { font-size: 1.15rem !important; }
  .edu__school, .edu__degree { font-size: 0.85rem !important; }
  .edu__detail { font-size: 0.85rem !important; line-height: 1.5; }
  .edu__year { font-size: 0.7rem; }
}

/* About — Salesforce certifications: pull all 4 pills onto a single horizontal ribbon */
.certs__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.4rem !important;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.certs__list::-webkit-scrollbar { display: none; }
.certs__list li {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .certs__list { gap: 0.35rem !important; }
  .certs__list li { font-size: 0.78rem !important; padding: 0.4rem 0.7rem !important; }
}

/* About — Timeline smaller font on mobile */
@media (max-width: 760px) {
  .timeline__entry h4 { font-size: 1.05rem !important; }
  .timeline__entry .role { font-size: 0.78rem !important; }
  .timeline__entry p { font-size: 0.86rem !important; line-height: 1.5 !important; }
  .timeline__firm { font-size: 0.74rem !important; }
}

/* Case Studies — condense detail cards on mobile (reduce density without losing info) */
@media (max-width: 640px) {
  .case-card__title h3 { font-size: 1.05rem !important; line-height: 1.3 !important; }
  .case-card__brief { font-size: 0.88rem !important; line-height: 1.5 !important; }
  .case-card__params { font-size: 0.85rem; }
  .case-card__param { padding: 0.85rem 1rem !important; }
  .case-card__param-val { font-size: 1rem !important; }
  .case-card__param-sub { font-size: 0.7rem !important; }
  .case-approach { gap: 0.9rem !important; }
  .case-approach__step h4 { font-size: 0.92rem !important; }
  .case-approach__step p { font-size: 0.82rem !important; line-height: 1.5 !important; }
  /* Deliverables alignment fix — force consistent vertical alignment */
  .case-deliverables { gap: 0.75rem !important; }
  .case-deliverable {
    display: grid !important;
    grid-template-columns: 80px 1fr auto !important;
    align-items: start !important;
    gap: 0.7rem !important;
    padding: 0.7rem 0 !important;
  }
  .case-deliverable__type { font-size: 0.62rem !important; }
  .case-deliverable__name { font-size: 0.88rem !important; line-height: 1.35; }
  .case-deliverable__name small { font-size: 0.74rem; }
  .case-deliverable__count { font-size: 0.68rem !important; }
  .case-coverage__num { font-size: 1.4rem !important; }
  .case-coverage__lbl { font-size: 0.62rem !important; }
  .case-card__outcome p { font-size: 0.88rem !important; line-height: 1.55 !important; }
}

/* Deliverables — desktop alignment fix (was off-grid for some entries) */
.case-deliverable {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: baseline;
  gap: 1rem;
}
.case-deliverable__type { align-self: start; padding-top: 0.18rem; }
.case-deliverable__count { align-self: start; padding-top: 0.18rem; white-space: nowrap; }

/* ============================================================
   Selected Clients — show first 6, expand to 10
   ============================================================ */
/* Selected Clients — show 6 by default on mobile/tablet, all 10 on desktop.
   Desktop has the column count to display all 10 cleanly, so the toggle
   is hidden there. The toggle only earns its keep at narrower widths. */
.client--extra { display: none; }
.clients__grid.is-expanded .client--extra { display: flex; }
@media (min-width: 880px) {
  .client--extra { display: flex; }
  .clients__more,
  .clients__more-btn { display: none !important; }
}
.clients__more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.clients__more-btn {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast), background var(--dur-fast);
}
.clients__more-btn:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201,169,97,0.06); }
.clients__more-btn[aria-expanded="true"] svg { transform: rotate(180deg); transition: transform var(--dur-fast); }
.clients__more-btn svg { transition: transform var(--dur-fast); }

/* ============================================================
   SATURDAY-AM POLISH — final mobile + desktop refinements
   ============================================================ */

/* Insights newsletter — fix Subscribe button overflow + cream box text bleed */
.newsletter form {
  min-width: 0;
  flex-wrap: nowrap;
}
.newsletter input {
  min-width: 0;  /* allows flex shrink */
}
.newsletter button {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 1.2rem;
}
@media (max-width: 540px) {
  .newsletter form { flex-wrap: wrap; gap: 0.5rem; }
  .newsletter input { width: 100%; border-radius: 999px; border-right: 1px solid var(--rule); }
  .newsletter button { width: 100%; border-radius: 999px; padding: 0.85rem 1.2rem; }
  .newsletter h3, .newsletter p { padding-right: 0.5rem; }
  .newsletter { padding: clamp(1.4rem, 4vw, 2rem) !important; }
}

/* Salesforce certs — wrap to 2 lines naturally, no horizontal scroll */
.certs__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.4rem 0.5rem !important;
  overflow-x: visible !important;
  padding-bottom: 0;
}
.certs__list li {
  white-space: nowrap;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.7rem !important;
}

/* Services format pills — force single-row on desktop, allow wrap only on small phones */
.svc-row__formats { flex-wrap: nowrap !important; overflow-x: visible; }
.svc-row__format { font-size: 0.62rem !important; padding: 0.26rem 0.5rem !important; letter-spacing: 0.08em; }
@media (max-width: 540px) {
  .svc-row__formats { flex-wrap: wrap !important; gap: 0.3rem !important; }
}

/* Work — Selected Clients cards: outcomes text fills full card width, more lines OK */
.client__outcomes li {
  font-size: 0.74rem !important;
  line-height: 1.4 !important;
  padding-left: 0 !important;
  position: static !important;
}
.client__outcomes li::before { display: none !important; }
.client__name { font-size: 0.95rem !important; line-height: 1.2 !important; }
.client__role { font-size: 0.72rem !important; line-height: 1.35 !important; }
.client { min-height: 170px !important; padding: 1.1rem 1rem 1rem !important; gap: 0.5rem !important; }
.client__pair { padding-top: 0.5rem !important; }
.client__pair .tag { font-size: 0.5rem !important; padding: 0.18rem 0.35rem !important; }

/* Contact form intro */
.form__intro { margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.form__intro h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0.5rem 0 0.8rem; color: var(--canvas); max-width: 32ch; }
.form__intro p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.5; max-width: 50ch; margin: 0; }

/* Footer compaction — practice + firm columns can render 2-up on mobile */
@media (max-width: 540px) {
  .footer__col h4 { font-size: 0.72rem; margin-bottom: 0.4rem; }
  .footer__col a { font-size: 0.85rem; padding: 0.32rem 0 !important; }
  .footer__brand h3 { font-size: 1.15rem !important; }
  .footer__brand p { font-size: 0.85rem; }
  .footer__base { font-size: 0.72rem; }
  .footer { padding: 3rem 0 2rem; }
}

/* —— Case metric labels: shrink subtext on mobile to avoid orphan words —— */
@media (max-width: 760px) {

}

/* —— Issue 3: Force client--extra visibility rules with !important so iOS Safari + cached browsers honor them —— */
@media (max-width: 879px) {
  .client--extra { display: none !important; }
  .clients__grid.is-expanded .client--extra { display: flex !important; }
}

/* —— Issue 2: Services practice format pills — label on own row, 3 pills on single line below at mobile —— */
@media (max-width: 760px) {
  .svc-row__formats {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 0.35rem !important;
    margin-top: 0.6rem;
  }
  .svc-row__formats-label {
    display: block !important;
    width: 100%;
    font-size: 0.6rem !important;
    margin-bottom: 0.15rem !important;
  }
  .svc-row__format {
    font-size: 0.62rem !important;
    padding: 0.3rem 0.65rem !important;
    letter-spacing: 0.04em !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {

}
@media (max-width: 430px) {

}

/* —— Issue 5: Timeline gray text shrink + widow safe —— */
@media (max-width: 760px) {
  .timeline__firm { font-size: 0.66rem !important; letter-spacing: 0.04em !important; text-transform: none !important; }
  .timeline__entry .role { font-size: 0.72rem !important; }
  .timeline__entry h4 { font-size: 1rem !important; line-height: 1.2 !important; }
  .timeline__entry p { font-size: 0.82rem !important; line-height: 1.45 !important; }
  /* Reduce letter-spacing on uppercase eyebrow-style labels site-wide to prevent forced wrap */
  .eyebrow { letter-spacing: 0.12em !important; }
}

/* —— Issue 7: POV insight cards — condense on mobile (smaller font, 2-3 line max) —— */
@media (max-width: 760px) {
  .insight--pov {
    padding: 0.95rem 1rem 0.85rem !important;
    min-height: 0 !important;
    gap: 0.45rem !important;
  }
  .insight--pov h3 {
    font-size: 0.95rem !important;
    line-height: 1.22 !important;
  }
  .insight--pov p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .insight--pov .insight__meta { margin-bottom: 0.35rem !important; }
  .insight--pov .insight__more {
    font-size: 0.62rem !important;
    padding-top: 0.5rem !important;
    margin-top: 0.5rem !important;
  }
}

/* —— Issue 8: Newsletter Subscribe button — gold accent border + shadow so it reads as a CTA —— */
@media (max-width: 760px) {
  .newsletter button {
    background: var(--ink) !important;
    color: var(--canvas) !important;
    border: 1.5px solid var(--gold) !important;
    box-shadow: 0 6px 16px -6px rgba(201, 169, 97, 0.5), 0 0 0 0 rgba(201, 169, 97, 0.3) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    transition: transform 180ms var(--ease), box-shadow 220ms var(--ease) !important;
  }
  .newsletter button:hover,
  .newsletter button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(201, 169, 97, 0.7), 0 0 0 4px rgba(201, 169, 97, 0.18) !important;
  }
}

/* —— Issue 9: Contact form comprehensive text-bleed prevention —— */
.contact-grid, .form, .field { min-width: 0; }
.field input, .field textarea, .field select {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.field textarea { white-space: pre-wrap; }
.field textarea::placeholder { white-space: pre-wrap; }
@media (max-width: 760px) {
  .opt-grid label {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.85rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .opt-grid label small { font-size: 0.7rem !important; }
  /* Form section descriptive paragraphs */
  .form__intro p,
  .form p:not(.tag),
  [data-status] { word-wrap: break-word; overflow-wrap: break-word; }
}

/* —— Issue 10: Home Selected Work section — reduce top padding on mobile —— */
@media (max-width: 760px) {
  /* The section right after the cap-grid 4 cards (Strategy/Insights/M&A/Operate) */
  section.section--paper[style*="padding-bottom"] {
    padding-top: 1.6rem !important;
  }
  /* General .section vertical padding tighter on mobile to reduce scroll length */
  .section { padding-block: clamp(2rem, 5vw, 3rem) !important; }
  .section .sec-head { gap: 0.4rem !important; margin-bottom: 1.5rem !important; }
}

/* —— Issue 11: Contact Send button — constrain width so it doesn't bleed past container —— */
.contact-send-btn {
  max-width: 200px;
  width: auto !important;
  padding-inline: 1.4rem !important;
}
@media (max-width: 760px) {
  .contact-send-btn {
    max-width: 180px;
    font-size: 0.92rem !important;
    padding-block: 0.85rem !important;
  }
}

/* —— GLOBAL WIDOW PREVENTION —— Reduce hanging single words on mobile.
   Strategy: increase font for sub-labels only slightly + ensure tight letter-spacing,
   and add word-wrap/balance hints where supported. —— */
@media (max-width: 760px) {
  /* Generic small-print labels (.l, .lbl, mono small text) — keep letter-spacing tight to fit more per line */

}

/* ============================================================
   iPAD LANDSCAPE (820–1180px) — additional polish
   ============================================================ */
@media (min-width: 820px) and (max-width: 1180px) and (orientation: landscape) {
  /* iPad landscape — ensure nav links remain visible (existing min-width:980px hides them, but
     iPad landscape at 1180px should keep them visible) */
  /* Reduce massive heading sizes on iPad to fit comfortably */
  .hero__display { font-size: clamp(2.4rem, 5vw, 3.4rem) !important; }
  /* Tighten section padding on iPad landscape to reduce scroll burden */
  .section { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
}

/* ============================================================
   OVERALL MOBILE UX — reduce vertical scroll via section tightening
   ============================================================ */
@media (max-width: 760px) {
  /* Hero — already tight per Round 1, but compress further */
  .hero { padding-top: 6.5rem; padding-bottom: 2.4rem; }
  /* Page-head sections (services/work/about/insights/contact/case-studies) */
  .page-head { padding-top: 7rem !important; padding-bottom: 2rem !important; }
  /* Cards / grids — tighter gaps */
  .cards-row, .case-grid, .insights-grid { gap: 0.9rem !important; }
  /* Between repeating cap items */
  .cap-grid { gap: 0.7rem !important; }
  
}

/* ============================================================
   ROUND 5b — Targeted polish after Brandon's review
   ============================================================ */

/* Newsletter Subscribe button → match Contact Send button style (gold pill, constrained width).
   This OVERRIDES the insights.html inline `.newsletter button { background: var(--ink) }` rule. */
.newsletter button.newsletter-subscribe-btn,
.newsletter-subscribe-btn {
  background: var(--gold) !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.6rem !important;
  font-family: var(--sans);
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em !important;
  cursor: pointer;
  max-width: 200px !important;
  width: auto !important;
  align-self: flex-start;
  box-shadow: 0 4px 14px -4px rgba(201, 169, 97, 0.45);
  transition: transform 180ms var(--ease), background var(--ease), box-shadow 200ms var(--ease);
}
.newsletter button.newsletter-subscribe-btn:hover,
.newsletter-subscribe-btn:hover,
.newsletter button.newsletter-subscribe-btn:focus-visible,
.newsletter-subscribe-btn:focus-visible {
  background: var(--gold-2) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(201, 169, 97, 0.55);
}
@media (max-width: 760px) {
  .newsletter form { flex-direction: column !important; gap: 0.7rem !important; align-items: stretch; }
  .newsletter input { width: 100% !important; }
  .newsletter button.newsletter-subscribe-btn,
  .newsletter-subscribe-btn {
    max-width: 180px !important;
    padding: 0.85rem 1.4rem !important;
    align-self: flex-start;
  }
}

/* Mobile: shrink .case__metric .v slightly so longer values like
   "90%+ ACV renewal rate" don't blow out the card on small phones */
@media (max-width: 430px) {

}

/* ============================================================
   ROUND 6 — UI consolidation per Brandon's review
   - PHASE A: surgical fixes (newsletter button, select underline)
   - PHASE B: R6 (spacing vars), R4 (hover language), R1 (.btn-expand), R3 (eyebrow aliases)
   ============================================================ */

/* -- PHASE A.2: Strip iOS Safari native select chrome --
   Removes the curved/chevron artifacts on the field select underlines.
   Custom chevron via SVG background-image. */
.field select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M2 2 L6 6 L10 2' stroke='%236B6B6B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.4rem center !important;
  background-size: 12px 8px !important;
  padding-right: 1.6rem !important;
  border-radius: 0 !important;
  cursor: pointer;
}
.section--ink .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M2 2 L6 6 L10 2' stroke='%23B4AFA5' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
}

/* -- PHASE B.R6: Spacing system as CSS variables --
   Future spacing changes happen in one place. Existing .section / .hero / .page-head
   continue to work via the !important rules in earlier rounds; these vars are for new code. */
:root {
  --space-section-mobile: clamp(2rem, 5vw, 3rem);
  --space-section-desktop: clamp(3.5rem, 6vw, 5rem);
  --space-hero: clamp(4.5rem, 8vw, 8rem);
  --space-page-head: clamp(5rem, 7vw, 7rem);
  /* Card spacing scale */
  --space-card-padding: clamp(1.4rem, 2.4vw, 2rem);
  --space-card-gap: clamp(0.8rem, 1.5vw, 1.4rem);
}

/* -- PHASE B.R4: Standardize hover language across all CTAs --
   .btn--gold previously didn't lift on hover. .btn--ghost only color-shifted.
   Now all three lift consistently. */
.btn { transition: transform 180ms var(--ease), background var(--ease), color var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
.btn--gold:hover, .btn--gold:focus-visible {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(201, 169, 97, 0.55);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(10, 31, 61, 0.18);
}
/* btn--primary already has translateY + box-shadow on hover from line 153 */

/* -- PHASE B.R1: .btn-expand canonical class for case-card, work-index, clients, insights-grid expand buttons.
   Existing class names continue to work as aliases (no HTML changes needed). */
.btn-expand,
.case-card__toggle,
.work-index__more-btn,
.clients__more-btn,
.insights-grid__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 180ms var(--ease);
}
.btn-expand:hover, .btn-expand:focus-visible,
.case-card__toggle:hover, .case-card__toggle:focus-visible,
.work-index__more-btn:hover, .work-index__more-btn:focus-visible,
.clients__more-btn:hover, .clients__more-btn:focus-visible,
.insights-grid__more-btn:hover, .insights-grid__more-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.06);
  transform: translateY(-1px);
  outline: none;
}
.btn-expand svg,
.case-card__toggle svg,
.work-index__more-btn svg,
.clients__more-btn svg,
.insights-grid__more-btn svg {
  transition: transform 240ms var(--ease);
  flex-shrink: 0;
  color: var(--gold);
}
.btn-expand[aria-expanded="true"] svg,
.case-card__toggle[aria-expanded="true"] svg,
.work-index__more-btn[aria-expanded="true"] svg,
.clients__more-btn[aria-expanded="true"] svg,
.insights-grid__more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
@media (max-width: 760px) {
  .btn-expand,
  .case-card__toggle,
  .work-index__more-btn,
  .clients__more-btn,
  .insights-grid__more-btn {
    font-size: 0.66rem;
    padding: 0.85rem 1rem;
    letter-spacing: 0.1em;
  }
  /* Force label content (often a <span>) to one line */
  .btn-expand > span,
  .case-card__toggle-label,
  .work-index__more-label,
  .clients__more-label,
  .insights-grid__more-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* -- PHASE B.R3: Canonical eyebrow / label patterns --
   .eyebrow already exists. Adding two siblings as aliases for the most common patterns. */
.label-mono,
.idx,
.svc-row__num,

.label-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 169, 97, 0.2);
}

/* ============================================================
   R11 visual polish — May 16
   ============================================================ */

/* 3a. Energy/SF ROI feat card subtext stretches under headline (no 48ch constraint) */

/* R12 — Energy/SF ROI navy card: more breathing room above the hairline divider
   (matches the gold-hairline spacing in the side cards below) */

/* R12b — Case studies tile note: nowrap on desktop, balanced wrap on mobile */
@media (max-width: 760px) {
  .cs-tile-note {
    white-space: normal !important;
    max-width: 92% !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    padding: 0.6rem 1.1rem !important;
    text-wrap: balance;
  }
}

/* R13 — Utility class replacing inline style="padding-top: 0" overrides.
   Use when a section needs to butt directly against the previous section
   (e.g., page-head → first content section). Makes the intent explicit. */
.section--flush-top { padding-top: 0 !important; }

/* R19.1 — iPad portrait + landscape: ensure page-head breadcrumb is fully visible below the fixed nav */
@media (min-width: 761px) and (max-width: 1100px) {
  .page-head { padding-top: clamp(6rem, 9vw, 8rem); }
}

/* R20.1 — contact email overflow fix on mobile (long string breaks gracefully) */
.location-card__body .line a { overflow-wrap: anywhere; word-break: break-word; }

/* ============================================================
   R21 — MOBILE POLISH SWEEP
   Brandon's 5/19 mobile review: 10 explicit fixes + 2 extras.
   Lives at end-of-file so it overrides any prior rule cleanly.
   ============================================================ */

/* R21 #1 — Home hero eyebrow on a single line at narrow widths.
   The "Strategy · Insights · M&A · Operate" line was wrapping below
   the principal byline on iPhone widths. Shrink font, tighten kerning,
   drop the leading ::before hairline below 480px. */
@media (max-width: 540px) {
  .hero__topline .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.10em;
    white-space: nowrap;
  }
  .hero__topline .eyebrow::before {
    width: 16px;
  }
}
@media (max-width: 420px) {
  .hero__topline .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    gap: 0.45rem;
  }
  .hero__topline .eyebrow::before { display: none; }
}

/* R21 #2 — Home "What I ship" stack: breathing room rebalance.
   Previously: pill + eyebrow + headline + link were cramped on mobile.
   Now: more space above the pill, between pill and eyebrow.
   Link drops onto its own line below the headline (Extra A). */
@media (max-width: 760px) {
  .ship-grid + .ship-defs,  /* between ship cards and ship-defs (no change needed, just safety) */
  body {} /* no-op anchor */
}
.home #ship-section,  /* future-proof anchor */
body {} /* anchor */

/* Specific: target the sec-head that introduces "What I ship" via its
   contained idx text. We can't add a hook class without HTML changes,
   so we use a targeted descendant selector on the ship section. */
.section .sec-head:has(.idx) .sec-head__meta { margin-bottom: 0.4rem; }
@media (max-width: 760px) {
  /* Extra breathing above pill at narrow widths */
  .section .sec-head:has(.idx) {
    padding-top: 0.4rem;
  }
  .section .sec-head:has(.idx) .sec-head__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
  }
  /* Drop "See full case briefs →" onto its own line under the headline */
  .section .sec-head > div[style*="display:flex"][style*="space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.9rem !important;
  }
}

/* R21 #4 — Services "Available As" pills color-coded by tier.
   Sprint = gold, Engagement = violet, Fractional = teal.
   Reinforces the tier color system already used by the rail on home
   ship-defs and the rail on case study format cards. */
.svc-row__format--sprint {
  border-color: rgba(201, 169, 97, 0.50);
  background: rgba(201, 169, 97, 0.10);
  color: var(--gold-2);
}
.svc-row__format--sprint:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.20);
  color: var(--gold-2);
}
.svc-row__format--engagement {
  border-color: rgba(110, 92, 255, 0.45);
  background: rgba(110, 92, 255, 0.08);
  color: #5040c2;
}
.svc-row__format--engagement:hover {
  border-color: #6E5CFF;
  background: rgba(110, 92, 255, 0.16);
  color: #4035a8;
}
.svc-row__format--fractional {
  border-color: rgba(47, 182, 166, 0.50);
  background: rgba(47, 182, 166, 0.10);
  color: #1f8b7d;
}
.svc-row__format--fractional:hover {
  border-color: #2FB6A6;
  background: rgba(47, 182, 166, 0.20);
  color: #167a6d;
}

/* R21 #3 — Home Sprint/Engagement/Fractional cards: timing inline,
   set off as a smaller mono detail inside the existing tier eyebrow. */
.ship-def__time {
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: none;
  font-style: normal;
  font-weight: 500;
  margin-left: 0.45rem;
}

/* R21 #5 — Ventures navy card principal name on one line on mobile.
   "Brandon Ashton Stein" was wrapping to "Brandon Ashton / Stein"
   at ≤480px. Reduce font + tighten photo gap so it fits. */
@media (max-width: 540px) {
  .home-ventures__principal { gap: 0.7rem; }
  .home-ventures__principal-photo { width: 52px; height: 52px; }
  .home-ventures__principal-name { font-size: 0.92rem; white-space: nowrap; }
  .home-ventures__principal-role { font-size: 0.7rem; }
}

/* R21 #8 — Insights featured-essay navy card: extend content to
   fuller card width on mobile so lines aren't 4-5 words.
   Reduces vertical scroll meaningfully. */
@media (max-width: 760px) {
  .featured-essay__body { padding: 1.6rem 1.3rem 1.5rem; }
  .featured-essay h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    line-height: 1.18;
    margin-bottom: 0.85rem;
    letter-spacing: -0.015em;
  }
  .featured-essay p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
  }
  .featured-essay__meta { margin-bottom: 1rem; gap: 0.6rem; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .featured-essay__body { padding: 1.4rem 1.1rem 1.3rem; }
}

/* R21 #9 — Contact location-card: align EMAIL / DIRECT / LINKEDIN
   as 2-col grid on mobile so values right-align in a column (matches
   desktop). Reverses the broken R20.1 wrap rule which forced labels
   onto their own row. Email string still wraps gracefully via the
   .line a overflow rule above. */
@media (max-width: 540px) {
  .location-card__body .line {
    flex-wrap: nowrap;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 0.6rem;
    align-items: baseline;
  }
  .location-card__body .line .lbl {
    min-width: 0;
    margin-bottom: 0;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    align-self: baseline;
  }
  .location-card__body .line a,
  .location-card__body .line strong { font-size: 0.88rem; }
}

/* R21 — About bio caption: ensure name remains legible on the navy
   suit. The inline color override is removed in HTML; this rule
   gives the cream-on-image text a stronger shadow for legibility. */
.bio-portrait__caption h2 {
  color: var(--paper) !important;
  text-shadow: 0 1px 14px rgba(10,31,61,0.55), 0 0 2px rgba(10,31,61,0.4);
}

/* R21 Extra B — Nav "Book a consult" pill: tighten padding at narrow
   widths (<420px) so logo + pill + hamburger don't crowd on iPhone
   13 mini / SE / 6.1" widths. */
@media (max-width: 420px) {
  .nav__cta { gap: 0.35rem; }
  .nav__cta .btn--primary {
    padding: 0.5rem 0.78rem;
    font-size: 0.74rem;
    gap: 0.28rem;
  }
  .nav__cta .btn--primary .arrow { width: 12px; height: 12px; }
}

/* ============================================================
   R21.1 — TIER COLOR CONSISTENCY + MOBILE NITS
   Brandon's 5/19 follow-up review. Carries the gold/violet/teal
   tier color system through every Sprint/Engagement/Fractional
   surface on the site.
   ============================================================ */

/* R21.1 #1 — Services format cards (Sprint/Engagement/Fractional).
   Apply the same colored left rail + tier gradient + colored num
   used on the Case Studies header cards. Replaces the generic gold
   top stripe so all 3 cards on services read tier-distinct. */
.card-plain--format--sprint {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(201,169,97,0.06), var(--paper) 42%);
}
.card-plain--format--engagement {
  border-left: 3px solid #6E5CFF;
  background: linear-gradient(90deg, rgba(110,92,255,0.05), var(--paper) 42%);
}
.card-plain--format--fractional {
  border-left: 3px solid #2FB6A6;
  background: linear-gradient(90deg, rgba(47,182,166,0.05), var(--paper) 42%);
}
/* Drop the generic gold top stripe on tier-coded cards — let the rail carry the tier */
.card-plain--format--sprint::before,
.card-plain--format--engagement::before,
.card-plain--format--fractional::before { display: none; }
/* Tier-colored num */
.card-plain--format--sprint .num     { color: var(--gold-2); }
.card-plain--format--engagement .num { color: #5040c2; }
.card-plain--format--fractional .num { color: #1f8b7d; }
/* Tier-colored hover border */
.card-plain--format--sprint:hover     { border-color: rgba(201,169,97,0.50); border-left-color: var(--gold); }
.card-plain--format--engagement:hover { border-color: rgba(110,92,255,0.50); border-left-color: #6E5CFF; }
.card-plain--format--fractional:hover { border-color: rgba(47,182,166,0.50); border-left-color: #2FB6A6; }
/* The .gold helper inside copy retains gold even on Engagement / Fractional
   cards — keeps the existing "80–160" / "10–20" highlight intact. */

/* R21.1 #3 — Case Studies format card meta pills tinted by tier.
   The two small pills inside each cs-nav__item .meta — "4–8 weeks /
   Starting at $20k" etc — inherit the parent's tier color. */
.cs-nav__item--sprint .meta span {
  border-color: rgba(201,169,97,0.45);
  background: rgba(201,169,97,0.08);
  color: var(--gold-2);
}
.cs-nav__item--engagement .meta span {
  border-color: rgba(110,92,255,0.40);
  background: rgba(110,92,255,0.06);
  color: #5040c2;
}
.cs-nav__item--fractional .meta span {
  border-color: rgba(47,182,166,0.45);
  background: rgba(47,182,166,0.07);
  color: #1f8b7d;
}

/* R21.1 #4 — Contact email "brandon@ashtonstrategies.com" single line
   on iPhone widths. Tighten label column + shrink value font + tight
   kerning so the 28-char string fits in the available ~210px. */
@media (max-width: 540px) {
  .location-card__body .line {
    grid-template-columns: 64px 1fr;
    gap: 0.55rem;
  }
  .location-card__body .line a,
  .location-card__body .line strong {
    font-size: 0.82rem;
    letter-spacing: -0.01em;
  }
  /* Force email line to not break the URL across lines unless
     absolutely necessary. overflow-wrap fallback retained from R20.1
     so it still breaks on a 320px nano-viewport. */
  .location-card__body .line:first-child a { white-space: nowrap; }
}
@media (max-width: 380px) {
  /* Last-resort fallback for very narrow viewports — re-enable wrap */
  .location-card__body .line:first-child a {
    white-space: normal;
    font-size: 0.78rem;
  }
}

/* ============================================================
   R21.2 — TARGETED FIXES + SITE-WIDE WIDOW KILLER
   Three explicit fixes + global text-wrap rules to address
   Brandon's long-standing pet peeve about 1-2 word widows.
   ============================================================ */

/* R21.2 #1 — Services Ventures card: keep "Brandon Ashton Stein"
   on a single line at iPhone widths. Different element than the
   home page Ventures card (.ventures-card__principal-name vs
   .home-ventures__principal-name) — R21 only fixed home. */
@media (max-width: 540px) {
  .ventures-card__principal img {
    width: 78px !important;
    height: 92px !important;
  }
  .ventures-card__principal-name {
    font-size: 0.92rem;
    white-space: nowrap;
    letter-spacing: -0.015em;
  }
  .ventures-card__principal-role {
    font-size: 0.7rem;
  }
}

/* R21.2 #2 — About bio: "PRINCIPAL · 01" pill compaction so it
   sits at the very corner and doesn't cross over the face/forehead.
   Reduce font + tighten padding + tighten letter-spacing. */
.bio-portrait__corner {
  font-size: 0.58rem !important;
  letter-spacing: 0.14em !important;
  padding: 0.26rem 0.55rem !important;
  top: 0.9rem !important;
  right: 0.9rem !important;
}

/* R21.2 #3 — SITE-WIDE WIDOW KILLER via modern text-wrap.
   - text-wrap: balance on h1-h4 distributes lines evenly so no
     short last-line orphan. Browser-native, no JS, no per-string
     &nbsp; binding.
   - text-wrap: pretty on body p / .lead / card body text ensures
     last line has at least 2 words.
   Supported: Chrome 117+, Safari 17.5+, Firefox 121+.
   Older browsers degrade gracefully (no-op). */
h1, h2, h3, h4, h5, h6,
.hero__display,
.bio-portrait__caption h2,
.ship__name, .ship-def__copy,
.case-card__title, .case-card__name,
.insight__title, .insight--pov h3,
.featured-essay h2,
.home-insight h3,
.ventures-card h2,
.home-ventures__card h2,
.cs-nav__item h2, .cs-cat__meta h2,
.svc-row h2,
.location-card__body h2 {
  text-wrap: balance;
}
p, li, .lead, .bio-lead, .desc, .svc-row__lead,
.location-card__body p,
.contact-side__group .item span,
.featured-essay p,
.home-insight p, .insight p,
.case-card p,
.values__commitment, .ship-coda,
.glance-tile__client, .glance-tile__sectors,
.ship-def__copy,
.svc-row__list li {
  text-wrap: pretty;
}
