/* ==========================================================================
   marcpope.com v3 — light editorial theme
   Fira Sans 500 (all display: headlines, wordmark, monogram, card titles, stats) + Google Sans Flex (text).
   ========================================================================== */

:root {
  --navy: #0A2647;
  --navy-deep: #061A36;
  --navy-2: #11305A;
  --amber: #F5A623;
  --amber-dark: #E89A1F;
  --amber-text: #C8841A;
  --ink: #0A2647;
  --muted: #5A6273;
  --faint: #7A8294;
  --hairline: #C5CAD4;
  --border: #E2E5EB;
  --paper: #FFFFFF;
  --paper-soft: #F8F9FB;
  --paper-tint: #F1F3F6;
  --cream: #FBF8F2;
  --green: #2FB870;
  --red: #D64545;

  --serif: 'Fira Sans', 'Google Sans Flex', system-ui, sans-serif; /* display face (name kept for compatibility) */
  --sans: 'Google Sans Flex', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --headline: 'Fira Sans', 'Google Sans Flex', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 2px 4px rgba(10, 38, 71, .06), 0 1px 2px rgba(10, 38, 71, .04);
  --shadow-2: 0 6px 16px rgba(10, 38, 71, .08), 0 2px 4px rgba(10, 38, 71, .04);
  --shadow-3: 0 16px 36px rgba(10, 38, 71, .12), 0 4px 10px rgba(10, 38, 71, .06);
  --shadow-4: 0 24px 48px rgba(10, 38, 71, .14), 0 6px 14px rgba(10, 38, 71, .06);
  --shadow-hero: 0 28px 60px rgba(10, 38, 71, .18), 0 8px 18px rgba(10, 38, 71, .08);
  --wrap: 1240px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; overflow-x: clip; }
