/* Sean Anger · shared design system for resume.seananger.com (portfolio-site)
   and seananger.com (seananger-site). The two copies of this file are kept
   identical: edit portfolio-site/styles.css, then copy it across.
   Design language: desktop + design canvas, mirrored from the brief in
   portfolio-site/docs/elliothu-design-brief.md (system only, no copied assets). */

/* ---------- Tokens ---------- */
:root {
  --ink: #141414;
  --gray: #575757;
  --gray-2: #8a8a8a;
  --line: #e7e4dd;
  --paper: #ffffff;
  --cream: #fbf7ee;

  /* One flat pastel per section block (Sean's own sequence) */
  --p-sky: #dcebff;
  --p-butter: #fff1c2;
  --p-peach: #ffe2d3;
  --p-sage: #dcf3e3;
  --p-lilac: #ece6ff;

  /* Saturated accents: chips, icons and stickers only */
  --a-blue: #1d5cff;
  --a-yellow: #ffcc1a;
  --a-orange: #ff6a2b;
  --a-mint: #2fcf8f;
  --a-pink: #ff4f9a;
  --a-magenta: #d81b72;
  --a-purple: #6a46ff;
  --a-cyan: #20c4e8;
  --select: #1d5cff;
  --tan: #c9a46a;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --marker: "Caveat Brush", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --bar: 52px;
  --wrap: 1140px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }

:focus-visible { outline: 3px solid var(--select); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--a-yellow); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 800px; margin-inline: auto; }
.wrap.col { width: min(100% - 2.5rem, 860px); }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 12px; top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Small uppercase mono metadata */
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Marker script: annotations, captions, group headings only */
.marker { font-family: var(--marker); font-weight: 400; letter-spacing: 0; }

/* Inline sticker glyphs inside running text */
.glyph {
  display: inline-block;
  width: 1.05em; height: 1.05em;
  vertical-align: -0.16em;
  margin: 0 0.06em;
}

/* ---------- Fixed frosted top bar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--bar);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
  }
}
.site-header.is-scrolled { border-bottom-color: rgba(20, 20, 20, 0.1); }

.bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  width: min(100% - 1rem, 1240px);
  margin-inline: auto;
}

.bar-me {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.6rem 0 0.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.bar-me img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

.site-nav ul { display: flex; gap: 0.1rem; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(20, 20, 20, 0.07); }
.site-nav a.is-active { background: var(--ink); color: #fff; }

.bar-icons { display: flex; gap: 0.1rem; margin-left: auto; padding: 0; list-style: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--ink);
}
.icon-btn:hover { background: rgba(20, 20, 20, 0.07); }
.icon-btn svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }

@media (max-width: 859px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-left: auto;
    padding: 0 1rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: 600 0.88rem/1 var(--sans);
    cursor: pointer;
  }
  .js .bar-icons { margin-left: 0; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: var(--bar);
    left: 0; right: 0;
    padding: 0.5rem 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { width: 100%; min-height: 48px; border-radius: 12px; font-size: 1.05rem; }

  /* No JavaScript: the nav simply wraps onto a second row, and the bar
     scrolls away with the page instead of covering it. */
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .bar { flex-wrap: wrap; padding: 4px 0; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  html:not(.js) .hero { padding-top: 170px; }
}
@media (max-width: 400px) {
  .bar-icons .hide-xs { display: none; }
}

/* ---------- Selection frame motif ---------- */
.selected {
  position: relative;
  display: inline-block;
  border: 1.5px solid var(--select);
}
.handles i {
  position: absolute;
  width: 9px; height: 9px;
  background: #fff;
  border: 1.5px solid var(--select);
}
.handles i:nth-child(1) { left: -5px; top: -5px; }
.handles i:nth-child(2) { right: -5px; top: -5px; }
.handles i:nth-child(3) { left: -5px; bottom: -5px; }
.handles i:nth-child(4) { right: -5px; bottom: -5px; }

