/* =========================================================
   QUIET AUTHORITY — DESIGN TOKENS
   ========================================================= */
:root {
  --ink:         #0F1419;
  --ink-soft:    #1A1F28;
  --paper:       #FAFAF7;
  --paper-alt:   #F4F2EB;
  --stone:       #5C5C57;
  --stone-light: #7A7770;
  --line:        #E8E6DF;
  --line-dark:   rgba(255,255,255,0.15);
  --accent:      #A0692B;
  --accent-hi:   #C48A44;
  --navy:        #0A1929;
  --navy-deep:   #061220;

  --on-dark:     #F8F6EF;
  --on-dark-2:   rgba(248, 246, 239, 0.78);
  --on-dark-3:   rgba(248, 246, 239, 0.72);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --radius-sm: 2px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* =========================================================
   RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Gradient wave canvas — sits behind content, above background */
#waveCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Paper grain — subtle global texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; touch-action: manipulation; }

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.container-narrow { max-width: 820px; }

.section    { padding: 120px 0; position: relative; }
.section-lg { padding: 160px 0; }
@media (min-width: 900px) {
  .section    { padding: 160px 0; }
  .section-lg { padding: 216px 0; }
}

/* =========================================================
   HAIRLINE DIVIDER
   ========================================================= */
.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
  max-width: 1176px;
  width: calc(100% - 64px);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-block { display: inline-block; margin-bottom: 24px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.1; }
h3 { font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.2; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--stone);
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 62ch;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.2em; }

/* =========================================================
   LINKS & CTAs
   ========================================================= */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  transition: color .2s var(--ease), gap .25s var(--ease);
}
.link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform .3s var(--ease);
}
.link .arrow { transition: transform .25s var(--ease); }
.link:hover { gap: 14px; color: var(--accent); }
.link:hover .arrow { transform: translateX(2px); }
.link:active { opacity: 0.75; }

.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--accent-hi); }

.link-quiet {
  color: var(--stone);
  font-size: 15px;
}
.link-quiet::after { background: var(--line); }
.link-quiet:hover { color: var(--ink); }
.link-quiet:hover::after { background: currentColor; }

.link-on-dark { color: var(--on-dark); }
.link-on-dark:hover { color: var(--accent-hi); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FAFAF7;
  border-bottom: 1px solid transparent;
  overflow: visible;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  min-height: 80px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand:hover { color: var(--accent); }
.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  .brand { font-size: 18px; gap: 10px; }
  .brand-logo { width: 44px; height: 44px; }
}

