/* =========================================================
   joshuabeverly.com — Overview (recruiter-friendly) view
   Same palette family as the technical view, presented with
   serif headings, plain language and calmer motion.
   ========================================================= */

:root {
  --bg: #F6F3EE;
  --bg-alt: #EEEAE2;
  --surface: #FFFFFF;
  --ink: #1A1916;
  --ink-2: #3D3A34;
  --muted: #6B665D;
  --line: #E1DCD2;
  --line-strong: #CFC8BB;
  --accent: #B4471C;
  --accent-bright: #E4531B;
  --accent-soft: #F6E5DB;
  --on-accent: #FFFFFF;
  --olive: #5A6336;
  --olive-soft: #E7E9D9;
  --shadow-sm: 0 1px 2px rgba(26, 25, 22, .05);
  --shadow: 0 1px 2px rgba(26, 25, 22, .04), 0 12px 32px -12px rgba(26, 25, 22, .16);
  --shadow-lg: 0 2px 4px rgba(26, 25, 22, .04), 0 30px 60px -24px rgba(26, 25, 22, .28);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 14px;
  color-scheme: light;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210;
    --bg-alt: #181715;
    --surface: #1D1B18;
    --ink: #EDE9E0;
    --ink-2: #CBC5B9;
    --muted: #9A9387;
    --line: #2C2A25;
    --line-strong: #3B3832;
    --accent: #F07A45;
    --accent-bright: #FF6A2B;
    --accent-soft: #33221A;
    --on-accent: #1A0D05;
    --olive: #A9B472;
    --olive-soft: #262A1C;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131210;
  --bg-alt: #181715;
  --surface: #1D1B18;
  --ink: #EDE9E0;
  --ink-2: #CBC5B9;
  --muted: #9A9387;
  --line: #2C2A25;
  --line-strong: #3B3832;
  --accent: #F07A45;
  --accent-bright: #FF6A2B;
  --accent-soft: #33221A;
  --on-accent: #1A0D05;
  --olive: #A9B472;
  --olive-soft: #262A1C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .85em; font-weight: 600; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.skip:focus { top: 12px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 18px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--solid:hover { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn--solid[download]:hover svg { transform: translateY(2px); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline:hover svg:last-child { transform: translateX(3px); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; gap: 8px; }
.btn--sm svg { width: 16px; height: 16px; }

.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .35s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; letter-spacing: -.02em;
  transition: background-color .25s, color .25s, transform .4s var(--ease);
}
.brand:hover .brand__mark { background: var(--accent); color: var(--on-accent); transform: rotate(-5deg); }
.brand__name { font-weight: 650; font-size: 15.5px; letter-spacing: -.005em; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1020px) { .nav__links { display: none; } }
@media (max-width: 700px) { .brand__name { display: none; } }
@media (max-width: 560px) { .nav__resume { display: none; } .nav__actions { gap: 8px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding-bottom: clamp(56px, 8vw, 104px); }
.hero__name {
  margin: 18px 0 26px;
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(3.3rem, 8.6vw, 7.2rem); line-height: .94; letter-spacing: -.028em;
}
@media (max-width: 560px) { .hero__name { font-size: 17.5vw; } }
.hero__name .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__name .line:last-child span { font-style: italic; color: var(--accent); }
.hero__name .line > span { display: inline-block; }
.hero__lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }

/* entrance */
html.js .anim { animation: fadeUp .9s var(--ease) backwards; animation-delay: calc(var(--a) * 90ms + 60ms); }
html.js .anim-up { animation: slideUp 1s var(--ease) backwards; animation-delay: calc(var(--a) * 90ms + 40ms); }
html.js .anim-card { animation: cardIn 1.2s var(--ease) .35s backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes slideUp { from { transform: translateY(105%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) rotate(1.5deg); } }

/* profile card */
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .4s;
  will-change: transform;
}
.card.is-tilting { transition: transform .12s linear; }
.card__sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-bright) 10%, transparent), transparent 60%);
}
.card:hover .card__sheen { opacity: 1; }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__mono {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: -.02em;
}
.card__name { font-weight: 650; font-size: 17px; line-height: 1.3; }
.card__role { color: var(--muted); font-size: 14.5px; }
.card__status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 6px 12px; border-radius: 999px; background: var(--olive-soft); color: var(--ink-2);
  font-size: 13.5px; font-weight: 550;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--olive) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.card__stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 22px; border-top: 1px solid var(--line); }