/* ---------- Hero: desktop scene ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--bar) + 2.5rem) 0 8rem;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  /* The one gradient on the site: a hero sky, as the brief calls for */
  background: linear-gradient(180deg, #7db4ff 0%, #b7d7ff 36%, #e6f0fb 66%, var(--cream) 100%);
}
/* The intro sheet slides over the hero as you scroll (no JS needed) */
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
  .hero { position: sticky; top: 0; }
}

.puff { position: absolute; z-index: -1; color: #fff; pointer-events: none; }
.puff svg { width: 100%; height: auto; }

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1180px);
  min-width: 0;
  text-align: center;
}

.hero-note {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  width: fit-content;
  margin-inline: auto;
  font-family: var(--marker);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
  transform: rotate(-4deg);
}
.hero-note svg { width: 2.2em; height: 1.4em; margin-bottom: -0.55em; }

.name-wrap { position: relative; display: inline-block; margin-top: 2.1rem; }

.name-frame { padding: 0.06em 0.12em 0.02em; }
.name-frame h1 {
  font-size: clamp(3.6rem, 26vw, 12.5rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.name-frame h1 span { display: block; }
@media (min-width: 560px) {
  .name-frame h1 { font-size: clamp(3.6rem, 15.5vw, 12.5rem); }
  .name-frame h1 span { display: inline; }
}

.frame-label {
  position: absolute;
  left: -1.5px;
  bottom: calc(100% + 6px);
  padding: 0.38rem 0.55rem;
  border-radius: 3px;
  background: var(--select);
  color: #fff;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cursor {
  position: absolute;
  right: -26px; bottom: -40px;
  width: 38px; height: 38px;
  pointer-events: none;
}

.hero-role {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
}
.hero-role .sep { color: var(--select); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.5rem;
  margin: 1.4rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem 0.55rem 0.6rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.14);
  font: 500 0.7rem/1.25 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  transform: rotate(var(--r, -2deg));
}
.tag::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--p-sky);
}
.tag:nth-child(2) { --r: 2.5deg; }
.tag:nth-child(3) { --r: 1.5deg; }
.tag:nth-child(4) { --r: -3deg; }

/* Tags pin to the corners of the name frame on wide screens */
@media (min-width: 1100px) {
  .hero-tags { position: static; margin: 0; max-width: none; }
  .hero-tags .tag { position: absolute; z-index: 3; white-space: nowrap; }
  .hero-tags .tag:nth-child(1) { right: 4%; top: -15%; --r: 4deg; }
  .hero-tags .tag:nth-child(2) { left: -6%; bottom: -16%; --r: -3deg; }
  .hero-tags .tag:nth-child(3) { left: 36%; top: -16%; --r: -2deg; }
  .hero-tags .tag:nth-child(4) { right: -4%; bottom: -18%; --r: 3deg; }
  .hero-role { margin-top: 3.8rem; }
}

/* Sticker objects scattered around the name */
.sticker {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: var(--s, 64px);
  height: var(--s, 64px);
  transform: rotate(var(--r, 0deg));
  /* zero-blur white die-cut outline */
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff);
}
.sticker svg { width: 100%; height: 100%; }
.sticker.wide-only { display: none; }
@media (min-width: 768px) {
  .sticker { width: var(--sl, 96px); height: var(--sl, 96px); left: var(--xl, var(--x)); top: var(--yl, var(--y)); }
  .sticker.wide-only { display: block; }
}
@media (hover: hover) and (pointer: fine) {
  .js .sticker[data-drag] { cursor: grab; touch-action: none; }
  .js .sticker.is-dragging { cursor: grabbing; z-index: 4; }
}

/* Dock */
.dock {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 22px;
}
.dock a {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--c, var(--ink));
  color: var(--fg, #fff);
  transition: transform 0.15s ease;
}
.dock a:hover { transform: translateY(-4px); }
.dock svg { width: 24px; height: 24px; }
.dock .tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.dock a:hover .tip, .dock a:focus-visible .tip { opacity: 1; }
@media (max-width: 380px) {
  .dock { gap: 0.35rem; padding: 0.4rem; }
  .dock a { width: 46px; height: 46px; }
}

/* ---------- Everything after the hero sits on top of it ---------- */
.over { position: relative; z-index: 2; background: var(--paper); }