.nav-links {
  display: none;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  padding: 8px 2px;
  transition: color .2s var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav-cta[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav-cta[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  position: relative;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle-inner {
  position: relative;
  width: 24px;
  height: 16px;
}
.nav-toggle-inner span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-inner span:nth-child(1) { top: 2px; }
.nav-toggle-inner span:nth-child(2) { top: 8px; }
.nav-toggle-inner span:nth-child(3) { top: 14px; }
.nav-toggle.is-open .nav-toggle-inner span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-inner span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-inner span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  padding: 16px 32px 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-family: var(--serif);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}
.mobile-nav a:last-child:hover {
  background: var(--ink);
  color: var(--paper);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: min(82dvh, 780px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) {
  .hero {
    min-height: min(88dvh, 880px);
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

/* Hero warm glow — reduced, single subtle sheen */
.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -320px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center,
    rgba(196, 138, 68, 0.07),
    rgba(196, 138, 68, 0.02) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Hero editorial left rule */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--line) 10%,
    var(--line) 90%,
    transparent 100%);
  opacity: 0.7;
  z-index: -1;
}
@media (min-width: 900px) {
  .hero::after { left: 48px; }
}

/* Hero image slot — reserved for user-supplied abstract image */
.hero-image {
  position: absolute;
  top: 64px;
  right: 40px;
  width: 340px;
  height: 340px;
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
@media (max-width: 1100px) {
  .hero-image { width: 220px; height: 220px; top: 32px; right: 16px; }
}
@media (max-width: 960px) {
  .hero-image { display: none; }
}

.hero-inner { max-width: 960px; position: relative; z-index: 2; }
.hero h1 {
  margin-bottom: 36px;
  max-width: 40ch;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 .line {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero h1 .line.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero h1 .line.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero h1 .line.reveal:nth-child(1).is-visible { transition-delay: 120ms; }
.hero h1 .line.reveal:nth-child(2).is-visible { transition-delay: 320ms; }
.hero h1 .line.reveal:nth-child(3).is-visible { transition-delay: 560ms; }

.hero .subline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--stone);
  max-width: 58ch;
  margin: 0 0 36px;
}

/* Hero proof strip — credibility above the fold */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 48px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--stone);
  font-feature-settings: "lnum", "tnum";
}
.hero-proof-star {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1;
}
.hero-proof-strong {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}
.hero-proof-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

/* =========================================================
   PROOF BAR
   ========================================================= */
.proof { padding: 64px 0; position: relative; }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
}
@media (min-width: 700px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat { text-align: left; }
.stat-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "lnum", "tnum";
  letter-spacing: -0.02em;
}
.stat-number sup,
.stat-number .unit {
  font-size: 0.5em;
  vertical-align: top;
  color: var(--accent);
  font-weight: 500;
  margin-left: 2px;
}
.stat-label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--stone);
  letter-spacing: 0.02em;
  max-width: 22ch;
  line-height: 1.4;
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head { margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 20px; display: inline-block; }
.section-head h2 { max-width: 20ch; }

/* =========================================================
   PROBLEM (editorial)
   ========================================================= */
.pullquote {
  margin: 56px 0;
  padding: 0 0 0 32px;
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
  position: relative;
}

/* =========================================================
   APPROACH — 3 STEPS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
.step-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 14px; }
.step p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.65;
  max-width: 36ch;
}

/* =========================================================
   CASE STUDY (navy full-bleed)
   ========================================================= */
.case {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(196, 138, 68, 0.06), transparent 50%),
    radial-gradient(circle at 1px 1px, rgba(196, 138, 68, 0.04) 1px, transparent 1.5px);
  background-size: auto, 36px 36px;
  color: var(--on-dark);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) { .case { padding: 160px 0; } }

/* Case monogram watermark */
.case-mark {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 520px;
  height: 520px;
  color: var(--accent-hi);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
@media (max-width: 700px) {
  .case-mark {
    width: 320px;
    height: 320px;
    bottom: -40px;
    right: -60px;
    opacity: 0.09;
  }
}

.case .container { z-index: 2; }
.case .eyebrow { color: var(--accent-hi); margin-bottom: 24px; display: inline-block; }
.case-descriptor {
  font-size: 15px;
  color: var(--on-dark-2);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.case-outcome {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-bottom: 12px;
  font-feature-settings: "lnum", "tnum";
}
.case-outcome-label {
  font-size: 15px;
  color: var(--on-dark-2);
  margin-bottom: 56px;
}
.case-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--on-dark);
  max-width: 38ch;
  margin: 0 0 32px;
  position: relative;
}
.case-quote::before { content: "\201C"; color: var(--accent-hi); }
.case-quote::after  { content: "\201D"; color: var(--accent-hi); }
.case-attribution {
  font-size: 14px;
  color: var(--on-dark-3);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

/* =========================================================
   SERVICES LIST
   ========================================================= */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.services-list li { border-bottom: 1px solid var(--line); }
.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
  transition: transform .3s var(--ease), color .2s var(--ease);
  will-change: transform;
}
@media (min-width: 900px) {
  .service-row { padding: 56px 0; }
}
.service-row:hover,
.service-row:active { transform: translateX(12px); }
.service-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
  flex: 1 1 auto;
  transition: color .2s var(--ease);
}
.service-row:hover .service-title,
.service-row:active .service-title { color: var(--accent); }
.service-meta {
  font-size: 15px;
  color: var(--stone);
  text-align: right;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  max-width: 32ch;
  display: none;
  line-height: 1.5;
}
@media (min-width: 700px) { .service-meta { display: block; } }
.service-arrow {
  flex: 0 0 auto;
  color: var(--stone);
  font-family: var(--serif);
  font-size: 24px;
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.service-row:hover .service-arrow,
.service-row:active .service-arrow { color: var(--accent); transform: translateX(8px); }

/* =========================================================
   CLOSING
   ========================================================= */
.closing {
  text-align: center;
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .closing { padding: 216px 0 160px; } }

.closing h2 { max-width: 22ch; margin: 0 auto 48px; }
.closing-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
  color: var(--stone);
  font-size: 16px;
}
.closing-meta .sep { width: 4px; height: 4px; background: var(--line); border-radius: 50%; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--paper-alt);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}
.footer h2.footer-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li { margin-bottom: 10px; }
.footer-list a,
.footer-list .footer-address {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.5;
  transition: color .2s var(--ease);
}
.footer-list a:hover { color: var(--accent); }
.footer-address { font-style: normal; }