.site-footer, .cta-band { overflow-x: clip; }
a { color: var(--ink); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--amber); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--ink); letter-spacing: -1px; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(245, 166, 35, .35); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes v3Rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes v3Fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v3Grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes v3GrowY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes v3Ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes v3Pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes v3SlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes v3Word { from { opacity: 0; transform: translateY(110%) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes v3Count { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes v3Orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes v3Blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.rise { animation: v3Rise .8s var(--ease) both; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .16s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .32s; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal="in"] { opacity: 1; transform: none; }
[data-reveal-rule] { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .15s; }
[data-reveal="in"] [data-reveal-rule], .no-reveal [data-reveal-rule] { transform: scaleX(1); }

.hero h1 .w.accent > span, h1 em { font-weight: 400; }

/* --------------------------------------------------------------------------
   Buttons, chips, eyebrows
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--radius-sm);
  padding: 16px 26px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: all 200ms var(--ease);
}
.btn svg { flex: none; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245, 166, 35, .32); }
.btn-primary:active { transform: scale(.98); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 14.5px 24.5px; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost:active { transform: scale(.98); }
.btn-light { background: #fff; color: var(--navy); border: 1.5px solid var(--border); padding: 14.5px 24.5px; }
.btn-light:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 12px 20px; font-size: 13px; }
.btn-ghost.btn-sm { padding: 10.5px 18.5px; }
.btn-block { width: 100%; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
}
.eyebrow-rule { width: 36px; height: 2px; background: var(--amber); flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: v3Pulse 2.4s ease-in-out infinite; }
.chip-accent { color: var(--amber-text); }
.chip-sep { color: var(--hairline); }
.chip-sep-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--paper-tint); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.pill-navy { background: var(--navy); color: #fff; }
.pill-navy:hover { color: #fff; background: var(--navy-2); }
.pill-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 5px 11px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px;
}
.section-head-copy { display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-weight: 600; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; text-wrap: balance; }
.section-head-side { display: flex; align-items: center; gap: 24px; }
.section-index { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--hairline); letter-spacing: .1em; white-space: nowrap; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: all 200ms var(--ease);
}
.link-more:hover { color: var(--ink); border-color: var(--amber); }

.icon-orb {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 2px var(--amber);
  display: grid; place-items: center; color: var(--amber);
  transition: all 300ms var(--ease);
}
.icon-orb-sm { width: 44px; height: 44px; }

.circle-arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--navy); display: grid; place-items: center; color: var(--navy);
  transition: all 300ms var(--ease);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.scroll-progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--amber); transform-origin: left; transform: scaleX(0);
  transition: transform 80ms linear;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.monogram {
  width: 40px; height: 40px; border-radius: 6px; flex: none;
  background: var(--navy); box-shadow: inset 0 0 0 2px var(--amber);
  display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-weight: 500; font-size: 16px; letter-spacing: .02em;
}
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -1px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative; display: inline-block; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--ink); background: none; border: 0;
}
.site-nav a:hover { color: var(--amber); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 2px;
  background: var(--amber); transform-origin: left; animation: v3Grow 320ms var(--ease) both;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 184, 112, .18); animation: v3Pulse 2s ease-in-out infinite;
}
.header-cta { padding: 12px 20px; font-size: 13px; box-shadow: 0 1px 2px rgba(10, 38, 71, .06); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); place-items: center;
}
.nav-toggle .ico-close { display: none; }
.nav-open .nav-toggle .ico-menu { display: none; }
.nav-open .nav-toggle .ico-close { display: block; }

/* ---- Dark header variant ------------------------------------------------ */
.site-header { background: rgba(6, 26, 54, .94); border-bottom-color: rgba(255, 255, 255, .1); }
.site-header .brand, .site-header .wordmark { color: #fff; }
.site-header .monogram { background: var(--navy-2); box-shadow: inset 0 0 0 2px var(--amber); }
.site-nav a { color: rgba(255, 255, 255, .78); }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.status-pill { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .72); }
.nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */
.flash {
  max-width: var(--wrap); margin: 24px auto 0; padding: 0 24px;
}
.flash-inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--paper-soft); font-size: 15px; line-height: 1.5;
}
.flash-success .flash-inner { border-color: rgba(47, 184, 112, .4); background: #F0FAF4; }
.flash-error .flash-inner { border-color: rgba(214, 69, 69, .35); background: #FDF2F2; }
.flash-close { border: 0; background: none; color: var(--faint); font-size: 22px; line-height: 1; padding: 0 4px; }
.flash-close:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 36px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-weight: 500; font-size: clamp(33px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -1px;
  display: flex; flex-wrap: wrap; gap: 0 .25em;
}
.hero h1 .w { display: inline-block; overflow: hidden; padding: 0 .04em .08em; margin: 0 -.04em -.08em; }
.hero h1 .w > span { display: inline-block; animation: v3Word .9s var(--ease) both; }
.hero h1 .w.accent > span { font-style: normal; font-weight: 500; color: var(--amber); }
.hero-desc { max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hero-accent { font-weight: 600; color: var(--amber-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; animation: v3Rise .9s var(--ease) .2s both; }
.hero-stripes {
  position: absolute; left: -28px; bottom: -28px; width: 96px; height: 96px; border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--amber) 0 2px, transparent 2px 10px); opacity: .45; pointer-events: none;
}
.hero-card {
  position: relative; overflow: hidden;
  background: var(--navy); border-radius: var(--radius); padding: 36px 32px 32px;
  box-shadow: var(--shadow-hero);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 400ms var(--ease);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.hero-spot {
  position: absolute; width: 360px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245, 166, 35, .22), transparent 70%);
  left: var(--sx, 50%); top: var(--sy, 50%); opacity: 0; transform: translate(-50%, -50%);
  transition: opacity 300ms;
}
.hero-card.is-hover .hero-spot { opacity: 1; }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-right: 110px; min-height: 28px; }
.hero-badge { position: absolute; top: -28px; right: -18px; width: 136px; height: 136px; z-index: 2; animation: v3Count .8s var(--ease) .9s both; }
.hero-badge-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(245, 166, 35, .75); animation: v3Orbit 40s linear infinite; }
.hero-badge-orbit { position: absolute; inset: 0; animation: v3Orbit 40s linear infinite; }
.hero-badge-orbit::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--amber); }
.hero-badge-disc {
  position: absolute; inset: 15px; border-radius: 50%; background: var(--navy-2);
  box-shadow: 0 0 0 2px var(--amber), 0 12px 28px rgba(10, 38, 71, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-badge-num { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1; color: var(--amber); letter-spacing: -1px; font-variant-numeric: lining-nums tabular-nums; }
.hero-badge-label { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.hero-card-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.cap-row {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 16px 14px; margin: 0 -14px; border-radius: 8px; border-top: 1px solid rgba(255, 255, 255, .12);
  animation: v3SlideIn .8s var(--ease) both;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.cap-row:hover { background: rgba(255, 255, 255, .06); transform: translateX(6px); }
.cap-bar {
  position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--amber);
  transform-origin: top; animation: v3GrowY .5s var(--ease) both;
}
.cap-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-2); box-shadow: 0 0 0 2px var(--amber);
  display: grid; place-items: center; color: var(--amber); transition: all 300ms var(--ease);
}
.cap-row:hover .cap-icon { background: var(--amber); color: var(--navy); transform: rotate(-8deg) scale(1.1); }
.cap-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cap-title { font-weight: 500; font-size: 16px; color: #fff; }
.cap-sub { font-size: 14px; color: rgba(255, 255, 255, .72); }
.cap-arrow { color: var(--amber); opacity: 0; transform: translateX(-10px); transition: all 220ms var(--ease); }
.cap-row:hover .cap-arrow { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--paper-soft); }
.ticker-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; height: 64px; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.ticker-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: v3Blink 1.2s steps(1) infinite; }
.ticker-viewport {
  flex: 1; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 12px; animation: v3Ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  flex: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: default; transition: all 200ms var(--ease);
}
.ticker-item:hover { background: var(--navy); color: var(--amber); border-color: var(--navy); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Home: services
   -------------------------------------------------------------------------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 24px; }
.section-last { padding-bottom: 96px; }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.service-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1);
  transition: all 260ms var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--amber);
  transform-origin: left; transform: scaleX(0); transition: transform 320ms var(--ease);
}
.service-card:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10, 38, 71, .12), 0 4px 10px rgba(10, 38, 71, .06); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-orb { background: var(--amber); color: var(--navy); transform: rotate(-8deg) scale(1.1); }
.service-title { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.25; }
.service-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------------------
   Home: leadership positioning and flagship proof
   -------------------------------------------------------------------------- */
.hero-leadership .hero-copy { gap: 26px; }
.hero-leadership .hero-desc { max-width: 610px; }

