/* ============================================================
   PortfolioDIY Export — styles.css
   Generated from design tokens. Do not edit directly;
   re-export from PortfolioDIY to regenerate.
   ============================================================ */

/* ── Self-hosted fonts ────────────────────────────────────── */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plus-jakarta-sans-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plus-jakarta-sans-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plus-jakarta-sans-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plus-jakarta-sans-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/plus-jakarta-sans-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/plus-jakarta-sans-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  /* Color roles */
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --text: #0F172A;
  --muted: #475569;
  --primary: #2563EB;
  --primary-text: #FFFFFF;
  --border: #E2E8F0;
  --accent: #2563EB;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  

  /* Type scale (ratio 1.25) */
  --fs-xs: .8rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.563rem;
  --fs-2xl: 1.953rem;
  --fs-3xl: 2.441rem;
  --fs-4xl: 3.052rem;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Design decisions */
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
  --ease: cubic-bezier(.2,.6,.2,1);

  /* Breakpoints (read-only reference) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
}

/* ── Base / Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.563rem); }
h4 { font-size: var(--fs-lg); }

p { max-width: 68ch; line-height: 1.6; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 150ms var(--ease),
              transform 150ms var(--ease),
              box-shadow 150ms var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--surface);
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Tags / chips ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  
}

/* ── Section eyebrows ─────────────────────────────────────── */
.eyebrow {
  font-size: var(--fs-sm);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

/* ── Section shared ───────────────────────────────────────── */
section {
  padding-block: clamp(64px, 8vw, 112px);
}

/* Explicit surface backgrounds — avoids nth-child specificity fights */
section.about,
section.skills,
section.testimonials {
  background: var(--surface);
}

.section__title {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), backdrop-filter 200ms var(--ease);
}

.navbar--scrolled {
  border-color: var(--border);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 64px;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text);
  flex-shrink: 0;
}

/* The actual flex item in .navbar__inner is the <nav> wrapper, not the <ul>
   inside it — margin-left:auto only has push behavior on a direct flex
   child, so it has to live here, not on .navbar__links, to push the links
   (and CTA after them) away from the logo. */
.navbar__nav {
  margin-left: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

/* Direct <li> children of the flex .navbar__links row default to
   min-width:auto, which locks to a nav label's un-wrapped width and
   defeats the overflow-wrap below — min-width:0 lets the item actually
   shrink so long labels break instead of pushing the row past the
   viewport. */
.navbar__links > li { min-width: 0; }

.navbar__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  transition: color 150ms var(--ease);
  overflow-wrap: anywhere;
}

.navbar__link:hover { color: var(--text); }

.navbar__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.navbar__cta {
  margin-left: var(--space-3);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Mobile CTA lives inside the dropdown — hidden at desktop */
.navbar__cta-mobile { display: none; }

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  padding: var(--space-2);
  margin-left: auto;
}

/* Navbar centered variant */
.navbar--centered .navbar__inner {
  flex-direction: column;
  height: auto;
  padding-block: var(--space-3);
  gap: var(--space-3);
}

.navbar--centered .navbar__nav { margin-left: 0; }

/* Mobile nav */
@media (max-width: 768px) {
  .navbar__toggle { display: block; }
  /* The (visually empty) <nav> wrapper kept its desktop margin-left:auto,
     competing with the toggle's own auto margin — two auto margins split the
     free space and parked the burger mid-bar. Take the wrapper out of the
     row entirely: it becomes the full-width dropdown anchor under the bar. */
  .navbar__nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }
  .navbar__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) clamp(24px, 5vw, 80px);
    gap: var(--space-3);
  }
  .navbar__links.is-open { display: flex; }
  /* CTA is hidden at desktop-only level; mobile version lives inside the dropdown */
  .navbar__cta { display: none; }
  .navbar__cta-mobile { display: block; width: 100%; }
  /* Centered variant collapses to the same compact logo-left/burger-right bar
     on small screens — a centered stack plus a burger reads as two broken
     half-headers. */
  .navbar--centered .navbar__inner {
    flex-direction: row;
    height: 64px;
    padding-block: 0;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(36px, 5vw, 70px);
  background: var(--bg);
}

.hero--left-text .hero__inner {
  display: grid;
  gap: var(--space-6);
  max-width: 680px;
}

.hero--centered .hero__inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.hero--centered .hero__cta-group {
  justify-content: center;
}