.footer-brand { max-width: 36ch; }
.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  object-fit: contain;
  display: block;
}
.footer-brand .brand { font-size: 24px; margin-bottom: 16px; display: block; padding: 0; }
.footer-brand p { font-size: 15px; color: var(--stone); line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--stone);
  letter-spacing: 0.02em;
}
.footer-legal-links a {
  color: var(--stone);
  margin-right: 24px;
}
.footer-legal-links a:last-child { margin-right: 0; }
.footer-legal-links a:hover { color: var(--ink); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.proof-grid .reveal:nth-child(2)    { transition-delay: 60ms; }
.proof-grid .reveal:nth-child(3)    { transition-delay: 120ms; }
.proof-grid .reveal:nth-child(4)    { transition-delay: 180ms; }
.steps .reveal:nth-child(2)         { transition-delay: 80ms; }
.steps .reveal:nth-child(3)         { transition-delay: 160ms; }
.services-list .reveal:nth-child(2) { transition-delay: 60ms; }
.services-list .reveal:nth-child(3) { transition-delay: 120ms; }
.services-list .reveal:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.is-visible { transition: none; }
  html { scroll-behavior: auto; }
  .service-row:hover,
  .service-row:active { transform: none; }
  .service-row:hover .service-arrow,
  .service-row:active .service-arrow { transform: none; }
}

/* =========================================================
   FOCUS
   ========================================================= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   SELECTION
   ========================================================= */
::selection { background: var(--accent); color: var(--paper); }

/* =========================================================
   PILLAR PAGE STYLES
   ========================================================= */

/* Breadcrumb */
.breadcrumb {
  padding: 32px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  position: relative;
  z-index: 2;
}
.breadcrumb a { color: var(--stone); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .crumb-sep { margin: 0 10px; color: var(--line); }
.breadcrumb .crumb-current { color: var(--ink); }

/* Pillar hero — shorter than homepage hero */
.hero.is-pillar {
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 96px;
  display: block;
  overflow: visible;
}
@media (min-width: 900px) {
  .hero.is-pillar { padding-top: 88px; padding-bottom: 144px; }
}
.hero.is-pillar .hero-inner { max-width: 900px; }
.hero.is-pillar h1 {
  margin-bottom: 32px;
  max-width: 18ch;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero.is-pillar h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero.is-pillar .subline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--stone);
  max-width: 60ch;
  margin: 0 0 48px;
}
.hero.is-pillar::before,
.hero.is-pillar::after { display: none; }

/* Deliverables grid */
.pillar-includes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 64px;
  margin: 0;
}
@media (min-width: 800px) {
  .pillar-includes { grid-template-columns: 1fr 1fr; }
}
.pillar-item { margin: 0; }
.pillar-item-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  font-weight: 500;
}
.pillar-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 20ch;
}
.pillar-item p {
  margin: 0;
  color: var(--stone);
  font-size: 17px;
  line-height: 1.65;
  max-width: 42ch;
}

