/* ==========================================================================
   FinBrick Consulting - design system
   Palette: ink navy + warm sand. Serif display / grotesque body.
   ========================================================================== */

:root {
  --ink-900: #0b1620;
  --ink-800: #10202e;
  --ink-700: #17303f;
  --ink-600: #24485c;
  --ink-500: #3d6377;

  --paper:   #fbfaf7;
  --paper-2: #f4f2ec;
  --paper-3: #e9e6dd;
  --line:    #ddd8cc;
  --line-2:  #c9c2b2;

  --tx-1: #101c26;
  --tx-2: #3b4a55;
  --tx-3: #6c7a84;

  --acc-600: #8f5626;
  --acc-500: #b4763a;
  --acc-400: #c99358;
  --acc-100: #f2e4d4;

  --teal-700: #17544f;
  --teal-600: #1f6b6b;
  --teal-100: #dcebe9;

  --f-display: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;
  --sp-9: 6rem;   --sp-10: 8rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(11,22,32,.06), 0 1px 3px rgba(11,22,32,.04);
  --shadow-md: 0 4px 16px rgba(11,22,32,.07), 0 1px 3px rgba(11,22,32,.05);
  --shadow-lg: 0 18px 48px rgba(11,22,32,.10), 0 4px 12px rgba(11,22,32,.05);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tx-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--acc-600); }
h1, h2, h3, h4 { color: var(--tx-1); font-family: var(--f-display); font-weight: 600; line-height: 1.18; margin: 0 0 var(--sp-4); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.018em; }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
strong { color: var(--tx-1); font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }
:focus-visible { outline: 2px solid var(--acc-500); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink-900); color: #b9c6ce; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: var(--acc-400); }
.section--line-top { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-sidebar { grid-template-columns: minmax(0,1fr) 320px; gap: var(--sp-8); }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- eyebrow / lede ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: .72rem; font-weight: 640;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc-600);
  margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 80px; }
.eyebrow--plain::after { display: none; }
.section--ink .eyebrow { color: var(--acc-400); }
.section--ink .eyebrow::after { background: rgba(255,255,255,.16); }

.lede { font-size: clamp(1.08rem, 1.9vw, 1.28rem); line-height: 1.6; color: var(--tx-2); }
.measure { max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-body); font-size: .93rem; font-weight: 600;
  letter-spacing: .005em;
  padding: .78rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-800); color: #fff; }
