/* ==========================================================================
   Thuan (Mei) Nguyen — Portfolio
   Design tokens → base → layout → components → pages → motion
   ========================================================================== */

:root {
  /* Color — dark, warm graphite with one accent */
  --bg: #0b0b0c;
  --bg-raise: #131315;
  --bg-sunk: #08080a;
  --line: #242427;
  --line-strong: #34343a;
  --text: #f2f0eb;
  --text-soft: #c9c6bf;
  --muted: #8f8d88;      /* ≥ 5.9:1 on --bg */
  --accent: #69E2D9;     /* aqua — primary accent, used sparingly */
  --accent-ink: #06302D;
  --accent-wash: rgba(105, 226, 217, 0.22);
  --kw-bg: rgba(84, 51, 224, 0.35);  /* keyword highlight: indigo wash, 35% */
  --accent-2: #5433E0;      /* indigo — secondary, for emphasis tints */
  --accent-2-soft: #A99BFF;
  --accent-deep: #5433E0;
  --danger: #F87171;
  --good: #9fe0a8;

  /* Type families */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Newsreader", "Iowan Old Style", Georgia, serif;

  /* Type scale (major third, 16px base) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);        /* 20–24 */
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);       /* 24–34 */
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);          /* 32–56 */
  --fs-3xl: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);         /* 44–88 */
  --fs-hero: clamp(3rem, 1.2rem + 7.6vw, 8.25rem);        /* 48–132 */
  --fs-read: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem); /* 18–21 */

  /* Space (8pt) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);

  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --max: 1360px;
  --read: 68ch;
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent-2); color: #fff; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; left: var(--s-4); top: var(--s-4); z-index: 100;
  padding: var(--s-3) var(--s-4); background: var(--text); color: var(--bg);
  border-radius: 8px; font-weight: 600; transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Subtle film grain for depth (pure CSS, no image request) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Keyword highlight ---------- */
.kw {
  color: var(--text);
  background: linear-gradient(var(--kw-bg), var(--kw-bg)) no-repeat 0 88% / 0% 42%;
  padding: 0 .08em;
  margin: 0 -.04em;
  border-radius: 2px;
  transition: background-size 1s var(--ease-out);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.is-in .kw, .kw.is-in { background-size: 100% 42%; }
.kw--solid { color: var(--accent); background: none; }

.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .45s var(--ease-out), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  height: 72px;
}
.brand { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-1px); }
.nav__links { display: flex; align-items: center; gap: var(--s-2); list-style: none; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--text-soft); font-size: var(--fs-sm); border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover { background: rgba(255,255,255,.05); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .005em;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { border-color: var(--text-soft); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--sm { min-height: 40px; padding: 0 1rem; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(159,224,168,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(159,224,168,.45);} 70% { box-shadow: 0 0 0 8px rgba(159,224,168,0);} 100% { box-shadow: 0 0 0 0 rgba(159,224,168,0);} }

.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.btn--ghost { border-color: transparent; color: var(--text-soft); }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--text); }
.nav__mobile-only { display: none; }
.nav__menu-btn { display: none; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
.nav__menu-btn span, .nav__menu-btn span::before, .nav__menu-btn span::after {
  display: block; width: 20px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease-out), background-color .2s;
}
.nav__menu-btn span::before, .nav__menu-btn span::after { content: ""; position: absolute; left: 0; }
.nav__menu-btn span::before { top: -6px; }
.nav__menu-btn span::after { top: 6px; }
.nav.is-open .nav__menu-btn span { background: transparent; }
.nav.is-open .nav__menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__menu-btn { display: inline-flex; }
  .nav__actions { display: none; }
  .nav__mobile-only { display: list-item; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-6); background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: var(--fs-lg); min-height: 56px; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
  .nav__links a:hover { background: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(112px, 14vh, 150px); padding-bottom: var(--s-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-6); }