/* Fit — two-column comparison */
.pillar-fit {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .pillar-fit { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.fit-col h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.fit-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fit-col li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.fit-col li:last-child { border-bottom: 0; }

/* Related pillars — horizontal card rail */
.related-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .related-pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  display: block;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease);
}
.pillar-card:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .pillar-card {
    padding: 48px 40px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .pillar-card:last-child { border-right: 0; padding-right: 0; }
  .pillar-card:first-child { padding-left: 0; }
}
.pillar-card-num {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  margin: 0 0 14px;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.pillar-card p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 34ch;
}
.pillar-card-link {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.pillar-card:hover h3 { color: var(--accent); }
.pillar-card:hover .pillar-card-link { gap: 12px; color: var(--accent-hi); }
@media (prefers-reduced-motion: reduce) {
  .pillar-card,
  .pillar-card:hover .pillar-card-link { transition: none; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-top: 48px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 96px; }
}
.contact-block h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  color: var(--ink);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-detail { margin-bottom: 32px; }
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.contact-detail-value {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
}
.contact-detail-value a:hover { color: var(--accent); }
.contact-detail-note {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--stone);
  font-style: italic;
}
.contact-hours {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.contact-hours div { margin-bottom: 4px; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.team-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 700px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
}
@media (min-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 48px; }
}
.team-member { margin: 0; }
.team-photo {
  display: block;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--paper-alt);
  margin: 0 0 22px;
  -webkit-user-drag: none;
  user-select: none;
}
.coming-soon-note {
  font-size: 14px !important;
  color: var(--stone-light) !important;
  font-style: italic;
}
.team-photo-placeholder {
  aspect-ratio: 4/5;
  max-width: 240px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 22px;
  position: relative;
}
.team-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.team-member-role {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.team-member h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.2;
}
.team-member p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  max-width: 38ch;
  margin: 0 0 14px;
}
.team-member p:last-child { margin-bottom: 0; }

/* =========================================================
   CASE STUDIES PAGE
   ========================================================= */