.btn-primary:hover { background: var(--ink-600); color: #fff; }
.btn-accent { background: var(--acc-500); color: #fff; }
.btn-accent:hover { background: var(--acc-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--tx-1); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-600); color: var(--ink-700); background: rgba(255,255,255,.6); }
.section--ink .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--ink .btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  color: var(--ink-600);
}
.arrow-link span { transition: transform .18s var(--ease); }
.arrow-link:hover span { transform: translateX(3px); }

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,250,247,.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.16rem; color: var(--tx-1); letter-spacing: -.015em; }
.brand__sub { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--tx-3); font-weight: 600; }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a {
  font-size: .92rem; font-weight: 550; color: var(--tx-2); text-decoration: none;
  padding: .3rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--acc-500); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover { color: var(--tx-1); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--tx-1); font-weight: 620; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: .5rem .6rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--tx-1); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: var(--sp-4); justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--ink-900) 0%, var(--ink-700) 58%, #1d3f4f 100%);
  color: #c3d0d8;
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 78% 18%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 78% 18%, #000 5%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -12%; top: -22%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,118,58,.20) 0%, transparent 66%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.58; color: #b6c5ce; max-width: 62ch; margin-bottom: var(--sp-6); }
.hero .eyebrow { color: var(--acc-400); }
.hero .eyebrow::after { background: rgba(255,255,255,.2); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.13);
  position: relative; z-index: 2;
}
.hero__meta div { min-width: 130px; }
.hero__meta dt { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: #7d919d; font-weight: 620; margin-bottom: .3rem; }
.hero__meta dd { margin: 0; font-family: var(--f-display); font-size: 1.55rem; color: #fff; line-height: 1.15; }
.hero__meta dd small { display: block; font-family: var(--f-body); font-size: .78rem; color: #93a6b1; font-weight: 500; margin-top: .25rem; letter-spacing: 0; }

/* ---------- page header (interior pages) ---------- */
.page-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.page-head h1 { margin-bottom: var(--sp-4); }
.page-head .lede { max-width: 65ch; }

.crumbs { font-size: .8rem; color: var(--tx-3); margin-bottom: var(--sp-4); }
.crumbs a { color: var(--tx-3); text-decoration: none; }
.crumbs a:hover { color: var(--acc-600); text-decoration: underline; }
.crumbs span { margin: 0 .45rem; opacity: .5; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__num {
  font-family: var(--f-mono); font-size: .74rem; color: var(--acc-600);
  letter-spacing: .08em; margin-bottom: var(--sp-4); font-weight: 500;
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--tx-2); font-size: .95rem; margin-bottom: var(--sp-4); }
.card p:last-child { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }

.card-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--acc-100); color: var(--acc-600);
  display: grid; place-items: center; margin-bottom: var(--sp-5); flex: none;
}
.card-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---------- capability list ---------- */
.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li {
  padding-left: 1.5rem; position: relative;
  font-size: .93rem; margin-bottom: .55rem; color: var(--tx-2);
}
.cap-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc-500);
}
.section--ink .cap-list li { color: #a9b9c3; }

/* ---------- engagement / case cards ---------- */
.engagement {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.engagement__head { padding: var(--sp-6) var(--sp-6) var(--sp-4); border-bottom: 1px solid var(--paper-3); }
.engagement__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp-4); }
.tag {
  font-size: .68rem; font-weight: 620; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 2px;
  background: var(--paper-2); color: var(--tx-3); border: 1px solid var(--line);
}
.tag--accent { background: var(--acc-100); color: var(--acc-600); border-color: #e5d0b8; }
.tag--teal { background: var(--teal-100); color: var(--teal-700); border-color: #c3ddd9; }
.engagement__body { padding: var(--sp-5) var(--sp-6); display: grid; gap: var(--sp-5); }
.engagement__block h4 {
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--tx-3); font-weight: 650; margin-bottom: var(--sp-2);
}
.engagement__block p { font-size: .94rem; margin: 0; }
.engagement__outcomes { background: var(--paper-2); padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); margin-top: auto; }
.engagement__outcomes h4 { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--tx-3); font-weight: 650; margin-bottom: var(--sp-3); }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats > div { background: var(--paper); padding: var(--sp-6); }
.stats dt { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--tx-1); line-height: 1; margin-bottom: var(--sp-3); font-weight: 600; }
.stats dd { margin: 0; font-size: .87rem; color: var(--tx-2); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- approach / process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.steps > li { background: var(--paper); padding: var(--sp-6) 0; display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(0,1.4fr); gap: var(--sp-5); align-items: start; margin: 0; }
.steps > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .8rem; color: var(--acc-600); padding-top: .35rem; letter-spacing: .06em;
}
.steps h3 { font-size: 1.15rem; margin: 0; }
.steps p { margin: 0; font-size: .95rem; }
.steps { list-style: none; padding: 0; }
@media (max-width: 780px) { .steps > li { grid-template-columns: 44px minmax(0,1fr); } .steps > li p { grid-column: 2; } }

/* ---------- definition/fact table ---------- */
.facts { width: 100%; border-collapse: collapse; font-size: .93rem; }
.facts th, .facts td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 620; color: var(--tx-1); width: 42%; padding-right: var(--sp-4); }
.facts td { color: var(--tx-2); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts code { font-family: var(--f-mono); font-size: .87em; background: var(--paper-2); padding: .1rem .35rem; border-radius: 2px; }

/* ---------- entity / brand strip ---------- */
.entity-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.entity-card__status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase;
  align-self: flex-start;
}
.entity-card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active { color: #2f7a4f; }
.status-closed { color: var(--tx-3); }
.entity-card__no { font-family: var(--f-mono); font-size: .82rem; color: var(--tx-3); }

/* ---------- callout ---------- */
.callout {
  border-left: 3px solid var(--acc-500);
  background: var(--paper-2);
  padding: var(--sp-5) var(--sp-6);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--teal { border-left-color: var(--teal-600); background: var(--teal-100); }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: var(--sp-8); align-items: start; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; gap: var(--sp-6); } }