.card__stats div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.card__stats div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.card__stats div:nth-child(even) { padding-left: 18px; }
.card__stats dt { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__stats dd { margin-top: 4px; font-family: var(--serif); font-size: 20px; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; }
.card__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card__badges li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.card__badges li::before { content: ""; width: 12px; height: 12px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .card { max-width: 520px; }
}
@media (max-width: 480px) {
  .btn { height: 48px; padding: 0 18px; font-size: 14.5px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .card__stats dd { font-size: 17px; white-space: normal; }
  .card__stats div:nth-child(odd) { padding-right: 12px; }
  .card__stats div:nth-child(even) { padding-left: 14px; }
}

/* organisations strip */
.orgs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.orgs__inner { display: flex; align-items: center; gap: 16px 36px; padding-block: 22px; flex-wrap: wrap; }
.orgs__label { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: none; }
.orgs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.orgs__list li { font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-2); letter-spacing: -.01em; }
.orgs__list li + li::before { content: "·"; margin: 0 14px; color: var(--line-strong); }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); }
.section--alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head h2 {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance;
}
.sec-head h2 em { font-style: italic; color: var(--accent); }
.sec-head__note { margin-top: 16px; color: var(--muted); font-size: 17.5px; max-width: 58ch; text-wrap: pretty; }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.is-in { opacity: 1; transform: none; }
/* once revealed, hand transitions back to hover effects (no reveal delay) */
html.js .reveal.is-done { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; transition-delay: 0s; }

/* ---------- highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hl {
  display: flex; flex-direction: column;
  padding: 28px 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.hl:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.hl__icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
html.js .hl__icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
html.js .hl.is-in .hl__icon * { stroke-dashoffset: 0; }
.hl h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.hl p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.hl .hl__where { margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 550; color: var(--muted); }
.hl .hl__where::before { content: "At "; color: var(--muted); font-weight: 400; }
@media (max-width: 980px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .highlights { grid-template-columns: minmax(0, 1fr); } }

/* ---------- experience timeline ---------- */
.tl { --rail: 212px; position: relative; }
.tl__rail { position: absolute; left: var(--rail); top: 10px; bottom: 24px; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.job { position: relative; display: grid; grid-template-columns: calc(var(--rail) - 36px) minmax(0, 1fr); column-gap: 72px; padding-bottom: clamp(44px, 6vw, 64px); }
.job__dot, .earlier > .job__dot {
  position: absolute; left: var(--rail); top: 8px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--line-strong);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.job__dot--small { width: 11px; height: 11px; margin-left: -5.5px; top: 12px; }
.job.is-reached .job__dot, .earlier.is-reached .job__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.job__when { text-align: right; padding-top: 2px; }
.job__dates { font-weight: 650; font-size: 15px; }
.job__dur { color: var(--muted); font-size: 14px; margin-top: 2px; }
.job__place { color: var(--muted); font-size: 14px; }
.job__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.job__org { margin-top: 4px; font-weight: 650; font-size: 16px; color: var(--accent); }
.job__sum { margin-top: 12px; font-size: 17px; color: var(--ink); max-width: 62ch; text-wrap: pretty; }
.job__points { display: grid; gap: 9px; margin-top: 16px; max-width: 70ch; }
.job__points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.job__points li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 9px; height: 1.5px; background: var(--accent); }

