/* ═══════════════════════════════  FONTS  ═══════════════════════════════ */
/* Self-hosted so there is no third-party request and the CSP can stay strict.
   Re-download with ./tools/fetch-fonts.sh. The type stack is the pairing
   recommended by neubrutalism.com: Syne 800 display, Space Grotesk 700
   headings, Inter 400 body, Space Mono for labels.                        */

@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'Syne';
  src: url('/assets/fonts/syne-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  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: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  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';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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';
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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: 'Space Mono';
  src: url('/assets/fonts/space-mono-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  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: 'Space Mono';
  src: url('/assets/fonts/space-mono-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  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: 'Space Mono';
  src: url('/assets/fonts/space-mono-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  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: 'Space Mono';
  src: url('/assets/fonts/space-mono-700-latin-ext.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  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;
}

/* ═══════════════════════════════  TOKENS  ══════════════════════════════ */
/* The whole aesthetic lives here. Every border, every shadow and every fill
   on the page comes from one of these — that is what keeps a loud design
   from turning into noise.                                                */

:root {
  /* ink + paper */
  --ink:        #000000;
  --bg:         #FFFDF5;   /* off-white page  — 18.5:1 against ink */
  --paper:      #FFFFFF;   /* card fill */
  --muted:      #5A5A5A;   /* secondary text  —  7:1 against paper */

  /* accents — flat fills only, never gradients. All take BLACK text. */
  --yellow:     #FFD23F;
  --pink:       #FF6B6B;
  --blue:       #74B9FF;
  --green:      #88D498;
  --orange:     #FFA552;
  --lavender:   #B8A9FA;

  /* one canonical stroke width, three variants */
  --border:       3px solid var(--ink);
  --border-thin:  2px solid var(--ink);
  --border-thick: 4px solid var(--ink);

  /* hard shadows — zero blur, always */
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --shadow:    5px 5px 0 0 var(--ink);
  --shadow-lg: 8px 8px 0 0 var(--ink);
  --shadow-xl: 12px 12px 0 0 var(--ink);
  --shadow-hover: 7px 7px 0 0 var(--ink);

  --radius: 0;

  --display: 'Syne', 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --head:    'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1140px;
  --nav-h: 74px;
}

/* ════════════════════════════════  BASE  ═══════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background-color: var(--bg);
  /* exposed grid: a flat dot lattice, no gradient anywhere */
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the dots read at ~7% ink without touching text contrast */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: .93;
  z-index: -1;
  pointer-events: none;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1rem; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.muted { color: var(--muted); font-weight: 400; }

/* focus is never decorative here — it is the same blue everywhere, offset
   far enough that a card's own shadow cannot swallow it */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.btn-blue:focus-visible,
.contact-box :focus-visible { outline-color: var(--pink); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 18px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--head);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ═══════════════════════════════  BUTTONS  ═════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-yellow { background: var(--yellow); }
.btn-blue   { background: var(--blue); }
.btn-pink   { background: var(--pink); }

.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .85rem; box-shadow: var(--shadow-sm); }
.btn-sm:hover  { box-shadow: var(--shadow); }
.btn-sm:active { box-shadow: none; }

.btn-lg {
  min-height: 62px;
  padding: 16px 30px;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  box-shadow: var(--shadow-lg);
}
.btn-lg:hover { box-shadow: 10px 10px 0 0 var(--ink); }

/* ═══════════════════════════════  CARDS  ═══════════════════════════════ */

.card {
  position: relative;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

/* only the grid cards react to the pointer — prose that lifts is just noise */
.job, .skill, .edu, .award-card, .project {
  transition: transform .15s ease, box-shadow .15s ease;
}
.job:hover, .skill:hover, .edu:hover, .award-card:hover, .project:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

/* a colored bar clamped to the top edge of a card */
.card-head {
  display: block;
  margin: -1.6rem -1.6rem 1.3rem;
  padding: .7rem 1.1rem;
  border-bottom: var(--border);
  background: var(--paper);
  font-family: var(--head);
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.head-yellow   { background: var(--yellow); }
.head-pink     { background: var(--pink); }
.head-blue     { background: var(--blue); }
.head-green    { background: var(--green); }
.head-orange   { background: var(--orange); }
.head-lavender { background: var(--lavender); }

.card-lavender { background: var(--lavender); }

/* ════════════════════════════════  NAV  ════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: var(--border-thick);
}
.nav.is-stuck { box-shadow: 0 6px 0 0 var(--ink); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.brand-tld { color: var(--muted); }
.brand:hover .brand-mark { background: var(--pink); }

.nav-links { display: flex; gap: .35rem; }
.nav-links a {
  padding: 8px 12px;
  border: 3px solid transparent;
  font-family: var(--mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
}
.nav-links a:hover { background: var(--yellow); border-color: var(--ink); }
.nav-links a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; background: var(--ink); }
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: none; }

/* ════════════════════════════════  HERO  ═══════════════════════════════ */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 7px 14px;
  background: var(--ink);
  color: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.hero-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero-word { display: inline-block; }
.hero-word-hl {
  padding: 0 .18em .06em;
  margin-left: -.04em;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}

.hero-lead {
  max-width: 52ch;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  margin-bottom: 2rem;
}
.hero-lead strong { font-weight: 700; box-shadow: inset 0 -.42em 0 var(--green); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* the sticker stack — the one place the layout is allowed to misbehave */
.hero-side { position: relative; }

.id-card { padding: 0; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.id-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  border-bottom: var(--border);
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.id-badge {
  background: var(--green);
  color: var(--ink);
  border: var(--border-thin);
  padding: 2px 9px;
  letter-spacing: .08em;
}
.id-body { padding: 1.4rem 1.4rem 1.5rem; }
.id-role { font-family: var(--head); font-weight: 700; font-size: 1.12rem; margin-bottom: .2rem; }
.id-company {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.id-since {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: none;
}
.id-facts { border-top: var(--border); }
.id-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: var(--border-thin);
}
.id-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.id-facts dt {
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.id-facts dd { font-family: var(--head); font-weight: 700; font-size: .88rem; text-align: right; }

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  margin: 0;
  padding: .7rem .9rem;
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.sticker-pink  { background: var(--pink);  top: -30px; left: -34px; transform: rotate(-9deg); }
.sticker-green { background: var(--green); bottom: -34px; right: -26px; transform: rotate(7deg); }

/* ═══════════════════════════════  TICKER  ══════════════════════════════ */

.ticker {
  overflow: hidden;
  background: var(--ink);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  padding: 13px 0;
}
/* Four identical runs, shifted by exactly one run per cycle. Three runs'
   worth of width sits off-screen at any moment, so the band stays filled
   on very wide displays instead of running out of text mid-scroll. */
.ticker-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker-run {
  display: flex;
  align-items: center;
  color: var(--yellow);
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
/* the separator between terms — a square, like every other marker here */
.ticker-run i {
  flex: none;
  width: 11px;
  height: 11px;
  margin: 0 2.4rem;
  background: var(--yellow);
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ══════════════════════════════  SECTIONS  ═════════════════════════════ */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.section-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.55em;
  height: 1.55em;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: .38em;
  font-weight: 700;
  transform: rotate(-3deg);
}
.section-note { margin: -1.6rem 0 2rem; max-width: 60ch; }

/* ═══════════════════════════════  ABOUT  ═══════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.8rem;
}
.prose { font-size: 1.04rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { box-shadow: inset 0 -.42em 0 var(--yellow); }

.facts dl > div { padding: .75rem 0; border-bottom: var(--border-thin); }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .15rem;
}
.facts dd { font-family: var(--head); font-weight: 700; font-size: .96rem; line-height: 1.4; }
.card-lavender .muted { color: #3c3550; }

/* ════════════════════════════  EXPERIENCE  ═════════════════════════════ */

.timeline { display: grid; gap: 2rem; }

.job { padding: 0; }
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  padding: .9rem 1.4rem;
  border-bottom: var(--border);
}
.job-yellow .job-head { background: var(--yellow); }
.job-blue   .job-head { background: var(--blue); }
.job-orange .job-head { background: var(--orange); }

.job-company {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.tag {
  padding: 4px 10px;
  background: var(--paper);
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.tag-now { background: var(--ink); color: var(--bg); }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin: 0;
  padding: 1rem 1.4rem;
  border-bottom: var(--border-thin);
}
.job-role { font-family: var(--head); font-weight: 700; font-size: 1rem; }
.job-time { font-family: var(--mono); font-size: .82rem; color: var(--muted); white-space: nowrap; }

.job-list { padding: 1.2rem 1.4rem; display: grid; gap: .55rem; }
.job-list li { display: flex; gap: .7rem; align-items: baseline; }
.job-list li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: translateY(-1px);
}

.job-prev {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin: 0;
  padding: .9rem 1.4rem;
  border-top: var(--border);
  background: repeating-linear-gradient(
    45deg, transparent, transparent 7px, rgba(0, 0, 0, .05) 7px, rgba(0, 0, 0, .05) 14px);
}
.job-prev .job-role { font-weight: 400; font-size: .93rem; }

/* macro asymmetry: the stack steps sideways, the cards inside stay square */
@media (min-width: 861px) {
  .timeline .job:nth-child(2) { margin-left: 3.5rem; }
  .timeline .job:nth-child(3) { margin-left: 7rem; }
}

/* ═══════════════════════════════  SKILLS  ══════════════════════════════ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  align-items: start;
  gap: 1.6rem;
}
.skill-list { display: grid; gap: .5rem; }
.skill-list li {
  display: flex;
  gap: .65rem;
  align-items: baseline;
  font-family: var(--head);
  font-size: .97rem;
}
/* filled vs hollow marker — the shape carries the meaning, not the color */
.skill-list li::before {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border: var(--border-thin);
  background: transparent;
  transform: translateY(-1px);
}
.skill-list li.is-core::before { background: var(--ink); }
.skill-list li.is-core { font-weight: 700; }

.skill-legend {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.6rem 0 0;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}
.legend-dot { width: 11px; height: 11px; background: var(--ink); border: var(--border-thin); }

/* ══════════════════════════════  PROJECTS  ═════════════════════════════ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .9rem;
}
.project-head h3 { font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tags li {
  padding: 3px 9px;
  background: var(--lavender);
  border: var(--border-thin);
  font-family: var(--mono);
  font-size: .74rem;
}
.project-foot { margin: 0; font-family: var(--head); font-weight: 700; }
.project.is-empty { background: repeating-linear-gradient(
    45deg, var(--paper), var(--paper) 9px, #f1eee4 9px, #f1eee4 18px); }
.project.is-empty:hover { transform: none; box-shadow: var(--shadow); }
.project.is-empty a { color: var(--muted); pointer-events: none; }

/* ════════════════════════  EDUCATION & AWARDS  ═════════════════════════ */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  align-items: start;
}
.edu-school { font-family: var(--head); font-weight: 700; font-size: 1.2rem; margin-bottom: .1rem; }
.edu-abbr {
  display: inline-block;
  margin-bottom: .8rem;
  padding: 2px 9px;
  background: var(--yellow);
  border: var(--border-thin);
  font-family: var(--mono);
  font-size: .75rem;
}
.edu-degree { margin-bottom: .6rem; }
.edu-time { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

.awards { display: grid; gap: .7rem; }
.awards li { display: flex; gap: .9rem; align-items: baseline; }
.awards time {
  flex: none;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .74rem;
}
.awards span { font-size: .97rem; }

/* ══════════════════════════════  CONTACT  ══════════════════════════════ */

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--ink);
  color: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow-xl);
}
.contact-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.4rem;
}
.contact-lead { max-width: 42ch; font-size: 1.08rem; margin-bottom: 1.8rem; }
.contact-mail {
  font-family: var(--mono);
  font-weight: 700;
  word-break: break-all;
  text-align: center;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--bg);
  font-family: var(--mono);
  font-size: .88rem;
}
.contact-links a { color: var(--bg); text-decoration-color: var(--yellow); }
.contact-links a:hover { color: var(--yellow); }

/* ═══════════════════════════════  FOOTER  ══════════════════════════════ */

.footer { border-top: var(--border-thick); background: var(--yellow); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding: 1.6rem 0;
}
.footer p { margin: 0; }
.footer-brand { font-family: var(--head); font-weight: 700; }
.footer-brand .brand-tld { color: #4a3f14; }
.footer-note { font-family: var(--mono); font-size: .8rem; }

/* ══════════════════════════════  REVEALS  ══════════════════════════════ */
/* The class is added by main.js, so with JavaScript off nothing is hidden. */

.js-ready .rise {
  opacity: 0;
  transform: translate(0, 18px);
}
.js-ready .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .3s ease var(--rise-delay, 0ms), transform .3s ease var(--rise-delay, 0ms);
}

/* ════════════════════════════  RESPONSIVE  ═════════════════════════════ */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; align-items: start; }
  .contact-title { margin-bottom: 1rem; }
  .hero-side { max-width: 460px; margin: 1rem auto 0; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .6rem;
    background: var(--paper);
    border-bottom: var(--border-thick);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { border-color: var(--ink); background: var(--bg); margin-bottom: .4rem; }
  /* with JavaScript off the toggle cannot work, so the links stay in the bar */
  html:not(.js-ready) .nav-toggle { display: none; }
  html:not(.js-ready) .nav-links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; border: 0; box-shadow: none; padding: 0; }
  html:not(.js-ready) .nav-links a { background: transparent; border-color: transparent; margin: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 1.6rem, var(--wrap)); }
  .card { padding: 1.2rem; }
  .card-head { margin: -1.2rem -1.2rem 1rem; }
  .job-head, .job-meta, .job-list, .job-prev { padding-inline: 1.1rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .sticker-pink { top: -22px; left: -10px; }
  .sticker-green { bottom: -24px; right: -6px; }
  .id-card, .hero-word-hl { transform: none; }
  .contact-mail { width: 100%; }
}

/* ════════════════════════  MOTION & PRINTING  ══════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker-track { animation: none; }
  .btn:hover, .card:hover, .job:hover, .skill:hover, .edu:hover, .award-card:hover { transform: none; }
}

@media print {
  .nav, .ticker, .skip-link, .hero-cta, .sticker, .footer { display: none; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; break-inside: avoid; }
  .contact-box { background: #fff; color: #000; box-shadow: none; }
  .contact-title, .contact-links a { color: #000; }
  .timeline .job { margin-left: 0 !important; }
}
