/* =============================================================
   alexandreleitao.com — v1
   Dark, refined, technical. Charcoal + sharp type + cool green accent.
   Fonts: Space Grotesk (display), IBM Plex Sans (body), IBM Plex Mono (labels)
   ============================================================= */

:root {
  /* --- Color system (oklch) --- */
  --bg:            oklch(0.165 0.006 250);   /* page base, near-black cool charcoal */
  --bg-2:          oklch(0.195 0.007 250);   /* alternating section */
  --surface:       oklch(0.215 0.008 250);   /* cards */
  --surface-2:     oklch(0.255 0.009 250);   /* raised / hover cards */
  --line:          oklch(1 0 0 / 0.09);      /* hairline borders */
  --line-strong:   oklch(1 0 0 / 0.16);

  --text:          oklch(0.95 0.004 250);    /* primary */
  --text-muted:    oklch(0.74 0.008 250);    /* secondary */
  --text-faint:    oklch(0.58 0.009 250);    /* tertiary / captions */

  --accent:        oklch(0.74 0.12 165);     /* cool green */
  --accent-bright: oklch(0.82 0.13 165);
  --accent-dim:    oklch(0.74 0.12 165 / 0.14);
  --accent-line:   oklch(0.74 0.12 165 / 0.35);

  /* --- Type --- */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* --- Reusable bits --- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  margin-top: 18px;
  text-wrap: balance;
}
.section__head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; max-width: 60ch; text-wrap: pretty; }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  --pad-y: 13px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: var(--pad-y) 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: oklch(0.18 0.02 165); font-weight: 500; }
.btn--primary:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent-bright); transform: translateY(-2px); }
.btn--icon { padding-inline: 14px; }
.btn--icon svg { width: 18px; height: 18px; }

/* =============================================================
   Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: oklch(0.165 0.006 250 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__brand { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.nav__brand .brand-mark { height: 25px; width: auto; display: block; }
.brand-mark { width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 7px;
  transition: color .15s ease, background .15s ease;
  position: relative;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--accent-bright); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__lang { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 11px; transition: color .15s ease, border-color .15s ease; }
.nav__lang:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.nav__burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: var(--text); transition: transform .25s ease, opacity .2s ease;
}
.nav__burger span { position: relative; }
.nav__burger span::before { position: absolute; top: -6px; left: 0; }
.nav__burger span::after { position: absolute; top: 6px; left: 0; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   Hero
   ============================================================= */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(36px, 7vw, 76px)); padding-bottom: clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before {
  /* subtle grid + radial glow */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 18%, oklch(0.74 0.12 165 / 0.10), transparent 60%),
    linear-gradient(oklch(1 0 0 / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.022) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero__status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-bottom: 26px; border: 1px solid var(--line); padding: 6px 13px; border-radius: 100px; }
.hero__status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.hero__status .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub { color: var(--text-muted); font-size: clamp(17px, 1.6vw, 20px); margin-top: 24px; max-width: 56ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero__social { display: flex; gap: 10px; margin-top: 30px; }
.hero__social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-muted);
  transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}
.hero__social a:hover { color: var(--accent-bright); border-color: var(--accent-line); transform: translateY(-2px); background: var(--accent-dim); }
.hero__social svg { width: 19px; height: 19px; }