.hero--split-image .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 6vw, var(--space-8));
  align-items: center;
}

.hero__eyebrow { margin-bottom: var(--space-2); }

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: var(--space-2);
  overflow-wrap: anywhere;
}

/* .hero__text is a grid/flex item in several variants (split-image,
   terminal, full-height) — without min-width:0 its automatic min-width
   locks to the un-wrapped hero__title text, defeating the overflow-wrap
   above and letting a long unbroken name/headline push the row wider than
   the viewport. */
.hero__text { min-width: 0; }

/* Tagline / deck — sits between the name and the subheadline */
.hero__deck {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  max-width: 56ch;
}

/* Placeholder block shown when no image is uploaded (split-image variant) */
.hero__media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--surface);
  border-radius: var(--radius);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero--split-image .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__media {
    order: -1;
    aspect-ratio: auto;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero__media img {
    height: auto;
    object-fit: contain;
  }
}

/* Full-bleed variant — edge-to-edge background photo, overlay text */
.hero--full-bleed {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--full-bleed .hero__inner {
  width: 100%;
  max-width: 1120px;
  padding-bottom: var(--space-7);
}

.hero--full-bleed .hero__text { max-width: 640px; }

.hero--full-bleed .hero__title,
.hero--full-bleed .hero__deck { color: #fff; }

.hero--full-bleed .hero__eyebrow { color: rgba(255,255,255,.78); }
.hero--full-bleed .hero__subtitle { color: rgba(255,255,255,.85); }

.hero--full-bleed .btn--secondary {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

.hero--full-bleed .btn--secondary:hover {
  background: rgba(255,255,255,.14);
}

@media (max-width: 768px) {
  .hero--full-bleed { min-height: 480px; }
}

/* Terminal variant — headline rendered as a fake terminal session */
.hero--terminal .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 6vw, var(--space-8));
  align-items: center;
}

.hero__terminal {
  background: #0B0F19;
  border-radius: var(--radius);
  border: 1px solid #1F2937;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__terminal-bar {
  display: flex;
  gap: 8px;
  padding: var(--space-3);
  background: #111827;
  border-bottom: 1px solid #1F2937;
}

.hero__terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #374151;
}