.case-study-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0 0;
}
.case-study-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
@media (min-width: 800px) {
  .case-study-card {
    grid-template-columns: 280px 1fr;
    gap: 64px;
    padding: 72px 0;
  }
}
.case-study-card:hover { padding-left: 12px; }
.case-study-descriptor {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.case-study-outcome {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  font-feature-settings: "lnum", "tnum";
}
.case-study-outcome-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--stone);
  line-height: 1.5;
}
.case-study-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 30ch;
}
.case-study-summary {
  color: var(--stone);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 56ch;
}
.case-study-link {
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.case-study-card:hover .case-study-link {
  gap: 12px;
  color: var(--accent-hi);
}

/* =========================================================
   INSIGHTS PAGE
   ========================================================= */
.insights-streams {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 900px) {
  .insights-streams { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.insight-stream {
  padding: 40px 0;
  border-top: 1px solid var(--accent);
}
.insight-stream-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.insight-stream h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  color: var(--ink);
  margin: 0 0 14px;
}
.insight-stream p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 40ch;
}
.insight-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.insight-posts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.insight-posts li:last-child { border-bottom: 0; }
.insight-posts a {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.35;
  transition: color .2s var(--ease);
}
.insight-posts a:hover { color: var(--accent); }
.insight-post-date {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
  font-weight: 500;
}

/* Coming-soon placeholder */
.coming-soon {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* =========================================================
   NAV DROPDOWN (desktop)
   ========================================================= */
.nav-dropdown-wrap {
  position: relative;
}
.nav-link-has-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-chevron {
  font-size: 13px;
  line-height: 1;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.nav-dropdown-wrap:hover .nav-chevron,
.nav-dropdown-wrap:focus-within .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  box-shadow: 0 12px 28px rgba(20, 15, 0, 0.08);
  z-index: 60;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.nav-dropdown a {
  display: block;
  padding: 12px 24px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: var(--accent);
  background: var(--paper-alt);
  outline: 0;
}

/* =========================================================
   MOBILE NAV GROUP (expandable)
   ========================================================= */
.mobile-nav-group {
  border-bottom: 1px solid var(--line);
}
.mobile-nav-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mobile-nav-chevron {
  font-size: 14px;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.mobile-nav-group-toggle[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(180deg);
}
.mobile-nav-submenu {
  display: none;
  padding: 4px 0 16px 16px;
}
.mobile-nav-submenu.is-open {
  display: block;
}
.mobile-nav-submenu a {
  display: block;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--stone);
  border-bottom: 0;
}
.mobile-nav-submenu a:hover,
.mobile-nav-submenu a:focus-visible { color: var(--accent); }
.mobile-nav-group + a { border-top: 0; }
.mobile-nav > a { border-bottom: 1px solid var(--line); }

/* =========================================================
   INQUIRY FORM
   ========================================================= */
.inquiry-form {
  display: grid;
  gap: 36px;
  max-width: 720px;
  margin: 48px 0 0;
}
.form-row {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.form-field { display: block; }
.form-label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.form-label-req::after {
  content: " *";
  color: var(--accent);
}
.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-bottom-color: var(--stone-light);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 0;
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--stone-light);
  font-style: italic;
  opacity: 1;
}
.form-select {
  padding-right: 32px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A0692B' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.form-textarea {
  min-height: 140px;
  padding: 14px 0;
  resize: vertical;
  line-height: 1.6;
  font-size: 17px;
}
.form-helper {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--stone);
  margin: 8px 0 0;
  line-height: 1.5;
  font-style: italic;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
.form-submit {
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.form-submit:hover { background: var(--accent); }
.form-submit:active { transform: translateY(1px); }
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--stone);
}
.form-disclaimer {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--stone);
  font-style: italic;
  line-height: 1.5;
  max-width: 52ch;
  margin: 0;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-success {
  display: none;
  padding: 24px 28px;
  border: 1px solid var(--accent);
  background: var(--paper-alt);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin-top: 32px;
}
.form-success.is-visible { display: block; }

/* =========================================================
   TEAM ACCORDION (about page)
   ========================================================= */
.team-accordion {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.team-card {
  border-bottom: 1px solid var(--line);
}
.team-card-header {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: padding .25s var(--ease);
}
@media (hover: hover) {
  .team-card-header:hover { padding-left: 12px; }
}
.team-card-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.02em;
  min-width: 44px;
  flex: 0 0 auto;
  line-height: 1;
}
.team-card-label {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.team-card-role {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  color: var(--ink);
  line-height: 1.15;
  transition: color .2s var(--ease);
}
.team-card-header:hover .team-card-name { color: var(--accent); }
.team-card-chevron {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .35s var(--ease), color .2s var(--ease);
}
.team-card[data-open="true"] .team-card-chevron {
  transform: rotate(45deg);
  color: var(--accent);
}
.team-card[data-open="true"] .team-card-name { color: var(--accent); }

/* The expanding panel — grid-rows trick for smooth auto-height transition */
.team-card-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.team-card[data-open="true"] .team-card-panel {
  grid-template-rows: 1fr;
}
.team-card-panel > div {
  overflow: hidden;
  min-height: 0;
}
.team-card-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 12px 0 48px;
}
@media (min-width: 760px) {
  .team-card-panel-inner {
    grid-template-columns: 280px 1fr;
    gap: 56px;
    padding-bottom: 56px;
  }
}
.team-card-photo {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--paper-alt);
  -webkit-user-drag: none;
  user-select: none;
}
.team-card-bio {
  color: var(--stone);
  font-size: 17px;
  line-height: 1.65;
  max-width: 58ch;
}
.team-card-bio p { margin: 0 0 14px; }
.team-card-bio p:last-child { margin-bottom: 0; }
.team-card-bio .coming-soon-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--stone-light);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .team-card-header,
  .team-card-chevron,
  .team-card-panel,
  .team-card-name { transition: none; }
}