/* Portrait */
.hero__portrait { position: relative; }
.hero__portrait .frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong);
  aspect-ratio: 1 / 1;
  box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.9);
}
.hero__portrait .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.22) contrast(1.02); }
.hero__portrait .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.165 0.006 250 / 0.55), transparent 45%); }
.hero__portrait .tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  background: oklch(0.165 0.006 250 / 0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 8px 13px; border-radius: 8px;
}
.hero__portrait .tag b { color: var(--accent-bright); font-weight: 500; }
.hero__portrait .corner { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--accent-line); z-index: 3; }
.hero__portrait .corner.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.hero__portrait .corner.br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* Metrics strip */
.metrics {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
.metric { background: var(--bg); padding: 26px clamp(18px, 2vw, 30px); }
.metric .num { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.metric .num .unit { color: var(--accent); }
.metric .label { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 8px; letter-spacing: 0.02em; line-height: 1.4; }

/* =============================================================
   About
   ============================================================= */
.about__grid { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.about__body p { color: var(--text-muted); font-size: 18.5px; margin-bottom: 20px; text-wrap: pretty; }
.about__body p strong { color: var(--text); font-weight: 500; }
.about__body .lead { font-size: clamp(20px, 2.2vw, 25px); color: var(--text); line-height: 1.45; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

.factcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.factcard h3 { font-size: 15px; font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 20px; }
.factrow { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.factrow:first-of-type { border-top: 0; }
.factrow dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.factrow dd { text-align: right; color: var(--text); font-size: 14.5px; }
.factrow dd span { display: block; color: var(--text-muted); font-size: 13px; }

/* =============================================================
   Career — capability blocks + timeline
   ============================================================= */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(56px, 8vw, 84px); }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 26px 24px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.cap:hover { transform: translateY(-3px); border-color: var(--accent-line); background: var(--surface-2); }
.cap__no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
.cap h3 { font-size: 19px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.cap p { color: var(--text-muted); font-size: 14.5px; text-wrap: pretty; }

.timeline__title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 28px; }
.timeline { position: relative; }
.job { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); position: relative; }
.job:hover .job__co { color: var(--accent-bright); }
.job__meta { }
.job__co { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; transition: color .18s ease; }
.job__date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.job__roles { display: flex; flex-direction: column; gap: 18px; }
.job__role .r-title { font-size: 16.5px; font-weight: 600; font-family: var(--font-display); letter-spacing: -0.01em; }
.job__role .r-span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin: 3px 0 8px; }
.job__role p { color: var(--text-muted); font-size: 15px; text-wrap: pretty; }
.job__role .r-win { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--accent-bright); font-family: var(--font-mono); border-left: 2px solid var(--accent-line); padding-left: 12px; }
.timeline__more { margin-top: 26px; }
.timeline__more summary {
  cursor: pointer; list-style: none; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: color .15s ease, border-color .15s ease;
}
.timeline__more summary:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.timeline__more summary::-webkit-details-marker { display: none; }
.timeline__more[open] summary .chev { transform: rotate(180deg); }
.timeline__more summary .chev { transition: transform .2s ease; width: 14px; height: 14px; }
.timeline__more .job:first-child { border-top: 1px solid var(--line); margin-top: 8px; }

/* =============================================================
   Skills
   ============================================================= */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skillcat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; }
.skillcat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skillcat__head .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-dim); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-bright); flex: none; }
.skillcat__head .ic svg { width: 18px; height: 18px; }
.skillcat__head h3 { font-size: 17px; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); border: 1px solid var(--line); background: var(--bg); padding: 6px 11px; border-radius: 7px; transition: color .15s ease, border-color .15s ease; }
.skillcat:hover .chip { border-color: var(--line-strong); }

/* =============================================================
   Projects
   ============================================================= */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 220px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.project:hover { transform: translateY(-3px); border-color: var(--accent-line); background: var(--surface-2); }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.project__kind { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--accent-line); padding: 4px 9px; border-radius: 100px; white-space: nowrap; }
.project p { color: var(--text-muted); font-size: 15px; text-wrap: pretty; flex: 1; }
.project__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.project__link { font-family: var(--font-mono); font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; transition: color .15s ease, gap .15s ease; }
.project__link:hover { color: var(--accent-bright); gap: 11px; }
.project__link svg { width: 14px; height: 14px; }
.project__tags { display: flex; gap: 7px; flex-wrap: wrap; }
.project__tags span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.project__tags span::before { content: "·"; margin-right: 7px; color: var(--line-strong); }
.project__tags span:first-child::before { display: none; }

/* =============================================================
   Podcast / Public work
   ============================================================= */