.earlier { position: relative; padding-left: calc(var(--rail) + 36px); }
.earlier__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; }
.earlier__title span { font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 8px; font-weight: 500; }
.earlier__list { margin-top: 18px; border-top: 1px solid var(--line-strong); }
.ex { border-bottom: 1px solid var(--line-strong); }
.ex summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
}
.ex summary::-webkit-details-marker { display: none; }
.ex__main { display: grid; gap: 1px; }
.ex__title { font-weight: 650; font-size: 16.5px; transition: color .2s; }
.ex__title em { font-style: normal; font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.ex__org { color: var(--muted); font-size: 14.5px; }
.ex__dates { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ex__chev { position: relative; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .4s var(--ease), background-color .25s, border-color .25s; }
.ex__chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.ex summary:hover .ex__title { color: var(--accent); }
.ex summary:hover .ex__chev { border-color: var(--ink); }
.ex[open] .ex__chev { transform: rotate(180deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ex::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.ex[open]::details-content { height: auto; }
.ex__body { padding: 0 0 22px; }
.ex__body .job__sum { margin-top: 0; font-size: 16px; }

@media (max-width: 820px) {
  .tl { --rail: 7px; }
  .tl__rail { top: 8px; }
  .job { grid-template-columns: minmax(0, 1fr); padding-left: 34px; }
  .job__when { text-align: left; display: flex; flex-wrap: wrap; gap: 2px 12px; order: 0; margin-bottom: 6px; padding-top: 0; }
  .job__when p { margin: 0; font-size: 14px; }
  .job__when .job__dur::before, .job__when .job__place::before { content: "· "; color: var(--line-strong); }
  .job__body { order: 1; }
  .job__dot { top: 4px; }
  .earlier { padding-left: 34px; }
  .job__dot--small { top: 9px; }
  .ex summary { grid-template-columns: minmax(0, 1fr) 26px; }
  .ex__dates { grid-column: 1; grid-row: 2; margin-top: -2px; }
  .ex__chev { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.strengths { border-top: 1px solid var(--line); }
.strengths li {
  display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 550; letter-spacing: -.005em;
  transition: padding-left .35s var(--ease), color .2s;
}
.strengths li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4471C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.8'/%3E%3C/svg%3E") center / 15px no-repeat;
}
:root[data-theme="dark"] .strengths li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F07A45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.8'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .strengths li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F07A45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.8'/%3E%3C/svg%3E"); } }
.strengths li:hover { padding-left: 6px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.tools__group { padding: 18px 0; border-top: 1px solid var(--line); }
.tools__group h3 { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tools__group p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.tools__more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--accent); }
.tools__more span { transition: transform .3s var(--ease); }
.tools__more:hover span { transform: translateX(4px); }
@media (max-width: 900px) { .skills-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* ---------- credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cred {
  display: flex; flex-direction: column; padding: 26px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.cred:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.cred__seal { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); margin-bottom: 20px; }
.cred__seal svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cred--edu .cred__seal { background: var(--olive-soft); }
.cred--edu .cred__seal svg { stroke: var(--olive); }
.cred__issuer { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cred h3 { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.015em; }
.cred__about { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.cred__code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; margin-top: auto; padding-top: 18px; }
.cred__code > span { grid-column: 1 / -1; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.cred__code code { font-family: var(--mono); font-size: 13px; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
@media (max-width: 1060px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .creds { grid-template-columns: minmax(0, 1fr); } }

.copy { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-2); background: var(--surface); transition: border-color .2s, background-color .2s, color .2s; }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.is-done { background: var(--olive); border-color: var(--olive); color: var(--bg); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -.03em; }
.contact h2 em { font-style: italic; color: var(--accent); }
.contact__lede { margin-top: 20px; max-width: 48ch; color: var(--ink-2); font-size: 18px; text-wrap: balance; }
.contact__email { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; padding: 14px 14px 14px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.email-link {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.01em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease);
  word-break: break-all;
}
.email-link:hover { background-size: 100% 1.5px; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.contact__meta { margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.footer__link { transition: color .2s; }
.footer__link:hover { color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); box-shadow: var(--shadow); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .hl__icon * { stroke-dashoffset: 0; }
  .card { transform: none !important; }
}
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc; --line-strong: #bbb; }
  .nav, .progress, .hero__cta, .contact__actions, .copy, .toast, .card__sheen, .tools__more, .footer { display: none !important; }
  html.js .reveal, html.js .anim, html.js .anim-up, html.js .anim-card { opacity: 1 !important; transform: none !important; animation: none !important; }
  .card { box-shadow: none; transform: none; }
  .section { padding-block: 24px; }
  .ex::details-content { height: auto; content-visibility: visible; }
  body { font-size: 11pt; }
}