.profile__photo {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--ink-700), var(--ink-500));
  display: grid; place-items: center; color: rgba(255,255,255,.5);
  font-family: var(--f-display); font-size: 3.5rem; border: 1px solid var(--line);
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact-method {
  display: flex; gap: var(--sp-4); padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: 0; }
.contact-method__icon { width: 38px; height: 38px; flex: none; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; }
.contact-method__icon svg { width: 18px; height: 18px; stroke: var(--ink-600); fill: none; stroke-width: 1.6; }
.contact-method h4 { margin-bottom: .2rem; }
.contact-method p { margin: 0; font-size: .93rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); color: #8fa2ad; padding-block: var(--sp-8) var(--sp-6); font-size: .9rem; }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; margin-bottom: var(--sp-4); }
.site-footer a { color: #a9bcc7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: var(--sp-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-6); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-legal {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.11);
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  justify-content: space-between; font-size: .82rem; color: #6d8290;
}
.footer-legal p { margin: 0; max-width: 68ch; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #7b909d; }

/* ---------- utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.text-sm { font-size: .89rem; }
.text-mute { color: var(--tx-3); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink-900); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- draft placeholder marker ---------- */
.todo {
  background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 8px, #fdf2d6 8px, #fdf2d6 16px);
  border: 1px dashed #d9a441; color: #8a6114;
  padding: .15rem .4rem; border-radius: 2px; font-size: .93em; font-weight: 550;
}

/* ---------- reveal on scroll ----------
   Visible by default. Only hidden once JS confirms it is running, so content
   is never invisible because of a script error, a blocked file, or a viewport
   the observer never sees. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { background: #fff !important; color: #000; }
  .hero h1, .hero__lede, .hero__meta dd { color: #000 !important; }
  a { text-decoration: none; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ---------- specificity fixes: buttons inside nav / on dark heroes ---------- */
.nav a.btn { padding: .62rem 1.15rem; }
.nav a.btn::after { display: none; }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }

.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.07); }

/* ---------- inline icons inside links ---------- */
.arrow-link svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; }
.arrow-link { flex-wrap: nowrap; }

/* ---------- compact brand lockup on small screens ---------- */
@media (max-width: 520px) {
  .site-header .brand__sub { display: none; }
  .site-header .brand__name { font-size: 1.05rem; }
  .site-header__inner { min-height: 64px; }
  .nav { inset-block-start: 64px; }
}

/* ---------- fact tables on dark sections ---------- */
.facts--dark th, .facts--dark td { border-bottom-color: rgba(255,255,255,.12); }
.facts--dark th { color: #fff; width: 68%; font-weight: 600; }
.facts--dark td { color: #8fa2ad; }

/* ---------- profile photo: don't balloon on narrow layouts ---------- */
@media (max-width: 820px) {
  .profile__photo { max-width: 220px; }
}

/* ---------- capability pillars ---------- */
.pillars {
  list-style: none; margin: 0; padding: 0;
  counter-reset: pillar;
  display: grid; gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillars > li {
  background: var(--paper);
  padding: var(--sp-6) var(--sp-5);
  margin: 0;
  display: flex; flex-direction: column;
}
.pillars > li::before {
  counter-increment: pillar;
  content: counter(pillar, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--acc-600); margin-bottom: var(--sp-4);
}
.pillars h3 {
  font-family: var(--f-body); font-size: .95rem; font-weight: 650;
  line-height: 1.35; margin-bottom: var(--sp-3); letter-spacing: -.005em;
}
.pillars p { font-size: .86rem; line-height: 1.55; margin: 0; color: var(--tx-2); }

@media (max-width: 1040px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- triad hero headline ----------
   Sized to sit on a single line on desktop; wraps naturally on small screens. */
.hero__h1--triad {
  font-size: clamp(2rem, 6.8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -.032em;
  margin-bottom: var(--sp-6);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .hero__h1--triad { white-space: normal; font-size: clamp(2.1rem, 9vw, 3rem); }
}
.hero__inner { max-width: 940px; }

/* ---------- pillars: three-layer variant ---------- */
.pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillars h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
@media (max-width: 1040px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .pillars { grid-template-columns: 1fr; } }

/* ---------- full-width rows in fact tables (career history) ---------- */
.facts th[colspan="2"] { width: auto; }