.hero__meta strong { color: var(--text); font-weight: 500; }
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--muted); }
.hero__thread { width: 100%; height: clamp(56px, 7vw, 104px); margin: var(--s-4) 0 var(--s-6); overflow: visible; display: block; }
.hero__thread path { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero__thread circle { fill: var(--accent); }
.hero__labels { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-top: calc(-1 * clamp(20px, 3vw, 44px)); margin-bottom: var(--s-7); letter-spacing: .02em; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-7); align-items: end; }
.hero__lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; }
@media (max-width: 820px) {
  .hero__bottom { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__actions { justify-content: flex-start; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-6); margin-bottom: var(--s-8); align-items: end; }
.eyebrow { font-size: var(--fs-sm); color: var(--muted); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.h2 { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1; letter-spacing: -0.035em; font-weight: 600; font-variation-settings: "opsz" 96; }
.h2 .muted { color: var(--muted); }
.section__intro { font-size: var(--fs-md); color: var(--muted); max-width: 52ch; line-height: 1.6; }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); } }

/* ---------- Spec strip (product framing) ---------- */
.spec { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec__item { padding: var(--s-6) var(--s-5) var(--s-6) 0; border-right: 1px solid var(--line); }
.spec__item + .spec__item { padding-left: var(--s-5); }
.spec__item:last-child { border-right: 0; }
.spec__num { font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.spec__num small { font-size: .5em; color: var(--muted); letter-spacing: 0; margin-left: .1em; }
.spec__label { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); max-width: 24ch; }
@media (max-width: 820px) {
  .spec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__item { padding: var(--s-5) var(--s-4) var(--s-5) 0; }
  .spec__item + .spec__item { padding-left: 0; }
  .spec__item:nth-child(2n) { border-right: 0; padding-left: var(--s-4); }
  .spec__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Capabilities ---------- */
.caps { list-style: none; border-top: 1px solid var(--line); }
.cap {
  display: grid; grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1.4fr); gap: var(--s-6);
  padding: var(--s-7) 0; border-bottom: 1px solid var(--line); align-items: start;
}
.cap__num { font-family: var(--font-display); color: var(--muted); font-size: var(--fs-md); font-variant-numeric: tabular-nums; padding-top: .5rem; }
.cap__title { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
.cap__title span { display: block; color: var(--muted); font-weight: 400; font-size: .5em; letter-spacing: -0.01em; margin-top: var(--s-3); line-height: 1.3; }
.cap__body { font-size: var(--fs-md); color: var(--muted); line-height: 1.65; }
.cap__body p + p { margin-top: var(--s-4); }
.cap__proof { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px dashed var(--line-strong); }
.proof-num { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.proof-label { font-size: var(--fs-sm); color: var(--muted); max-width: 26ch; line-height: 1.4; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); font-size: var(--fs-sm); min-height: 44px; border-bottom: 1px solid transparent; transition: color .2s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
@media (max-width: 960px) {
  .cap { grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s-4) var(--s-4); }
  .cap__body { grid-column: 2; }
}
@media (max-width: 600px) {
  .cap { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-6) 0; }
  .cap__body { grid-column: 1; }
  .cap__num { padding-top: 0; }
  .demo { padding: var(--s-4); }
}

/* ---------- Simplify demo (before/after) ---------- */
.demo { margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); padding: var(--s-5); }
.demo__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.demo__caption { font-size: var(--fs-sm); color: var(--muted); }
.demo__caption b { color: var(--text); font-weight: 500; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-sunk); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; min-height: 36px; padding: 0 1rem; border-radius: 999px; font-size: var(--fs-sm); color: var(--muted); transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--text); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.flows { display: grid; gap: var(--s-3); }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; opacity: 0; transform: translateY(6px); animation: flowIn .5s var(--ease-out) forwards; }
.flow__tag { font-size: var(--fs-xs); color: var(--muted); width: 3.25rem; flex: none; font-variant-numeric: tabular-nums; }
.node { font-size: var(--fs-xs); padding: .35rem .6rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-soft); white-space: nowrap; }
.node--key { border-color: var(--accent); color: var(--text); }
.node--end { border-style: dashed; }
.join { width: 12px; height: 1px; background: var(--line-strong); flex: none; }
.demo__stats { display: flex; gap: var(--s-6); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); flex-wrap: wrap; }
.demo__stats b { font-family: var(--font-display); color: var(--text); font-size: var(--fs-lg); font-weight: 600; margin-right: .35rem; font-variant-numeric: tabular-nums; }
@keyframes flowIn { to { opacity: 1; transform: none; } }

