/* ============================================
   ANSK Consulting · Stylesheet
   Palette: Navy + Gold + Cream
   Type: Manrope · Source Serif 4 (italic) · IBM Plex Mono
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  /* Light mode (default) */
  --paper:        #fdfaf2;
  --paper-edge:   #f7f3eb;
  --paper-deep:   #efe9d8;
  --ink:          #0a1a2f;
  --ink-soft:     #3a4658;
  --ink-mute:     #5b6677;
  --rule:         #d4cfc1;
  --rule-soft:    #e5e0cf;
  --accent:       #b08d2e;
  --accent-text:  #7a5e1a;
  --accent-deep:  #8a6f1f;
  --accent-soft:  rgba(176, 141, 46, .08);
  --green:        #4a7c4e;

  /* Composite tokens */
  --nav-bg:           rgba(253, 250, 242, .92);
  --footer-bg:        #0a1a2f;
  --footer-text:      #fdfaf2;
  --footer-text-soft: rgba(253, 250, 242, .85);
  --footer-text-mute: rgba(253, 250, 242, .55);
  --footer-rule:      rgba(255, 255, 255, .08);
  --portrait-grad-from: #142a4a;
  --portrait-grad-to:   #0a1a2f;
  --portrait-text:    #b08d2e;
  --portrait-cap:     rgba(176, 141, 46, .85);
  --form-input-bg:    #fdfaf2;
  --shadow-rgb:       21, 23, 28;
  --whatsapp-shadow:  rgba(74, 124, 78, .4);
  --whatsapp-shadow-hover: rgba(74, 124, 78, .55);

  --max-width: 1200px;
  --pad-x: 32px;
  --pad-x-sm: 18px;

  --t-fast: .2s ease-out;
  --t-mid: .35s cubic-bezier(.7, 0, .3, 1);
  --t-slow: .8s ease-out;
  --t-theme: .25s ease-out;

  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif-italic: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Dark mode override */
[data-theme="dark"] {
  --paper:        #0a1623;
  --paper-edge:   #0f1d30;
  --paper-deep:   #142540;
  --ink:          #fdfaf2;
  --ink-soft:     #c8cdd6;
  --ink-mute:     #8e98a6;
  --rule:         #1f2c40;
  --rule-soft:    #182238;
  --accent:       #dab866;
  --accent-text:  #c5a956;
  --accent-deep:  #b08d2e;
  --accent-soft:  rgba(218, 184, 102, .1);
  --green:        #5f9663;

  --nav-bg:           rgba(10, 22, 35, .9);
  --footer-bg:        #060f1c;
  --footer-text:      #fdfaf2;
  --footer-text-soft: rgba(253, 250, 242, .85);
  --footer-text-mute: rgba(253, 250, 242, .5);
  --footer-rule:      rgba(255, 255, 255, .06);
  --portrait-grad-from: #1c3052;
  --portrait-grad-to:   #0c1a2f;
  --portrait-text:    #dab866;
  --portrait-cap:     rgba(218, 184, 102, .9);
  --form-input-bg:    #0f1d30;
  --shadow-rgb:       0, 0, 0;
  --whatsapp-shadow:  rgba(74, 124, 78, .35);
  --whatsapp-shadow-hover: rgba(74, 124, 78, .5);
}

/* Smooth color transitions when toggling theme */
html { transition: background-color var(--t-theme), color var(--t-theme); }
body, .nav, .footer, .lane-card, .service, .contact-card, .form-wrap, .testimonial,
.advisor-card, .usp, .form-result, .form-field input, .form-field select, .form-field textarea {
  transition:
    background-color var(--t-theme),
    color var(--t-theme),
    border-color var(--t-theme);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Belt-and-braces: clamp horizontal at document level too.
     Required because position:fixed transformed off-canvas elements
     (mobile menu) can expand document scrollWidth despite body's
     overflow-x: hidden. Without this, scrollWidth was 2x viewport on
     all ≤880px screens. */
  overflow-x: hidden;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, a { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
/* <picture> wraps img for WebP/fallback — make it transparent in layout
   so children behave as if directly under the picture's parent.
   Required: prevents 'image blows out of container' when picture is between
   a sized .logo-wrap and a max-width:100% img. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
blockquote { font-style: normal; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; font-size: 13px;
  z-index: 100;
}
.skip-link:focus { top: 8px; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--pad-x-sm); }
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width .1s linear;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand-mark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .15em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-word {
  font-weight: 500;
  margin-left: .55em;
  letter-spacing: .06em;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.brand:hover .brand-word { color: var(--accent-text); }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.nav-cta { padding: 10px 16px; font-size: 13px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.theme-toggle:hover {
  color: var(--accent);
  background: var(--paper-edge);
  border-color: var(--rule);
}
.theme-icon-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}
.theme-icon {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity .35s ease, transform .35s cubic-bezier(.7, 0, .3, 1);
}
/* Light mode: show moon (= click to go dark) */
.theme-icon-sun  { opacity: 0; transform: scale(.5) rotate(-90deg); }
.theme-icon-moon { opacity: 1; transform: scale(1) rotate(0); }
/* Dark mode: show sun (= click to go light) */
[data-theme="dark"] .theme-icon-sun  { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: scale(.5) rotate(90deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  /* brand takes remaining width so the actions group (CTA + hamburger)
     sits flush against the right edge — hamburger ends at the far right */
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-actions { justify-content: flex-end; }
}

/* ---------- Section base ---------- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.section-head {
  margin-bottom: 56px;
  max-width: 880px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.section-headline {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 680px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .hero { padding: 72px 0 56px; }
}
.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 28px;
  max-width: 1000px;
  color: var(--ink);
}
.hero-headline em {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-variation-settings: "opsz" 60;
  padding: 0 .04em;
}
.hero-subline {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.stat {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s, transform .6s;
}
.stat-strip.in .stat { opacity: 1; transform: translateY(0); }
.stat-strip.in .stat:nth-child(1) { transition-delay: 0ms; }
.stat-strip.in .stat:nth-child(2) { transition-delay: 120ms; }
.stat-strip.in .stat:nth-child(3) { transition-delay: 240ms; }
.stat-strip.in .stat:nth-child(4) { transition-delay: 360ms; }

.stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat-lbl {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
  max-width: 220px;
}

@media (max-width: 880px) {
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr; }
}

/* ---------- Practice areas (lane cards) ---------- */
.section-practice { background: var(--paper); }

.lane-list {
  border-top: 1px solid var(--rule);
}
.lane-card {
  display: grid;
  grid-template-columns: 320px 1fr 60px;
  gap: 48px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left var(--t-mid), background var(--t-mid);
}
.lane-card:hover {
  padding-left: 16px;
  background: var(--paper-edge);
}
.lane-card:hover .lane-arrow {
  color: var(--accent);
  transform: translateX(6px);
}
.lane-card:hover .lane-name { color: var(--accent); }

.lane-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color var(--t-fast);
}
.lane-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.lane-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 580px;
}
.lane-arrow {
  font-size: 22px;
  color: var(--ink-mute);
  text-align: right;
  transition: color var(--t-fast), transform var(--t-mid);
}

@media (max-width: 880px) {
  .lane-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .lane-arrow { display: none; }
}

/* ---------- Deep section (track detail) ---------- */
.section-deep { background: var(--paper-edge); }

.track {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.track:last-child { border-bottom: 0; }

.track-side { position: sticky; top: 100px; align-self: start; }
.track-num {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 88px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 72;
}
.track-label {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.track-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.track-pitch {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 640px;
}
.deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  margin-bottom: 36px;
}
.deliverables li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.deliverables li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent-text);
}

