/*
Theme Name: Mathew Hutchison
Theme URI:
Author: Mathew Hutchison
Description: Personal portfolio theme for Mathew Hutchison, Business Analyst.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mathew-hutchison
*/

:root {
  --navy:      #0e1c33;
  --navy-700:  #12243f;
  --navy-600:  #1a3052;
  --charcoal:  #1f2632;
  --ink:       #141a24;
  --slate:     #4a586c;
  --slate-soft:#6b7889;
  --line:      #e3e7ee;
  --line-soft: #edf0f5;
  --bg:        #f6f7f9;
  --bg-warm:   #fbfbfc;
  --card:      #ffffff;
  --accent:    #2f5c92;
  --accent-bright: #3f72b0;
  --accent-soft: #eef3f9;
  --on-navy:   #c9d4e4;
  --on-navy-soft: #8a9bb4;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,28,51,.04), 0 1px 1px rgba(16,28,51,.04);
  --shadow-md: 0 14px 40px -18px rgba(16,28,51,.22), 0 4px 12px -8px rgba(16,28,51,.12);
  --shadow-lg: 0 40px 90px -40px rgba(16,28,51,.40);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow .idx { color: var(--slate-soft); }
.eyebrow.on-dark { color: #7fa6d6; }
.eyebrow.on-dark .idx { color: var(--on-navy-soft); }

.section-title {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: clamp(30px, 4.2vw, 50px);
  color: var(--navy);
}
.section-title em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--slate);
  max-width: 56ch;
  line-height: 1.65;
}

section { position: relative; }
.pad { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lede { margin-top: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,247,249,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
header.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16,28,51,.02);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; display: block; flex: none; box-shadow: var(--shadow-sm); }
.brand .who { display: flex; flex-direction: column; line-height: 1.15; }
.brand .who b { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.brand .who span { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-soft); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--slate); padding: 9px 14px; border-radius: 8px;
  font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy); background: rgba(47,92,146,.07); }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff !important;
  background: var(--navy); padding: 10px 18px !important; border-radius: 9px;
  transition: background .2s, transform .2s !important; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }
.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--card); cursor: pointer; color: var(--navy);
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 2px;
    padding: 12px var(--gut) 22px; background: var(--bg-warm); border-bottom: 1px solid var(--line);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 6px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line-soft); font-weight: 500; }
  .mobile-menu a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 110px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(47,92,146,.08), transparent 60%),
    radial-gradient(700px 420px at 4% 8%, rgba(47,92,146,.045), transparent 55%);
}
.hero-grid { max-width: 760px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  padding: 7px 7px 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.6); font-size: 13px; color: var(--slate);
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #349a6a; box-shadow: 0 0 0 4px rgba(52,154,106,.16); }
.hero-kicker .tag { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

.hero-kicker .nodot { width: 7px; height: 7px; border-radius: 50%; background: #961e2a; box-shadow: 0 0 0 4px rgba(150,30,42,1); }
 
.hero h1 {
  font-family: var(--ff-display); font-weight: 500; letter-spacing: -0.018em;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.04; color: var(--navy);
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--slate); max-width: 52ch; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 11px; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

.hero-meta { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-meta .m { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .m b { font-family: var(--ff-display); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1; }
.hero-meta .m span { font-size: 12.5px; color: var(--slate-soft); font-family: var(--ff-mono); letter-spacing: .04em; }
.hero-meta .divider { width: 1px; background: var(--line); }


/* statement band */
.statement { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.statement-inner { padding-block: clamp(48px, 7vw, 84px); display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.statement .lab { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-soft); padding-top: 12px; }
.statement .lab .ln { display: block; width: 34px; height: 2px; background: var(--accent); margin-top: 14px; }
.statement p { font-family: var(--ff-display); font-weight: 400; font-size: clamp(23px, 2.9vw, 36px); line-height: 1.4; letter-spacing: -.01em; color: var(--navy); }
.statement p em { font-style: italic; color: var(--accent); }
.statement .sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.statement .sectors span { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .04em; color: var(--slate); background: var(--card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
@media (max-width: 720px) { .statement-inner { grid-template-columns: 1fr; gap: 22px; } .statement .lab { padding-top: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-aside { position: sticky; top: 100px; }
.about-aside .sig { font-family: var(--ff-display); font-style: italic; font-size: 26px; color: var(--navy); margin-top: 8px; }
.about-body p { font-size: clamp(16px, 1.45vw, 18.5px); color: var(--slate); margin-bottom: 22px; line-height: 1.72; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-body p:first-child { font-family: var(--ff-display); font-size: clamp(21px, 2.4vw, 27px); color: var(--navy); line-height: 1.45; font-weight: 400; }
.pos-row { display: flex; align-items: stretch; gap: 0; margin: 34px 0 4px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.pos-row .end { flex: 1; padding: 18px 22px; }
.pos-row .end b { display: block; font-size: 14px; color: var(--navy); font-weight: 600; }
.pos-row .end span { font-size: 12.5px; color: var(--slate-soft); }
.pos-row .mid { width: 92px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-inline: 1px solid var(--line); }

/* ---------- Expertise ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.exp-card { background: var(--card); padding: 34px 30px 36px; transition: background .3s; position: relative; }
.exp-card:hover { background: var(--bg-warm); }
.exp-card .num { font-family: var(--ff-mono); font-size: 12px; color: var(--slate-soft); letter-spacing: .08em; }
.exp-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 18px 0 20px; transition: background .3s, color .3s; }
.exp-card:hover .ic { background: var(--navy); color: #fff; }
.exp-card .ic svg { width: 23px; height: 23px; }
.exp-card h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; margin-bottom: 11px; }
.exp-card p { font-size: 14.5px; color: var(--slate); line-height: 1.62; }
.exp-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.exp-card .tags span { font-family: var(--ff-mono); font-size: 11px; color: var(--slate); background: var(--bg); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }
@media (max-width: 920px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .exp-grid { grid-template-columns: 1fr; } }

/* ---------- Impact ---------- */
.impact { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.impact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% -10%, rgba(63,114,176,.22), transparent 60%); }
.impact .wrap { position: relative; }
.impact .section-title { color: #fff; }
.impact .section-title em { color: #87b0e0; }
.impact .lede { color: var(--on-navy); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.kpi {
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 30px 26px; position: relative;
  overflow: hidden; cursor: default;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s, box-shadow .35s;
}
.kpi::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, #87b0e0, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.kpi .kx { position: absolute; top: 18px; right: 20px; font-family: var(--ff-mono); font-size: 11px; color: var(--on-navy-soft); letter-spacing: .08em; transition: color .35s; }
.kpi:hover {
  transform: translateY(-6px);
  border-color: rgba(135,176,224,.5);
  background: linear-gradient(165deg, rgba(135,176,224,.12), rgba(255,255,255,.02));
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.kpi:hover::after { transform: scaleX(1); }
.kpi:hover .kx { color: #87b0e0; }
.kpi .v { font-family: var(--ff-display); font-size: clamp(38px, 4.4vw, 56px); font-weight: 600; color: #fff; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .v .u { font-size: .55em; color: #87b0e0; margin-left: 2px; }
.kpi .k { font-size: 14px; color: var(--on-navy); margin-top: 14px; line-height: 1.5; }
.kpi .bar { height: 1px; background: rgba(255,255,255,.12); margin: 18px 0 0; position: relative; overflow: hidden; }
.kpi .bar::before { content: ""; position: absolute; inset: 0; background: #87b0e0; transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1) .2s; }
.kpi.counted .bar::before { transform: scaleX(1); }
.kpi .ctx {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1), opacity .4s, margin-top .4s;
  margin-top: 0; font-size: 13px; color: #9bbde6; line-height: 1.5;
}
.kpi .ctx > span { overflow: hidden; }
.kpi:hover .ctx { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; }
.impact-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; margin-top: 40px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.impact-notes .n { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; color: var(--on-navy); line-height: 1.55; }
.impact-notes .n svg { width: 18px; height: 18px; color: #87b0e0; flex: none; margin-top: 2px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .impact-notes { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 8px; }
.tl-item { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-block: 36px; border-top: 1px solid var(--line); position: relative; }
.tl-item:first-child { border-top: none; }
.tl-meta .firm { font-family: var(--ff-display); font-size: 23px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.tl-meta .role { font-size: 14.5px; color: var(--accent); font-weight: 600; margin-top: 5px; }
.tl-meta .when { font-family: var(--ff-mono); font-size: 12px; color: var(--slate-soft); letter-spacing: .04em; margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
.tl-body .summary { font-size: 16px; color: var(--slate); line-height: 1.65; margin-bottom: 18px; max-width: 60ch; }
.tl-body ul { list-style: none; display: grid; gap: 11px; }
.tl-body li { display: flex; gap: 12px; font-size: 14.5px; color: var(--slate); line-height: 1.55; }
.tl-body li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 760px) { .tl-item { grid-template-columns: 1fr; gap: 18px; } .about-grid { grid-template-columns: 1fr; } .about-aside { position: static; } }

/* ---------- Toolkit ---------- */
.toolkit { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tk-cat h4 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.tk-cat h4 .ln { height: 1px; flex: 1; background: var(--line); }
.tk-cat .chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--ff-mono); font-size: 13px; color: var(--charcoal);
  background: var(--card); border: 1px solid var(--line); padding: 9px 14px; border-radius: 9px;
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s; cursor: default;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .tk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tk-grid { grid-template-columns: 1fr; } }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--charcoal); color: #e7ebf2; }
.philosophy .eyebrow { color: #87b0e0; }
.philosophy .eyebrow .idx { color: rgba(255,255,255,.4); }
.quote { font-family: var(--ff-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.28; letter-spacing: -.01em; color: #fff; max-width: 20ch; }
.quote em { font-style: italic; color: #9bbde6; }
.quote-mark { font-family: var(--ff-display); font-size: 90px; line-height: .6; color: rgba(135,176,224,.4); height: 40px; display: block; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; padding-top: 44px; border-top: 1px solid rgba(255,255,255,.12); }
.principle .pn { font-family: var(--ff-mono); font-size: 12px; color: #87b0e0; letter-spacing: .1em; }
.principle h4 { font-family: var(--ff-display); font-size: 21px; font-weight: 600; color: #fff; margin: 12px 0 9px; }
.principle p { font-size: 14.5px; color: #aeb8c8; line-height: 1.62; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Insights ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ins-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.ins-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.ins-thumb { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, var(--accent-soft) 0 12px, #e7eef6 12px 24px); position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.ins-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-thumb .ph { font-family: var(--ff-mono); font-size: 11px; color: var(--accent); background: rgba(255,255,255,.85); padding: 5px 11px; border-radius: 999px; letter-spacing: .05em; }
.ins-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ins-body .meta { font-family: var(--ff-mono); font-size: 11.5px; color: var(--slate-soft); letter-spacing: .05em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.ins-body .meta .pill { color: var(--accent); }
.ins-body h3 { font-family: var(--ff-display); font-size: 21px; font-weight: 600; color: var(--navy); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 10px; }
.ins-body p { font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 18px; }
.ins-body .read { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.ins-card:hover .read svg { transform: translateX(3px); }
.ins-body .read svg { width: 15px; height: 15px; transition: transform .2s; }
@media (max-width: 860px) { .ins-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 15% 120%, rgba(63,114,176,.25), transparent 60%); }
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.contact h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; color: #fff; letter-spacing: -.015em; margin-bottom: 22px; }
.contact h2 em { font-style: italic; color: #87b0e0; }
.contact .lede { color: var(--on-navy); margin-bottom: 34px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #87b0e0; color: var(--navy); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }
.contact-cards { display: grid; gap: 14px; }
.cc {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .2s;
}
.cc:hover { background: rgba(255,255,255,.09); border-color: rgba(135,176,224,.5); transform: translateX(4px); }
.cc .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(135,176,224,.16); color: #9bbde6; display: grid; place-items: center; flex: none; }
.cc .ic svg { width: 21px; height: 21px; }
.cc .t span { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-soft); display: block; margin-bottom: 3px; }
.cc .t b { font-size: 15.5px; color: #fff; font-weight: 500; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.foot { background: #0a1525; color: var(--on-navy-soft); padding-block: 40px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-inner .brand .who b { color: #fff; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; color: var(--on-navy-soft); transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-copy { font-size: 12.5px; color: var(--on-navy-soft); font-family: var(--ff-mono); letter-spacing: .03em; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { left: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Single post ---------- */
.post-hero { padding-block: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.post-hero .post-eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.post-hero h1 { font-family: var(--ff-display); font-size: clamp(30px, 4.5vw, 56px); font-weight: 500; line-height: 1.1; letter-spacing: -.018em; color: var(--navy); max-width: 22ch; margin-bottom: 20px; }
.post-hero .post-meta { font-family: var(--ff-mono); font-size: 12px; color: var(--slate-soft); letter-spacing: .06em; display: flex; gap: 16px; flex-wrap: wrap; }
.post-content { padding-block: clamp(48px, 7vw, 80px); max-width: 125ch; }
.post-content p { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--slate); line-height: 1.78; margin-bottom: 24px; }
.post-content h2 { font-family: var(--ff-display); font-size: clamp(22px, 2.5vw, 30px); color: var(--navy); font-weight: 500; margin: 40px 0 16px; letter-spacing: -.01em; }
.post-content h3 { font-family: var(--ff-display); font-size: clamp(18px, 2vw, 24px); color: var(--navy); font-weight: 500; margin: 32px 0 12px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 24px; color: var(--slate); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.78; }
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 32px 0; font-family: var(--ff-display); font-size: clamp(18px, 2vw, 22px); color: var(--navy); font-style: italic; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--accent-bright); }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: clamp(32px, 4vw, 56px); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 32px; padding: 10px 0; transition: color .2s; }
.post-back:hover { color: var(--navy); }
.post-back svg { width: 16px; height: 16px; }

/* ---------- Blog index ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }
