/*
Theme Name: NIL Theme
Author: Tshering Gyeltshen
Version: 2.1
Description: Custom theme for National Innovation Labs
*/

/* ---------- Design tokens ---------- */
:root {
  --black: #0b0a08;
  --surface: #141210;
  --surface-deep: #0f0e0c;
  --surface-raised: #1c1913;
  --gold: #d9a93f;
  --gold-light: #f0c868;
  --gold-pale: #ffe9a8;
  --gold-deep: #a97a28;
  --bronze: #6b4c18;
  --cream: #f3efe6;
  --stone: #9c9488;
  --footer-black: #0a0a0a;
  --rule: rgba(217,169,63,.35);
  --rule-soft: rgba(217,169,63,.2);
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --pad-x: clamp(20px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-pale); }
::selection { background: rgba(217,169,63,.3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input, textarea, select, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--stone); }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.rule-bottom { border-bottom: 1px solid var(--rule); }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 800; margin: 0; color: var(--cream); }
h1 { font-size: clamp(32px, 5.8vw, 56px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 18px; line-height: 1.2; }
p { margin: 0 0 1em; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
}
.lead { font-size: 17px; line-height: 1.55; color: var(--stone); max-width: 54ch; }
.body-text { font-size: 15px; line-height: 1.6; color: var(--stone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 14px;
  background: var(--gold); color: var(--black); padding: 16px 26px; border-radius: 2px;
  transition: background .2s ease;
}
.btn:hover { background: var(--gold-light); color: var(--black); }
.btn-outline {
  display: inline-block; font-family: var(--sans); font-weight: 800; font-size: 14px;
  border: 1px solid var(--gold-deep); color: var(--gold); padding: 15px 25px; border-radius: 2px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-pale); }

/* ---------- Animations (used by hero graphics) ---------- */
@keyframes nlSpin  { to { transform: rotate(360deg); } }
@keyframes nlSweep { 0%,100% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: .35; } }
@keyframes nlChevA { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }
@keyframes nlChevB { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@keyframes nlPing  { 0% { r: 5; opacity: .9; } 70% { r: 34; opacity: 0; } 100% { r: 34; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}



/* ---------- Header ---------- */
.site-header__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
  padding-top: clamp(16px, 2.5vw, 22px); padding-bottom: clamp(16px, 2.5vw, 22px);
}
.site-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--cream); }
.site-brand:hover { color: var(--cream); }
.site-brand img { width: 50px; height: 50px; object-fit: contain; }
.site-brand__name {
  font-weight: 600; font-size: 15px; letter-spacing: .05em;
  text-transform: uppercase; white-space: nowrap;
}

.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
}
.site-nav__list li { margin: 0; }
.site-nav__list a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone); white-space: nowrap;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a { color: var(--gold); }

/* Last menu item (Contact Us) becomes the gold button */
.site-nav__list li:last-child a {
  display: inline-block; background: var(--gold); color: var(--black);
  padding: 12px 22px; border-radius: 2px; letter-spacing: .05em;
  transition: background .2s ease;
}
.site-nav__list li:last-child a::after { content: " \2192"; }
.site-nav__list li:last-child a:hover,
.site-nav__list li:last-child.current-menu-item > a { background: var(--gold-light); color: var(--black); }

/* ---------- Default page ---------- */
.page-default { padding-top: 60px; padding-bottom: 60px; }
.page-default h1 { margin-bottom: 24px; }