.proof-strip {
  color: #fff; background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.proof-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.45fr repeat(5, minmax(0, 1fr)); align-items: stretch;
}
.proof-intro, .proof-stat { min-width: 0; padding: 26px 18px; }
.proof-intro { padding-left: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.proof-intro strong { font-family: var(--headline); font-size: 18px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.proof-kicker, .proof-stat span {
  font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.proof-kicker { color: var(--amber); }
.proof-stat {
  border-left: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.proof-stat strong {
  font-family: var(--headline); font-size: clamp(20px, 2vw, 28px); font-weight: 500;
  line-height: 1; letter-spacing: -.03em; color: var(--amber); white-space: nowrap;
}

.flagship-section { padding-top: 96px; }
.flagship-card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  overflow: hidden; min-height: 520px; border-radius: var(--radius); background: var(--navy);
  box-shadow: var(--shadow-4);
}
.flagship-media {
  position: relative; display: block; min-width: 0; overflow: hidden;
  background: var(--paper-tint); border-right: 1px solid rgba(255, 255, 255, .12);
}
.flagship-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(6, 26, 54, .5));
}
.flagship-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: transform 800ms var(--ease);
}
.flagship-media:hover img { transform: scale(1.025); }
.flagship-media-label {
  position: absolute; left: 24px; bottom: 22px; z-index: 1;
  padding: 8px 11px; border-radius: var(--radius-sm); background: rgba(6, 26, 54, .9); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.flagship-copy {
  padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
  color: #fff;
}
.flagship-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  border: 1px solid rgba(245, 166, 35, .38); border-radius: 999px; color: var(--amber);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.flagship-copy h3 {
  font-family: var(--headline); font-size: clamp(30px, 3vw, 42px); font-weight: 500;
  line-height: 1; letter-spacing: -.03em; color: #fff;
}
.flagship-copy p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .72); text-wrap: pretty; }
.flagship-copy .flagship-lead { font-size: 18px; line-height: 1.45; color: #fff; }
.scope-list { display: flex; flex-wrap: wrap; gap: 8px; }
.scope-list span {
  padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .82); font-size: 11px; font-weight: 500;
}
.flagship-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.text-link:hover { color: var(--amber); }