/* ---------- Work list ---------- */
.work { list-style: none; border-top: 1px solid var(--line); }
.work__item { border-bottom: 1px solid var(--line); }
.work__link {
  display: grid; grid-template-columns: 3rem minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 2.5rem; gap: var(--s-5);
  align-items: center; padding: var(--s-6) 0; position: relative;
  transition: padding .45s var(--ease-out);
}
.work__idx { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.work__name { font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; font-weight: 600; transition: transform .45s var(--ease-out), color .3s; }
.work__desc { display: block; font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--muted); letter-spacing: 0; font-weight: 400; margin-top: var(--s-3); line-height: 1.45; max-width: 44ch; }
.work__meta { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.work__meta b { display: block; color: var(--text-soft); font-weight: 500; }
.work__metric { font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.work__metric span { display: block; font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0; margin-top: var(--s-1); }
.work__go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .45s var(--ease-out); }
.work__link:hover .work__name, .work__link:focus-visible .work__name { transform: translateX(10px); }
.work__link:hover .work__go, .work__link:focus-visible .work__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.work__thumb { display: none; }
@media (max-width: 960px) {
  .work__link { grid-template-columns: 2rem minmax(0, 1fr) 2.5rem; gap: var(--s-3) var(--s-4); padding: var(--s-5) 0; }
  .work__meta, .work__metric { grid-column: 2; }
  .work__go { display: none; }
  .work__link { grid-template-columns: 2rem minmax(0, 1fr); }
  .work__thumb { display: block; grid-column: 1 / -1; grid-row: 1; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: var(--s-3); }
  .work__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .work__link:hover .work__name { transform: none; }
}

/* Floating preview that follows the cursor (desktop, fine pointer only) */
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(280px, 26vw, 420px); aspect-ratio: 7/5;
  border-radius: 12px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .3s, transform .45s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  will-change: transform, left, top;
}
.preview.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.preview img.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse), (max-width: 960px) { .preview { display: none; } }

/* ---------- Now (current role) ---------- */
.now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s-7); }
.now__company { font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1.05; }
.now__company small { display: block; font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--muted); letter-spacing: 0; margin-top: var(--s-3); }
.now__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.now__list li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.now__list h3 { font-size: var(--fs-md); font-weight: 500; }
.now__list p { color: var(--muted); line-height: 1.6; }
.note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 820px) { .now { grid-template-columns: 1fr; gap: var(--s-5); } .now__list li { grid-template-columns: 1fr; gap: var(--s-2); } }

/* ---------- Experience ---------- */
.xp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s-7); }
.xp__list { list-style: none; border-top: 1px solid var(--line); }
.xp__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.xp__years { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.xp__co { font-weight: 500; }
.xp__co span { color: var(--muted); font-weight: 400; }
.xp__role { color: var(--muted); font-size: var(--fs-sm); text-align: right; }
.toolkit { display: grid; gap: var(--s-5); align-content: start; }
.toolkit h3 { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.chips li { font-size: var(--fs-sm); padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-soft); }
@media (max-width: 820px) {
  .xp { grid-template-columns: 1fr; }
  .xp__row { grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); }
  .xp__years { grid-column: 1 / -1; }
  .xp__role { text-align: right; }
}