/* ---------- Shared wrapper (used by template parts) ---------- */
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-radar {
  position: absolute; top: 50%; right: 5%;
  transform: translateY(-50%);
  width: min(400px, 34vw); height: min(400px, 34vw);
  min-width: 170px; min-height: 170px;
  z-index: 1; pointer-events: none;
}
.radar-sweep { transform-origin: 250px 250px; animation: nlSpin 9s linear infinite; }
.radar-blip { animation-name: nlSweep; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hero__inner {
  position: relative; z-index: 3;
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: clamp(56px, 7vw, 110px);
}
.hero h1 {
  font-size: clamp(34px, 6.6vw, 64px); line-height: 1.05; letter-spacing: -.01em;
  max-width: 19ch;
}
.text-gradient {
  background: linear-gradient(100deg, var(--gold), var(--gold-pale));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 17px; line-height: 1.55; color: var(--stone);
  max-width: 54ch; margin: 22px 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Mono buttons (design system) ---------- */
.btn-mono {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .05em;
  background: var(--gold); color: var(--black);
  padding: 14px 26px; border-radius: 2px; white-space: nowrap;
  transition: background .2s ease;
}
.btn-mono:hover { background: var(--gold-light); color: var(--black); }
.btn-mono--outline {
  background: transparent; color: var(--cream);
  border: 1px solid var(--gold-deep);
}
.btn-mono--outline:hover { background: rgba(217,169,63,.1); color: var(--cream); }

/* Kept for sections not yet rebuilt */
.eyebrow {
  display: block; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }


/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--rule); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 5), minmax(0, 1fr));
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 32px 20px; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding-left: 0; border-right: 0; }
}
.stat {
  padding: 44px 24px 48px;
  border-right: 1px solid var(--rule);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__figure {
  font-weight: 800; font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05; letter-spacing: -.02em; color: var(--gold);
}
.stat__label {
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
  margin-top: 18px; min-height: 33px;
}
.stat__blurb {
  font-size: 13px; line-height: 1.55; color: var(--stone);
  margin-top: 12px; max-width: 26ch;
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 32px 20px; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; }
  .stat:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding-left: 0; border-right: 0; }
}


/* ---------- Section intro wrapper (div.kicker) ---------- */
div.kicker {
  font-family: var(--sans); font-size: inherit; letter-spacing: normal;
  text-transform: none; color: var(--cream);
  margin-bottom: clamp(32px, 5vw, 48px);
}
div.kicker .eyebrow { margin-bottom: 10px; }
div.kicker h2 { margin-bottom: 12px; }
div.kicker p { font-size: 15px; color: var(--stone); max-width: 60ch; margin: 0; }


/* ---------- Text link (design system) ---------- */
.text-link {
  font-family: var(--mono); font-size: 13px; letter-spacing: .05em;
  color: var(--gold); border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 3px; white-space: nowrap;
}
.text-link:hover { color: var(--gold-pale); }