.forge { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.forge__panel {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  padding: clamp(30px, 4vw, 52px); position: relative; overflow: hidden;
}
.forge__body { position: relative; z-index: 1; }
.forge__subscribe { margin-top: 30px; }
.forge__logo { display: flex; justify-content: center; }
.forge__logo img { width: 100%; max-width: 320px; height: auto; }
.forge__panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 280px at 85% 0%, var(--accent-dim), transparent 70%); pointer-events: none; }
.forge__wave { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-bottom: 26px; position: relative; }
.forge__wave i { flex: 1; background: var(--accent-line); border-radius: 2px; animation: eq 1.6s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.forge__panel h3 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; }
.forge__panel .show-kind { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.forge__panel p { color: var(--text-muted); font-size: 16px; margin: 16px 0 26px; text-wrap: pretty; }
.forge__topics { display: flex; flex-direction: column; gap: 18px; }
.forge__topic { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.forge__topic:last-child { border-bottom: 0; padding-bottom: 0; }
.forge__topic .t-no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.forge__topic h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.forge__topic p { color: var(--text-muted); font-size: 14px; margin: 5px 0 0; }
.forge__cta { align-self: center; }
.forge__cta p { color: var(--text-muted); font-size: 17px; line-height: 1.65; margin-bottom: 26px; text-wrap: pretty; }

/* =============================================================
   CV
   ============================================================= */
.cv__panel {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background:
    linear-gradient(135deg, oklch(0.215 0.008 250), oklch(0.185 0.007 250));
  padding: clamp(34px, 5vw, 60px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.cv__panel h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 16px 0 18px; }
.cv__panel p { color: var(--text-muted); font-size: 17px; max-width: 52ch; text-wrap: pretty; }
.cv__actions { display: flex; flex-direction: column; gap: 13px; }
.cv__actions .btn { justify-content: center; }
.cv__note { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-top: 6px; line-height: 1.6; text-align: center; }

/* =============================================================
   Contact
   ============================================================= */
.contact { text-align: center; }
.contact__inner { max-width: 760px; margin-inline: auto; }
.contact h2 { font-size: clamp(34px, 5.5vw, 60px); text-wrap: balance; }
.contact p { color: var(--text-muted); font-size: clamp(18px, 2vw, 21px); margin: 22px auto 0; max-width: 50ch; text-wrap: pretty; }
.contact__mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 34px); font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 8px; transition: color .18s ease, border-color .18s ease; letter-spacing: -0.01em; }
.contact__mail:hover { color: var(--accent-bright); border-color: var(--accent); }
.contact__social { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.contact__social a { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 11px; color: var(--text-muted); transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease; }
.contact__social a:hover { color: var(--accent-bright); border-color: var(--accent-line); transform: translateY(-2px); background: var(--accent-dim); }
.contact__social svg { width: 20px; height: 20px; }

/* =============================================================
   Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { font-family: var(--font-display); font-weight: 600; display: flex; align-items: center; gap: 11px; }
.footer__brand .brand-mark { height: 21px; }
.footer__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.footer__links { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 12.5px; }
.footer__links a { color: var(--text-muted); transition: color .15s ease; }
.footer__links a:hover { color: var(--accent-bright); }

/* =============================================================
   Scroll reveal
   ============================================================= */
/* Hidden state only applies when JS is active (html.js). Without JS —
   or for crawlers — everything renders normally. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 440px; order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .factcard { position: static; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .forge { grid-template-columns: 1fr; }
  .forge__logo { order: -1; margin-bottom: 6px; }
  .forge__logo img { max-width: 220px; }
  .cv__panel { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: oklch(0.165 0.006 250 / 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px;
  }
  .nav.is-open .nav__links a { padding: 13px 14px; font-size: 15px; border-radius: 8px; }
  .nav.is-open .nav__links a:hover { background: var(--surface); }
}

@media (max-width: 760px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 16px; }
  .job__meta { display: flex; align-items: baseline; gap: 14px; }
  .job__date { margin-top: 0; }
  body { font-size: 16px; }
}