/* ---------- Contact CTA ---------- */
.cta { text-align: left; }
.cta__title { font-family: var(--font-display); font-size: var(--fs-3xl); letter-spacing: -0.04em; line-height: .98; max-width: 16ch; font-weight: 600; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-7); }
.email {
  font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: var(--s-3); min-height: 56px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .1em; transition: color .2s, border-color .2s;
}
.email:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn { position: relative; }
.toast {
  position: fixed; left: 50%; bottom: var(--s-6); z-index: 70; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: .7rem 1.1rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer: stark minimal, curtain reveal ---------- */
.page { position: relative; z-index: 1; background: var(--bg); }
.footer {
  position: sticky; bottom: 0; z-index: 0;
  background: var(--bg-sunk);
  padding: var(--s-8) 0 var(--s-5);
  overflow: hidden;
}
.footer__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.footer__top h2 { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); margin-bottom: var(--s-3); }
.footer__top a { color: var(--text-soft); display: inline-flex; min-height: 32px; align-items: center; transition: color .2s; }
.footer__top a:hover { color: var(--accent); }
.footer__top ul { list-style: none; display: grid; gap: 2px; }
.footer__mark {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(4rem, 17vw, 19rem); white-space: nowrap; margin-top: var(--s-8);
  color: var(--text); display: block; user-select: none; width: max-content;
  font-variation-settings: "opsz" 96; padding-bottom: .08em;
}
.footer__mark span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.footer.is-in .footer__mark span { transform: none; }
.footer__mark-wrap { overflow: hidden; padding-top: .04em; margin-bottom: -.12em; }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--muted); }
.footer__bottom a:hover { color: var(--text); }
@media (max-width: 820px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

/* Hero intro sequence */
.intro .line > span { transform: translateY(110%); }
.intro.is-ready .line > span { transform: none; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 100ms); }
.intro .fade-up { opacity: 0; transform: translateY(14px); }
.intro.is-ready .fade-up { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, .6s); }