.leadership-head { align-items: flex-end; }
.leadership-head .section-head-copy { max-width: 620px; }
.leadership-intro { max-width: 520px; align-items: flex-end; }
.leadership-intro p { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.leadership-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.leadership-card {
  position: relative; overflow: hidden; min-height: 250px; padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.leadership-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease);
}
.leadership-card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: var(--shadow-3); }
.leadership-card:hover::after { transform: scaleX(1); }
.leadership-card h3 { font-family: var(--headline); font-size: 22px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.leadership-card p { font-size: 14px; line-height: 1.58; color: var(--muted); text-wrap: pretty; }

.outcome-panel {
  margin-top: 24px; padding: 28px 30px 30px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--cream);
}
.outcome-label {
  display: block; margin-bottom: 22px; font-size: 10px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--amber-text);
}
.outcome-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.outcome-item { padding: 0 28px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.outcome-item:first-child { padding-left: 0; border-left: 0; }
.outcome-item:last-child { padding-right: 0; }
.outcome-item strong { font-family: var(--headline); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.outcome-item span { font-size: 14px; font-weight: 600; color: var(--ink); }
.outcome-item p { max-width: 300px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.projects-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects-grid-secondary .project-media { height: 300px; }

/* --------------------------------------------------------------------------
   Project cards (home + index)
   -------------------------------------------------------------------------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); box-shadow: var(--shadow-1); transition: all 300ms var(--ease);
}
.project-card:hover { color: var(--ink); border-color: var(--navy); transform: translateY(-6px); box-shadow: var(--shadow-4); }
.project-media {
  position: relative; height: 220px; background: var(--paper-tint); border-bottom: 1px solid var(--border); overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--hairline); }
.project-num {
  position: absolute; left: 16px; top: 16px; font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: .1em;
  color: var(--ink); background: #fff; padding: 5px 9px; border-radius: 4px; box-shadow: 0 1px 2px rgba(10, 38, 71, .1);
}
.project-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber);
  transform-origin: left; transform: scaleX(0); transition: transform 500ms var(--ease);
}
.project-card:hover .project-bar { transform: scaleX(1); }
.project-body { padding: 22px 24px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-body-copy { display: flex; flex-direction: column; gap: 8px; }
.project-title { font-weight: 600; font-size: 22px; line-height: 1.2; }
.project-short { font-size: 14px; line-height: 1.55; color: var(--muted); }
.project-card:hover .circle-arrow { background: var(--navy); color: var(--amber); transform: rotate(-45deg); }

/* Project index card variant */
.project-card-full .project-media { height: 240px; }
.project-card-full .project-body { flex-direction: column; padding: 24px; gap: 14px; flex: 1; }
.project-card-full .project-title { font-size: 24px; }
.project-card-full .project-short { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.project-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.featured-badge {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber); color: var(--navy); border-radius: var(--radius-sm); padding: 6px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; pointer-events: none;
}

/* --------------------------------------------------------------------------
   Home: latest blog
   -------------------------------------------------------------------------- */
.home-blog-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.post-feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); min-height: 380px; transition: all 300ms var(--ease);
}
.post-feature:hover { color: var(--ink); border-color: var(--navy); box-shadow: var(--shadow-3); transform: translateY(-4px); }
.post-feature-media { display: block; height: 250px; flex: none; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--paper-tint); }
.post-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.post-feature:hover .post-feature-media img { transform: scale(1.04); }
.post-feature-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 28px 32px 32px; }
.post-feature-quote {
  position: absolute; right: -30px; top: -50px; font-family: var(--serif); font-weight: 500; font-size: 200px; line-height: 1;
  color: rgba(245, 166, 35, .14); pointer-events: none; user-select: none;
}
.post-feature .pill-navy { align-self: flex-start; padding: 6px 12px; font-size: 11px; letter-spacing: .12em; }
.post-date { font-size: 13px; font-weight: 500; color: var(--amber-text); letter-spacing: .04em; }
.post-feature-title { font-weight: 600; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.post-feature-excerpt { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; color: var(--ink); }
.read-more-sm { font-size: 12px; gap: 6px; margin-top: 0; }
.post-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-row {
  position: relative; flex: 1; display: flex; align-items: center; gap: 20px;
  padding: 22px 28px; border-top: 1px solid var(--border); color: var(--ink); transition: all 240ms var(--ease);
}
.post-row:first-child { border-top: 0; }
.post-row:hover { background: var(--paper-soft); color: var(--ink); padding-left: 36px; box-shadow: inset 4px 0 0 var(--amber); }
.post-row-thumb {
  flex: none; width: 112px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--paper-tint); border: 1px solid var(--border); display: grid; place-items: center; color: var(--hairline);
}
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.post-row:hover .post-row-thumb img { transform: scale(1.06); }
.post-row-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-row-meta { display: flex; gap: 12px; font-size: 12px; font-weight: 500; color: var(--amber-text); letter-spacing: .04em; }
.post-row-meta .cat { color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.post-row-title { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.3; text-wrap: balance; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-weight: 500; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.page-hero h1 em { font-style: normal; font-weight: 500; color: var(--amber); }
.page-hero-desc { max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.filter {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 20px;
  font-size: 14px; font-weight: 500; transition: all 200ms var(--ease);
}
.filter:hover { border-color: var(--navy); color: var(--ink); }
.filter-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--paper-tint); color: var(--muted); font-size: 12px; font-weight: 600;
}
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter.active .filter-count { background: var(--amber); color: var(--navy); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.page-link {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--border); font-size: 14px; font-weight: 500; color: var(--ink); transition: all 200ms var(--ease);
}
.page-link:hover { border-color: var(--navy); color: var(--ink); }
.page-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-link-arrow { display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */
.project-hero { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
.project-hero-copy { display: flex; flex-direction: column; gap: 16px; }
.project-hero h1 { font-weight: 500; font-size: clamp(33px, 3.8vw, 50px); line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.project-hero-desc { max-width: 720px; font-size: 18px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.project-hero-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.project-layout { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.project-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

.project-hero-v2 { padding-top: 64px; padding-bottom: 36px; }
.project-hero-v2 .project-hero-copy { gap: 20px; }
.project-hero-v2 h1 { max-width: 940px; font-size: clamp(40px, 5.4vw, 70px); line-height: .98; letter-spacing: -.04em; }
.project-hero-v2 .project-hero-desc { max-width: 850px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; }
.project-hero-topline { display: flex; align-items: center; gap: 14px; }
.project-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.project-back:hover { color: var(--amber-text); }
.project-kicker { padding-left: 14px; border-left: 1px solid var(--border); color: var(--amber-text); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.project-hero-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 4px; }
.project-hero-v2 .project-hero-cats { justify-content: flex-start; }
.project-hero-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.project-showcase { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.project-showcase .slideshow { border-radius: 14px; box-shadow: var(--shadow-hero); }
.project-showcase .slides { aspect-ratio: 16 / 8.45; }
.project-showcase .slide img { object-fit: contain; }
.project-showcase .slide-caption { padding: 15px 20px; }
.project-layout-v2 { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; padding-top: 72px; }
.project-story { max-width: 760px; }

.slideshow {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-tint);
  border: 1px solid var(--border); box-shadow: var(--shadow-2);
}
.slides { position: relative; aspect-ratio: 16 / 9; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: #0B1730; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-2); transition: all 200ms var(--ease);
}
.slide-nav:hover { background: var(--navy); color: var(--amber); border-color: var(--navy); }
.slide-prev { left: 16px; } .slide-next { right: 16px; }
.slide-counter {
  position: absolute; right: 16px; bottom: 16px; padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 38, 71, .85); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .04em;
}
.slide-caption { padding: 14px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); background: #fff; min-height: 46px; }
.slideshow-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--hairline); }

.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.side-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.side-card-dark { background: var(--navy); border-color: var(--navy); color: #fff; padding: 28px; gap: 14px; }
.side-title { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.side-card-dark .side-title { color: var(--amber); }
.side-card-dark h3 { color: #fff; font-size: 24px; line-height: 1.2; font-weight: 600; }
.side-card-dark p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.side-card-dark .note { font-size: 12px; color: rgba(255, 255, 255, .55); }
.meta-list { display: flex; flex-direction: column; }
.meta-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.meta-list > div:first-child { border-top: 0; padding-top: 0; }
.meta-list dt { color: var(--faint); font-weight: 500; }
.meta-list dd { margin: 0; font-weight: 500; text-align: right; }
.meta-cats a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.meta-cats a:hover { color: var(--amber-text); }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.side-links { display: flex; flex-direction: column; gap: 10px; }
.other-list { display: flex; flex-direction: column; }
.other-list a {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.other-list li:first-child a { border-top: 0; padding-top: 0; }
.other-list img { width: 56px; height: 36px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--border); flex: none; }
.other-list .thumb-empty { width: 56px; height: 36px; border-radius: 4px; background: var(--paper-tint); border: 1px solid var(--border); flex: none; }

.project-brief-wrap { min-width: 0; }
.project-brief {
  position: sticky; top: 96px; overflow: hidden; padding: 30px; border-radius: 14px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-4);
}
.project-brief::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--amber); }
.project-brief-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.project-brief-label, .project-brief-role > span, .project-brief-proves > span {
  display: block; color: var(--amber); font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
}
.project-status { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.project-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 184, 112, .12); }
.project-brief-role { padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.project-brief-role h2 { max-width: 300px; margin-top: 8px; color: #fff; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.08; letter-spacing: -.025em; }
.project-brief-proves { padding: 24px 0; }
.project-brief-proves p { margin-top: 9px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.project-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -30px; border-top: 1px solid rgba(255, 255, 255, .13); border-bottom: 1px solid rgba(255, 255, 255, .13); }
.project-proof { min-width: 0; padding: 20px 14px; border-left: 1px solid rgba(255, 255, 255, .13); text-align: center; }
.project-proof:first-child { border-left: 0; }
.project-proof strong { display: block; color: #fff; font-family: var(--headline); font-size: 20px; font-weight: 500; line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.project-proof span { display: block; margin-top: 7px; color: rgba(255, 255, 255, .58); font-size: 9px; font-weight: 650; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.project-brief-section { padding-top: 24px; }
.project-scope-list, .project-stack-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.project-scope-list span, .project-stack-list span { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: rgba(255, 255, 255, .78); font-size: 11px; line-height: 1.2; }
.project-scope-list span { background: rgba(255, 255, 255, .06); color: #fff; }
.project-brief-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.project-brief-meta div { min-width: 0; }
.project-brief-meta dt { color: rgba(255, 255, 255, .48); font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.project-brief-meta dd { margin: 4px 0 0; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

.project-next-section { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 96px; }
.project-next-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-top: 56px; border-top: 1px solid var(--border); }
.project-next-head > div { display: flex; flex-direction: column; gap: 12px; }
.project-next-head h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -.03em; }
.project-next-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.project-next-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow-1); transition: all 260ms var(--ease); }
.project-next-card:hover { border-color: var(--navy); color: var(--ink); box-shadow: var(--shadow-3); transform: translateY(-5px); }
.project-next-media { position: relative; display: block; height: 150px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--paper-tint); }
.project-next-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 600ms var(--ease); }
.project-next-card:hover .project-next-media img { transform: scale(1.05); }
.project-next-copy { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.project-next-copy strong { font-family: var(--headline); font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.project-next-copy > span { display: inline-flex; align-items: center; gap: 7px; color: var(--amber-text); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Prose (blog + project descriptions)
   -------------------------------------------------------------------------- */
.prose { font-size: 17px; line-height: 1.5; color: #1F2A3D; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.25em; }
.prose p { text-wrap: pretty; }
.prose p:empty, .prose p:has(> br:only-child) { display: none; }
.prose h2, .prose h3, .prose h4 { line-height: 1.2; margin-top: 2em; margin-bottom: .6em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; }
.prose h3 { font-size: 22px; font-weight: 600; }
.prose h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--amber-text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--amber); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--amber); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.6em auto; }
.prose pre {
  margin: 1.6em 0; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--navy-deep); color: #E7ECF4;
  overflow-x: auto; font-size: 14px; line-height: 1.5;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--paper-tint); padding: .15em .4em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-soft); }

