/* ---------- Tokens ---------- */
:root,
html[data-theme="light"] {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --fg: #151413;
  --muted: #55524C;
  --subtle: #75716A;
  --line: #E2DED6;
  --accent: #C94A12;
  --accent-hover: #A93C0C;
  --on-accent: #FFFFFF;
  --soft: #F3E6DC;
  --chip: #EFECE6;
  --invert-bg: #151413;
  --invert-fg: #F6F4EF;

  --sans: 'Source Sans 3', -apple-system, sans-serif;
  --display: 'DM Sans', sans-serif;
  --gutter: clamp(20px, 3vw, 40px);
}
html[data-theme="dark"] {
  --bg: #111110;
  --surface: #191817;
  --fg: #EEEBE5;
  --muted: #B3AEA6;
  --subtle: #8C877F;
  --line: #2B2927;
  --accent: #FF7A3D;
  --accent-hover: #FF956A;
  --on-accent: #111110;
  --soft: #2A1C14;
  --chip: #22201E;
  --invert-bg: #FF7A3D;
  --invert-fg: #111110;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
a { color: var(--accent); text-decoration: none; }
a:not([class]):hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; }
button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 em, h2 em { color: var(--accent); font-style: italic; font-weight: 600; }

@keyframes ua-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 40px); }