.usp {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 32px;
  font-variation-settings: "opsz" 24;
}

.link-arrow {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding: 4px 0;
}
.link-arrow span {
  display: inline-block;
  margin-left: 6px;
  transition: margin-left var(--t-mid), color var(--t-fast);
}
.link-arrow::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid);
}
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover::after {
  transform: scaleX(1); transform-origin: left;
}
.link-arrow:hover span { margin-left: 12px; color: var(--accent-text); }

@media (max-width: 880px) {
  .track {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 0;
  }
  .track-side { position: static; }
  .track-num { font-size: 64px; }
  .deliverables { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.section-about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  position: sticky;
  top: 100px;
}
.portrait-tile {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, var(--portrait-grad-from) 0%, var(--portrait-grad-to) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-slow);
}

/* Photo variant — used when a real photo replaces the monogram */
.portrait-tile--photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-edge);
  border: 1px solid var(--rule);
}
[data-theme="dark"] .portrait-tile--photo { background: var(--paper-edge); border-color: var(--rule); }
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(176,141,46,.18), transparent 60%);
}
.portrait-tile:hover { transform: scale(1.02); }
.monogram {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: clamp(140px, 18vw, 200px);
  font-weight: 600;
  line-height: .9;
  color: var(--portrait-text);
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
  position: relative;
  z-index: 1;
}
.monogram-cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--portrait-cap);
  position: relative;
  z-index: 1;
}

.about-copy { padding-top: 12px; }

.bio-name {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 12px 0 8px;
}
.bio-title {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 36px;
  letter-spacing: .01em;
}
.bio-headline {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 560px;
}

.bio-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.bio-body p strong {
  color: var(--ink);
  font-weight: 600;
}

.pull-quote {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 28px 24px;
  margin: 32px 0;
  position: relative;
  font-variation-settings: "opsz" 32;
}
.quote-mark {
  position: absolute;
  left: 0; top: 18px;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}
.quote-by {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 14px;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-portrait { position: static; max-width: 320px; margin: 0 auto; }
  .portrait-tile { max-width: 100%; }
}

/* ---------- Timeline ---------- */
.section-timeline { background: var(--paper-edge); }

.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 880px;
}
.timeline::before {
  content: "";
  position: absolute; left: 0; top: 12px; bottom: 0;
  width: 1px;
  background: var(--rule);
}

.timeline-era { margin-bottom: 56px; }
.timeline-era:last-child { margin-bottom: 0; }

.era-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1px solid var(--rule);
  padding: 0 0 10px 0;
  margin: 0 0 28px -32px;
  padding-left: 32px;
}

/* Collapsible timeline eras — closed by default (native <details>), click to open.
   The summary reuses the existing .era-label alignment (negative margin pulls it
   to the timeline rule). Milestones inside keep their existing margin so dots stay
   on the line. Mobile .era-label overrides (-28px / -22px) apply automatically. */
details.era-collapse { margin-bottom: 0; }
details.era-collapse > summary.era-label {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 16px 32px;
  margin: 0 0 0 -32px;
  border-bottom: 1px solid var(--rule);
  transition: color var(--t-fast);
}
details.era-collapse > summary.era-label:hover { color: var(--accent); }
details.era-collapse > summary::-webkit-details-marker { display: none; }
details.era-collapse > summary::marker { content: ""; }
.era-chev {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  transition: transform .25s ease;
  margin-left: 12px;
  flex-shrink: 0;
}
details.era-collapse[open] > summary .era-chev { transform: rotate(45deg); }
details.era-collapse > .era-body { padding-top: 20px; padding-bottom: 8px; }
details.era-collapse[open] { margin-bottom: 8px; }