/* Cut-paper section edges, drawn as a mask in the section's own colour */
.edge {
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: var(--eh);
  background: inherit;
  -webkit-mask: var(--edge) repeat-x left bottom / var(--ew) var(--eh);
  mask: var(--edge) repeat-x left bottom / var(--ew) var(--eh);
  pointer-events: none;
}
.edge-scallop {
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 18A20 18 0 0 1 40 18Z'/%3E%3C/svg%3E");
  --ew: 40px; --eh: 18px;
}
.edge-zigzag {
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14L14 0L28 14Z'/%3E%3C/svg%3E");
  --ew: 28px; --eh: 14px;
}
/* Black square anchor dots at each end of a zigzag edge */
.anchors::before, .anchors::after {
  content: "";
  z-index: 1;
  position: absolute;
  top: -4px;
  width: 8px; height: 8px;
  background: var(--ink);
}
.anchors::before { left: 1rem; }
.anchors::after { right: 1rem; }
.dark.anchors::before, .dark.anchors::after { background: var(--a-yellow); }

/* ---------- Intro statement sheet ---------- */
.sheet {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--paper);
  text-align: center;
}
.annot {
  display: inline-block;
  font-family: var(--marker);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--select);
  transform: rotate(-3deg);
}
.statement {
  max-width: 820px;
  margin: 1rem auto 0;
  font-size: clamp(1.55rem, 4.3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.018em;
  view-timeline-name: --statement;
}
.statement strong { font-weight: 800; }
.sheet-sub {
  max-width: 40rem;
  margin: 1.6rem auto 0;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Text darkens as it is read: CSS scroll-driven animation, no JS */
@keyframes ink-in { from { color: #c3c3c3; } to { color: var(--ink); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement .ln { animation: ink-in linear both; animation-timeline: --statement; animation-range: cover 8% cover 34%; }
    .statement .ln:nth-child(2) { animation-range: cover 14% cover 40%; }
    .statement .ln:nth-child(3) { animation-range: cover 20% cover 46%; }
    .statement .ln:nth-child(4) { animation-range: cover 26% cover 52%; }
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 820px;
  margin: 2.4rem auto 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--c, var(--ink));
  color: var(--fg, #fff);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.c-blue { --c: var(--a-blue); --fg: #fff; }
.c-yellow { --c: var(--a-yellow); --fg: var(--ink); }
.c-magenta { --c: var(--a-magenta); --fg: #fff; }
.c-mint { --c: var(--a-mint); --fg: var(--ink); }
.c-cyan { --c: var(--a-cyan); --fg: var(--ink); }
.c-orange { --c: var(--a-orange); --fg: var(--ink); }
.c-purple { --c: var(--a-purple); --fg: #fff; }
.c-ink { --c: var(--ink); --fg: #fff; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--cream); }
.btn .label { font-size: 0.66rem; opacity: 0.8; }

/* ---------- Generic sections ---------- */
.section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.block { position: relative; background: var(--bg, var(--paper)); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.bg-sky { --bg: var(--p-sky); }
.bg-butter { --bg: var(--p-butter); }
.bg-peach { --bg: var(--p-peach); }
.bg-sage { --bg: var(--p-sage); }
.bg-lilac { --bg: var(--p-lilac); }
.bg-cream { --bg: var(--cream); }

.sec-head { margin-bottom: 2.5rem; }
.sec-head .label { display: block; margin-bottom: 1.1rem; color: var(--gray); }
.sec-head .intro { max-width: 40rem; margin-top: 1.25rem; color: var(--gray); }

/* Tilted marker group heading with selection handles */
.group-title {
  display: inline-block;
  padding: 0.12em 0.4em 0.02em;
  font-family: var(--marker);
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  transform: rotate(-2deg);
}
.group-title.sm { font-size: clamp(1.8rem, 4.6vw, 2.4rem); }

/* ---------- About ---------- */
.about { display: grid; gap: 3rem; }
@media (min-width: 860px) {
  .about { grid-template-columns: 290px minmax(0, 1fr); gap: 4.5rem; align-items: start; }
}
.polaroid {
  position: relative;
  width: min(270px, 78%);
  margin: 0.75rem auto 0;
  padding: 12px 12px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(20, 20, 20, 0.07);
  transform: rotate(-3deg);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  padding: 0.55rem 0 0.8rem;
  font-family: var(--marker);
  font-size: 1.45rem;
  line-height: 1.1;
  text-align: center;
}
.tape {
  position: absolute;
  top: -13px; left: 50%;
  width: 96px; height: 26px;
  background: rgba(236, 211, 160, 0.82);
  transform: translateX(-50%) rotate(-4deg);
}

.bio { max-width: 760px; }
.bio p + p { margin-top: 1.1rem; }
.bio .lead { font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
mark {
  padding: 0.04em 0.2em;
  border-radius: 0.2em;
  background: #ffe26a;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.facts { display: grid; gap: 1.1rem 2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { color: var(--gray); }
.facts dd { margin-top: 0.25rem; font-weight: 500; line-height: 1.45; }

/* ---------- Work history rows ---------- */
.history { display: grid; gap: 2.6rem; max-width: 860px; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; }
.logo {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c, var(--ink));
  color: var(--fg, #fff);
  font-size: 1.05rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.02em;
}
.row h3, .row h4 { font-size: 1.25rem; }
.row .desc { margin-top: 0.3rem; color: var(--gray); }

.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.pill {
  display: inline-block;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: 500 0.68rem/1.2 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pill-role { border-color: transparent; background: var(--p-sky); }
.pill-role.alt { background: var(--p-butter); }
.pill-role.alt2 { background: var(--p-sage); }

/* Roles nested under one organisation, joined by a hairline */
.roles { position: relative; display: grid; gap: 2rem; margin-top: 2rem; padding: 0 0 0 1.4rem; list-style: none; border-left: 2px solid var(--ink); }
.role { position: relative; }
.role::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 6px); top: 0.45rem;
  width: 10px; height: 10px;
  background: #fff;
  border: 2px solid var(--ink);
}
.role.is-first::before { background: var(--ink); }
.role h4 { font-size: 1.12rem; }
.role .pills { margin-top: 0.55rem; }
.points { margin-top: 0.8rem; padding-left: 1.1rem; color: var(--gray); font-size: 0.98rem; }
.points li + li { margin-top: 0.35rem; }
.points li::marker { color: var(--gray-2); }
.role .tools { margin-top: 0.7rem; color: var(--gray); }

/* The honest Apr–Sep 2016 gap between two roles */
.gap { position: relative; padding: 0.2rem 0; }
.gap::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 2px); top: -1rem; bottom: -1rem;
  border-left: 2px dashed var(--paper);
}
.gap-pill { border-style: dashed; border-color: var(--gray-2); color: var(--gray); background: transparent; }
.gap .marker { margin-left: 0.5rem; color: var(--gray); font-size: 1.25rem; }

.edu { margin-top: 3.5rem; }
.edu .history { margin-top: 1.5rem; gap: 1.8rem; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.skill {
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: 14px;
  background: #fff;
}
.skill h3 { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1.08rem; }
.skill h3 .label { color: var(--gray); }
.skill ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; padding: 0; list-style: none; }
.skill li {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1.3;
}

/* ---------- Project cards with folder tabs ---------- */
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 2.6rem; }
.group-head p { color: var(--gray); max-width: 34rem; }

.cards-2 { display: grid; gap: 3rem 1.25rem; padding: 0; list-style: none; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.cards-2 > li, .cards-4 > li { display: flex; flex-direction: column; }
.cards-4 { display: grid; gap: 3rem 1.25rem; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }

.card {
  position: relative;
  flex: 1;
  margin-top: 30px;
  padding: 1.5rem;
  border-radius: 0 16px 16px 16px;
  background: #fff;
}
.tab {
  position: absolute;
  left: 0; bottom: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 1rem);
  height: 30px;
  padding: 0 1.7rem 0 0.9rem;
  border-radius: 10px 0 0 0;
  background: #fff;
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}
.card .tab { margin: 0; color: var(--ink); }
.tab::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.tab span { overflow: hidden; text-overflow: ellipsis; }

.card h3 { font-size: 1.28rem; }
.card .role-line { margin-top: 0.4rem; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.card p { margin-top: 0.55rem; color: var(--gray); }
.card .tools { margin-top: 0.9rem; color: var(--gray); }

.card-wide { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 1.25rem; align-items: start; }
.card-wide .art { width: 104px; height: 104px; }
@media (max-width: 519px) {
  .card-wide { grid-template-columns: 1fr; }
  .card-wide .art { order: -1; width: 80px; height: 80px; }
}
.card-small { text-align: center; }
.card-small .art { width: 88px; height: 88px; margin: 0.25rem auto 1rem; }
.art { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }

/* ---------- Stats (main site) ---------- */
.stats { display: grid; gap: 1.25rem; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; border-radius: 16px; background: #fff; }
.stat .art { flex: none; width: 64px; height: 64px; }
.stat strong { display: block; font-size: 2.6rem; font-weight: 900; font-stretch: 62%; line-height: 1; letter-spacing: 0; }
.stat span { display: block; margin-top: 0.3rem; color: var(--gray); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Résumé call-out (main site) ---------- */
.callout {
  display: grid;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: 24px;
  background: #fff;
}
@media (min-width: 860px) { .callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.callout h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: 0.95; letter-spacing: 0; }
.callout p { margin-top: 1rem; max-width: 36rem; color: var(--gray); }
.callout .actions { justify-content: flex-start; margin-top: 0; }
.url { font-family: var(--mono); font-size: 0.95em; overflow-wrap: anywhere; }

/* ---------- Pinboard ---------- */
.board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 0.6rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  border: 12px solid var(--tan);
  border-radius: 18px;
  background: #f7f1e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='3' cy='3' r='1.4' fill='%23cdbf9f'/%3E%3C/svg%3E");
  list-style: none;
}
.note {
  position: relative;
  width: min(100%, 220px);
  min-height: 160px;
  padding: 1.8rem 1.2rem 1.2rem;
  background: var(--c);
  font-family: var(--marker);
  font-size: 1.55rem;
  line-height: 1.15;
  transform: rotate(var(--r, -2deg));
}
.note::before {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 76px; height: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 20, 20, 0.07);
  transform: translateX(-50%) rotate(-3deg);
}
.note small { display: block; margin-top: 0.6rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(20, 20, 20, 0.7); }
.note:nth-child(1) { --c: #fff3a6; --r: -3deg; }
.note:nth-child(2) { --c: #ffd6e7; --r: 2deg; }
.note:nth-child(3) { --c: #cfeeff; --r: -1.5deg; }
.note:nth-child(4) { --c: #d4f5df; --r: 3deg; }
@media (min-width: 900px) { .note + .note { margin-left: -0.9rem; } }

/* ---------- Contact (dark block) ---------- */
.dark { background: var(--ink); color: #fff; }
.dark .label { color: rgba(255, 255, 255, 0.72); }
.contact-title {
  font-size: clamp(3rem, 13vw, 8rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}
.contact-title .marker { display: inline-block; margin-left: 0.2em; color: var(--a-yellow); font-size: 0.42em; text-transform: none; transform: rotate(-6deg); vertical-align: 0.4em; }
.contact-intro { max-width: 36rem; margin-top: 1.4rem; color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; }
.contact-list { display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.contact-row { display: grid; gap: 0.3rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
@media (min-width: 700px) { .contact-row { grid-template-columns: 9rem minmax(0, 1fr); align-items: center; } }
.contact-row dd { font-size: clamp(1.15rem, 4.6vw, 1.9rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.contact-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact-row a:hover { text-decoration-color: var(--a-yellow); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; padding: 3.5rem 0 1.5rem; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--marker); font-size: 1.7rem; font-weight: 400; letter-spacing: 0; }
.footer-grid p { margin-top: 0.6rem; color: var(--gray); max-width: 22rem; }
.footer-grid ul { margin-top: 0.4rem; padding: 0; list-style: none; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--gray);
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .dock a:hover { transform: none; }
}