/* =========================================================
   TEAM HOVER CARDS (about page)
   Default: 3 compact, fixed-width cards side-by-side.
   Each card: photo + role + name. No bio visible.
   On hover: the hovered card GROWS horizontally (fixed basis increases),
   revealing the bio to the right of the photo. Other cards stay the same
   size — they do not shrink.
   ========================================================= */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.team-hover-card {
  flex: 0 0 220px;           /* fixed basis, no grow, no shrink */
  display: grid;
  grid-template-columns: 1fr 0fr;
  grid-template-rows: auto auto auto auto;
  column-gap: 0;
  row-gap: 12px;
  overflow: hidden;
  transition: flex-basis .55s var(--ease),
              grid-template-columns .55s var(--ease),
              column-gap .55s var(--ease);
}

.team-photo-wrap {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-alt);
}
.team-hover-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-user-drag: none;
  user-select: none;
}

.team-hover-role {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.team-hover-name {
  grid-column: 1 / -1;
  grid-row: 3;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.7vw, 1.5rem);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.team-hover-bio {
  grid-column: 1 / -1;
  grid-row: 4;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease);
}
.team-hover-bio p { margin: 0 0 10px; max-width: 44ch; }
.team-hover-bio p:last-child { margin-bottom: 0; }
.team-hover-bio .coming-soon-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--stone-light);
  font-style: italic;
}

/* HOVER — card expands horizontally; others stay put. */
@media (hover: hover) and (min-width: 900px) {
  .team-hover-card:hover,
  .team-hover-card:focus-within {
    flex-basis: 560px;
    grid-template-columns: 220px 1fr;
    column-gap: 28px;
  }
  .team-hover-card:hover .team-photo-wrap,
  .team-hover-card:focus-within .team-photo-wrap {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
  }
  .team-hover-card:hover .team-hover-role,
  .team-hover-card:focus-within .team-hover-role {
    grid-column: 2;
    grid-row: 1;
    padding-top: 2px;
  }
  .team-hover-card:hover .team-hover-name,
  .team-hover-card:focus-within .team-hover-name {
    grid-column: 2;
    grid-row: 2;
  }
  .team-hover-card:hover .team-hover-bio,
  .team-hover-card:focus-within .team-hover-bio {
    grid-column: 2;
    grid-row: 3 / span 2;
    max-height: 500px;
    opacity: 1;
  }
}