/* Chip inside the merged track headers (What We Do) */
.track-side .lane-chip { margin-top: 12px; }

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 18px 0;
  margin-left: -32px;
  padding-left: 32px;
}
.milestone::before {
  content: "";
  position: absolute;
  left: -5px; top: 26px;
  width: 9px; height: 9px;
  background: var(--paper-edge);
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition: background var(--t-fast), transform var(--t-fast);
}
.milestone:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}

.ms-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: .04em;
}
.ms-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -.005em;
}
.ms-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .milestone {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0 16px 32px;
  }
}

/* ---------- Services ---------- */
.section-services { background: var(--paper); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service {
  background: var(--paper);
  padding: 40px 32px;
  transition: background var(--t-fast);
}
.service:hover { background: var(--paper-edge); }
.service-num {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 32;
}
.service-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.service-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.service-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.service-list li::before {
  content: "·";
  position: absolute; left: 0;
  color: var(--accent-text);
  font-weight: 700;
}

@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Cases ---------- */
.section-cases { background: var(--paper-edge); }

.case {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.case:last-child { border-bottom: 0; }

.case-side, .case-visual {
  font-family: var(--font-mono);
}
.case-meta {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.9;
}

.case-headline {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 600px;
}
.case-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.case-body p strong {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 500;
  display: inline-block;
  margin-right: 6px;
}

.case-visual { text-align: right; }
.case-numeral {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 160px;
  font-weight: 600;
  line-height: .9;
  color: var(--accent);
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
}
.case-numeral-cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.case-map {
  width: 100%;
  max-width: 220px;
  margin-left: auto;
}

.verify-flag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent-text);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .case {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  .case-visual { text-align: left; }
  .case-numeral { font-size: 100px; }
  .case-map { margin-left: 0; }
}

/* ---------- Clients ---------- */
.section-clients { background: var(--paper); }

.clients-group {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
}
.clients-head { margin-bottom: 24px; }
.clients-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.clients-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.clients-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}
.client-cell {
  background: var(--paper);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 180px;
  transition: background var(--t-fast);
}
.client-cell:hover { background: var(--paper-edge); }
.client-cell .logo-wrap {
  width: 150px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(.75);
  transition: filter .25s ease, opacity .25s ease;
}
.client-cell:hover img {
  filter: grayscale(0%) opacity(1);
}
.client-cell.dark-logo .logo-wrap {
  background: #0a0a0a;
  border-radius: 2px;
}
.client-cell.dark-logo img {
  filter: grayscale(40%) opacity(.9);
  padding: 8px 12px;
}
.client-cell.dark-logo:hover img {
  filter: none;
  opacity: 1;
}
/* Text-only cells: hide the logo box, let name center */
.client-cell.text-only .logo-wrap { display: none; }
.client-cell.text-only { justify-content: center; gap: 0; }
.client-cell.text-only .client-name { font-size: 15px; }
.client-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}
.clients-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
  font-weight: 400;
}

@media (max-width: 880px) {
  .clients-grid, .clients-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-cell { min-height: 160px; padding: 26px 18px; }
  .client-cell .logo-wrap { width: 130px; height: 64px; }
}
@media (max-width: 540px) {
  .clients-grid, .clients-grid.two-col {
    grid-template-columns: 1fr;
  }
  .client-cell { min-height: 140px; padding: 22px 18px; flex-direction: row; gap: 20px; }
  .client-cell .logo-wrap { width: 110px; height: 56px; flex-shrink: 0; }
  .client-cell .client-name { text-align: left; flex: 1; font-size: 15px; }
  .client-cell.text-only { justify-content: flex-start; flex-direction: row; padding-left: 130px; }
  .client-cell.text-only .client-name { text-align: left; }
}

/* ---------- Testimonials ---------- */
.section-testimonials { background: var(--paper-edge); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.testimonial {
  background: var(--paper-edge);
  border-top: 3px solid var(--accent);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-slow);
}
[data-theme="dark"] .testimonial { background: var(--paper-edge); }
.testimonial-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
  border-bottom: 1px solid var(--rule);
}
.testimonial:hover .testimonial-photo { transform: scale(1.02); }
.testimonial blockquote {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  padding: 28px 28px 18px 52px;
  position: relative;
  flex: 1;
  font-variation-settings: "opsz" 24;
}
.testimonial blockquote::before {
  content: "“";
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  font-weight: 600;
}
.testimonial figcaption {
  padding: 0 28px 24px;
}
.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.testimonial-role {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-top: 2px;
}

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