/* Shared */
.eyebrow { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.eyebrow--subtle { color: var(--subtle); }
.label { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.section { border-bottom: 1px solid var(--line); }
.section-head { padding: 72px var(--gutter) 40px; }
.section-head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--tight { padding-bottom: 32px; }
.section-title { margin: 12px 0 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
.section-note { margin: 0; max-width: 380px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tag { font: 600 12px var(--sans); padding: 5px 11px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.tag--outline { font-size: 13px; padding: 6px 12px; background: none; border: 1px solid var(--line); color: var(--fg); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--soft); color: var(--accent);
  display: grid; place-items: center; font: 700 14px var(--sans);
}
.pill-btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 16px 26px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font: 700 14px var(--sans);
  transition: background .15s, color .15s;
}
.pill-btn:hover { background: var(--accent); color: var(--on-accent); }
.pill-btn--outline { padding: 15px 24px; background: none; border: 1px solid var(--fg); color: var(--fg); }
.pill-btn--outline:hover { background: none; color: var(--accent); border-color: var(--accent); }
.media { position: relative; overflow: hidden; background: var(--chip); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Grid of cells separated by hairlines (negative margin hides the outer edge) */
.cells { display: grid; border-top: 1px solid var(--line); overflow: hidden; }
.cells > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.cells--row > * { border-bottom: 0; margin: 0 -1px 0 0; }

/* Wide column that spans two tracks; falls back to one on narrow screens */
.span-2 { grid-column: span 2; }
@media (max-width: 720px) { .span-2 { grid-column: auto; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: stretch;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap;
  padding: 14px clamp(16px, 3vw, 40px); border-right: 1px solid var(--line);
  font: 700 14px/1.15 var(--sans); color: var(--fg);
}
.site-nav { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.nav-btn {
  display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0;
  padding: 14px 16px; border-right: 1px solid var(--line);
  font: 600 14px var(--sans); color: var(--fg);
}
.nav-btn:hover, .theme-btn:hover { color: var(--accent); }
.nav-btn.is-active { background: var(--surface); }
.header-actions { display: flex; align-items: stretch; flex-shrink: 0; }
.theme-btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 14px 20px; border-left: 1px solid var(--line); font: 600 14px var(--sans);
}
.talk-btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 14px 26px; background: var(--accent); color: var(--on-accent); font: 700 14px var(--sans);
}
.talk-btn:hover { background: var(--accent-hover); }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.hero-copy {
  padding: clamp(40px, 6vw, 80px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--soft); color: var(--accent); font: 600 13px var(--sans);
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2F9A5F; }
.hero-title { margin: 28px 0 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; }
.hero-text { margin: 28px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.portrait { position: relative; min-height: 520px; border-left: 1px solid var(--line); overflow: hidden; background: #3A3A3A; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-tags { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.portrait-tags span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: #151413; font: 600 13px var(--sans); }

.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 22px var(--gutter); }
.stat-value { font: 700 44px/1 var(--sans); letter-spacing: -0.03em; }
.stat-value small { font-size: 20px; font-weight: 600; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Home: clients marquee ---------- */
.clients { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.clients-label {
  display: flex; align-items: center; white-space: nowrap;
  padding: 18px var(--gutter); border-right: 1px solid var(--line);
}
.marquee { overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: ua-marquee 60s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 32px; white-space: nowrap;
  border-right: 1px solid var(--line); font: 600 18px/1 var(--sans);
}
.logo { flex-shrink: 0; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px; border: 1px solid var(--line); }
.logo-initial { display: grid; place-items: center; padding: 0; background: var(--soft); color: var(--accent); font: 700 13px var(--sans); }
.logo--sm { width: 28px; height: 28px; border-radius: 6px; border: 0; padding: 2px; }
.logo--lg { width: 44px; height: 44px; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Home: case studies ---------- */
.case-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  border-top: 1px solid var(--line); color: var(--fg); transition: background .15s;
}
.case-card:hover { background: var(--surface); }
.case-card-body { padding: 36px var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.case-card-meta { display: flex; justify-content: space-between; gap: 12px; }
.case-card-meta b { color: var(--accent); }
.case-card-title { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.case-card-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.metric-soft { padding: 16px 18px; border-radius: 14px; background: var(--soft); }
.metric-soft-value { font: 700 34px/1 var(--sans); letter-spacing: -0.02em; color: var(--accent); }
.metric-soft-label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.case-card-cta { margin-top: auto; font: 700 14px var(--sans); color: var(--accent); }
.case-card-metrics {
  padding: 36px var(--gutter); border-left: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center;
}

/* ---------- Home: selected work ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 14px var(--sans); color: var(--fg);
}
.chip small { opacity: .65; font-size: 12px; }
.chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--fg); }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px; padding: 0 var(--gutter) 40px;
}
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--fg); }
.shot-media { aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); }
.shot-media > img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.shot-cta {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font: 700 12px var(--sans); opacity: 0; transition: opacity .25s;
}
.shot:hover .shot-media > img, .shot:focus-visible .shot-media > img { transform: scale(1.05); }
.shot:hover .shot-cta, .shot:focus-visible .shot-cta { opacity: 1; }
.shot-caption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.shot-title { font: 700 16px var(--sans); letter-spacing: -0.01em; }
.shot-type { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.shot-desc { margin: -2px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.5em; }
.figma-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.figma-card { padding: 26px var(--gutter) 28px; display: flex; flex-direction: column; gap: 10px; color: var(--fg); transition: background .2s; }
.figma-card h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.figma-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.figma-card-cta { margin-top: auto; padding-top: 6px; font: 700 14px var(--sans); color: var(--accent); }
.figma-card:hover h3, .figma-card:focus-visible h3 { color: var(--accent); }
.more-wrap { display: flex; justify-content: center; padding: 0 0 56px; }
.more-wrap--top { padding-top: 32px; }
.more-wrap:empty { display: none; }
.more-btn {
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--fg);
  font: 700 14px var(--sans); color: var(--fg);
}
.more-btn:hover { background: var(--fg); color: var(--bg); }

/* ---------- Home: featured case studies ---------- */
.featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature { padding: 28px var(--gutter) 30px; display: flex; flex-direction: column; gap: 12px; color: var(--fg); transition: background .15s; }
.feature:hover { background: var(--surface); }
.feature .label b { color: var(--accent); }
.feature h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.feature-metric { font-size: 13px; color: var(--muted); }
.feature-metric span { display: block; font: 700 30px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--accent); }
.feature-cta { margin-top: auto; padding-top: 6px; font: 700 14px var(--sans); color: var(--accent); }

/* ---------- Home: vibe coding ---------- */
.vibe-intro { margin: -16px 0 0; padding: 0 var(--gutter) 32px; max-width: 760px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.vibes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.vibe { padding: 28px var(--gutter) 30px; display: flex; flex-direction: column; gap: 10px; }
.vibe:hover { background: var(--surface); }
.vibe h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.vibe p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.vibe-link { margin-top: auto; padding-top: 6px; font: 700 14px var(--sans); color: var(--accent); }
.vibe-link:hover { color: var(--accent-hover); }

/* ---------- Home: services & process ---------- */
.services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.service { padding: 32px var(--gutter) 36px; display: flex; flex-direction: column; gap: 12px; }
.service:hover { background: var(--surface); }
.service-num { font: 700 14px var(--sans); color: var(--accent); }
.service h3 { margin: 0; font-size: 26px; line-height: 1.1; }
.service p, .step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.service .tags { margin-top: 6px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { padding: 32px clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.step-title { margin-top: 14px; font: 700 22px var(--sans); letter-spacing: -0.01em; }
.step p { font-size: 13px; }
.step-tools { margin-top: auto; font-size: 13px; color: var(--subtle); }

/* ---------- Home: testimonials & writing ---------- */
.quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.quote { padding: 36px var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.quote-mark { font: 700 64px/0.5 var(--sans); color: var(--accent); height: 28px; }
.quote blockquote { margin: 0; font: italic 400 18px/1.5 var(--sans); color: var(--muted); text-wrap: pretty; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; }
.quote figcaption b { font: 700 14px var(--sans); }
.quote figcaption span { font-size: 13px; color: var(--subtle); }
.writing-row {
  display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 32px; gap: 16px; align-items: center;
  padding: 24px var(--gutter); border-top: 1px solid var(--line); color: var(--fg);
}
.writing-row:hover { background: var(--surface); }
.writing-title { font: 600 24px/1.2 var(--sans); letter-spacing: -0.01em; }
.writing-arrow { color: var(--accent); text-align: right; font-size: 16px; }

/* ---------- Case study page ---------- */
.text-btn { font: 600 14px var(--sans); color: var(--muted); }
.text-btn:hover { color: var(--accent); }
.cs-back { padding: 28px var(--gutter) 0; }
.cs-head { padding: 28px var(--gutter) 40px; max-width: 980px; }
.cs-head h1 { margin: 14px 0 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; }
.cs-summary { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 760px; text-wrap: pretty; }
.facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid var(--line); }
.fact { padding: 22px var(--gutter); }
.fact-value { margin-top: 8px; font: 600 14px/1.45 var(--sans); }
.cs-outcomes { padding: 40px var(--gutter) 44px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cs-outcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 28px; margin-top: 18px; }
.cs-outcome-grid b { display: block; font: 700 46px/1 var(--sans); letter-spacing: -0.03em; color: var(--accent); }
.cs-outcome-grid span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cs-fine { margin: 22px 0 0; font-size: 13px; color: var(--subtle); }
.cs-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding: 56px var(--gutter); border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .cs-section { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; } }
.cs-side h2 { margin: 12px 0 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; }
.cs-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cs-main p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 70ch; text-wrap: pretty; }
.cs-lead { font-size: 19px !important; color: var(--fg) !important; }
.cs-note { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--fg) !important; }
.cs-list { margin: 0; display: grid; gap: 14px; }
.cs-list div { display: grid; gap: 4px; }
.cs-list dt { font: 700 15px var(--sans); color: var(--fg); }
.cs-list dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cs-quote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); font: italic 500 17px/1.5 var(--sans); color: var(--fg); }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.cs-stats b { display: block; font: 700 32px/1 var(--sans); color: var(--accent); }
.cs-stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cs-shot { margin: 0; }
.cs-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.cs-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--subtle); }
.cs-decisions { grid-column: 1 / -1; display: grid; gap: 40px; margin-top: 12px; }
.cs-decision { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; }
.cs-decision:nth-child(even) > .cs-shot { order: 2; }
@media (max-width: 820px) { .cs-decision { grid-template-columns: 1fr; } .cs-decision:nth-child(even) > .cs-shot { order: 0; } }
.cs-decision h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.cs-decision p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cs-phones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 20px; }
.cs-phones img { width: 100%; height: auto; border-radius: 24px; border: 6px solid var(--chip); background: #fff; }
.cs-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.cs-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.cs-table th { text-align: left; padding: 12px 16px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); background: var(--surface); }
.cs-table td { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; line-height: 1.5; }
.cs-table td:first-child { color: var(--fg); font-weight: 600; }
.cs-table .cs-result { color: var(--fg); font-variant-numeric: tabular-nums; }
.cs-learned .cs-main { gap: 24px; align-items: flex-start; }
.cs-next { display: block; padding: 48px var(--gutter); background: var(--surface); color: var(--fg); border-bottom: 1px solid var(--line); }
.cs-next:hover .cs-next-title { color: var(--accent); }
.cs-next-title { display: block; margin-top: 12px; font: 700 clamp(24px, 3vw, 38px)/1.1 var(--display); letter-spacing: -0.03em; }

/* ---------- About page ---------- */
.about-copy { padding: clamp(48px, 6vw, 80px) var(--gutter) 48px; }
.about-title { margin: 16px 0 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.about-copy p { margin: 16px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.about-copy p:first-of-type { margin-top: 28px; }
.about-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.about-fact-value { margin-top: 6px; font: 600 14px var(--sans); }
.job { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line); }
.job-side { padding: 36px var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.job-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.job-head .badge { align-self: center; }
.job-dates { font: 600 14px var(--sans); color: var(--subtle); }
.badge {
  align-self: start; font: 700 11px var(--sans); letter-spacing: .08em; padding: 4px 10px;
  border-radius: 999px; background: var(--soft); color: var(--accent);
}
.job-company { margin: 8px 0 0; font-size: 30px; line-height: 1.05; }
.job-role { font: 600 14px var(--sans); color: var(--accent); }
.job-body { padding: 36px var(--gutter); }
.job-body ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.job-body .tags { margin-top: 18px; }
.job-link { align-self: start; margin-top: 8px; font: 700 14px var(--sans); color: var(--accent); }
.job-link:hover { color: var(--accent-hover); }
.job-link span { font-weight: 400; color: var(--subtle); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); border-bottom: 1px solid var(--line); }
.col-head { padding: 28px var(--gutter); border-bottom: 1px solid var(--line); }
.tools { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 0; }
.tool { padding: 18px var(--gutter); }
.tool b { display: block; font: 700 14px var(--sans); }
.tool span { display: block; font-size: 13px; color: var(--subtle); margin-top: 2px; }
.edu-col { border-left: 1px solid var(--line); }
.edu {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter); border-bottom: 1px solid var(--line);
}
.edu-degree { font: 700 20px/1.2 var(--sans); }
.edu-school { font-size: 13px; color: var(--muted); margin-top: 4px; }
.edu-meta { text-align: right; font-size: 13px; color: var(--subtle); }
.edu-meta b { display: block; margin-top: 4px; color: var(--fg); font-weight: 600; }
.cv-wrap { padding: 28px var(--gutter); }
.cv-wrap .pill-btn--outline { padding: 14px 24px; }

/* ---------- Contact & footer (full width bands) ---------- */
.contact { background: var(--invert-bg); color: var(--invert-fg); border-bottom: 1px solid var(--line); }
.contact .eyebrow { color: inherit; opacity: .75; }
.contact-main {
  padding: clamp(56px, 7vw, 96px) var(--gutter) 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end;
}
.contact-title { margin: 16px 0 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.contact-text { margin: 0 0 24px; font-size: 14px; line-height: 1.55; opacity: .85; max-width: 480px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  background: var(--invert-fg); color: var(--invert-bg); font: 700 14px var(--sans); overflow-wrap: anywhere;
}
.contact-links {
  --rule: color-mix(in oklab, var(--invert-fg) 18%, transparent);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--rule); overflow: hidden;
}
.contact-links a { padding: 20px clamp(16px, 2vw, 28px); border-right: 1px solid var(--rule); margin-right: -1px; color: var(--invert-fg); display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-links a:hover .contact-value { text-decoration: underline; }
.contact-icon { width: 24px; height: 24px; flex-shrink: 0; }
.contact-label { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.contact-value { margin-top: 6px; font: 600 14px var(--sans); white-space: nowrap; }
.site-footer { font-size: 13px; color: var(--subtle); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter); }

/* Phones: nav drops to its own scrollable row so brand + actions fit */
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; border-right: 0; }
  .site-nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); }
  .theme-btn { padding: 14px 16px; }
  .talk-btn { padding: 14px 18px; }
}