/* ---------- Element tile (design system) ---------- */
.element-tile {
  width: 78px; height: 78px; flex: none; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); border-radius: 6px; background: var(--black);
}
.element-tile__no {
  position: absolute; top: 6px; left: 8px;
  font-weight: 800; font-size: 9px; color: #f2d588;
}
.element-tile__sym {
  font-weight: 800; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em;
  background: linear-gradient(150deg, #f0d488, #c08f2c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 03 Practices ---------- */
.practices__inner {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.practices__title { font-size: clamp(23px, 3.2vw, 30px); letter-spacing: -.01em; margin: 8px 0 10px; }
.practices__lead { font-size: 15px; color: var(--stone); max-width: 560px; margin: 0; }
.practices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1px; background: var(--rule); margin-top: 48px;
}
.practice {
  background: var(--black); padding: 34px 32px 38px;
  display: flex; gap: 28px; align-items: flex-start;
  transition: background .2s ease;
}
.practice:hover { background: var(--surface); }
.practice h3 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px; }
.practice p { font-size: 14px; line-height: 1.6; color: var(--stone); margin: 0 0 16px; }
.dash-list--tight { gap: 7px; }
.practices__more { margin: 28px 0 0; }
@media (max-width: 480px) {
  .practice { flex-direction: column; gap: 20px; padding: 28px 22px; }
}

/* ---------- CTA band ---------- */
.cta { background: var(--gold); color: var(--black); }
.cta__inner {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.cta h2 {
  color: var(--black);
  font-size: clamp(29px, 4.8vw, 46px); line-height: 1.04; letter-spacing: -.03em;
  max-width: 26ch; margin-bottom: 28px;
}
.cta__btn {
  display: inline-block; border-radius: 2px;
  font-weight: 800; font-size: 14px;
  background: var(--black); color: var(--gold);
  padding: 16px 26px;
  transition: background .2s ease, color .2s ease;
}
.cta__btn:hover { background: #000; color: var(--gold-pale); }


/* ---------- Footer ---------- */
.site-footer { background: var(--footer-black); border-top: 1px solid var(--rule); }
.site-footer__main {
  display: grid; grid-template-columns: 1fr 200px;
  padding-top: clamp(28px, 4vw, 40px); padding-bottom: 44px;
}
.site-footer__cols {
  display: grid; grid-template-columns: repeat(3, max-content);
  gap: 56px; justify-content: start;
}
.site-footer h4 {
  margin: 0 0 16px; font-weight: 400;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cream);
}
.site-footer p { font-size: 14px; line-height: 1.8; color: var(--stone); margin: 0; }
.site-footer p a { color: var(--stone); overflow-wrap: anywhere; }
.site-footer p a:hover { color: var(--gold); }
.site-footer__mark { display: flex; align-items: flex-start; justify-content: flex-end; }
.site-footer__mark img { width: 100%; max-width: 118px; height: auto; object-fit: contain; }
.site-footer__bottom { border-top: 1px solid var(--rule-soft); }
.site-footer__bottom-inner {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  padding-top: clamp(16px, 2.5vw, 20px); padding-bottom: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--stone);
}
.site-footer__bottom-inner span { white-space: nowrap; }
.site-footer__copy { margin-right: auto; }
@media (max-width: 760px) {
  .site-footer__main { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__mark { justify-content: flex-start; }
  .site-footer__mark img { max-width: 88px; }
}



/* ---------- 01 Purpose ---------- */
.purpose {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.purpose__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.chev polyline {
  fill: none; stroke: var(--gold); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chev--a { transform-origin: 70px 600px;  animation: nlChevA 44s ease-in-out infinite; }
.chev--b { transform-origin: 1230px 20px; animation: nlChevB 52s ease-in-out infinite; }
.purpose__inner {
  position: relative; z-index: 3;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
p.kicker { margin: 0; }
.purpose .purpose__kicker { margin-bottom: 22px; }
.purpose__title {
  font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.025em;
  max-width: 24ch; margin-bottom: 20px;
}
.purpose__lead {
  font-size: 16px; line-height: 1.6; color: var(--stone);
  max-width: 60ch; margin: 0 0 40px;
}
.purpose__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purpose__step {
  padding: 22px 32px 0;
  border-top: 2px solid var(--gold-deep);
  border-right: 1px solid var(--rule);
}
.purpose__step:first-child { padding-left: 0; }
.purpose__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 14px;
}
.purpose__sym {
  font-weight: 800; font-size: clamp(30px, 4.2vw, 40px); line-height: 1;
  letter-spacing: -.02em; color: var(--cream); margin-bottom: 16px;
}
.purpose__step h3 { font-size: 17px; line-height: 1.25; margin-bottom: 10px; }
.purpose__step p { font-size: 14px; line-height: 1.65; color: var(--stone); margin: 0; }
@media (max-width: 760px) {
  .purpose__steps { grid-template-columns: 1fr; gap: 28px; }
  .purpose__step { padding: 22px 0 0; border-right: 0; }
}


/* ---------- Shared section layout ---------- */
.section { border-bottom: 1px solid var(--rule); }
.section__inner {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.section__title {
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em;
  max-width: 26ch; margin: 8px 0 8px;
}
.section__lead {
  font-size: 15px; color: var(--stone);
  max-width: 640px; margin: 0 0 14px;
}
.section__lead--strong { color: var(--cream); margin-bottom: 44px; }

.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-list li {
  display: flex; gap: 12px;
  font-size: 14px; line-height: 1.5; color: var(--stone);
}
.dash-list li::before {
  content: "\2014"; flex: none; padding-top: 3px;
  font-family: var(--mono); font-size: 11px; color: var(--gold-deep);
}

/* ---------- 02 Two arms ---------- */
.arms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px; background: var(--rule);
}
.arm { background: var(--surface); padding: 34px 32px; }
.arm__logo { height: 104px; display: flex; align-items: center; margin-bottom: 24px; }
.arm__logo img {
  height: 88px; width: auto; max-width: 320px;
  object-fit: contain; object-position: left center;
}
.arm h3 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 12px; }
.arm p { font-size: 14px; line-height: 1.6; color: var(--stone); margin: 0 0 18px; }


/* ---------- 04 Commitments ---------- */
.commitments__title { margin-bottom: 40px; }
.commitments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px; background: var(--rule);
}
.commitment {
  background: var(--surface-raised);
  border-top: 2px solid var(--gold-deep);
  padding: 26px 26px 28px;
  transition: background .2s ease;
}
.commitment:hover { background: var(--surface); }
.commitment__icon { display: block; margin-bottom: 18px; }
.commitment__icon path {
  fill: none; stroke: var(--gold); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.commitment h3 { font-size: 19px; margin-bottom: 10px; }
.commitment p { font-size: 14px; line-height: 1.6; color: var(--stone); margin: 0; }



/* ---------- Tag (design system) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.tag {
  flex: none; white-space: nowrap;
  border: 1px solid var(--rule); background: var(--surface); color: var(--cream);
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 2px;
}

/* ---------- 05 Flagship ---------- */
.flagship__inner {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.flagship__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 56px; margin-top: 36px; align-items: center;
}
.flagship__title {
  font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.015em;
  max-width: 22ch; margin-bottom: 18px;
}
.flagship__text { font-size: 16px; color: var(--stone); max-width: 48ch; margin: 0 0 16px; }
.flagship__text--label { margin-bottom: 12px; }
.flagship__media {
  aspect-ratio: 1473 / 1022;
  border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden; background: var(--black);
}
.flagship__media img { display: block; width: 100%; height: 100%; object-fit: cover; }



/* ---------- 06 Panels ---------- */
.panels__lead { margin-bottom: 40px; }
.panels__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel {
  background: var(--surface);
  border: 1px solid var(--rule); margin: 0 -1px -1px 0;
  padding: 30px 28px 32px;
  transition: background .2s ease;
}
.panel--expand { cursor: default; }
.panel--expand:hover, .panel--expand:focus-within { background: var(--surface-raised); }
.panel--expand:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.panel__logo { height: 105px; display: flex; align-items: center; margin-bottom: 20px; }
.panel__logo--sm { height: 92px; }
.panel__logo img {
  max-width: 210px; max-height: 100%;
  object-fit: contain; object-position: left center;
}
.panel h3 { font-size: 19px; line-height: 1.2; margin-bottom: 7px; }
.panel__meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--stone);
}
.panel__meta span { color: var(--gold); }

/* Hover reveal */
.panel__reveal {
  display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0;
  transition: grid-template-rows .34s ease, opacity .22s ease, margin-top .3s ease;
}
.panel--expand:hover .panel__reveal,
.panel--expand:focus-within .panel__reveal {
  grid-template-rows: 1fr; opacity: 1; margin-top: 16px;
}
.panel__reveal-inner {
  overflow: hidden; min-height: 0;
  border-top: 1px solid var(--rule); padding-top: 14px;
}
.panel__group-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.panel__group-text { font-size: 13px; line-height: 1.55; color: var(--stone); margin: -2px 0 18px; }
.tag-list--sm { gap: 5px; margin-bottom: 18px; }
.tag-list--sm:last-child { margin-bottom: 0; }
.tag--sm { font-size: 10px; letter-spacing: .04em; padding: 4px 8px; white-space: normal; }

/* "Ask us" tile */
.panel--ask {
  grid-column: span 2; background: transparent;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.panel--ask h3 { font-size: 20px; line-height: 1.25; margin: 0; max-width: 26ch; }
.panel--ask p { font-size: 14px; line-height: 1.6; color: var(--stone); margin: 0; max-width: 44ch; }
.panel--ask .text-link { font-size: 12px; letter-spacing: .06em; align-self: flex-start; }

/* No hover (touch): show categories open */
@media (hover: none) {
  .panel__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: 16px; }
}
@media (max-width: 900px) {
  .panels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .panels__grid { grid-template-columns: 1fr; }
  .panel--ask { grid-column: auto; }
}


/* Hero radar on small screens */
@media (max-width: 900px) {
  .hero-radar { opacity: .5; }
}
@media (max-width: 640px) {
  .hero-radar { display: none; }
}


/* ---------- Mobile menu ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--rule); border-radius: 2px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--gold);
  transition: transform .25s ease, opacity .2s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-brand__name { font-size: 13px; }
  .site-nav { display: none; width: 100%; }
  .site-header.is-open .site-nav { display: block; }
  .site-nav__list {
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--rule); padding-top: 8px;
  }
  .site-nav__list a { display: block; padding: 14px 0; }
  .site-nav__list li:last-child { margin-top: 10px; }
  .site-nav__list li:last-child a { display: block; text-align: center; padding: 14px 22px; }
}


/* =========================================================
   PRACTICES PAGE
   ========================================================= */

/* ---------- Hero ---------- */
.p-hero__inner {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.p-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 56px; align-items: start;
}
.p-hero .p-hero__kicker { margin-bottom: 24px; }
.p-hero__title { font-size: clamp(31px, 5.4vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.p-hero__title span { white-space: nowrap; }
.p-hero__lead { font-size: 17px; color: var(--stone); max-width: 52ch; margin: 22px 0 0; }

/* Mini periodic table */
.ptable {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  align-self: center;
}
.ptable__cell {
  aspect-ratio: 1;
  border: 1px solid rgba(217,169,63,.5); border-radius: 5px;
}
.ptable__cell--gap { border: 0; }
.ptable__cell--spacer { aspect-ratio: auto; height: 9px; }
.ptable__cell--live {
  position: relative;
  border-color: #f0d488; background: #231c10;
  box-shadow: 0 0 0 1px rgba(217,169,63,.22), 0 0 18px rgba(217,169,63,.18);
}
.ptable__cell--live a {
  position: absolute; inset: 0; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.ptable__cell--live a:hover { background: rgba(217,169,63,.14); }
.ptable__cell--live span {
  font-weight: 800; font-size: 19px; letter-spacing: -.01em;
  background: linear-gradient(150deg, #ffe9a8, #d9a93f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}


/* ---------- Practice detail sections ---------- */
.p-detail__inner {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.p-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 56px; align-items: start;
}
.p-detail__head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.p-detail__head h2 {
  font-size: clamp(25px, 3.6vw, 34px); line-height: 1.08; letter-spacing: -.025em;
}
.p-detail__lead { font-size: 17px; line-height: 1.55; color: var(--cream); max-width: 56ch; margin: 0 0 14px; }
.p-detail__body { font-size: 15px; color: var(--stone); max-width: 58ch; margin: 0 0 28px; }
.p-detail__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.p-detail__deliver { margin-bottom: 30px; }
.p-detail__deliver li { gap: 14px; }
.p-detail__who { font-size: 14px; line-height: 1.6; color: var(--stone); max-width: 58ch; margin: 0; }
.p-detail__art { align-self: center; }
.p-detail__art svg { display: block; width: 100%; height: auto; }
.p-detail__art text {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
}

/* Illustration animations */
@keyframes nlLead { 0% { transform: translateX(0); opacity: 0 } 12% { opacity: 1 } 82% { opacity: 1 } 100% { transform: translateX(240px); opacity: 0 } }
@keyframes nlRelay { 0%, 26%, 100% { stroke: #2f2719 } 9% { stroke: var(--gold-deep) } }
@keyframes nlRelayGold { 0%, 26%, 100% { opacity: .4 } 9% { opacity: 1 } }
@keyframes nlFlow { to { stroke-dashoffset: -32 } }
@keyframes nlRing { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(2.6); opacity: 0 } }
@keyframes nlBreathe { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@keyframes nlTwinkle { 0%, 100% { opacity: .35 } 50% { opacity: .9 } }



/* ---------- How we work ---------- */
.how__inner {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.how .section__title { max-width: 24ch; }
.how .section__lead { max-width: 620px; margin-bottom: 12px; }
.how__lead-last { margin-bottom: 36px !important; }

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  grid-template-rows: auto auto 1fr auto auto;
  gap: 1px; background: var(--rule);
}
.stage {
  grid-row: span 5; display: grid; grid-template-rows: subgrid;
  background: var(--surface);
  border-top: 2px solid var(--gold-deep);
  padding: 22px 24px 26px;
}
.stage__no {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--gold);
}
.stage h3 { font-size: 21px; margin: 10px 0 0; }
.stage p { font-size: 13px; line-height: 1.6; color: var(--stone); margin: 10px 0 18px; }
.stage__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 8px;
}
.stage__output { font-size: 13px; line-height: 1.5; color: var(--cream); }

.stage--optional { background: var(--surface-deep); }
.stage--optional .stage__no { color: var(--stone); }
.stages--optional { max-width: 550px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.how__ncp {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 44px 0 18px;
}
.how__ncp img { height: 32px; width: auto; object-fit: contain; }
.how__rule { width: 1px; height: 26px; background: var(--rule); }
.how__ncp-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.how__ncp-text { font-size: 14px; line-height: 1.4; color: var(--cream); }


/* =========================================================
   PROJECTS PAGE
   ========================================================= */

/* ---------- Hero ---------- */
.pj-hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 48px; align-items: center;
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.pj-hero .pj-hero__kicker { margin-bottom: 24px; }
.pj-hero__title { max-width: 20ch; }
.pj-hero__lead { font-size: 17px; color: var(--stone); max-width: 54ch; margin: 22px 0 0; }
.pj-hero__chart { display: block; width: 100%; height: auto; }
.pj-hero__chart text {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px;
}
.pj-bar { animation: npLight 12s ease-in-out infinite; }
@keyframes npLight {
  0%   { opacity: .22 }
  6%   { opacity: 1 }
  19%  { opacity: 1 }
  25%  { opacity: .22 }
  100% { opacity: .22 }
}


/* ---------- Case study ---------- */
.case__inner {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.case__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 32px;
}
.case__title {
  font-size: clamp(26px, 4vw, 38px); line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 28px;
}

.case__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px; background: var(--rule); margin: 0 0 36px;
}
.fact { background: var(--surface); padding: 18px 20px; }
.fact__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.fact__value { font-size: 14px; line-height: 1.5; color: var(--cream); }

.case__sections { display: flex; flex-direction: column; gap: 26px; }
.case__heading {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.case__text { font-size: 16px; color: var(--stone); margin: 0 0 12px; }
.case__text--stack { margin-top: 14px; }

.case__shot {
  margin: 36px auto 0; max-width: 780px;
  border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden; background: var(--black);
}
.case__shot img { display: block; width: 100%; height: auto; }

.case__cta { margin: 44px 0 0; text-align: center; }

.case__cta-link {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--gold-deep); border-radius: 2px; background: transparent;
  transition: border-color .25s ease, color .25s ease, padding .25s ease;
}

.case__cta-chev {
  font-size: 14px; line-height: 1;
  opacity: 0; max-width: 0; margin-left: 0; overflow: hidden;
  transform: translateY(-1px);
  transition: opacity .25s ease, max-width .25s ease, margin-left .25s ease;
}

.case__cta-link:hover {
  border-color: transparent; color: var(--gold-pale);
  padding-left: 0; padding-right: 0;
}

.case__cta-link:hover .case__cta-chev,
.case__cta-link:focus-visible .case__cta-chev {
  opacity: 1; max-width: 1.2em; margin-left: 8px;
}

.case__cta-link:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-color: transparent;
}

.case__cta-link {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  font-weight: 700;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--gold-deep); border-radius: 2px; background: transparent;
  transition: border-color .25s ease, color .25s ease, padding .25s ease;
}

/* ---------- People (advisors + team) ---------- */
.people { margin: 56px 0 0; }
.people__lead { font-size: 15px; color: var(--stone); margin: 0 0 28px; max-width: 640px; }
.people h4 { font-size: 19px; line-height: 1.2; margin: 0; }
.person__body { font-size: 12.5px; line-height: 1.6; color: var(--stone); margin: 0 0 16px; }
.person__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.portrait-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(.14) saturate(1.08) contrast(1.04) brightness(1.02);
}

/* Advisors */
.advisors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px; align-items: stretch;
}
.advisor {
  border: 1px solid var(--rule); background: var(--surface);
  padding: 26px 30px 28px;
  display: flex; flex-direction: column;
}
.advisor__head { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.advisor__photo {
  width: 112px; height: 112px; flex: none;
  background: var(--cream); border: 1px solid var(--rule);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.advisor__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(.14) saturate(1.08) contrast(1.04) brightness(1.02);
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.member {
  border: 1px solid var(--rule); background: var(--surface);
  padding: 26px 26px 28px;
  display: flex; flex-direction: column;
  transition: background .2s ease;
}
.member:hover { background: var(--surface-raised); }
.member__photo {
  width: 96px; height: 96px; margin-bottom: 18px;
  background: linear-gradient(155deg, #2a2216, #0f0e0c);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(.14) saturate(1.08) contrast(1.04) brightness(1.02);
}
.member h4 { margin-bottom: 8px; }
.member__degree {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); line-height: 1.5; margin-bottom: 14px;
}
.member .person__body { margin-bottom: 0; }

/* Extra-small tags (advisor specialisms) */
.tag-list--xs { gap: 4px; margin-bottom: 0; }
.tag--xs {
  font-size: 9px; letter-spacing: .04em; padding: 3px 6px;
  background: var(--surface-deep); white-space: normal;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

/* ---------- Hero ---------- */
.ct-hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 48px; align-items: center;
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
}
.ct-hero .ct-hero__kicker { margin-bottom: 24px; }
.ct-hero__title { max-width: 20ch; }
.ct-hero__lead { font-size: 17px; color: var(--stone); max-width: 54ch; margin: 22px 0 0; }
.ct-hero__art { display: flex; justify-content: center; align-items: center; }
.ct-hero__art svg { width: min(340px, 84%); height: auto; overflow: visible; }
.env-letter { animation: nlLetter 6s ease-in-out infinite; }
.env-flap {
  transform-origin: 180px 74px; transform-style: preserve-3d;
  animation: nlFlap 6s ease-in-out infinite;
}
@keyframes nlFlap {
  0%, 12%   { transform: rotateX(0deg) }
  42%, 72%  { transform: rotateX(-168deg) }
  100%      { transform: rotateX(0deg) }
}
@keyframes nlLetter {
  0%, 18%   { transform: translateY(24px); opacity: 0 }
  48%, 68%  { transform: translateY(-30px); opacity: 1 }
  88%, 100% { transform: translateY(24px); opacity: 0 }
}


/* ---------- Contact main ---------- */
.ct-main__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 64px; align-items: start;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}

.ct-verify { margin-top: 4px; }
.ct-verify .cf-turnstile { min-height: 65px; }

/* Form */
.ct-form { display: flex; flex-direction: column; gap: 22px; }
.ct-hp { position: absolute; left: -9999px; }
.field { margin: 0; padding: 0; border: 0; }
.field__label {
  display: block; padding: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cream); margin-bottom: 8px;
}
.field__input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 2px;
  color: var(--cream); font-size: 13px; padding: 13px 14px;
}
.field__input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.field__input--area { min-height: 150px; line-height: 1.6; resize: vertical; }
.field__error {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--gold-light); margin-top: 7px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.field--topics .field__label { margin-bottom: 10px; }

/* Topic selector */
.topics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.topic { display: block; cursor: pointer; }
.topic input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.topic__box {
  display: block; height: 100%;
  background: var(--surface); color: var(--cream);
  padding: 12px 14px 13px; transition: background .18s ease;
}
.topic__name {
  display: block; font-weight: 800; font-size: 13px; line-height: 1.2;
  letter-spacing: -.01em; margin-bottom: 5px;
}
.topic__note {
  display: block; font-size: 11px; line-height: 1.4; color: #8a8378;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topic input:checked + .topic__box { background: var(--gold); color: var(--black); }
.topic input:checked + .topic__box .topic__note { color: rgba(11,10,8,.7); }
.topic input:focus-visible + .topic__box { outline: 2px solid var(--gold); outline-offset: -2px; }

.ct-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ct-submit {
  font-weight: 800; font-size: 13px;
  background: var(--gold); color: var(--black);
  border: 0; border-radius: 2px; padding: 12px 20px;
  white-space: nowrap; cursor: pointer;
  transition: background .2s ease;
}
.ct-submit:hover { background: var(--gold-light); }
.ct-note {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--stone);
}

/* Success panel */
.ct-sent { border: 1px solid var(--gold); background: var(--surface); padding: 40px 36px; }
.ct-sent__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.ct-sent h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; margin: 0 0 12px; }
.ct-sent p { font-size: 15px; color: var(--stone); margin: 0 0 26px; }
.ct-sent__again {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 2px;
  padding: 12px 20px;
}
.ct-sent__again:hover { background: rgba(217,169,63,.12); color: var(--gold); }

/* Details panel */
.ct-details { border: 1px solid var(--rule); }
.ct-detail { padding: 22px 24px; border-bottom: 1px solid var(--rule); }
.ct-detail:last-child { border-bottom: 0; }
.ct-detail__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 8px;
}
.ct-detail__value { font-size: 15px; line-height: 1.5; color: var(--cream); }
.ct-detail__value a { color: var(--cream); overflow-wrap: anywhere; }
.ct-detail__value a:hover { color: var(--gold); }
.ct-detail__note {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--stone); margin-top: 8px;
}
.ct-map {
  margin-top: 16px;
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.ct-map {
  margin-top: 16px;
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.ct-map .leaflet-control-attribution {
  background: rgba(11,10,8,.72);
  color: var(--stone);
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
  padding: 2px 6px;
}
.ct-map .leaflet-control-attribution a { color: var(--gold); }
.ct-map .leaflet-control-zoom a {
  background: var(--surface); color: var(--gold);
  border-color: var(--rule);
}
.ct-map .leaflet-control-zoom a:hover { background: var(--surface-raised); color: var(--gold-pale); }
.ct-map .leaflet-popup-content-wrapper,
.ct-map .leaflet-popup-tip { background: var(--surface); color: var(--cream); }
.ct-map .leaflet-popup-content { font-size: 12px; line-height: 1.5; }
.ct-detail__directions {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}


.nil-pin svg {
  display: block; width: 38px; height: 50px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.45));
}