/* --------------------------------------------------------------------------
   Blog index
   -------------------------------------------------------------------------- */
.blog-hero { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.blog-hero-copy { display: flex; flex-direction: column; gap: 16px; }
.blog-hero h1 { font-weight: 500; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.blog-hero-desc { font-size: 18px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cat-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--ink); transition: all 200ms var(--ease); }
.cat-chip:hover { border-color: var(--navy); color: var(--ink); }
.cat-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.blog-layout { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.blog-main { display: flex; flex-direction: column; min-width: 0; }
.blog-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; color: var(--ink);
  margin-bottom: 16px; transition: all 200ms var(--ease);
}
.blog-feature:hover { border-color: var(--navy); color: var(--ink); box-shadow: var(--shadow-2); }
.blog-feature-media { height: 260px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-tint); }
.blog-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature-copy { display: flex; flex-direction: column; gap: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; font-weight: 500; color: var(--amber-text); letter-spacing: .04em; }
.post-meta .sep { color: var(--hairline); }
.post-meta .dim { color: var(--faint); }
.blog-feature-title { font-weight: 600; font-size: 30px; line-height: 1.15; text-wrap: balance; }
.blog-feature-excerpt { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.blog-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 26px 8px; border-top: 1px solid var(--border); color: var(--ink); transition: all 200ms var(--ease);
}
.blog-row:hover { color: var(--ink); padding-left: 16px; }
.blog-row:hover .circle-arrow { background: var(--navy); color: var(--amber); }
.blog-row-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--amber-text); letter-spacing: .04em; }
.blog-row-meta .cat { color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.blog-row-copy { display: flex; flex-direction: column; gap: 8px; }
.blog-row-title { font-weight: 600; font-size: 22px; line-height: 1.25; text-wrap: balance; }
.blog-row-excerpt { font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.topic-list { display: flex; flex-direction: column; }
.topic-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--ink); }
.topic-list a:hover { color: var(--amber-text); }
.topic-list a span:last-child { font-size: 12px; color: var(--faint); font-weight: 500; }
.side-card input[type="search"], .side-card input[type="text"] {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; outline: none; background: #fff; color: var(--ink);
}
.side-card input:focus { border-color: var(--navy); }
.search-form { display: flex; gap: 8px; }
.search-form button { flex: none; width: 44px; border-radius: var(--radius-sm); border: 0; background: var(--navy); color: var(--amber); display: grid; place-items: center; }
.search-form button:hover { background: var(--navy-2); }
.empty-state { padding: 64px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Blog single
   -------------------------------------------------------------------------- */
.article-head { max-width: 860px; margin: 0 auto; padding: 72px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.article-head .post-meta { justify-content: center; }
.article-head h1 { font-weight: 500; font-size: clamp(31px, 4vw, 50px); line-height: 1.08; letter-spacing: -1px; text-wrap: balance; }
.article-lead { max-width: 720px; font-size: 19px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.article-media { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.article-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.article-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.article-foot { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; display: flex; flex-direction: column; gap: 32px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-tags-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.article-share { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.share-btns { display: flex; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; transition: all 200ms var(--ease);
}
.share-btn:hover { border-color: var(--navy); color: var(--ink); }
.keep-reading { background: var(--paper-soft); border-top: 1px solid var(--border); }
.keep-reading .section { padding-top: 72px; padding-bottom: 88px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-post { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow-1); transition: all 300ms var(--ease); }
.mini-post:hover { color: var(--ink); border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-3); }
.mini-post-media { height: 160px; background: var(--paper-tint); }
.mini-post-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-post-body { padding: 4px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.mini-post-title { font-weight: 600; font-size: 19px; line-height: 1.25; text-wrap: balance; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-hero { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 40px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy h1 { font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -1px; text-wrap: balance; }
.about-copy h1 em { font-style: normal; font-weight: 500; color: var(--amber); }
.about-copy p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.about-portrait { position: relative; }
.about-portrait-shadow { position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--radius); background: rgba(10, 38, 71, .5); }
.about-portrait-frame { position: relative; height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--paper-tint); box-shadow: var(--shadow-2); }
.about-portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.stats-band { background: var(--navy); }
.stats-grid { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat-value { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; color: var(--amber); letter-spacing: -1px; }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, .72); }

.head-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.head-stack .eyebrow { color: var(--amber); }
.head-stack h2 { font-weight: 600; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journey-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-1);
}
.journey-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--amber); }
.journey-step { font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--faint); letter-spacing: .02em; }
.journey-era { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); }
.journey-title { font-weight: 600; font-size: 23px; line-height: 1.2; }
.journey-body { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.toolbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-1); transition: all 200ms var(--ease);
}
.tool-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.tool-copy { display: flex; flex-direction: column; gap: 6px; }
.tool-title { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.tool-items { font-size: 14px; line-height: 1.55; color: var(--muted); }

.passion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.passion-grid-four { grid-template-columns: repeat(4, 1fr); }
.passion-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1); transition: all 200ms var(--ease);
}
.passion-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.passion-card h3 { font-weight: 600; font-size: 23px; line-height: 1.2; }
.passion-card p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.passion-links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
.passion-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.passion-links a:hover { color: var(--amber-text); }