.hero__terminal-dot:nth-child(1) { background: #EF4444; }
.hero__terminal-dot:nth-child(2) { background: #F59E0B; }
.hero__terminal-dot:nth-child(3) { background: #22C55E; }

.hero__terminal-body {
  padding: var(--space-5);
  color: #E5E7EB;
  font-size: var(--fs-sm);
  line-height: 1.8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.hero__terminal-prompt { color: #38BDF8; margin-right: var(--space-1); }
.hero__terminal-out { color: #A78BFA; margin-bottom: var(--space-3); }

.hero__terminal-blink { animation: terminal-blink 1s step-end infinite; }

@keyframes terminal-blink {
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .hero--terminal .hero__inner { grid-template-columns: 1fr; }
  .hero__terminal { order: 2; }
}

/* Full-height variant — massive title, description + scroll cue pinned to the bottom.
   Bounded with min() rather than raw vh: preview surfaces (e.g. the editor canvas)
   render this inside an iframe whose own height is computed FROM its content, so an
   unbounded 100vh creates a feedback loop where the hero inflates to thousands of
   pixels — which also breaks scroll-reveal, since the visible fraction never crosses
   its intersection threshold. min() caps the size to a sane ceiling either way. */
.hero--full-height {
  min-height: min(820px, 100vh);
  display: flex;
  align-items: center;
  padding-block: clamp(96px, 16vh, 168px) clamp(48px, 8vh, 96px);
}

.hero--full-height .hero__inner { width: 100%; }

.hero--full-height .hero__text {
  display: flex;
  flex-direction: column;
  min-height: min(600px, calc(100vh - clamp(160px, 24vh, 264px)));
  max-width: 100%;
}

.hero--full-height .hero__title {
  font-size: clamp(3.25rem, 9vw, 7.5rem);
  margin-bottom: 0;
}

.hero--full-height .hero__bottom-row {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero--full-height .hero__subtitle {
  margin-bottom: 0;
}

.hero__scroll-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

/* ── About ────────────────────────────────────────────────── */
.about__inner {
  max-width: 760px;
}

.about--with-image .about__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(var(--space-5), 5vw, var(--space-7));
  align-items: start;
  max-width: 100%;
}

.about__portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about__portrait-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: var(--surface);
  border-radius: var(--radius);
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title { margin-bottom: var(--space-4); }

.about__body { color: var(--text); }
.about__body p { margin-bottom: var(--space-3); }
.about__body p:last-child { margin-bottom: 0; }
.about__body a { color: var(--primary); text-decoration: underline; }

@media (max-width: 768px) {
  .about--with-image .about__inner {
    grid-template-columns: 1fr;
  }
  .about__portrait { max-width: 200px; aspect-ratio: 1/1; }
}

/* Split-stats variant — giant heading left, bio + stat callouts right */
.about--split-stats .about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 6vw, var(--space-8));
  max-width: 100%;
  align-items: start;
}

.about--split-stats .about__title {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1;
  margin-bottom: 0;
}

.about--split-stats .about__body {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-5);
}

.about__stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.about__stat-label {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

@media (max-width: 768px) {
  .about--split-stats .about__inner { grid-template-columns: 1fr; }
}

/* ── Projects ─────────────────────────────────────────────── */
.projects__title { margin-bottom: clamp(32px, 5vw, 56px); }

.projects__grid {
  display: grid;
  gap: var(--space-4);
}

.projects--grid-3 .projects__grid {
  grid-template-columns: repeat(3, 1fr);
}

.projects--grid-2 .projects__grid {
  grid-template-columns: repeat(2, 1fr);
}

.projects--list .projects__grid {
  grid-template-columns: 1fr;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  position: relative;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--border);
}

.project-card__body {
  padding: var(--space-4);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.project-card__desc {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  max-width: 100%;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
}

.project-card__link::after {
  content: '→';
}

.project-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* List variant */
.projects--list .project-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.projects--list .project-card__img {
  aspect-ratio: 1;
  border-radius: 0;
}

@media (max-width: 1024px) {
  .projects--grid-3 .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects--grid-3 .projects__grid,
  .projects--grid-2 .projects__grid {
    grid-template-columns: 1fr;
  }
  .projects--list .project-card {
    grid-template-columns: 1fr;
  }
}

/* Gallery variant — image-forward tiles, caption overlay on hover/focus */
.projects--gallery .projects__grid {
  grid-template-columns: repeat(3, 1fr);
}

.projects--gallery .project-card {
  aspect-ratio: 4/5;
  border: none;
}

.projects--gallery .project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.projects--gallery .project-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  transform: translateY(12px);
  opacity: 0;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.projects--gallery .project-card:hover .project-card__body,
.projects--gallery .project-card:focus-within .project-card__body {
  transform: translateY(0);
  opacity: 1;
}

.projects--gallery .project-card__title,
.projects--gallery .project-card__desc,
.projects--gallery .project-card__link { color: #fff; }

.projects--gallery .project-card__tags { display: none; }

@media (hover: none) {
  .projects--gallery .project-card__body {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  }
}

@media (max-width: 1024px) {
  .projects--gallery .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .projects--gallery .projects__grid { grid-template-columns: 1fr; }
}

/* Text-grid variant — plain 2-column text cards, rule dividers, no images */
.projects--text-grid .projects__grid {
  grid-template-columns: repeat(2, 1fr);
  row-gap: var(--space-6);
}

.project-card--text {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding-top: var(--space-5);
}

.project-card--text .project-card__meta {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.project-card--text .project-card__title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

@media (max-width: 768px) {
  .projects--text-grid .projects__grid { grid-template-columns: 1fr; }
}

/* ── Skills ───────────────────────────────────────────────── */
.skills__title { margin-bottom: clamp(32px, 5vw, 56px); }

.skills__groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.skills__group-name {
  font-size: var(--fs-sm);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.skills__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Columns variant */
.skills--columns .skills__groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.skills--columns .skills__chip-item {
  padding: var(--space-1) 0;
  font-size: var(--fs-base);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .skills--columns .skills__groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .skills--columns .skills__groups {
    grid-template-columns: 1fr;
  }
}

/* Ruled-list variant — single column, rule-divided rows, each a group heading + skill line */
.skills--rules .skills__groups {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.skills__rule-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.skills__rule-name {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.skills__rule-list {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 100%;
}

/* ── Experience ───────────────────────────────────────────── */
.experience__title { margin-bottom: clamp(32px, 5vw, 56px); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  padding-left: var(--space-6);
  padding-bottom: var(--space-5);
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.timeline__role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text);
}

.timeline__org {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.timeline__period {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
}

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.timeline__bullets li {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-left: var(--space-3);
  position: relative;
}

.timeline__bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* List variant (no rail) */
.experience--list .timeline::before { display: none; }
.experience--list .timeline__item { padding-left: 0; }
.experience--list .timeline__item::before { display: none; }
.experience--list .timeline__item {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.experience--list .timeline__item:last-child { border-bottom: none; }

/* Ruled-rows variant — compact single-line rows, no bullets */
.experience--rows .timeline {
  border-top: 1px solid var(--border);
}
/* The rows markup has no rail/dots — hide the timeline's decorative rail,
   which otherwise bleeds a stray vertical line over the row text. */
.experience--rows .timeline::before { display: none; }

.timeline__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.timeline__row-period {
  flex: 1;
  color: var(--muted);
  font-size: var(--fs-base);
}

.timeline__row-role {
  flex: 2;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
}

.timeline__row-org {
  flex: 1;
  text-align: right;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

@media (max-width: 768px) {
  .timeline__row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .timeline__row-org { text-align: left; }
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials__title { margin-bottom: clamp(32px, 5vw, 56px); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.testimonials--single .testimonials__grid {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.quote blockquote {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.testimonials--single .quote blockquote {
  font-size: var(--fs-xl);
}

.quote figcaption {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.quote__author { font-weight: 700; color: var(--text); }
.quote__role   { color: var(--muted); }

@media (max-width: 768px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-5), 6vw, var(--space-8));
  align-items: start;
}

.contact--links-only .contact__inner {
  grid-template-columns: 1fr;
  max-width: 560px;
}

/* Big Statement variant — the email address as a giant closing headline. */
.contact--statement .contact__inner {
  grid-template-columns: 1fr;
  text-align: center;
}
.contact--statement .contact__title {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact__statement-email {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 6.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
  margin-block: var(--space-3) var(--space-5);
  transition: color 150ms var(--ease);
}
.contact__statement-email:hover { color: var(--primary); }
.contact__statement-email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.contact--statement .contact__socials { justify-content: center; }

.contact__title { margin-bottom: var(--space-3); }

.contact__sub {
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--primary);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}

.contact__email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact__socials {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.contact__social-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  transition: color 150ms var(--ease);
}

.contact__social-link:hover { color: var(--primary); }

.contact__social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #EF4444;
}

.field__error {
  font-size: var(--fs-xs);
  color: #EF4444;
  display: none;
}

.field input.is-invalid ~ .field__error,
.field textarea.is-invalid ~ .field__error {
  display: block;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot — visually hidden, screen-reader accessible */
.hp {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.contact-form__status {
  font-size: var(--fs-sm);
  min-height: 1.5em;
}

.contact-form__status.is-success { color: #16A34A; }
.contact-form__status.is-error   { color: #EF4444; }

@media (max-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.footer__text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 150ms var(--ease);
}

.footer__link:hover { color: var(--text); }

.footer__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Simple variant — one compact row: text left, links pushed right
   (the base .footer__inner centers, so each variant states its layout). */
.footer--simple .footer__inner { justify-content: space-between; }

/* Columns variant — a taller footer block: the text leads on its own line
   and the links fan out into responsive columns beneath it. */
.footer--columns { padding-block: var(--space-7); }
.footer--columns .footer__inner {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.footer--columns .footer__text {
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 600;
}
.footer--columns .footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2) var(--space-6);
  width: 100%;
}
.footer--columns nav[aria-label="Footer navigation"] { width: 100%; }

.footer__credit {
  max-width: 240px;
  margin-inline: auto;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.footer__credit a {
  color: var(--primary);
  font-weight: 600;
}

.footer__credit a:hover { text-decoration: underline; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Scroll reveal (opt-in via theme.effects.reveal) ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Custom cursor dot/outline (opt-in via theme.effects.cursor) ── */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1px solid var(--text);
  opacity: .25;
  transition: width 200ms var(--ease), height 200ms var(--ease), opacity 200ms var(--ease);
}

.cursor-outline.is-hovering {
  width: 56px;
  height: 56px;
  opacity: .4;
}

html.cursor-active, html.cursor-active a, html.cursor-active button {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none; }
}