/* ---------- 404 ---------- */
.error-404__inner {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 9vw, 120px);
  max-width: 720px;
}
.error-404 .kicker { margin-bottom: 22px; }
.error-404__title { font-size: clamp(32px, 5.4vw, 52px); margin-bottom: 20px; }
.error-404__lead { font-size: 17px; line-height: 1.55; color: var(--stone); margin: 0 0 32px; }
.error-404__list {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--rule);
}
.error-404__list li { border-bottom: 1px solid var(--rule); }
.error-404__list a {
  display: block; padding: 16px 0;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cream);
  transition: color .2s ease;
}
.error-404__list a:hover { color: var(--gold); }
.error-404__actions { display: flex; flex-wrap: wrap; gap: 16px; }


/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold); color: var(--black);
  padding: 14px 22px; border-radius: 0 0 2px 0;
}
.skip-link:focus {
  left: 0;
  color: var(--black);
  outline: 2px solid var(--cream); outline-offset: -4px;
}
#main:focus { outline: none; }



/* =========================================================
   TEAM PAGE
   ========================================================= */
.tm-hero__inner {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 80px);
  max-width: 760px;
}
.tm-hero__inner {
    padding-top: clamp(56px, 8vw, 110px);
    padding-bottom: clamp(36px, 5vw, 64px);
    max-width: none;
    text-align: center;
}