/* --------------------------------------------------------------------------
   About: career timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 28px; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 190px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--amber), rgba(245, 166, 35, .15)); }
.tl-item { position: relative; display: grid; grid-template-columns: 160px 60px minmax(0, 1fr); align-items: start; }
.tl-when { padding-top: 26px; font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: -.3px; color: var(--amber-text); white-space: nowrap; text-align: right; }
.tl-dot { position: relative; top: 24px; justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--amber), 0 0 0 8px #fff; }
.tl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); transition: all 200ms var(--ease);
}
.tl-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.tl-role { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -.5px; color: var(--ink); }
.tl-org { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tl-highlight { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.tl-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink); align-self: flex-start; }
.tl-link:hover { color: var(--amber-text); }
.tl-flag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 6px; padding: 5px 10px; border-radius: 999px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tl-flagship .tl-card { border-color: var(--amber); box-shadow: inset 4px 0 0 var(--amber), var(--shadow-2); background: var(--cream); }
.tl-flagship .tl-dot { background: var(--amber); }

@media (max-width: 720px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 30px minmax(0, 1fr); }
  .tl-when { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 8px; }
  .tl-dot { grid-column: 1; grid-row: 1; top: 2px; justify-self: start; }
  .tl-card { grid-column: 2; grid-row: 2; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-layout { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.contact-copy h1 { font-weight: 500; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.contact-copy h1 em { font-style: normal; font-weight: 500; color: var(--amber); }
.contact-copy > p { max-width: 520px; font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.contact-facts { display: flex; flex-direction: column; margin-top: 8px; }
.fact { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.fact:last-child { border-bottom: 1px solid var(--border); }
.fact-copy { display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fact-value { font-weight: 500; }
.contact-socials { display: flex; gap: 10px; flex-wrap: wrap; }

.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-3);
}
.form-card .eyebrow { color: var(--amber); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px; outline: none;
  background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 38, 71, .06); transition: border-color 200ms var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 12px; color: var(--faint); text-align: center; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%);
}
.cta-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 64px 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-copy { display: flex; flex-direction: column; gap: 10px; }
.cta-copy h2 { font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; color: #fff; text-wrap: balance; }
.cta-btn { padding: 18px 30px; transition: transform 200ms var(--ease), box-shadow 200ms, background 200ms; }
.cta-btn:hover { box-shadow: 0 12px 28px rgba(245, 166, 35, .35); }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); }
.footer-grid { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { color: #fff; }
.footer-brand .monogram { width: 36px; height: 36px; font-size: 14px; }
.footer-brand .wordmark { font-size: 20px; color: #fff; }
.footer-desc { max-width: 380px; font-size: 14px; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-bottom-right { display: flex; align-items: center; gap: 18px; }
.uptime-badge img { height: 22px; opacity: .85; transition: opacity 200ms; }
.uptime-badge:hover img { opacity: 1; }

/* --------------------------------------------------------------------------
   Sparkle buttons (hero + about actions)
   -------------------------------------------------------------------------- */