/* ---------- Team ---------- */
.section-team { background: var(--paper); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 0;
}
.team-card { }
.team-portrait {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  background: linear-gradient(140deg, var(--portrait-grad-from) 0%, var(--portrait-grad-to) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-slow);
}
.team-portrait.portrait-tile--photo {
  background: var(--paper-edge);
  border: 1px solid var(--rule);
}
.team-portrait .portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(176,141,46,.18), transparent 60%);
}
.team-portrait:hover { transform: scale(1.02); }
.monogram-sm {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: clamp(64px, 8vw, 88px);
  font-weight: 600;
  color: var(--portrait-text);
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 72;
  position: relative;
  z-index: 1;
}
.team-meta {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-text);
  margin-bottom: 4px;
  font-variation-settings: "opsz" 16;
}
.team-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-affiliation {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.team-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  align-items: start;
}
.advisor-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--paper-edge);
  border-left: 2px solid var(--accent);
}
.advisor-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(15%);
}
.advisor-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.advisor-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.advisor-affiliation {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  line-height: 1.5;
}
.advisor-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-portrait { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ---------- Contact ---------- */
.section-contact { background: var(--paper-edge); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 32px;
}
.contact-card {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.contact-num {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 32;
}
.contact-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.contact-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-grow: 1;
}
.contact-detail {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: color var(--t-fast);
}
.contact-detail:last-child { border-bottom: 0; }
.contact-detail:hover { color: var(--accent-text); }

#open-form {
  font-family: var(--font-sans);
  text-align: left;
  padding: 4px 0;
}

.form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 40px;
  margin-bottom: 32px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s cubic-bezier(.7,0,.3,1), opacity .4s, padding .6s, margin .6s;
}
.form-wrap[hidden] {
  display: block !important;
  max-height: 0;
  padding-top: 0; padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
}
.form-wrap.visible {
  max-height: 1200px;
  opacity: 1;
}

.inquiry-form { }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.form-field { display: block; }
.form-field-full { display: block; margin-bottom: 24px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--form-input-bg);
  border: 1px solid var(--rule);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast);
  font-family: var(--font-sans);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  border-width: 2px;
  padding: 11px 13px;
}
.form-field textarea { resize: vertical; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 13px;
  color: var(--ink-mute);
}
.form-result {
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 14px;
  border-left: 3px solid var(--accent);
  background: var(--paper-edge);
}

/* Success card — replaces form on successful submission */
.form-success-card {
  text-align: center;
  padding: 56px 32px;
  border-top: 3px solid var(--accent);
}
.form-success-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 24px;
}
.form-success-name {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}
.form-success-body {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.form-success-body a {
  color: var(--accent-text);
  border-bottom: 1px solid var(--accent-text);
}
.form-success-body a:hover {
  color: var(--accent);
}
.form-success-attribution {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 28px;
}
@media (max-width: 640px) {
  .form-success-card { padding: 40px 20px; }
  .form-success-name { font-size: 24px; }
  .form-success-body { font-size: 15px; }
}

.contact-address {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.9;
  color: var(--ink-soft);
  text-align: center;
  padding: 32px 0 0;
  border-top: 1px solid var(--rule);
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .form-wrap { padding: 28px 22px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--footer-rule);
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--accent);
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .footer-logo { width: 48px; height: 48px; }
  .footer-brand-name { font-size: 15px; white-space: normal; }
}
.footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-text-soft);
  margin-bottom: 18px;
  opacity: .85;
}
.footer-address {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-text-mute);
  letter-spacing: .04em;
}
.footer-head {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--footer-text-mute);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--footer-text-soft);
  padding: 5px 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--footer-text-mute);
  opacity: .82;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 18px; right: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px var(--whatsapp-shadow);
  z-index: 60;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.floating-whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 32px var(--whatsapp-shadow-hover);
}