/* Small/touch screens — cards stack full-width, bio always visible */
@media (max-width: 760px) {
  .team-hover-card {
    flex: 1 1 100%;
    grid-template-columns: 160px 1fr;
    column-gap: 20px;
    row-gap: 8px;
  }
  .team-hover-card .team-photo-wrap {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
  .team-hover-card .team-hover-role {
    grid-column: 2;
    grid-row: 1;
  }
  .team-hover-card .team-hover-name {
    grid-column: 2;
    grid-row: 2;
  }
  .team-hover-card .team-hover-bio {
    grid-column: 2;
    grid-row: 3 / span 2;
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-hover-card,
  .team-photo-wrap,
  .team-hover-bio { transition: none; }
}

/* =========================================================
   TEAM TABS + SLIDE-IN PANEL (about page)
   Three small cards in a row act as tabs. Clicking a tab
   swaps the panel content below with a slide-in-from-right
   animation. Active tab gets an accent underline.
   ========================================================= */

.team-tabs-section {
  margin-top: 40px;
}

/* ---- Tabs (the three small cards in a row) ---- */
.team-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 640px) {
  .team-tabs { grid-template-columns: 1fr; gap: 16px; }
}

.team-tab {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  font: inherit;
  color: inherit;
  border-bottom: 2px solid var(--line);
  transition: border-color .25s var(--ease);
}
.team-tab:hover { border-bottom-color: var(--stone-light); }
.team-tab[aria-selected="true"] { border-bottom-color: var(--accent); }

.team-tab-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
  background: var(--paper-alt);
  transition: opacity .25s var(--ease), filter .25s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.team-tab[aria-selected="false"] .team-tab-photo {
  opacity: 0.78;
  filter: saturate(0.85);
}
.team-tab:hover .team-tab-photo { opacity: 1; filter: saturate(1); }

.team-tab-role {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.team-tab-name {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  transition: color .2s var(--ease);
}
.team-tab[aria-selected="true"] .team-tab-name { color: var(--accent); }

/* ---- Panel area (right side — content slides in from the right) ---- */
.team-panel-area {
  position: relative;
  padding-top: 8px;
  min-height: 1px;
}

.team-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  opacity: 0;
  transform: translateX(48px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
@media (min-width: 700px) {
  .team-panel {
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* Inactive panels occupy the same stacking slot but are hidden */
.team-panel:not(.is-active) {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.team-panel.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.team-panel-photo {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
  background: var(--paper-alt);
  -webkit-user-drag: none;
  user-select: none;
}

.team-panel-content { max-width: 58ch; }
.team-panel-role {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.team-panel-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.2;
}
.team-panel-bio {
  color: var(--stone);
  font-size: 17px;
  line-height: 1.65;
}
.team-panel-bio p { margin: 0 0 14px; }
.team-panel-bio p:last-child { margin-bottom: 0; }
.team-panel-bio .coming-soon-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--stone-light);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .team-panel {
    transition: none;
    transform: none;
  }
}

/* =========================================================
   TEAM SLIDE-OPEN CARDS (about page)
   Photos are a fixed 360px ("red box"). They never resize.
   On hover, a bio panel slides out from behind the photo to its
   right (or left, for the last card) and overlays the neighbour.
   ========================================================= */

.team-row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  align-items: start;
  justify-content: center;
  flex-wrap: wrap;
}

.team-slide {
  --photo-w: 360px;
  position: relative;
  flex: 0 0 var(--photo-w);
  z-index: 1;
}
.team-slide:hover,
.team-slide:focus-within {
  z-index: 20;
}

.team-slide-photo-wrap {
  width: var(--photo-w);
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-alt);
  position: relative;
  z-index: 2;
}
.team-slide-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-user-drag: none;
  user-select: none;
}

/* Bio panel — absolute overlay that slides out beside the photo */
.team-slide-bio {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);
  width: var(--photo-w);
  min-height: 100%;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(20, 15, 0, 0.10);
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  z-index: 1;
  box-sizing: border-box;
}

/* Last card: bio opens to the LEFT so it stays in-viewport */
.team-slide:last-child .team-slide-bio {
  left: auto;
  right: calc(100% + 20px);
  transform: translateX(16px);
}

.team-slide-role {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  white-space: nowrap;
}
.team-slide-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.9vw, 1.875rem);
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.2;
}
.team-slide-body {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.6;
}
.team-slide-body p { margin: 0 0 10px; max-width: 36ch; }
.team-slide-body p:last-child { margin-bottom: 0; }
.team-slide-body .coming-soon-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--stone-light);
  font-style: italic;
}