/* ==========================================================================
   Case study
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 55; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cs-hero { padding-top: 140px; padding-bottom: var(--s-7); }
.back { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: var(--fs-sm); min-height: 44px; margin-bottom: var(--s-6); transition: color .2s; }
.back:hover { color: var(--text); }
.back svg { transition: transform .3s var(--ease-out); }
.back:hover svg { transform: translateX(-3px); }
.cs-kicker { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.cs-title { font-family: var(--font-display); font-size: var(--fs-3xl); letter-spacing: -0.04em; line-height: .98; max-width: 18ch; font-weight: 600; font-variation-settings: "opsz" 96; }
.cs-sub { margin-top: var(--s-5); font-size: var(--fs-lg); color: var(--muted); max-width: 46ch; line-height: 1.5; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.cs-meta dt { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-2); }
.cs-meta dd { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; }
@media (max-width: 820px) { .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cs-cover { margin: var(--s-6) 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cs-cover img { width: 100%; }

.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.glance > div { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--line); }
.glance > div:last-child { border-right: 0; }
.glance h2 { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); margin-bottom: var(--s-3); }
.glance p { font-size: var(--fs-md); line-height: 1.55; color: var(--text-soft); }
@media (max-width: 820px) { .glance { grid-template-columns: 1fr; } .glance > div { border-right: 0; border-bottom: 1px solid var(--line); } .glance > div:last-child { border-bottom: 0; } }

.metrics { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: var(--s-6); }
.metric { padding: var(--s-5) var(--s-4) var(--s-5) 0; }
.metric + .metric { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.metric__num { font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric__num .accent { color: var(--accent); }
.metric__label { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.cs-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.cs-layout > article { min-width: 0; }
.toc { position: sticky; top: 110px; font-size: var(--fs-sm); }
.toc p { color: var(--muted); font-size: var(--fs-xs); margin-bottom: var(--s-3); }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem var(--s-4); color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 1080px) { .cs-layout { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.chapter { padding-block: var(--s-8); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter__label { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); display: flex; gap: .75rem; align-items: center; }
.chapter__label b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.chapter__title { font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1.05; max-width: 22ch; margin-bottom: var(--s-6); font-weight: 600; }

.prose { font-family: var(--font-read); font-size: var(--fs-read); line-height: 1.68; color: var(--text-soft); max-width: var(--read); font-variation-settings: "opsz" 18; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .kw { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose h3 { font-family: var(--font-ui); font-size: var(--fs-md); color: var(--text); font-weight: 600; margin: 2em 0 .6em; letter-spacing: -0.005em; }
.prose h3:first-child { margin-top: 0; }

.pull {
  font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -0.02em;
  color: var(--text); max-width: 30ch; margin-block: var(--s-7); padding-left: var(--s-5); border-left: 2px solid var(--accent);
}

.figure { margin: var(--s-7) 0; }
.figure--bleed { margin-right: calc(-1 * var(--gutter)); }
.figure__frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure__frame--dark { background: var(--bg-raise); }
.figure__frame--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure__frame--scroll img { max-width: none; width: 1600px; }
.figure__frame--tall { max-height: 80vh; overflow-y: auto; }
.figure figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); max-width: 70ch; line-height: 1.5; }
.figure figcaption b { color: var(--text-soft); font-weight: 500; }
.zoomable { cursor: zoom-in; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--s-3); margin-block: var(--s-6); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: var(--s-5); background: var(--bg-raise); }
.card__k { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-3); }
.card__k b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.card h3 { font-size: var(--fs-md); font-weight: 500; line-height: 1.35; margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.finding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-block: var(--s-3); }
.finding > div { padding: var(--s-5); }
.finding > div + div { border-left: 1px solid var(--line); background: var(--bg-raise); }
.finding h3 { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; margin-bottom: var(--s-2); }
.finding > div + div h3 { color: var(--accent); }
.finding p { font-size: var(--fs-md); line-height: 1.5; color: var(--text-soft); }
@media (max-width: 700px) { .finding { grid-template-columns: 1fr; } .finding > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-block: var(--s-6); }
.compare__col { border: 1px solid var(--line); border-radius: 12px; padding: var(--s-5); }
.compare__col--after { border-color: rgba(105,226,217,.45); background: linear-gradient(180deg, rgba(105,226,217,.06), transparent 60%); }
.compare__col h3 { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; margin-bottom: var(--s-4); display: flex; justify-content: space-between; }
.compare__col--after h3 { color: var(--accent); }
.compare__col ul { list-style: none; display: grid; gap: var(--s-3); }
.compare__col li { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; padding-left: 1.1rem; position: relative; }
.compare__col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 1px; background: var(--muted); }
.compare__col--after li::before { background: var(--accent); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

.quote-list { list-style: none; display: grid; gap: var(--s-3); margin-block: var(--s-6); }
.quote-list li { font-family: var(--font-read); font-style: italic; font-size: var(--fs-md); color: var(--text-soft); padding: var(--s-4) var(--s-5); border-left: 2px solid var(--line-strong); background: var(--bg-raise); border-radius: 0 10px 10px 0; line-height: 1.55; }

.bars { display: grid; gap: var(--s-3); margin-block: var(--s-6); max-width: 720px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem; gap: var(--s-2) var(--s-4); align-items: center; }
.bar__label { font-size: var(--fs-sm); color: var(--text-soft); grid-column: 1 / -1; }
.bar__track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar__fill { height: 100%; width: calc(var(--v) * 1%); background: var(--text-soft); border-radius: 99px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.bar--hot .bar__fill { background: var(--accent); }
.is-in .bar__fill { transform: scaleX(1); }
.bar__val { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

.callout { border: 1px solid var(--line); border-radius: 12px; padding: var(--s-5); background: var(--bg-raise); margin-block: var(--s-6); max-width: var(--read); }
.callout h3 { font-size: var(--fs-sm); color: var(--accent); font-weight: 500; margin-bottom: var(--s-2); }
.callout p { color: var(--text-soft); line-height: 1.6; font-size: var(--fs-base); }

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin-block: var(--s-6); border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--accent); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: .15em; }
.steps h3 { font-size: var(--fs-md); font-weight: 500; }
.steps p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-1); line-height: 1.55; }

.next { display: block; padding-block: var(--section); border-top: 1px solid var(--line); }
.next__k { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.next__t { font-family: var(--font-display); font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: .95; font-weight: 600; display: inline-flex; align-items: center; gap: .2em; transition: color .3s; }
.next__t svg { width: .55em; height: .55em; transition: transform .45s var(--ease-out); }
.next:hover .next__t { color: var(--accent); }
.next:hover .next__t svg { transform: translate(.08em, -.08em); }
.next__d { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-md); max-width: 50ch; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,6,.94); display: grid; place-items: center; padding: var(--s-5); opacity: 0; pointer-events: none; transition: opacity .3s; overflow: auto; }
.lightbox.is-on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1800px, 100%); max-height: none; width: auto; border-radius: 8px; background: #fff; }
.lightbox__close { position: fixed; top: var(--s-4); right: var(--s-4); width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 1.25rem; z-index: 81; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .intro .fade-up, .intro .line > span, .footer__mark span { opacity: 1 !important; transform: none !important; }
  .kw { background-size: 100% 42%; }
  .bar__fill { transform: none; }
}

/* ==========================================================================
   Protected case: password gate
   ========================================================================== */