@keyframes v3Sweep { from { transform: translateX(-140%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes v3SparkPop {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(200deg); opacity: 0; }
}
@keyframes v3SparkTwinkle {
  0%, 100% { transform: translate(-50%, -50%) scale(.4) rotate(0deg); opacity: .15; }
  50%      { transform: translate(-50%, -50%) scale(1) rotate(90deg); opacity: 1; }
}
@keyframes v3SparkSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.btn-sparkle { position: relative; overflow: visible; isolation: isolate; }
.btn-sparkle::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}
.btn-sparkle:hover::after { animation: v3Sweep .7s var(--ease) .05s both; opacity: 1; }
.btn-ghost.btn-sparkle:hover::after { background: linear-gradient(90deg, transparent, rgba(245, 166, 35, .35), transparent); }
.sparkle-field { position: absolute; inset: -16px; pointer-events: none; z-index: 2; transition: opacity .35s; }
.sparkle-field.out { opacity: 0; }
.sparkle-field .spin { position: absolute; inset: 0; animation: v3SparkSpin 9s linear infinite; }
.sparkle {
  position: absolute; width: 12px; height: 12px; background: var(--amber);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 3px rgba(245, 166, 35, .7));
  animation: v3SparkPop .9s cubic-bezier(.2, .7, .3, 1) both;
}
.sparkle.big { width: 18px; height: 18px; }
.sparkle.dot { width: 5px; height: 5px; clip-path: none; border-radius: 50%; }
.sparkle.linger { animation: v3SparkTwinkle 1.6s ease-in-out infinite; }
.btn-primary .sparkle { background: #F5A623; filter: drop-shadow(0 0 4px rgba(232, 154, 31, .95)) drop-shadow(0 0 1px rgba(10, 38, 71, .5)); }
.btn-primary .sparkle.big { background: #FFC85C; }
.btn-primary .sparkle.dot { background: var(--navy); filter: none; }
@media (prefers-reduced-motion: reduce) { .sparkle-field { display: none; } .btn-sparkle:hover::after { animation: none; opacity: 0; } }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.not-found { max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 140px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.not-found-code { font-family: var(--serif); font-weight: 500; font-size: clamp(96px, 14vw, 180px); line-height: .9; color: var(--paper-tint); letter-spacing: -.04em; }
.not-found h1 { font-weight: 600; font-size: clamp(32px, 4vw, 48px); margin-top: -.4em; }
.not-found p { max-width: 460px; font-size: 17px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .status-pill { display: none; }
  .hero { gap: 40px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .about-portrait-frame { height: 400px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; }
  .project-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .project-layout-v2 { grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; }
  .proof-grid { grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr)); }
  .proof-intro, .proof-stat { padding-left: 14px; padding-right: 14px; }
  .proof-intro { padding-left: 0; }
  .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leadership-card { min-height: 220px; }
  .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .outcome-item:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-3); padding: 8px 24px 16px;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 4px; font-size: 17px; border-top: 1px solid var(--border); }
  .site-nav a:first-child { border-top: 0; }
  .site-nav a.active::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .nav-toggle { display: grid; }
  .header-actions { gap: 10px; }

  .hero { grid-template-columns: 1fr; padding: 28px 24px 28px; gap: 40px; }
  .hero h1 { font-size: clamp(30px, 5.8vw, 44px); }
  .hero-visual { max-width: 560px; }
  .hero-badge { width: 116px; height: 116px; top: -22px; right: -10px; }
  .hero-badge-num { font-size: 32px; }
  .hero-card-head { padding-right: 90px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .home-blog-grid { grid-template-columns: 1fr; }
  .post-feature { min-height: 0; }
  .post-feature-media { height: 220px; }
  .post-feature-body { padding: 24px; }
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; padding-bottom: 18px; }
  .proof-intro { grid-column: 1 / -1; padding: 0 0 14px; }
  .proof-stat { padding: 14px 16px; }
  .proof-stat:nth-child(2), .proof-stat:nth-child(5) { border-left: 0; }
  .flagship-card { grid-template-columns: 1fr; }
  .flagship-media { min-height: 380px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .flagship-copy { padding: 38px 34px; }
  .leadership-head { align-items: flex-start; }
  .leadership-intro { max-width: none; align-items: flex-start; }

  .blog-hero { grid-template-columns: 1fr; gap: 24px; }
  .cat-chips { justify-content: flex-start; }
  .blog-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .blog-feature { grid-template-columns: 1fr; padding: 24px; }
  .blog-feature-media { height: 220px; }
  .blog-row { grid-template-columns: minmax(0, 1fr) auto; }
  .blog-row-meta { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
  .blog-row-meta .cat { order: 2; }
  .mini-grid { grid-template-columns: 1fr; }

  /* Stacked about hero: eyebrow, then a small square portrait, then the copy */
  .about-hero { grid-template-columns: 1fr; gap: 14px; padding-top: 32px; }
  .about-copy { display: contents; }
  .about-copy > .eyebrow { order: 1; }
  .about-portrait { order: 2; width: 33vw; max-width: 220px; margin: 4px 0 12px; }
  .about-portrait-frame { height: auto; aspect-ratio: 1 / 1; }
  .about-portrait-shadow { inset: 8px -8px -8px 8px; }
  .about-copy > h1 { order: 3; }
  .about-copy > p { order: 4; }
  .about-actions { order: 5; margin-top: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .journey-grid, .toolbox-grid, .passion-grid { grid-template-columns: 1fr 1fr; }
  .passion-grid-four { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .form-card { padding: 28px; }
  .project-hero { grid-template-columns: 1fr; gap: 16px; padding-top: 56px; }
  .project-hero-cats { justify-content: flex-start; }
  .project-layout { grid-template-columns: 1fr; }
  .project-layout-v2 { gap: 48px; padding-top: 56px; }
  .project-story { max-width: none; }
  .project-brief { position: static; }
  .project-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-inner { padding: 48px 24px; }
}

/* Mobile dropdown on the dark header: lighter navy panel, white links */
@media (max-width: 960px) {
  .site-header .site-nav { background: var(--navy-2); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 36px rgba(6, 26, 54, .35); }
  .site-header .site-nav a { color: #fff; border-top: 1px solid rgba(255, 255, 255, .12); }
  .site-header .site-nav a:hover { color: var(--amber); }
  .site-header .site-nav a.active { color: #fff; }
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid, .toolbox-grid, .passion-grid { grid-template-columns: 1fr; }
  .passion-grid-four { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  .page-hero, .blog-hero, .article-head { padding-top: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .article-share { flex-direction: column; align-items: flex-start; }
  .header-cta { display: none; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-stat:nth-child(2), .proof-stat:nth-child(4), .proof-stat:nth-child(6) { border-left: 0; }
  .proof-stat:nth-child(5) { border-left: 1px solid rgba(255, 255, 255, .12); }
  .flagship-section { padding-top: 72px; }
  .flagship-media { min-height: 300px; }
  .leadership-grid, .outcome-grid, .projects-grid-secondary { grid-template-columns: 1fr; }
  .leadership-card { min-height: 0; }
  .outcome-item { padding: 20px 0; border-left: 0; border-top: 1px solid var(--border); }
  .outcome-item:first-child { padding-top: 0; border-top: 0; }
  .outcome-item:last-child { padding-bottom: 0; }
  .projects-grid-secondary .project-media { height: 240px; }
  .project-hero-footer, .project-next-head { align-items: flex-start; flex-direction: column; }
  .project-hero-actions { width: 100%; }
  .project-showcase .slides { aspect-ratio: 16 / 10; }
  .project-layout-v2 { padding-top: 48px; padding-bottom: 72px; }
  .project-next-section { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .post-row-thumb { width: 80px; height: 56px; }
  .post-row { gap: 14px; padding: 18px 20px; }
  .services-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat { padding-left: 16px; }
  .hero-card { padding: 28px 22px 24px; }
  .hero-badge { width: 104px; height: 104px; top: -18px; right: -6px; }
  .hero-badge-num { font-size: 28px; }
  .btn { padding: 14px 20px; }
  .wordmark { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-feature-body { padding: 20px; }
  .proof-intro strong { font-size: 17px; }
  .proof-stat { padding: 14px 10px; }
  .proof-stat strong { font-size: 21px; }
  .proof-stat span { font-size: 9px; }
  .flagship-media { min-height: 230px; }
  .flagship-copy { padding: 30px 22px; }
  .flagship-copy .flagship-lead { font-size: 17px; }
  .outcome-panel { padding: 24px 22px; }
  .project-hero-v2 { padding-top: 42px; padding-bottom: 28px; }
  .project-hero-v2 h1 { font-size: clamp(36px, 12vw, 48px); }
  .project-hero-topline { gap: 10px; }
  .project-kicker { padding-left: 10px; }
  .project-hero-actions { align-items: stretch; flex-direction: column; }
  .project-hero-actions .btn { width: 100%; }
  .project-showcase .slides { aspect-ratio: 4 / 3; }
  .project-showcase .slide-nav { width: 38px; height: 38px; }
  .project-brief { padding: 26px 22px; }
  .project-proof-grid { margin-left: -22px; margin-right: -22px; }
  .project-proof { padding: 18px 8px; }
  .project-proof strong { font-size: 17px; }
  .project-brief-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-next-grid { grid-template-columns: 1fr; }
  .project-next-media { height: 190px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-rule] { transform: scaleX(1); }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-viewport { -webkit-mask-image: none; mask-image: none; }
  .ticker-inner { height: auto; padding-top: 14px; padding-bottom: 14px; }
}

/* ---- Headline face: Fira Sans 500, line-height 1 ------------------------- */
.hero h1, .page-hero h1, .about-copy h1, .contact-copy h1, .blog-hero h1, .article-head h1, .project-hero h1,
.section-head h2, .head-stack h2, .cta-copy h2, .not-found h1 {
  font-family: var(--headline); font-weight: 500; letter-spacing: -.03em; line-height: 1;
  -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; text-rendering: optimizeLegibility;
}
.hero h1 .w > span, .hero h1 .w.accent > span, h1 em, .about-copy h1 em, .contact-copy h1 em { font-weight: 500; font-style: normal; }
.hero h1 { font-size: clamp(34px, 3.9vw, 54px); }
.page-hero h1, .contact-copy h1, .blog-hero h1 { font-size: clamp(36px, 4.2vw, 56px); }
.about-copy h1 { font-size: clamp(32px, 3.6vw, 46px); }
.project-hero h1, .article-head h1 { font-size: clamp(32px, 3.8vw, 50px); }
.section-head h2, .head-stack h2 { font-size: clamp(28px, 3.1vw, 40px); }
.cta-copy h2 { font-size: clamp(26px, 2.8vw, 36px); }
@media (max-width: 960px) { .hero h1 { font-size: clamp(30px, 5.8vw, 44px); } }

/* Hero headline word stagger driven by --word-delay / --accent-delay set inline in home.php */
@keyframes v3Accent { from { color: var(--ink); } to { color: var(--amber); } }
.hero h1 .w > span { animation-delay: var(--word-delay, 0s); }
.hero h1 .w.accent > span { animation: v3Word .9s var(--ease) both, v3Accent .5s var(--ease) both; animation-delay: var(--word-delay, 0s), var(--accent-delay, .6s); }