/* HOVER / FOCUS — bio panel reveals */
@media (hover: hover) and (min-width: 900px) {
  .team-slide:hover .team-slide-bio,
  .team-slide:focus-within .team-slide-bio {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

/* Mobile / narrow — stacked, bio always visible next to photo */
@media (max-width: 899px) {
  .team-row { gap: 32px; flex-direction: column; align-items: stretch; }
  .team-slide {
    --photo-w: 180px;
    display: grid;
    grid-template-columns: var(--photo-w) 1fr;
    gap: 20px;
    flex: 1 1 auto;
  }
  .team-slide-bio {
    position: static;
    width: auto;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .team-slide:last-child .team-slide-bio { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .team-slide-bio { transition: none; transform: none; }
}

/* =========================================================
   INSIGHTS — ENRICHED POST CARDS + FAQ
   ========================================================= */

.insight-stream-desc {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 44ch;
}

.insight-stream-link {
  margin: 0 0 28px;
  font-size: 13px;
  font-family: var(--sans);
}
.insight-stream-link a {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .2s var(--ease), gap .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.insight-stream-link a:hover { color: var(--accent-hi); gap: 10px; }

/* Post cards */
.insight-posts { list-style: none; padding: 0; margin: 0; }
.insight-post {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.insight-post:first-child { padding-top: 0; }
.insight-post:last-child { border-bottom: 0; padding-bottom: 0; }

.insight-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.insight-post-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.insight-post-read {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.insight-post-read::before {
  content: "·";
  margin-right: 10px;
  color: var(--line);
}

.insight-post-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  margin: 0 0 8px;
  max-width: 38ch;
}
.insight-post-title a {
  color: var(--ink);
  transition: color .2s var(--ease);
}
.insight-post-title a:hover { color: var(--accent); }
.insight-post-title a[aria-disabled="true"] {
  color: var(--ink);
  cursor: default;
  pointer-events: none;
}

.insight-post-excerpt {
  color: var(--stone);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}

/* FAQ list */
.insights-faq {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.insights-faq .faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.insights-faq dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}
.insights-faq dd {
  margin: 0;
  color: var(--stone);
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
}
.insights-faq dd a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.insights-faq dd a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================================
   SPIROGRAPH — geometric hero ornament
   Sits in the empty right-hand area of the hero, behind text,
   above the ambient wave canvas. Hidden on small screens.
   ========================================================= */
.spiro-stage {
  position: absolute;
  top: 50%;
  right: 30px;
  width: 640px;
  height: 640px;
  max-width: 65vw;
  max-height: 78vh;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  /* sit visually above #waveCanvas (z:0) but behind .hero-inner (z:2) */
  opacity: 0.9;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at center,
    #000 55%,
    rgba(0,0,0,0.6) 78%,
    transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center,
    #000 55%,
    rgba(0,0,0,0.6) 78%,
    transparent 100%);
}
.spiro-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Service / pillar heroes have a different content block width;
   nudge the stage slightly outward to match. */
.hero.is-pillar .spiro-stage {
  width: 600px;
  height: 600px;
  right: 30px;
  max-width: 65vw;
}

/* Hide on tablet and below — keeps hero text legible on narrow widths */
@media (max-width: 1080px) {
  .spiro-stage {
    width: 420px;
    height: 420px;
    right: 30px;
    opacity: 0.7;
  }
}
@media (max-width: 860px) {
  .spiro-stage { display: none; }
}

/* Respect users who ask for reduced motion — keep the visual but static */
@media (prefers-reduced-motion: reduce) {
  .spiro-stage { opacity: 0.55; }
}

/* =========================================================
   3D WIREFRAME (About page only) — Three.js target canvas
   ========================================================= */
.wireframe-stage {
  position: absolute;
  top: 50%;
  right: 30px;
  width: 780px;
  height: 780px;
  max-width: 72vw;
  max-height: 88vh;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at center,
    #000 50%,
    rgba(0,0,0,0.55) 75%,
    transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center,
    #000 50%,
    rgba(0,0,0,0.55) 75%,
    transparent 100%);
}

/* Pillar pages (About, Tax, Business Foundation) keep the smaller
   wireframe size — homepage can breathe larger because there's no
   "is-pillar" typographic constraint. */
.hero.is-pillar .wireframe-stage {
  width: 600px;
  height: 600px;
  max-width: 65vw;
  max-height: 78vh;
}
.wireframe-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
@media (max-width: 1080px) {
  .wireframe-stage {
    width: 400px; height: 400px; right: 30px; opacity: 0.7;
  }
}
@media (max-width: 860px) {
  .wireframe-stage { display: none; }
}