.tm-hero__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(38px, 7.5vw, 86px);
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 20px;
}
.tm-hero__title {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
}

.tm-hero__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--stone);
    margin: 0 auto;
    max-width: 56ch;
}
.tm-people .section__inner { padding-top: 0; }

.tm-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: start;
}

@media (max-width: 620px) {
    .tm-cards { grid-template-columns: 1fr; }
}
.tm-card {
    border: 1px solid var(--rule-soft);
    background: var(--surface);
    padding: 24px 24px 28px;
    text-align: center;
}

.tm-card__photo {
    margin-bottom: 22px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-raised);
}

.tm-card__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
}

.tm-card__name {
    font-size: 24px;
    line-height: 1.2;
    color: var(--cream);
    margin: 0 0 6px;
}

.tm-card__role {
    font-size: 15px;
    line-height: 1.4;
    color: var(--gold);
    margin: 0;
}

.tm-card__bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--stone);
    margin: 16px 0 0;
    text-align: left;
}

.tm-card__spec {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--rule-soft);
}

.tm-social { margin: 22px 0 0; text-align: center; }


.tm-social { margin: 20px 0 0; }

.tm-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--gold-deep);
    border-radius: 2px;
    background: transparent;
    transition: border-color .25s ease, color .25s ease, padding .25s ease;
}

.tm-linkedin { gap: 0; }

.tm-linkedin__chev {
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    transform: translateY(-1px);
    transition: opacity .25s ease, max-width .25s ease, margin-left .25s ease;
}

.tm-linkedin:hover .tm-linkedin__chev,
.tm-linkedin:focus-visible .tm-linkedin__chev {
    opacity: 1;
    max-width: 1.2em;
    margin-left: 8px;
}

.tm-linkedin:hover {
    border-color: transparent;
    color: var(--gold-pale);
    padding-left: 0;
    padding-right: 0;
}


.tm-linkedin:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-color: transparent;
}