@media (max-width: 768px) {
  .floating-whatsapp { display: flex; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stat-strip .stat { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .floating-whatsapp, .progress-bar, .form-wrap, .hero-ctas { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================
   Mobile-specific refinements (≤640px)
   Tap target minimums, tighter rhythm, full-width CTAs
   ============================================ */

@media (max-width: 640px) {
  /* Tighter container padding on phones */
  .container { padding: 0 18px; }

  /* Nav: bigger tap targets */
  .nav-inner { padding: 12px 18px; gap: 12px; }
  .nav-links a { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-cta { padding: 12px 16px; min-height: 44px; }
  .brand-mark { font-size: 15px; }
  .brand-word { display: none; }  /* hide "Consulting" on small screens — wordmark only */

  /* Hero: tighter top padding, full-width CTAs */
  .hero { padding: 56px 0 56px; }
  .hero-headline { font-size: clamp(34px, 8.5vw, 44px); margin-bottom: 22px; }
  .hero-subline { font-size: 16px; margin-bottom: 32px; }
  .hero-ctas { flex-direction: column; gap: 12px; margin-bottom: 56px; }
  .hero-ctas .btn { width: 100%; padding: 16px 20px; min-height: 48px; }

  /* Section padding tighter */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .section-headline { font-size: clamp(26px, 7vw, 32px); }
  .section-lede { font-size: 16px; }

  /* Stat strip — single column on phones */
  .stat-strip { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .stat-num { font-size: 38px; }
  .stat-lbl { font-size: 14px; max-width: 100%; }

  /* Link-arrow tap target (e.g., "Speak with us →") */
  .link-arrow { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }

  /* Practice lane cards */
  .lane-card { padding: 24px 0; gap: 12px; }
  .lane-card:hover { padding-left: 0; background: transparent; }
  .lane-name { font-size: 20px; }
  .lane-body { font-size: 15px; }

  /* Track section */
  .section-deep .track { padding: 48px 0; gap: 24px; }
  .track-num { font-size: 56px; margin-bottom: 8px; }
  .track-label { font-size: 20px; }
  .track-pitch { font-size: 17px; margin-bottom: 24px; }
  .deliverables { gap: 6px 0; margin-bottom: 28px; }
  .deliverables li { font-size: 15px; }
  .usp { font-size: 17px; padding: 20px 22px; }

  /* About */
  .section-about .about-grid { gap: 36px; }
  .bio-headline { font-size: 22px; margin-bottom: 22px; }
  .bio-body p { font-size: 16px; }
  .pull-quote { font-size: 19px; padding: 22px 0 22px 22px; margin: 24px 0; }
  .quote-mark { font-size: 26px; top: 14px; }

  /* Timeline */
  .timeline { padding-left: 28px; }
  .era-label { margin: 0 0 20px -28px; padding-left: 28px; }
  .milestone { margin-left: -28px; padding-left: 28px; }
  .ms-title { font-size: 17px; }
  .ms-desc { font-size: 14px; }

  /* Services */
  .service { padding: 32px 24px; }
  .service-num { font-size: 28px; margin-bottom: 14px; }
  .service-title { font-size: 20px; }
  .service-desc { font-size: 15px; margin-bottom: 18px; }

  /* Cases */
  .case { padding: 40px 0; gap: 20px; }
  .case-headline { font-size: 22px; margin-bottom: 18px; }
  .case-body p { font-size: 15px; }
  .case-numeral { font-size: 84px; }
  .case-meta { line-height: 1.85; }

  /* Clients */
  .clients-group { padding: 28px 0; }
  .clients-title { font-size: 18px; }
  .clients-list li { font-size: 16px; }

  /* Testimonials */
  .testimonial blockquote { font-size: 15px; padding: 22px 22px 14px 44px; }
  .testimonial blockquote::before { font-size: 34px; left: 16px; top: 14px; }
  .testimonial figcaption { padding: 0 22px 22px; }
  .testimonials-grid { gap: 28px; }

  /* Team */
  .team-grid { gap: 28px; margin-bottom: 0; }
  .team-name { font-size: 17px; }
  .team-bio { font-size: 13px; }

  /* Contact */
  .contact-card { padding: 28px 22px; }
  .contact-num { font-size: 26px; margin-bottom: 14px; }
  .contact-title { font-size: 18px; }
  .contact-detail { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .form-wrap { padding: 24px 18px; }
  .form-field input, .form-field select, .form-field textarea {
    padding: 14px 14px;
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 48px;
  }
  .form-field textarea { min-height: 110px; }
  .form-actions .btn { width: 100%; padding: 16px 20px; min-height: 48px; }
  .form-note { font-size: 12px; }
  .contact-address { font-size: 12px; padding: 24px 0 0; }

  /* Footer: bigger tap targets */
  .footer { padding: 48px 0 28px; }
  .footer-inner { gap: 32px; padding-bottom: 36px; }
  .footer-col a { padding: 10px 0; min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  .footer-bottom { font-size: 10px; padding-top: 24px; }

  /* Floating WhatsApp — slightly smaller, won't cover nav cta */
  .floating-whatsapp { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

@media (max-width: 640px) {
  /* Mono labels: 13px on web, 11px on mobile (more appropriate for small screens) */
  .eyebrow,
  .section-tag,
  .lane-sub,
  .clients-sub,
  .track-sub,
  .case-meta,
  .case-numeral-cap,
  .clients-tag,
  .monogram-cap,
  .advisor-meta,
  .team-affiliation,
  .form-label,
  .footer-head,
  .ms-year,
  .quote-by,
  .case-body p strong,
  .verify-flag,
  .era-label,
  .footer-address,
  .contact-address {
    font-size: 11px;
    letter-spacing: .12em;  /* slightly tighter at small size for readability */
  }
  .footer-bottom { font-size: 11px; letter-spacing: .12em; }
  .stat-lbl { font-size: 12px; }  /* not mono but related microcopy */
}

@media (max-width: 380px) {
  /* Smallest phones */
  .hero-headline { font-size: 30px; }
  .section-headline { font-size: 24px; }
  .stat-num { font-size: 34px; }
  .container { padding: 0 16px; }
  .eyebrow,
  .section-tag,
  .era-label,
  .form-label,
  .footer-head,
  .footer-bottom { font-size: 10px; letter-spacing: .1em; }
}

/* ============================================================
   MOBILE AUDIT OVERRIDES — 2026-05-25
   13 section improvements + 4 of 6 rulebook fails.
   All rules mobile-only via @media (≤880px, ≤640px).
   Desktop visuals untouched.
   ============================================================ */

/* ---- Always-on (look fine on both viewports) ---- */

/* Hamburger button hidden on desktop; shown on mobile via @media */
.nav-hamburger { display: none; }
.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform .25s, opacity .25s;
  border-radius: 1px;
}
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* CTA label variants (default: long ones visible) */
.nav-cta-short, .cta-short, .subline-short { display: none; }
.nav-cta-full, .cta-full, .subline-full { display: inline; }

/* Mobile menu (hidden on desktop) */
.mobile-menu { display: none; }

/* Mobile-only quote in About (hidden on desktop) */
.mobile-only-quote { display: none; }

/* Mobile-collapsible <details> — desktop: hide summary, content always visible */
details.mobile-collapsible > summary { display: none; }

/* Practice scale chip (visible on both — adds visual weight) */
.lane-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 11px;
  background: var(--paper-edge);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--rule);
  font-weight: 500;
}

/* Wordmark cells for clients without a real logo (Style 2 — Bold sans stacked)
   Sits in the .logo-wrap container at same dimensions as real logos.
   Matches the grayscale-default → full-color-on-hover pattern of real logos. */
.client-cell.wordmark-cell .logo-wrap {
  background: transparent;
}
.wordmark {
  text-align: center;
  line-height: 1.05;
  font-family: var(--font-sans);
  color: var(--ink);
  filter: grayscale(100%) opacity(.75);
  transition: filter .25s ease, opacity .25s ease;
}
.wordmark .wm-top {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wordmark .wm-bottom {
  display: block;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.client-cell.wordmark-cell:hover .wordmark {
  filter: grayscale(0%) opacity(1);
}
@media (max-width: 640px) {
  .wordmark .wm-top { font-size: 15px; }
  .wordmark .wm-bottom { font-size: 8px; }
}

/* Text-only client cell styled as monospace wordmark (both viewports) */
.client-cell.text-only .logo-wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
  background: var(--paper-edge);
  border-radius: 4px;
  width: 150px;
  height: 72px;
}
.client-cell.text-only .logo-wrap::before {
  content: "—";
  margin-right: 4px;
  color: var(--accent);
  opacity: 0.6;
}

/* Contact address as soft card (both) */
.contact-address {
  background: var(--paper-edge);
  padding: 22px 24px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  font-style: normal;
}

/* ============================================================
   ≤880 px — Tablet & phone
   ============================================================ */
@media (max-width: 880px) {
  /* Show hamburger, hide theme toggle (moves to overlay) */
  .nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: transparent;
  }
  .theme-toggle { display: none; }

  /* Mobile menu overlay
     IMPORTANT: don't use transform: translateX(100%) for off-canvas — even with
     position: fixed + body{overflow-x:hidden}, transformed elements expand the
     document's scrollWidth at ≤880px viewports. This caused a 2x scroll-width
     regression on tablet (768px → scrollWidth 1506) and mobile.
     Use right-based off-canvas positioning — position:fixed with right negative
     properly stays outside the viewport without contributing to scroll width. */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    background: var(--paper);
    z-index: 100;
    padding: 88px 24px 32px;
    transform: translate3d(100%, 0, 0);  /* off-screen, 3d gpu-compositor isolation */
    transition: transform .3s ease, visibility 0s .3s;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    /* contain layout/paint so the off-screen translate doesn't bleed scroll dims */
    contain: layout paint size;
    /* Pin width = exactly viewport so transform 100% takes it off the right edge */
    box-sizing: border-box;
  }
  .mobile-menu.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, visibility 0s 0s;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  }
  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
  }
  .mobile-menu-inner a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    letter-spacing: -0.005em;
  }
  .mobile-menu-foot {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
  }
  .mobile-theme-toggle {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding: 12px 18px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    min-height: 44px;
    background: transparent;
  }

  /* Lock scroll when menu open */
  body.menu-open { overflow: hidden; }
}

/* ============================================================
   ≤640 px — Phone only
   ============================================================ */
@media (max-width: 640px) {

  /* ---- CTA / Subline short variants ---- */
  .subline-full { display: none; }
  .subline-short { display: inline; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
  .nav-cta { padding: 10px 14px; font-size: 13px; min-height: 44px; }

  /* ---- About — pull-quote first (CSS swap, not DOM reorder) ---- */
  .mobile-only-quote {
    display: block !important;
    margin: 14px 0 22px;
  }
  .desktop-only-quote { display: none; }

  /* ---- Hero stats — horizontal scroll-snap (overrides 1-col rule) ---- */
  .stat-strip {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -18px;
    padding: 28px 18px 16px;
    scrollbar-width: none;
  }
  .stat-strip::-webkit-scrollbar { display: none; }
  .stat {
    flex: 0 0 64%;
    scroll-snap-align: start;
    padding: 16px 0 0;
    border-top: 1px solid var(--rule);
    max-width: none;
  }
  .stat-num { font-size: 32px; }
  .stat-lbl { max-width: none; }

  /* ---- Mobile-collapsible details (deliverables, bio-extended) ---- */
  details.mobile-collapsible > summary {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin: 12px 0 0;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    list-style: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    min-height: 44px;
  }
  details.mobile-collapsible > summary::-webkit-details-marker { display: none; }
  details.mobile-collapsible > summary::marker { content: ""; }
  details.mobile-collapsible[open] > summary { border-bottom: 0; }
  details.mobile-collapsible .ma-chev {
    font-size: 22px;
    line-height: 1;
    transition: transform .25s ease;
    display: inline-block;
    color: var(--accent);
  }
  details.mobile-collapsible[open] > summary .ma-chev { transform: rotate(45deg); }
  details.mobile-collapsible[open] > .deliverables,
  details.mobile-collapsible[open] > p { margin-top: 14px; }
  details.mobile-collapsible > .deliverables { border-top: 0; padding-top: 0; }

  /* ---- Deep tracks — USP-first via flex order ---- */
  .track-body { display: flex; flex-direction: column; }
  .track-body .track-pitch { order: 1; }
  .track-body .usp {
    order: 0;
    margin: 4px 0 16px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.55;
  }
  .track-body details.mobile-collapsible { order: 2; }
  .track-body .link-arrow { order: 3; margin-top: 16px; }

  /* ---- Track side label — compact inline ---- */
  .track-side {
    display: flex !important;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 0;
    position: static !important;
  }
  .track-num {
    font-size: 14px !important;
    color: var(--accent) !important;
    font-weight: 700;
    font-family: var(--font-mono);
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
  }
  .track-num::after {
    content: " ·";
    color: var(--ink-mute);
    margin-left: 4px;
  }
  .track-label {
    font-size: 14px !important;
    font-weight: 600;
    margin: 0 !important;
  }
  .track-sub { display: none; }

  /* ---- About — shrink portrait ---- */
  .about-portrait { max-width: 240px; margin: 0 auto; }
  .portrait-tile.portrait-tile--photo { aspect-ratio: 1; }

  /* ---- Timeline — bold era dividers + compact rows ---- */
  .era-label {
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    /* CRITICAL: preserve the 22px padding-left so label aligns with milestone
       content (which has margin-left: -22px + padding-left: 22px on mobile).
       Earlier shorthand padding wiped padding-left and caused era label to
       extend past timeline rule into adjacent content. */
    padding: 14px 0 10px 22px !important;
    margin: 0 0 8px -22px !important;
    border-bottom: 2px solid var(--accent) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  .ms-year {
    font-size: 11px !important;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    margin-bottom: 2px !important;
  }
  .ms-title { font-size: 14px !important; line-height: 1.35; }
  .ms-desc { font-size: 14px !important; color: var(--ink-mute); margin-top: 4px; }
  .milestone { padding: 10px 0 !important; }

  /* ---- Team — horizontal rows with circular avatars ---- */
  .team-grid {
    gap: 0 !important;
    grid-template-columns: 1fr !important;
  }
  .team-card {
    display: grid !important;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--rule);
    margin: 0;
  }
  .team-card:last-child { border-bottom: 0; }
  .team-portrait,
  .team-portrait.portrait-tile,
  .team-portrait.portrait-tile--photo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    overflow: hidden;
    aspect-ratio: 1 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  .team-portrait .portrait-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
  }
  .team-meta {
    grid-column: 2;
    font-size: 10px !important;
    margin: 0 !important;
  }
  .team-name { grid-column: 2; font-size: 15px !important; margin: 3px 0 0 !important; }
  .team-affiliation { grid-column: 2; font-size: 12px !important; margin: 2px 0 0 !important; }
  .team-bio {
    grid-column: 1 / -1;
    font-size: 15px !important;
    margin-top: 12px !important;
    line-height: 1.6;
  }

  /* ---- Clients — 2-col mobile (overrides existing 1-col rule) ---- */
  .clients-grid,
  .clients-grid.two-col {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .client-cell {
    min-height: 130px !important;
    padding: 14px 10px !important;
    flex-direction: column !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .client-cell .logo-wrap {
    width: 100% !important;
    height: 56px !important;
    flex-shrink: 0;
  }
  .client-cell .client-name {
    text-align: center !important;
    flex: none !important;
    font-size: 12px !important;
    line-height: 1.3;
  }
  .client-cell.text-only {
    flex-direction: column !important;
    padding: 14px 10px !important;
    justify-content: center !important;
  }
  .client-cell.text-only .logo-wrap {
    width: 100% !important;
    height: 56px !important;
  }
  .client-cell.text-only .client-name { text-align: center !important; }

  /* ---- Testimonials — horizontal swipe carousel ---- */
  .testimonials-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -18px !important;
    padding: 0 18px 18px !important;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial {
    flex: 0 0 88%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }
  .testimonial-photo {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
    margin: 18px 0 0 18px !important;
    border-bottom: 0 !important;
  }
  .testimonial blockquote {
    padding: 14px 18px 8px !important;
    font-size: 16px !important;
    line-height: 1.6;
  }
  .testimonial blockquote::before {
    left: 8px !important;
    top: 6px !important;
    font-size: 28px !important;
  }
  .testimonial figcaption {
    padding: 0 18px 20px !important;
  }
  .testimonial-name { font-size: 14px !important; }
  .testimonial-role { font-size: 12px !important; }

  /* ---- Contact — WhatsApp-first order ---- */
  .contact-grid {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
  }
  .contact-card { margin: 0 !important; }
  .contact-card:nth-child(1) { order: 3; }  /* form last */
  .contact-card:nth-child(2) { order: 1; }  /* WhatsApp first */
  .contact-card:nth-child(3) { order: 2; }  /* email second */

  /* ---- Footer — 2-col grid with brand spanning top ---- */
  .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 18px !important;
    grid-template-areas:
      "brand brand"
      "sec   prac"
      "conn  conn" !important;
    padding-bottom: 36px;
  }
  .footer-brand { grid-area: brand; }
  .footer-col:nth-child(2) { grid-area: sec; }
  .footer-col:nth-child(3) { grid-area: prac; }
  .footer-col:nth-child(4) { grid-area: conn; }

  /* ---- Floating WhatsApp — restrained pill + safe-area ---- */
  .floating-whatsapp {
    width: auto !important;
    height: auto !important;
    padding: 10px 14px 10px 12px !important;
    border-radius: 100px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 2px var(--accent) !important;
    background: #25D366 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 44px;
  }
  .floating-whatsapp svg { width: 20px !important; height: 20px !important; }
  .floating-whatsapp::after {
    content: "Chat";
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}
/* ============================================================
   ACHIEVEMENTS SECTION — NASSCOM Silver Jubilee · 2013
   Layout: square plaque tile (left) + citation text (right)
   ============================================================ */
.section-achievements {
  background: var(--paper);
}
.achievements-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.achievements-plaque {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #1a1a1a;
}
.achievements-plaque picture,
.achievements-plaque img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.achievements-text .section-tag {
  margin-bottom: 16px;
}
.achievements-text .section-headline {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.achievements-text .section-headline em {
  font-family: var(--font-serif-italic);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.achievements-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 24px;
}
.achievements-quote {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--paper-edge);
  border-radius: 0 4px 4px 0;
  font-variation-settings: "opsz" 24;
}
.achievements-attrib {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  font-weight: 500;
}
/* Further contributions (1995 manual + 2023 EAC) */
.achievements-more {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.achievements-more-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: baseline;
}
.achievements-more-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.achievements-more-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 880px) {
  .achievements-inner {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
  .achievements-text .section-headline { font-size: 28px; }
  .achievements-body { font-size: 16px; }
  .achievements-quote { font-size: 16px; }
}
@media (max-width: 640px) {
  .achievements-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
  }
  .achievements-plaque {
    max-width: 280px;
    margin: 0 auto;
    /* width:100% is REQUIRED — without it the auto-margins collapse the grid
       item to its content width, and since the image is loading="lazy" at 0x0
       it never enters the viewport, never loads, and the plaque stays invisible. */
    width: 100%;
  }
  .achievements-text .section-headline { font-size: 24px; }
  .achievements-body { font-size: 15px; }
  .achievements-quote { font-size: 15px; padding: 14px 16px; }
  .achievements-attrib { font-size: 11px; }
}

/* ============================================================
   CONTACT ADDRESS · Option A — Carded with map-pin + actions
   ============================================================ */
.contact-address {
  background: var(--paper-edge);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 32px;
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  position: relative;
  margin: 40px 0 0;
  /* Desktop: 3-column horizontal layout (label | address | actions) */
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.contact-address::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.contact-address-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
}
.contact-address-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.contact-address-body {
  font-size: 15px;
  line-height: 1.65;
}
.contact-address-body strong {
  font-weight: 600;
  color: var(--ink);
}
.contact-address-actions {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.contact-address-actions a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.contact-address-actions a:hover {
  border-bottom-color: var(--accent);
}

/* Tablet: stack into 2 rows (label+address top, actions below) */
@media (max-width: 980px) {
  .contact-address {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-address-actions {
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }
}

/* Mobile: stack actions vertically (as before) */
@media (max-width: 640px) {
  .contact-address {
    padding: 22px 24px;
    font-size: 14px;
    margin: 32px 0 0;
    gap: 14px;
  }
  .contact-address::before {
    top: 22px; bottom: 22px;
  }
  .contact-address-body { font-size: 14px; }
  .contact-address-actions {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    padding-top: 12px;
  }
  .contact-address-actions a { min-height: 44px; }
}

/* ============================================================
   MOBILE BUGFIX SHIP — 2026-05-25 (post-audit screenshots)
   7 critical fixes per mobile-bugfix-approval.html
   ============================================================ */

/* Fallback for any in-page anchor: clears sticky nav offset */
section[id] { scroll-margin-top: 80px; }

/* ============================================================
   ≤880 px — Nav fixes
   ============================================================ */
@media (max-width: 880px) {
  /* BUG 1: Hamburger to extreme right */
  .nav-hamburger { order: 99; }

  /* BUG 2: Nav must sit ABOVE the mobile menu overlay so hamburger remains tappable */
  .nav { z-index: 150 !important; }
  .mobile-menu { z-index: 140 !important; }

  /* BUG 3: Menu padding-top clears sticky nav + iOS safe-area; bottom respects home indicator */
  .mobile-menu {
    padding-top: calc(76px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ============================================================
   ≤640 px — Section fixes
   ============================================================ */
@media (max-width: 640px) {
  /* BUG 4: Hero stats — 2x2 grid, no scroll (eliminates left-edge cut) */
  .stat-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 18px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 28px 0 16px !important;
    scroll-snap-type: none !important;
  }
  .stat {
    flex: none !important;
    max-width: none !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid var(--rule);
  }
  .stat-num { font-size: 30px !important; }
  .stat-lbl { font-size: 13px !important; }

  /* BUG 5: Timeline dot aligns with year line; tighter padding for more text room */
  .timeline { padding-left: 22px !important; }
  .milestone {
    margin-left: -22px !important;
    padding-left: 22px !important;
  }
  .milestone::before {
    top: 14px !important;     /* aligns with year baseline */
    left: -4px !important;
    width: 9px !important;
    height: 9px !important;
  }
  .timeline::before {
    left: 0 !important;
    top: 8px !important;
  }

  /* BUG 6: Team — name leads, role middle, domain meta last in small mono gold */
  .team-card {
    /* Already grid: 80px 1fr from prior CSS; just reorder right column */
  }
  .team-card > .team-portrait { grid-row: 1 / 4; }
  .team-card > .team-name        { order: 1; }
  .team-card > .team-affiliation { order: 2; }
  .team-card > .team-meta {
    order: 3;
    font-family: var(--font-mono) !important;
    font-style: normal !important;
    font-size: 9.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--accent) !important;
    margin-top: 6px !important;
  }
  .team-card > .team-bio {
    order: 4;
    grid-column: 1 / -1 !important;
  }
}

/* ============================================================
   END MOBILE BUGFIX SHIP
   ============================================================ */

/* Contact phone — single number, two actions */
.contact-phone {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
  cursor: default;
}
.contact-phone-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.contact-phone-actions a {
  color: var(--accent);
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-phone-actions a:hover {
  border-bottom-color: var(--accent);
}
.contact-phone-actions span {
  color: var(--ink-mute);
  opacity: 0.4;
}
@media (max-width: 640px) {
  .contact-phone { font-size: 17px; }
  .contact-phone-actions { font-size: 12px; gap: 8px; }
}

/* ============================================================
   END MOBILE AUDIT OVERRIDES
   ============================================================ */