.gate { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: var(--s-9); }
.gate__title { font-family: var(--font-display); font-size: var(--fs-3xl); letter-spacing: -0.04em; line-height: .98; font-weight: 600; max-width: 16ch; }
.gate__lead { margin-top: var(--s-5); color: var(--muted); font-size: var(--fs-lg); max-width: 44ch; line-height: 1.5; }
.gate__form { margin-top: var(--s-7); max-width: 520px; }
.gate__form label { display: block; font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: var(--s-2); }
.gate__row { display: flex; gap: var(--s-2); }
.gate__field { position: relative; flex: 1; }
.gate__input {
  width: 100%; min-height: 52px; padding: 0 3.25rem 0 1rem; border-radius: 12px;
  background: var(--bg-raise); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: var(--fs-md); transition: border-color .2s, box-shadow .2s;
}
.gate__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.gate__input[aria-invalid="true"] { border-color: #ff8a80; }
.gate__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; border-radius: 8px; color: var(--muted); font-size: var(--fs-xs); }
.gate__toggle:hover { color: var(--text); }
.gate__btn { min-height: 52px; padding: 0 1.4rem; }
.gate__btn[disabled] { opacity: .6; cursor: progress; }
.gate__error { min-height: 1.5em; margin-top: var(--s-3); font-size: var(--fs-sm); color: #ff8a80; }
.gate__note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.gate__note a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.gate__note a:hover { color: var(--accent); border-color: var(--accent); }
.gate.is-shake .gate__row { animation: shake .4s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 520px) { .gate__row { flex-direction: column; } }

.lock-tag { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--accent); border: 1px solid rgba(105,226,217,.45); border-radius: 999px; padding: .2rem .55rem; vertical-align: middle; margin-left: .5rem; transform: translateY(-.35em); }

/* ---------- Home: hero stats, how I work, more work ---------- */
.hero__cta { margin-top: var(--s-5); }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero__stats li { padding: var(--s-4) var(--s-4) 0 0; }
.hero__stats li + li { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.hero__stat-num { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stat-label { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats li, .hero__stats li + li { padding: var(--s-3) 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: var(--s-4); }
  .hero__stat-num { min-width: 5.5rem; font-size: var(--fs-xl); }
  .hero__stat-label { margin-top: 0; }
}

.inline-link { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.inline-link:hover { color: var(--accent); border-color: var(--accent); }

.more-work { margin-top: var(--s-7); }
.more-work__k { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-3); }
.more-work ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.more-work a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); min-height: 44px; transition: border-color .25s; }
.more-work a:hover { border-color: var(--line-strong); }
.more-work__name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; }
.more-work__name .lock-tag { transform: translateY(-.2em); }
.more-work__desc { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.more-work__go { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); transition: transform .3s var(--ease-out), color .2s; }
.more-work a:hover .more-work__go { color: var(--accent); transform: translateX(3px); }
@media (max-width: 720px) { .more-work ul { grid-template-columns: 1fr; } }

.how { list-style: none; border-top: 1px solid var(--line); }
.how__row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.4fr) 10rem; gap: var(--s-5); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.how__num { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.how__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.how__text { color: var(--muted); line-height: 1.55; }
.how__link { justify-self: end; }
@media (max-width: 900px) {
  .how__row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s-2) var(--s-3); }
  .how__text, .how__link { grid-column: 2; }
  .how__link { justify-self: start; }
}

.xp__note { grid-column: 2 / -1; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; max-width: 60ch; }
.xp__row--now .xp__co { color: var(--text); }
@media (max-width: 820px) { .xp__note { grid-column: 1 / -1; } }
.more-work__all { display: flex !important; align-items: center; gap: var(--s-3) var(--s-5); flex-wrap: wrap; padding: var(--s-5) var(--s-6) !important; }
.more-work__label { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; }
.more-work__sub { color: var(--muted); font-size: var(--fs-sm); flex: 1; min-width: 14rem; }
.more-work__all .more-work__go { font-size: var(--fs-lg); }
.more-work__all:hover .more-work__label { color: var(--accent); }
