/* ═════════════════════════════════════════════════════════════
   Hooman Rezvani — Portfolio v10
   White canvas · yellow signal · geometric sans · geometric shapes
═════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --ink: #0e0e0e;
  --ink-2: #3a3a3a;
  --muted: #8a8a86;
  --line: #e8e8e5;
  --line-strong: #cfcfcb;
  --soft: #f6f6f3;
  --signal: #ffd60a;
  --signal-deep: #f5c400;

  /* legacy aliases used by case-study pages */
  --paper: #fff; --accent: var(--ink); --canvas: #fff; --surface: #fff;
  --surface-2: var(--soft); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--muted);
  --line-2: var(--line-strong); --hair: var(--line); --hair-2: var(--line-strong);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .24, 1);
  --max: 1200px;
  --px: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--signal); color: #111; }

.skip-link {
  position: fixed; left: var(--px); top: 12px; z-index: 200;
  transform: translateY(-200%);
  background: var(--ink); color: #fff; padding: 8px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: none; }

.wrap { width: min(var(--max), 100% - var(--px) * 2); margin-inline: auto; }

/* ── Header (shared with case-study pages) ─────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header .wrap { width: min(var(--max), 100% - var(--px) * 2); }

.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo img { width: 28px; height: 28px; border-radius: 50%; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); margin-left: auto; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 3px; border-radius: 3px; background: var(--signal);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--signal); color: #111 !important;
  font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background .2s;
}
.nav-cta:hover { background: var(--signal-deep); transform: translateY(-1px); }
.nav-cta svg { transition: transform .25s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

/* ── Primitives ─────────────────────────────────────────────── */
.eyebrow, .section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -.035em; line-height: 1.04;
  max-width: 16ch; margin-bottom: clamp(36px, 5vw, 64px);
}
.section { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--signal); color: #111; border: 1px solid var(--signal); font-weight: 700; }
.btn-primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: clamp(40px, 6vw, 72px);
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.hero-left { display: contents; }
h1.hero-h {
  grid-column: 1 / span 9;
  font-family: var(--display);
  font-size: clamp(42px, 6.6vw, 96px);
  font-weight: 500;
  letter-spacing: -.04em; line-height: 1.02;
}
h1.hero-h strong { font-weight: 700; font-style: normal; }
h1.hero-h em {
  display: block; margin-top: .28em;
  font-style: normal; font-weight: 500; color: var(--muted);
}

.hero-right {
  grid-column: 10 / span 3; grid-row: 1;
  align-self: start; justify-self: end;
  width: 100%; max-width: 260px;
}
.portrait-wrap {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden; background: var(--soft);
}
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portrait-badge {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11px; line-height: 1.25; color: var(--muted);
}
.portrait-badge .pb-num { font-family: var(--display); font-size: 24px; color: var(--ink); letter-spacing: -.04em; }
.portrait-badge .pb-text strong { display: block; font-size: 11.5px; color: var(--ink); font-weight: 600; }

.hero-foot {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-sub {
  grid-column: 1 / span 6;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 44ch;
}
.hero-side { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-socials { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-socials a {
  font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.hero-socials a:hover { color: var(--ink); border-color: var(--ink); }

/* ── Clients strip ──────────────────────────────────────────── */
.clients { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.clients-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.clients .eyebrow { margin: 0; }
.clients-list { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.clients-list img { height: 24px; width: auto; opacity: .4; filter: grayscale(1); transition: opacity .3s; }
.clients-list li:hover img { opacity: .9; }

/* ── Services ───────────────────────────────────────────────── */
.services-grid { counter-reset: svc; border-top: 1px solid var(--ink); }
.service-card {
  counter-increment: svc;
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 24px; align-items: baseline;
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: padding .45s var(--ease), background .3s;
}
.service-card::before {
  content: "0" counter(svc);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.service-card:hover { padding-left: 14px; }
.service-card .sc-icon { display: none; }
.service-card .sc-body { display: contents; }
.service-card h3 {
  font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500; letter-spacing: -.035em; line-height: 1.05;
}
.service-card p { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 48ch; }
.service-card .sc-link {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  white-space: nowrap; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.service-card:hover .sc-link { border-color: var(--signal-deep); box-shadow: 0 2px 0 var(--signal-deep); }

/* ── Work: tinted cover cards ───────────────────────────────── */
.work-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.work-header .section-title { margin-bottom: 0; }
.work-link-all {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.work-link-all:hover { border-color: var(--signal-deep); box-shadow: 0 2px 0 var(--signal-deep); }

.work-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.work-card { display: block; text-decoration: none; color: inherit; }

.work-cover {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--tint, var(--soft));
  display: grid; place-items: center;
  transition: border-radius .6s var(--ease);
}

.work-cover::before {
  content: attr(data-n);
  position: absolute; left: 24px; top: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.work-cover::after {
  content: "";
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  right: -18%; bottom: -42%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform .9s var(--ease);
}
.work-card:hover .work-cover::after { transform: scale(1.18) translate(-6%, -6%); }
.work-card:hover .work-cover { border-radius: 32px; }

.work-mark {
  position: relative; z-index: 1;
  max-height: 25%; max-width: 38%; width: auto; height: auto;
  object-fit: contain;
  transition: transform .8s var(--ease);
}
.work-card:hover .work-mark { transform: scale(1.06); }

.work-glyph {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 78px); line-height: 1; letter-spacing: -.045em; white-space: nowrap;
  padding: 0 .1em;
  color: var(--ink);
  transition: transform .8s var(--ease);
}
.work-card:hover .work-glyph { transform: scale(1.06); }

.work-open {
  position: absolute; z-index: 2; right: 20px; bottom: 20px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 20px;
  transform: scale(.6); opacity: 0;
  transition: transform .5s var(--ease), opacity .3s, background .2s;
}
.work-card:hover .work-open { transform: none; opacity: 1; }

.work-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; }
.work-name {
  font-family: var(--display); font-size: clamp(26px, 3vw, 38px);
  font-weight: 500; letter-spacing: -.035em; line-height: 1.05;
}
.work-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.case-cta { margin-top: clamp(40px, 5vw, 64px); }

/* ── Works page ─────────────────────────────────────────────── */
.works-page { border-top: none; padding-top: clamp(56px, 8vw, 110px); }
.works-page .section-title { max-width: 12ch; font-size: clamp(48px, 9vw, 132px); margin-bottom: 24px; }
.works-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 46ch; margin-bottom: clamp(48px, 7vw, 88px); }

/* ── Experience ─────────────────────────────────────────────── */
.exp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.exp-list { border-top: 1px solid var(--ink); }
.exp-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.exp-when { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); padding-top: 8px; }
.exp-item:first-child .exp-when { color: var(--ink); font-weight: 600; }
.exp-role { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 6px; }
.exp-company { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.exp-desc { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 52ch; }

.exp-side { position: sticky; top: 100px; }
.cred-row { display: grid; gap: 20px; }
.cred-card { display: block; text-decoration: none; color: inherit; }
.cred-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 25%;
  border-radius: 14px; margin-bottom: 14px; transition: transform .7s var(--ease);
}
.cred-card:hover img { transform: scale(1.015); }
.cred-card-body .cc-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cred-card h3 { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 6px; }
.cred-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ── Skills & tools ─────────────────────────────────────────── */
.skills-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.skills-list { border-top: 1px solid var(--ink); counter-reset: sk; }
.skills-list li {
  counter-increment: sk;
  display: flex; align-items: baseline; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2);
  transition: padding .4s var(--ease), color .2s;
}
.skills-list li::before { content: counter(sk, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.skills-list li:hover { padding-left: 10px; color: var(--ink); }

.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 1; padding: 10px; border-radius: 16px; background: var(--soft);
  transition: background .25s, transform .4s var(--ease);
}
.tool-chip:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-3px); }
.tool-chip img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.tool-chip span { font-size: 10.5px; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.2; }

/* ── Testimonials ───────────────────────────────────────────── */
.about-testimonials { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.testimonial-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 3vw, 40px); border-radius: 20px; background: var(--soft);
  transition: background .3s, box-shadow .3s;
}
.testimonial-card:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.testimonial-card:nth-child(1) { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.testimonial-card:nth-child(1):hover { background: var(--ink); box-shadow: none; }
.testimonial-card:nth-child(1) .tc-quote { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; max-width: 30ch; color: #fff; }
.testimonial-card:nth-child(1) .tc-role { color: rgba(255, 255, 255, .6); }
.testimonial-card:nth-child(1) .tc-person img { border-color: rgba(255, 255, 255, .25); }
.tc-quote {
  font-family: var(--display); font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500; letter-spacing: -.015em; line-height: 1.4; color: var(--ink);
}
.tc-person { display: flex; align-items: center; gap: 12px; }
.tc-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.tc-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tc-role { font-size: 12.5px; color: var(--muted); }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section { padding: clamp(96px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); overflow: hidden; }
.cta-section h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(56px, 11vw, 170px); letter-spacing: -.04em; line-height: .98;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.cta-section h2 em { font-style: normal; font-weight: 700; background: linear-gradient(transparent 62%, var(--signal) 62%); }
.cta-section p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 40ch; margin-bottom: 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer (shared) ────────────────────────────────────────── */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }

/* ── Reveal ─────────────────────────────────────────────────── */
.js [data-reveal]:not(.is-done) {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in:not(.is-done) { opacity: 1; transform: none; }

/* hero entrance */
.hero h1.hero-h, .hero-right, .hero-foot { animation: rise 1s var(--ease) both; }
.hero-right { animation-delay: .12s; }
.hero-foot { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  h1.hero-h { grid-column: 1 / -1; }
  .hero-right { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 200px; }
  .hero-sub, .hero-side { grid-column: 1 / -1; }
  .service-card { grid-template-columns: 48px 1fr; row-gap: 10px; }
  .service-card h3 { grid-column: 2; }
  .service-card p, .service-card .sc-link { grid-column: 2; justify-self: start; }
  .exp-grid, .skills-layout { grid-template-columns: 1fr; }
  .exp-side { position: static; }
  .cred-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { min-height: 60px; }
  .nav-cta { padding: 9px 14px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-header { flex-direction: column; align-items: flex-start; }
  .work-caption { flex-direction: column; gap: 6px; }
  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  .cred-row { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal]:not(.is-done) { opacity: 1; transform: none; }
}

/* ═════ v10 additions: shapes · stats bar · featured · cards ═════ */

/* hero: yellow teardrop behind arch portrait */
.hero-right { position: relative; max-width: 300px; }
.hero-right::before {
  content: ""; position: absolute; z-index: -1;
  width: 128%; aspect-ratio: 1;
  right: 26%; top: -18%;
  background: var(--signal);
  border-radius: 50% 0 50% 50%;
  transform: rotate(8deg);
}
.portrait-wrap { border-radius: 999px 999px 0 0; background: #e9e9e6; }
.portrait-badge { display: none; }
h1.hero-h .dot { color: var(--signal-deep); }
.hero { overflow: visible; }

/* stats + logos bar */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.clients-inner { display: grid; grid-template-columns: auto auto 1fr; gap: 0; align-items: stretch; }
.stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 26px clamp(20px, 3vw, 44px); border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat strong { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-deep); margin-right: 10px; vertical-align: middle; transform: translateY(-1px); }
.clients-logos { display: flex; align-items: center; justify-content: flex-end; gap: 20px 40px; flex-wrap: wrap; padding: 22px 0 22px clamp(20px, 3vw, 44px); }
.clients .eyebrow { display: none; }
.clients-list { gap: 20px 36px; justify-content: flex-end; }

/* featured project */
.featured-wrap { padding: clamp(40px, 5vw, 64px) 0 0; }
.featured {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: 32px; overflow: hidden; isolation: isolate;
  min-height: clamp(280px, 30vw, 380px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 28px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9edf4 100%);
}
.featured__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.featured__eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }
.featured__title { font-family: var(--display); font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 14px; }
.featured__meta { font-size: 15px; color: var(--ink-2); margin-bottom: 28px; }
.featured__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; transition: gap .3s var(--ease); }
.featured:hover .featured__link { gap: 14px; }
.featured__art { position: relative; align-self: stretch; min-height: 220px; }
.featured__art::before { content: ""; position: absolute; right: -8%; top: -30%; width: 78%; aspect-ratio: 1; background: var(--signal); border-radius: 50% 0 50% 50%; transform: rotate(-6deg); transition: transform .9s var(--ease); }
.featured__art::after { content: attr(data-word); position: absolute; left: 6%; bottom: 8%; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.045em; line-height: .9; color: var(--ink); white-space: nowrap; }
.featured:hover .featured__art::before { transform: rotate(4deg) scale(1.06); }

/* work cards: light panel + circular arrow */
.work-cover { background: var(--tint, #f3f5f8); border-radius: 22px; }
.work-cover::after { background: color-mix(in srgb, var(--signal) 85%, transparent); width: 46%; right: -8%; bottom: auto; top: -22%; border-radius: 50% 0 50% 50%; transform: rotate(10deg); }
.work-card:hover .work-cover::after { transform: rotate(-4deg) scale(1.14); }
.work-card:hover .work-cover { border-radius: 30px; }
.work-glyph { letter-spacing: -.045em; font-weight: 700; }
.work-open { display: none; }
.work-caption { align-items: center; padding-top: 16px; }
.work-caption::after { content: "↗"; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 15px; transition: background .25s, border-color .25s, transform .4s var(--ease); order: 3; }
.work-card:hover .work-caption::after { background: var(--signal); border-color: var(--signal); transform: rotate(45deg); }
.work-caption .work-name { margin-right: auto; font-weight: 600; }
.work-caption .work-meta { order: 2; }

/* CTA: yellow shape + circular arrow */
.cta-section { position: relative; }
.cta-section::before { content: ""; position: absolute; z-index: 0; width: clamp(280px, 40vw, 620px); aspect-ratio: 1; right: -6%; bottom: -22%; background: var(--signal); border-radius: 50% 0 50% 50%; transform: rotate(6deg); }
.cta-section .wrap { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .hero-right { max-width: 220px; }
  .hero-right::before { right: 10%; }
  .clients-inner { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .clients-logos, .clients-list { grid-column: 1 / -1; justify-content: flex-start; padding-left: 0; }
  .featured { grid-template-columns: 1fr; }
  .featured__art { min-height: 160px; }
}

/* ═════ v13: kinetic strip · stacked project panels · resume · print ═════ */

.kinetic { overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; padding: clamp(18px, 2.4vw, 28px) 0; }
.kinetic-track { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); width: max-content; animation: kinetic 40s linear infinite; }
.kinetic:hover .kinetic-track { animation-play-state: paused; }
.kinetic-track span { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; color: var(--ink); white-space: nowrap; }
.kinetic-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.kinetic-track i { flex: none; width: clamp(14px, 1.6vw, 22px); aspect-ratio: 1; background: var(--signal); border-radius: 50% 0 50% 50%; transform: rotate(8deg); }
@keyframes kinetic { to { transform: translateX(-50%); } }

/* stacked panels: sticky scroll stack */
.stack { position: relative; }
.pcard {
  position: sticky; top: calc(92px + var(--i, 0) * 16px);
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: clamp(380px, 58vh, 520px);
  margin-bottom: 20px; padding: clamp(24px, 3vw, 40px);
  border-radius: 28px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--ink);
  background: #f3f5f8; border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 -12px 40px -24px rgba(0, 0, 0, .18);
  transition: border-radius .5s var(--ease);
}
.pcard:hover { border-radius: 40px; }
.pcard--yellow { background: var(--signal); }
.pcard--dark { background: #0e0e0e; color: #fff; border-color: rgba(255, 255, 255, .08); }
.pcard::before { content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; right: -8%; top: -24%; background: var(--signal); border-radius: 50% 0 50% 50%; transform: rotate(10deg); transition: transform .9s var(--ease); }
.pcard--yellow::before { background: #fff; opacity: .35; }
.pcard:hover::before { transform: rotate(-4deg) scale(1.1); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pcard__meta { opacity: .7; }
.pcard__word { align-self: center; font-family: var(--display); font-weight: 700; font-size: clamp(56px, 11vw, 168px); letter-spacing: -.055em; line-height: .95; white-space: nowrap; transition: transform .8s var(--ease); }
.pcard:hover .pcard__word { transform: translateX(10px); }
.pcard__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pcard__name { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; }
.pcard__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: currentColor; transition: transform .4s var(--ease); }
.pcard__go { color: inherit; position: relative; font-size: 0; }
.pcard__go::after { content: "↗"; font-size: 20px; color: #fff; }
.pcard--dark .pcard__go::after { color: #0e0e0e; }
.pcard--yellow .pcard__go::after { color: var(--signal); }
.pcard:hover .pcard__go { transform: rotate(45deg); }
.stack + .case-cta { margin-top: 32px; }

.work-link-btn { background: none; border: none; border-bottom: 1.5px solid var(--ink); cursor: pointer; font-family: inherit; }

@media (max-width: 680px) {
  .pcard { position: relative; top: auto; min-height: 300px; }
}

/* print: clean one-page-style resume */
@media print {
  @page { margin: 14mm; }
  .site-header, .hero, .clients, .kinetic, #work, #services, .skills-layout .tools-side, .about-testimonials, .cta-section, .site-footer, .skip-link, .work-link-btn, .exp-side { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 0 0 12mm; border: none; }
  .section-title { font-size: 28pt; margin-bottom: 8mm; }
  .exp-grid, .skills-layout { display: block; }
  .exp-item { break-inside: avoid; padding: 4mm 0; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #about .section-label::before, #about .section-title { display: block; }
}
.pcard--dark::before { width: 30%; right: -6%; top: -18%; }
.pcard__word { font-size: clamp(52px, 10vw, 150px); }

/* ═════ v15: calmer · smaller type · more air · one visual language ═════ */
:root { --r: 24px; --section-gap: clamp(120px, 15vw, 220px); }

body { font-size: 15px; line-height: 1.6; }

/* type scale — smaller, quieter */
h1.hero-h { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.035em; max-width: 17ch; }
h1.hero-h em { font-size: 1em; }
.hero-sub { font-size: 16px; max-width: 40ch; }
.section-title { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.1; letter-spacing: -.03em; max-width: 20ch; margin-bottom: clamp(40px, 5vw, 72px); }
.works-page .section-title { font-size: clamp(34px, 4.6vw, 64px); }
.works-lede { font-size: 16px; }
.section-label, .eyebrow { font-size: 10.5px; }
.btn { padding: 13px 22px; font-size: 13.5px; }
.nav-links a, .nav-cta { font-size: 13px; }
.service-card h3 { font-size: clamp(21px, 2vw, 28px); letter-spacing: -.025em; }
.service-card p, .exp-desc { font-size: 14.5px; }
.service-card .sc-link, .work-link-all { font-size: 13px; }
.exp-role { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.025em; }
.exp-company { font-size: 12.5px; }
.exp-when { font-size: 11px; }
.cred-card h3 { font-size: 19px; }
.cred-card p { font-size: 13px; }
.skills-list li { font-size: 15px; padding: 14px 0; }
.tc-quote { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.testimonial-card:nth-child(1) .tc-quote { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; max-width: 34ch; }
.cta-section h2 { font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -.035em; }
.cta-section p { font-size: 16px; }
.stat strong { font-size: 18px; }
.stat span { font-size: 12.5px; }
.kinetic-track span { font-size: clamp(24px, 3.2vw, 44px); }
.pcard__word { font-size: clamp(40px, 7.4vw, 108px); letter-spacing: -.05em; }
.pcard__name { font-size: clamp(18px, 1.8vw, 24px); }
.pcard { min-height: clamp(320px, 48vh, 440px); }
.pcard__top { font-size: 11px; }
.pcard__go { width: 44px; height: 44px; }
.work-glyph { font-size: clamp(28px, 4.2vw, 60px); }
.work-name { font-size: clamp(19px, 1.9vw, 25px); }
.footer-copy, .footer-links a { font-size: 12.5px; }

/* air — generous gaps between sections */
.section { padding: var(--section-gap) 0 0; border-top: none; }
.section:last-of-type { padding-bottom: 0; }
.works-page { padding-top: clamp(72px, 9vw, 130px); padding-bottom: var(--section-gap); }
.hero { padding: clamp(72px, 9vw, 130px) 0 clamp(72px, 9vw, 120px); }
.about-testimonials { margin-top: var(--section-gap); padding-top: 0; border-top: none; }
.cta-section { margin-top: var(--section-gap); padding: clamp(100px, 12vw, 180px) 0; background: var(--soft); border-top: none; }
.kinetic { padding: clamp(20px, 2.4vw, 30px) 0; }
.work-header { margin-bottom: clamp(40px, 5vw, 72px); }
.stack { margin-top: 0; }
.pcard { margin-bottom: 24px; }

/* one visual language: same radius, one panel colour, one accent shape */
.pcard, .testimonial-card, .cred-card img, .work-cover { border-radius: var(--r); }
.pcard:hover, .work-card:hover .work-cover { border-radius: calc(var(--r) + 8px); }
.tool-chip { border-radius: 16px; }
.pcard, .pcard--yellow, .pcard--dark { background: var(--soft); color: var(--ink); border: none; box-shadow: none; }
.pcard--yellow::before, .pcard--dark::before, .pcard::before { background: var(--signal); opacity: 1; width: 34%; right: -5%; top: -20%; }
.pcard--dark .pcard__go::after, .pcard--yellow .pcard__go::after { color: #fff; }
.pcard__go { background: var(--ink); }
.testimonial-card, .testimonial-card:nth-child(1) { background: var(--soft); color: var(--ink); }
.testimonial-card:nth-child(1) .tc-quote { color: var(--ink); }
.testimonial-card:nth-child(1) .tc-role { color: var(--muted); }
.testimonial-card:nth-child(1) .tc-person img { border-color: var(--line-strong); }
.testimonial-card:nth-child(1) { position: relative; overflow: hidden; isolation: isolate; }
.testimonial-card:nth-child(1)::after { content: ""; position: absolute; z-index: -1; width: 180px; aspect-ratio: 1; right: -40px; top: -60px; background: var(--signal); border-radius: 50% 0 50% 50%; transform: rotate(10deg); }
.testimonial-card:nth-child(1):hover { background: var(--soft); box-shadow: none; }
.tool-chip { background: var(--soft); }
.cta-section::before { width: clamp(180px, 24vw, 360px); right: -4%; bottom: -14%; }
.kinetic-track span:nth-of-type(even) { -webkit-text-stroke: 1px var(--ink); }
.services-grid, .exp-list, .skills-list { border-top: 1px solid var(--line-strong); }

@media (max-width: 680px) {
  :root { --section-gap: 96px; }
  .pcard { min-height: 260px; }
}

/* ═════ v16: quieter · smaller type · wider air · live-site content ═════ */
:root { --section-gap: clamp(140px, 17vw, 260px); --r: 20px; }

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

/* type: one calm scale */
h1.hero-h { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.1; max-width: 21ch; }
.hero-sub { font-size: 15px; max-width: 42ch; }
.section-title { font-size: clamp(24px, 2.6vw, 36px); max-width: 22ch; margin-bottom: clamp(48px, 6vw, 88px); }
.works-page .section-title { font-size: clamp(30px, 3.6vw, 48px); max-width: 20ch; margin-bottom: 20px; }
.works-lede { font-size: 15px; max-width: 52ch; margin-bottom: clamp(56px, 7vw, 104px); }
.bc-hero .works-lede { margin-bottom: 32px; }
.sub-label { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.service-card h3 { font-size: clamp(18px, 1.6vw, 22px); }
.service-card { grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr) 160px; padding: clamp(32px, 3.6vw, 44px) 0; }
.service-card p, .exp-desc { font-size: 14px; color: var(--muted); }
.service-card .sc-link { justify-self: end; }
.exp-role { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; }
.skills-list li { font-size: 14.5px; padding: 16px 0; }
.tc-quote, .testimonial-card:nth-child(1) .tc-quote { font-size: 15px; line-height: 1.65; font-weight: 400; letter-spacing: 0; max-width: none; }
.tc-name { font-size: 13.5px; }
.tc-role { font-size: 12px; }
.cta-section h2 { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; }
.cta-section p, .cta-lede { font-size: 15px; max-width: 46ch; margin-bottom: 32px; }
.stat strong { font-size: 16px; }
.pcard { min-height: clamp(300px, 42vh, 400px); }
.pcard__word { font-size: clamp(32px, 5.4vw, 76px); }
.pcard__name { font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; }
.pcard__text { display: flex; flex-direction: column; gap: 6px; max-width: 54ch; }
.pcard__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pcard__n { font-size: 11px; }
.work-glyph { font-size: clamp(24px, 3.4vw, 46px); }
.work-name { font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; letter-spacing: -.02em; }
.work-caption { align-items: flex-start; }
.work-caption { flex-wrap: wrap; }
.work-caption .work-name { flex: 1 1 60%; }
.work-desc { order: 4; flex: 1 0 100%; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 48ch; }
.work-caption::after { width: 36px; height: 36px; font-size: 14px; }
.work-grid { gap: clamp(56px, 6vw, 88px) clamp(20px, 2.4vw, 32px); }
.btn { font-size: 13px; }

/* shapes: present but whispering */
.hero-right { max-width: 250px; }
.hero-right::before { width: 104%; right: 22%; top: -10%; }
.pcard::before, .pcard--yellow::before, .pcard--dark::before { width: 22%; right: -3%; top: -12%; }
.cta-section::before { width: clamp(120px, 15vw, 220px); }
.testimonial-card:nth-child(1)::after { display: none; }

/* stats bar */
.clients-names { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.clients .eyebrow { display: block; margin: 0 0 4px; }
.clients-logos { flex-direction: column; align-items: flex-end; gap: 4px; justify-content: center; }
.clients-names { justify-content: flex-end; }

/* experience: when · role · where */
.exp-item { grid-template-columns: 130px minmax(0, 1fr) 190px; padding: 36px 0; }
.exp-where { font-size: 12.5px; color: var(--muted); line-height: 1.5; padding-top: 3px; }
.exp-where strong { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.exp-item:not(:has(.exp-where)) { grid-template-columns: 130px minmax(0, 1fr); padding: 26px 0; }
.exp-item:not(:has(.exp-where)) .exp-role { margin: 0; }
.exp-when { padding-top: 3px; }

/* testimonials: even rhythm, last (longest) quote spans */
.testimonials-grid { gap: 24px; }
.testimonial-card { gap: 32px; padding: clamp(28px, 3vw, 40px); }
.testimonial-card:nth-child(1) { grid-column: auto; }
.testimonial-card:last-child { grid-column: 1 / -1; }

/* more about me */
.cred-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.cred-card h3 { font-size: 17px; font-weight: 600; }
.cred-card p { font-size: 13.5px; }

/* contact */
.cta-actions { margin-bottom: clamp(56px, 7vw, 96px); }
.contact-list { max-width: 640px; border-top: 1px solid var(--line-strong); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list dd { font-size: 14.5px; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--signal-deep); }

/* bootcamp */
.bc-grid { display: grid; gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.bc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bc-card h3 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.bc-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.apply-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; }
.apply-form input { flex: 1 1 240px; min-width: 0; padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.apply-form input:focus { outline: 2px solid var(--signal-deep); outline-offset: 1px; }

@media (max-width: 960px) {
  .bc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-logos { align-items: flex-start; }
  .clients-names { justify-content: flex-start; }
  .exp-item { grid-template-columns: 110px minmax(0, 1fr); }
  .exp-where { grid-column: 2; }
}
@media (max-width: 680px) {
  :root { --section-gap: 112px; }
  .exp-item, .exp-item:not(:has(.exp-where)) { grid-template-columns: 1fr; gap: 8px; }
  .exp-where { grid-column: auto; }
  .bc-grid--4, .cred-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { grid-column: auto; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .work-caption .work-name { flex-basis: 70%; }
}

/* print resume: experience + skills only */
@media print {
  #testimonials, #teaching, #contact, .clients { display: none !important; }
  .exp-item { grid-template-columns: 30mm 1fr 45mm; }
}
.pcard__top { justify-content: flex-start; gap: 20px; }
.pcard__meta { opacity: .55; }
.pcard::before, .pcard--yellow::before, .pcard--dark::before { width: 16%; right: -2%; top: -10%; }
.testimonial-card, .tc-quote { margin: 0; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip { flex-direction: row; aspect-ratio: auto; justify-content: flex-start; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; }
.tool-chip img { width: 20px; height: 20px; border-radius: 5px; }
.tool-chip span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.tool-chip:hover { transform: none; }
.cta-section p.section-label { font-size: 10.5px; margin-bottom: 28px; max-width: none; color: var(--muted); }
html, body { overflow-x: clip; }
@media (max-width: 680px) {
  .logo { white-space: nowrap; font-size: 14px; }
  .nav { gap: 12px; }
  .nav-links { gap: 14px; margin-left: auto; }
  .nav-cta { display: none; }
}

/* v22: showcase cards without links */
.work-card--static { cursor: default; }
.work-card--static .work-caption::after { display: none; }
.works-page .work-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  align-items: start;
  padding-top: 20px;
}
.works-page .work-name { grid-column: 1; margin: 0; }
.works-page .work-meta { grid-column: 2; grid-row: 1; text-align: right; }
.works-page .work-desc { grid-column: 1 / -1; margin: 4px 0 0; max-width: none; }
.work-card--static:hover .work-cover { border-radius: var(--r); }
.work-card--static:hover .work-cover::after { transform: rotate(10deg); }
.work-card--static:hover .work-glyph { transform: none; }
.pcard--static { cursor: default; }
.pcard--static .pcard__go { display: none; }
.pcard--static:hover { border-radius: var(--r); }
.pcard--static:hover .pcard__word { transform: none; }

/* ═════ v23: editorial portfolio — panel refresh (one visual system) ═════ */
:root {
  --max: 1080px;
  --px: clamp(22px, 4.5vw, 52px);
  --section-gap: clamp(120px, 13vw, 188px);
  --r: 16px;
  --r-pill: 999px;
  --bg: #fafaf8;
  --soft: #f2f2ee;
  --ink: #0a0a0a;
  --ink-2: #484845;
  --muted: #6f6f6a;
  --line: #e6e6e2;
  --line-strong: #d4d4cf;
  --signal: #ffdc3d;
  --signal-deep: #e8c400;
  --shadow: 0 24px 64px -48px rgba(0, 0, 0, .22);
}

body { background: var(--bg); font-size: 15px; line-height: 1.62; color: var(--ink); }

.site-header {
  background: rgba(250, 250, 248, .88);
  border-bottom-color: transparent;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.nav { min-height: 72px; gap: 20px; }
.logo { font-size: 14px; font-weight: 600; letter-spacing: -.02em; gap: 12px; }
.logo img { width: 26px; height: 26px; }

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
}
.nav-links a[aria-current="page"]::after {
  height: 2px;
  bottom: -10px;
  background: var(--ink);
  border-radius: 0;
}

.nav-cta {
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  background: var(--ink);
  color: #fff !important;
  box-shadow: var(--shadow);
}
.nav-cta:hover { background: #222; transform: none; }

.section-label, .eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  margin-bottom: 22px;
  color: var(--muted);
}
.section-label::before {
  width: 6px;
  height: 6px;
  background: var(--signal);
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
  max-width: 24ch;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section {
  padding: var(--section-gap) 0 0;
  border-top: none;
}
.section:first-of-type { padding-top: 0; }

.btn {
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  box-shadow: none;
}
.btn-ghost {
  border-color: var(--line-strong);
  background: #fff;
}

/* hero — editorial split */
.hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
  row-gap: clamp(32px, 4vw, 48px);
}
.hero-kicker {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -8px;
}
h1.hero-h {
  grid-column: 1 / span 8;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.035em;
  max-width: 18ch;
}
h1.hero-h em {
  margin-top: .35em;
  font-size: .92em;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.45;
}
h1.hero-h .dot { color: var(--signal-deep); }

.hero-right {
  grid-column: 9 / span 4;
  max-width: 280px;
}
.hero-right::before {
  width: 115%;
  right: 18%;
  top: -12%;
  opacity: .95;
}
.portrait-wrap {
  border-radius: 50% 50% 16px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .8);
}

.hero-foot {
  border-top-color: var(--line);
  padding-top: clamp(28px, 3vw, 40px);
}
.hero-sub {
  grid-column: 1 / span 6;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 42ch;
}
.hero-side { grid-column: 8 / span 5; }
.hero-socials a { font-size: 13px; }

/* stats band */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stat strong::before { background: var(--signal); width: 5px; height: 5px; }
.clients-names { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* services — index table */
.services-grid { border-top: 1px solid var(--ink); }
.service-card {
  grid-template-columns: 48px 1.1fr 1.4fr 140px;
  padding: clamp(28px, 3vw, 36px) 0;
  align-items: center;
}
.service-card:hover { padding-left: 0; background: transparent; }
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.service-card p { font-size: 14px; line-height: 1.55; max-width: 44ch; }
.service-card .sc-link {
  font-size: 12.5px;
  font-weight: 600;
  border-bottom-width: 1px;
}

/* experience */
.exp-list { border-top: 1px solid var(--ink); }
.exp-item {
  grid-template-columns: 120px 1fr 168px;
  padding: 32px 0;
  gap: 20px 28px;
}
.exp-role { font-size: 17px; font-weight: 600; }
.exp-desc { font-size: 14px; line-height: 1.58; }
.exp-when { font-size: 11px; }

/* skills + tools */
.skills-list li { font-size: 14px; padding: 15px 0; }
.tool-chip {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.tool-chip:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  background: #fff;
}

/* testimonials — quiet gallery */
.testimonials-grid { gap: 16px; }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 2.8vw, 32px);
  gap: 28px;
  box-shadow: none;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.testimonial-card:nth-child(1),
.testimonial-card:nth-child(1):hover,
.testimonial-card:last-child {
  grid-column: 1 / -1;
  background: #fff;
  color: var(--ink);
}
.testimonial-card:nth-child(1)::after { display: none; }
.tc-quote {
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-2);
}

/* creds */
.cred-card img { border-radius: var(--r); border: 1px solid var(--line); }
.cred-card h3 { font-size: 17px; font-weight: 600; }

/* contact */
.cta-section {
  margin-top: var(--section-gap);
  padding: clamp(88px, 10vw, 140px) 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.cta-section::before { display: none; }
.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-section h2 em {
  font-weight: 600;
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--signal) 55%, transparent) 68%);
}
.cta-lede { font-size: 15px; margin-bottom: 28px; }

.site-footer {
  background: var(--bg);
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-copy, .footer-links a { font-size: 12px; }
.footer-links a { color: var(--muted); }

/* works page — gallery */
.works-page {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: var(--section-gap);
}
.works-page .section-title { max-width: 16ch; margin-bottom: 16px; }
.works-lede {
  font-size: 15px;
  max-width: 52ch;
  margin-bottom: clamp(56px, 6vw, 88px);
  color: var(--ink-2);
}

.work-grid {
  gap: clamp(48px, 5vw, 72px) 28px;
}

.work-cover {
  aspect-ratio: 5 / 4;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.work-cover::after {
  width: 42%;
  right: -12%;
  bottom: -28%;
  background: color-mix(in srgb, var(--signal) 28%, transparent);
  border-radius: 50% 0 50% 50%;
  transform: rotate(8deg);
}
.work-cover::before {
  font-size: 11px;
  color: var(--muted);
  left: 20px;
  top: 18px;
}
.work-glyph {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink);
}

.works-page .work-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.works-page .work-meta {
  font-size: 10px;
  letter-spacing: .1em;
}
.works-page .work-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.work-header .section-title { margin-bottom: 0; }

@media (max-width: 960px) {
  h1.hero-h { grid-column: 1 / -1; }
  .hero-right { grid-column: 1 / -1; max-width: 220px; justify-self: start; }
  .hero-sub, .hero-side { grid-column: 1 / -1; }
  .service-card { grid-template-columns: 40px 1fr; }
  .service-card .sc-link { grid-column: 2; justify-self: start; margin-top: 8px; }
}

@media (max-width: 680px) {
  .nav-cta { display: inline-flex; padding: 9px 16px; }
  .exp-item { grid-template-columns: 1fr; }
  .exp-where { grid-column: 1; }
  .work-grid { grid-template-columns: 1fr; }
}


/* ═════ v27: refined — tighter hero lockup, section index, ink contact panel ═════ */
:root { --r: 20px; --max: 1120px; }

/* header: crisper glass */
.site-header { background: rgba(250, 250, 248, .78); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }

/* hero: one lockup, no dead space */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: clamp(40px, 7vw, 112px);
  row-gap: 0;
  align-items: center;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px);
}
.hero-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; grid-column: 1; grid-row: 1; }
.hero-kicker, h1.hero-h, .hero-foot, .hero-sub, .hero-side { grid-column: auto; grid-row: auto; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-deep); box-shadow: 0 0 0 4px rgba(245, 196, 0, .22); }
h1.hero-h { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.04em; max-width: 15ch; }
h1.hero-h em { font-size: .8em; line-height: 1.3; letter-spacing: -.03em; color: var(--muted); max-width: 20ch; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 100%; padding: 28px 0 0; border: 0; }
.hero-sub { max-width: 44ch; font-size: 15px; }
.hero-side { gap: 20px; }
.hero-right { grid-column: 2; grid-row: 1; width: 280px; max-width: 280px; justify-self: end; align-self: center; }
.portrait-wrap { box-shadow: 0 40px 80px -52px rgba(0, 0, 0, .35); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; row-gap: 40px; }
  .hero-right { grid-column: 1; grid-row: 1; justify-self: start; width: 200px; }
  .hero-left { grid-row: 2; }
}

/* section index: 01 — Label */
body { counter-reset: sec; }
.section-label { counter-increment: sec; }
.section-label::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); font-weight: 500; margin-right: 2px; }
.section-label::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); order: -1; }
.section-label { gap: 12px; }
.section-label::after { order: 0; }

/* stats band: calmer */
.clients { background: transparent; }
.stat { background: transparent; }

/* services / experience: hover affordance */
.service-card, .exp-item { transition: background .3s var(--ease), padding .4s var(--ease); }
.service-card:hover { background: linear-gradient(90deg, rgba(255, 220, 61, .12), transparent 70%); }
.service-card h3 { font-weight: 600; }

/* testimonials: refined cards */
.testimonial-card { border-radius: 22px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.testimonial-card:hover { transform: translateY(-3px); }
.tc-person img { width: 38px; height: 38px; }

/* works page: lift on hover */
.work-card--static .work-cover { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.work-card--static:hover .work-cover { transform: translateY(-4px); box-shadow: 0 36px 70px -46px rgba(0, 0, 0, .3); }
.work-card--static:hover .work-cover::after { transform: rotate(14deg) scale(1.08); }

/* contact: ink panel, the one dark moment on the page */
.cta-section {
  width: min(var(--max), 100% - var(--px) * 2);
  margin: var(--section-gap) auto clamp(48px, 6vw, 80px);
  padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.cta-section .wrap { width: 100%; }
.cta-section::before { display: block; content: ""; position: absolute; z-index: 0; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; right: -4%; top: -8%; bottom: auto; background: var(--signal); border-radius: 50% 0 50% 50%; transform: rotate(8deg); opacity: .95; }
.cta-section h2 { color: #fff; }
.cta-section h2 em { background: linear-gradient(transparent 66%, rgba(255, 220, 61, .55) 66%); color: #fff; }
.cta-section p.section-label, .cta-section .cta-lede { color: rgba(255, 255, 255, .62); }
.cta-section p.section-label::before { color: var(--signal); }
.cta-section p.section-label::after { background: rgba(255, 255, 255, .25); }
.cta-section .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-section .btn-ghost:hover { border-color: #fff; }
.cta-section .contact-list { border-top-color: rgba(255, 255, 255, .22); }
.cta-section .contact-list > div { border-bottom-color: rgba(255, 255, 255, .12); }
.cta-section .contact-list dt { color: rgba(255, 255, 255, .5); }
.cta-section .contact-list dd, .cta-section .contact-list a { color: #fff; }
.cta-section .contact-list a { border-bottom-color: rgba(255, 255, 255, .3); }
.bc-hero + .cta-section, .cta-section .apply-form input { border-radius: 999px; }
@media print { .cta-section { display: none !important; } }

/* v28: More about me — full-width, framed cards */
.cred-row { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cred-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 12px 12px 0; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.cred-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 36px 70px -46px rgba(0, 0, 0, .3); }
.cred-card img {
  width: 100%; aspect-ratio: 16 / 10; margin: 0; border: 0; border-radius: 14px;
  object-fit: cover; object-position: center 30%; background: var(--soft);
}
.cred-card:nth-child(2) img { object-fit: contain; object-position: center; background: #fff; border: 1px solid var(--line); }
.cred-card:hover img { transform: none; }
.cred-card-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 12px 24px; position: relative; }
.cred-card-body::after {
  content: "↗"; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 14px; margin-left: auto;
  transition: background .25s, border-color .25s, transform .4s var(--ease);
}
.cred-card:hover .cred-card-body::after { background: var(--signal); border-color: var(--signal); transform: rotate(45deg); }
.cred-card-body h3 { font-size: 18px; margin: 0 0 4px; }
.cred-card-body p { font-size: 13.5px; }
.cred-card-body > * { margin-right: 0; }
@media (max-width: 680px) { .cred-row { grid-template-columns: 1fr; } }
.cred-card:nth-child(2) img { object-fit: cover; object-position: center 20%; border: 0; }

/* v30: testimonials — 1 full + two rows of 2 */
.testimonials-grid .testimonial-card:last-child { grid-column: auto; }
.testimonials-grid .testimonial-card { height: 100%; }
@media (max-width: 680px) { .testimonials-grid .testimonial-card:nth-child(1) { grid-column: auto; } }

/* v31: Airbnb-style rounded geometric type (Figtree ≈ Cereal) */
:root {
  --font: "Figtree", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Figtree", system-ui, sans-serif;
  --mono: "Figtree", system-ui, sans-serif;
}
body { font-size: 16px; line-height: 1.6; font-feature-settings: "ss01"; }
h1.hero-h { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
h1.hero-h strong { font-weight: 800; }
h1.hero-h em { font-weight: 500; letter-spacing: -.02em; color: var(--muted); }
.section-title, .cta-section h2 { font-weight: 700; letter-spacing: -.028em; }
.service-card h3, .exp-role, .cred-card-body h3, .tc-name { font-weight: 700; letter-spacing: -.015em; }
.exp-role, .service-card h3 { font-size: 20px; }
.section-label, .eyebrow, .hero-kicker, .sub-label, .exp-when, .contact-list dt, .work-link-all {
  font-family: var(--font); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px;
}
.exp-when { font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: none; }
.hero-sub, .service-card p, .exp-desc, .tc-quote, .cred-card-body p, .cta-lede { font-size: 16px; line-height: 1.6; }
.tc-quote { font-weight: 400; }
.btn, .nav-cta { font-weight: 700; letter-spacing: -.005em; font-size: 14px; }
.nav-links a { font-weight: 600; font-size: 14.5px; }
.logo { font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.stat strong { font-weight: 800; }
.stat span, .clients-names, .hero-socials a, .tool-chip span, .footer-copy, .footer-links a { font-weight: 500; }
.skills-list li { font-size: 16px; font-weight: 500; }
.skills-list li::before { font-family: var(--font); font-weight: 600; }
h1.hero-h { font-weight: 600; max-width: none; }
h1.hero-h strong { font-weight: 700; }

/* ===== v32 — panel refinements ===== */
:root { --section-gap: clamp(88px, 10vw, 136px); }
.section-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: clamp(40px, 5vw, 64px); }

/* hover affordances: rows nudge, yellow accent appears */
.service-card, .exp-item { position: relative; transition: background-color .3s var(--ease), padding .3s var(--ease); }
.service-card::before, .exp-item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.service-card:hover::before, .exp-item:hover::before { width: 100%; }
a.service-card:hover h3, .exp-item:hover .exp-role { transform: translateX(4px); }
.service-card h3, .exp-role { transition: transform .35s var(--ease); }

/* skills rows */
.skills-list li { transition: padding-left .3s var(--ease), color .3s; }
.skills-list li:hover { padding-left: 8px; color: var(--ink); }
.tool-chip { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tool-chip:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 16px rgba(10,10,10,.06); }

/* testimonials: one featured quote, the rest uniform */
.tc-quote { color: var(--ink); font-size: 15px; line-height: 1.65; }
.testimonials-grid .testimonial-card:first-child .tc-quote { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; letter-spacing: -.015em; font-weight: 500; max-width: 46ch; }
.testimonials-grid .testimonial-card:first-child { padding: clamp(32px, 4vw, 56px); background: var(--soft); border-color: transparent; }
.testimonial-card:hover { border-color: rgba(10,10,10,.28); }

/* keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--ink); }

/* v34 — mobile/tablet: portrait first, big, headline below */
@media (max-width: 860px) {
  .hero { padding-top: 24px; row-gap: 48px; }
  .hero-right { width: min(72vw, 300px); max-width: none; justify-self: center; margin-top: 8px; }
  .hero-left { grid-row: 2; }
}

/* v35 — logo mark only, larger */
.logo img { width: 44px; height: 44px; border-radius: 0; }
@media (max-width: 680px) { .logo img { width: 38px; height: 38px; } }

/* v36 — desktop: headline block sits lower than the portrait */
@media (min-width: 861px) {
  .hero { align-items: start; }
  .hero-left { padding-top: clamp(56px, 7vw, 104px); }
  .hero-right { align-self: start; }
}

/* v37 — final polish */
.contact-list dd { margin: 0; }

/* v37 — mobile: comfortable tap targets, readable micro-type */
@media (max-width: 680px) {
  .hero-socials { gap: 0 22px; }
  .hero-socials a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; }
  .nav-links a:not(.nav-cta) { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0 20px; }
  .footer-links a, [data-print] { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list a { display: inline-block; padding: 6px 0; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
  .contact-list dd { font-size: 15px; }
  .section-label { font-size: 11px; }
}
:root { --muted: #66665f; }

/* v38 — contact: clean underline accent, two-column on desktop */
.cta-section h2 em { background: linear-gradient(transparent 86%, var(--signal) 86%); }
@media (min-width: 900px) {
  .cta-section .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 112px); align-items: end; }
  .cta-section .wrap > *:not(.contact-list) { grid-column: 1; }
  .cta-section .contact-list { grid-column: 2; grid-row: 1 / span 4; max-width: none; align-self: end; margin: 0; }
}

/* v40 — case studies (display only) */
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.case-card { display: flex; flex-direction: column; }
.case-media { border-radius: 24px; overflow: hidden; background: var(--soft); aspect-ratio: 533 / 402; margin-bottom: 24px; }
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.03); }
.case-card h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin: 0 0 10px; }
.case-card p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0; }
@media (max-width: 680px) { .cases-grid { grid-template-columns: 1fr; gap: 40px; } .case-media { border-radius: 18px; margin-bottom: 18px; } }

/* v42 — case studies: stacking cards */
.cases-grid { display: none; }
.cases-stack { position: relative; display: block; }
.cases-stack .case-card {
  position: sticky;
  top: calc(88px + var(--i) * 18px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(24px, 4vw, 48px);
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 -18px 40px -28px rgba(10,10,10,.18);
  transform: none !important; opacity: 1 !important;
}
.cases-stack .case-card:last-child { margin-bottom: 0; }
.cases-stack .case-media { margin: 0; border-radius: 18px; }
.cases-stack .case-card h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; margin-bottom: 14px; }
.cases-stack .case-card p { font-size: 16px; }
.cases-stack .case-card > div:last-child, .cases-stack .case-text { padding-right: clamp(8px, 2vw, 32px); }
@media (max-width: 760px) {
  .cases-stack .case-card { grid-template-columns: 1fr; top: calc(72px + var(--i) * 12px); gap: 18px; border-radius: 22px; }
  .cases-stack .case-card h3 { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .cases-stack .case-card { position: static; } }

/* v43 — mobile type scale & rhythm (principal/staff pass) */
@media (max-width: 680px) {
  :root { --section-gap: 80px; }
  body { font-size: 16px; line-height: 1.6; }

  /* hero */
  .hero { padding-top: 16px; row-gap: 32px; }
  .hero-right { width: min(60vw, 236px); margin-top: 0; }
  .hero-left { gap: 18px; }
  .hero-kicker { font-size: 12px; letter-spacing: .1em; }
  h1.hero-h { font-size: clamp(34px, 9.6vw, 40px); line-height: 1.1; letter-spacing: -.035em; max-width: none; }
  h1.hero-h em { font-size: .72em; line-height: 1.28; margin-top: 10px; max-width: 18ch; }
  .hero-foot { padding-top: 4px; gap: 12px; }
  .hero-sub { font-size: 16px; line-height: 1.6; max-width: 34ch; }
  .hero-socials a { font-size: 14.5px; }

  /* stats band */
  .stat strong { font-size: 17px; }
  .stat span { font-size: 13px; }
  .clients .eyebrow, .eyebrow { font-size: 12px; }
  .clients-names li { font-size: 14.5px; }

  /* section heads */
  .section-label { font-size: 12px; letter-spacing: .1em; }
  .section-title { font-size: 30px; line-height: 1.1; margin-bottom: 36px; }

  /* experience */
  .exp-when { font-size: 13px; }
  .exp-role { font-size: 21px; }
  .exp-desc { font-size: 16px; }
  .exp-where strong { font-size: 15px; }
  .exp-where { font-size: 13.5px; }

  /* case studies */
  .cases-stack .case-card { padding: 12px 12px 22px; }
  .cases-stack .case-card h3 { font-size: 22px; margin-bottom: 10px; }
  .cases-stack .case-card p { font-size: 15.5px; }
  .cases-stack .case-text { padding: 0 6px; }

  /* skills + tools */
  .skills-list li { font-size: 15.5px; padding-block: 15px; }
  .tool-chip { font-size: 14px; }

  /* testimonials */
  .tc-quote { font-size: 16px; line-height: 1.6; }
  .testimonials-grid .testimonial-card:first-child .tc-quote { font-size: 19px; line-height: 1.45; }
  .tc-name { font-size: 15px; }
  .tc-role { font-size: 13px; }

  /* teaching */
  .cred-card-body h3 { font-size: 17px; }
  .cred-card-body p { font-size: 14.5px; }

  /* contact + footer */
  .cta-section { border-radius: 24px; }
  .cta-section h2 { font-size: clamp(32px, 9vw, 38px); line-height: 1.08; }
  .cta-lede { font-size: 16px; }
  .btn, .nav-cta { font-size: 15px; }
  .contact-list dt { font-size: 12px; }
  .contact-list dd { font-size: 16px; }
  .footer-copy { font-size: 13px; }
  .footer-links a { font-size: 14px; }
}
@media (max-width: 680px) {
  .hero { padding-bottom: 36px; }
  .clients-names { gap: 4px 16px; }
  .clients-names li { font-size: 14px; }
}
@media (max-width: 680px) { [data-print] { display: none; } .work-header { margin-bottom: 0; } }
.skills-list li { font-variant-numeric: tabular-nums; }
.skills-list li::before { display: inline-block; min-width: 32px; }
@media (max-width: 680px) { .skills-list li::before { min-width: 34px; } .testimonials-grid .testimonial-card:first-child { padding: 28px 24px; } }
@media (max-width: 680px) { .cta-section { padding-bottom: 28px; } .site-footer { padding-top: 8px; } }

/* v48 — mobile: composition pass */
@media (max-width: 680px) {
  /* hero: everything shares one left edge */
  .hero-right { justify-self: start; width: min(56vw, 220px); }
  .hero-right::before { width: 96%; right: -30%; top: -8%; }
  .hero { row-gap: 28px; }

  /* experience: tighter rows */
  .exp-item { padding-block: 24px; gap: 8px; }
  .exp-when { margin-bottom: 0; }
  .exp-where { margin-top: 6px; }

  /* skills as pills (shorter scroll) */
  .skills-list { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .skills-list li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; font-size: 14.5px; font-weight: 500; background: #fff; }
  .skills-list li::before { display: none; }
  .skills-list li:hover { padding-left: 14px; }

  /* testimonials: swipeable carousel */
  .testimonials-grid { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid .testimonial-card, .testimonials-grid .testimonial-card:first-child { flex: 0 0 86%; scroll-snap-align: center; height: auto; padding: 24px 22px; background: #fff; border: 1px solid var(--line); }
  .testimonials-grid .testimonial-card:first-child .tc-quote { font-size: 16px; line-height: 1.6; font-weight: 400; letter-spacing: 0; }
  .testimonial-card { justify-content: space-between; }
  .tc-quote { font-size: 16px; }
}
@media (max-width: 680px) { .skills-list li { background: var(--soft); border-color: transparent; } }

/* v50 — worked-with logo marquee */
.clients-logos { align-items: stretch; min-width: 0; flex: 1 1 0; max-width: 560px; margin-left: auto; }
.clients-logos .eyebrow { text-align: right; margin-bottom: 14px; }
.logo-marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-marquee__inner { display: flex; width: max-content; will-change: transform; animation: logo-scroll 24s linear infinite; }
.logo-marquee:hover .logo-marquee__inner { animation-play-state: paused; }
.logo-track { display: flex; flex: none; align-items: center; gap: 44px; padding: 0 22px; margin: 0; list-style: none; }
.logo-track li { flex: none; display: flex; align-items: center; flex-shrink: 0; }
.logo-track img { display: block; width: auto; max-width: none; flex-shrink: 0; }
.logo-w { height: 28px; }
.logo-s { height: 40px; }
@keyframes logo-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 860px) { .clients-logos { max-width: none; margin-left: 0; } .clients-logos .eyebrow { text-align: left; } .logo-track { gap: 40px; } .logo-w { height: 24px; } .logo-s { height: 34px; } }
@media (max-width: 680px) {
  .logo-marquee { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent); }
  .logo-marquee__inner { animation-duration: 28s; }
  .logo-track { gap: 44px; padding: 0 18px; }
  .logo-track:first-child { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .logo-marquee__inner { animation: none; } .logo-track[aria-hidden="true"] { display: none; } .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }
.clients-logos { max-width: 640px; }
.logo-w { height: 32px; }
.logo-s { height: 56px; }
.logo-track { gap: 40px; }
@media (max-width: 860px) { .logo-w { height: 26px; } .logo-s { height: 46px; } }

/* v53 — vibe coding projects */
.section-lede { max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--muted); margin: -36px 0 clamp(36px, 4.5vw, 56px); }
.vc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 36px); }
.vc-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.vc-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 20px; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.vc-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .9s var(--ease); }
.vc-card:hover .vc-media { box-shadow: 0 24px 50px -30px rgba(10,10,10,.35); transform: translateY(-3px); }
.vc-card:hover .vc-media img { transform: scale(1.03); }
.vc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.vc-head h3 { font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -.02em; font-weight: 700; margin: 0; }
.vc-domain { font-size: 13.5px; color: var(--muted); white-space: nowrap; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.vc-card:hover .vc-domain { color: var(--ink); border-color: var(--signal-deep); }
.vc-body p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 48ch; margin: 0 0 14px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.vc-tags li { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
@media (max-width: 760px) { .vc-grid { grid-template-columns: 1fr; gap: 36px; } .section-lede { margin-top: -20px; font-size: 16px; } .vc-media { border-radius: 16px; margin-bottom: 16px; } .vc-domain { font-size: 14px; } .vc-tags li { font-size: 12.5px; } }

/* v55 — mobile hero: centered */
@media (max-width: 680px) {
  .hero-right { justify-self: center; }
  .hero-right::before { width: 100%; right: -22%; top: -8%; }
  .hero-left, .hero-foot, .hero-side { align-items: center; text-align: center; }
  .hero-kicker { justify-content: center; }
  h1.hero-h, h1.hero-h em { margin-inline: auto; text-align: center; }
  h1.hero-h em { max-width: 16ch; }
  .hero-sub { margin-inline: auto; max-width: 32ch; }
  .hero-socials { justify-content: center; }
}
@media (max-width: 680px) { h1.hero-h em { max-width: 20ch; text-wrap: balance; } .hero-sub { text-wrap: balance; } }

/* v57 — mobile experience: breathing room */
@media (max-width: 680px) {
  .exp-item { padding-block: 32px; gap: 0; }
  .exp-when { margin-bottom: 14px; }
  .exp-role { margin-bottom: 12px; }
  .exp-desc { line-height: 1.65; margin: 0 0 22px; }
  .exp-where { margin-top: 0; }
  .exp-where strong { display: block; margin-bottom: 4px; }
  .exp-item:hover .exp-role { transform: none; }
}
@media (max-width: 680px) { .work-header { margin-bottom: 32px; } }

/* v59 — mobile: wider side margins */
@media (max-width: 680px) {
  :root { --px: 28px; }
  .testimonials-grid { margin-inline: calc(var(--px) * -1); padding-inline: var(--px); scroll-padding-inline: var(--px); }
  .testimonials-grid .testimonial-card, .testimonials-grid .testimonial-card:first-child { flex-basis: 82%; }
  .cta-section { padding-inline: 4px; }
}
@media (max-width: 680px) { h1.hero-h { font-size: clamp(31px, 8.8vw, 37px); } }

/* v61 — mobile: centered composition */
@media (max-width: 680px) {
  .section-label { justify-content: center; }
  .section-label::after { display: none; }
  .section-title { margin-inline: auto; text-align: center; max-width: none; }
  .section-lede { margin-inline: auto; text-align: center; }
  .work-header { text-align: center; }

  /* stats + clients */
  .clients-inner { text-align: center; }
  .stat { align-items: center; text-align: center; }
  .clients-logos .eyebrow { text-align: center; }
  .clients-inner { justify-items: center; }

  /* experience */
  .exp-item { text-align: center; justify-items: center; }
  .exp-main, .exp-where { text-align: center; }

  /* cards */
  .cases-stack .case-text, .vc-body { text-align: center; }
  .vc-head { flex-direction: column; align-items: center; gap: 4px; }
  .vc-tags { justify-content: center; }
  .case-card p, .vc-body p, .exp-desc { margin-inline: auto; }

  /* skills + tools */
  .skills-list, .tools-grid { justify-content: center; }
  .skills-layout .sub-label, .tools-side .sub-label, .skills-side .sub-label { text-align: center; display: block; }

  /* teaching + contact + footer */
  .cred-card-body { text-align: left; }
  .cta-section, .cta-section .wrap { text-align: center; }
  .cta-actions { justify-content: center; }
  .cta-section p.section-label { justify-content: center; }
  .cta-section h2, .cta-lede { margin-inline: auto; }
  .contact-list { text-align: left; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer-links { justify-content: center; }
}
@media (max-width: 680px) {
  .work-header { display: block; }
  .work-header > div { width: 100%; text-align: center; }
  .work-header .section-label { justify-content: center; }
  .work-header .section-title { text-align: center; margin-inline: auto; }
  .clients-inner { border: 0; }
  .stat { border: 0; }
  .clients-inner > .stat + .stat { border: 0; }
}
@media (max-width: 680px) {
  .cta-section { padding-inline: 22px; padding-top: 44px; }
  .contact-list, .contact-list > div, .contact-list dt, .contact-list dd { text-align: center; }
  .contact-list > div { justify-items: center; }
}
@media (max-width: 680px) { .cta-section::before { width: 104px; top: -34px; right: -26px; } }

/* v65 — mobile hero: back to left-aligned */
@media (max-width: 680px) {
  .hero-right { justify-self: start; }
  .hero-right::before { width: 96%; right: -30%; top: -8%; }
  .hero-left, .hero-foot, .hero-side { align-items: flex-start; text-align: left; }
  .hero-kicker { justify-content: flex-start; }
  h1.hero-h, h1.hero-h em { margin-inline: 0; text-align: left; }
  h1.hero-h em { max-width: 18ch; text-wrap: pretty; }
  .hero-sub { margin-inline: 0; max-width: 34ch; text-wrap: pretty; }
  .hero-socials { justify-content: flex-start; }
}

/* v67 — label size consistency */
.section-label, .sub-label, .eyebrow, .hero-kicker, .cta-section p.section-label, .contact-list dt { font-size: 12px; }

/* v69 — mobile hamburger menu */
.nav-panel { display: contents; }
.nav-toggle { display: none; }
@media (max-width: 680px) {
  .nav { justify-content: space-between; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .28s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-panel {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center;
    position: fixed; left: 0; right: 0; top: 72px; padding: 12px var(--px) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(10,10,10,.18);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .22s var(--ease), visibility .22s;
  }
  .nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-panel .nav-links { margin: 0; flex-direction: column; gap: 0; }
  .nav-panel .nav-links a { display: flex; justify-content: center; align-items: center; min-height: 56px; font-size: 20px; font-weight: 600; color: var(--ink); width: 100%; border-bottom: 1px solid var(--line); }
  .nav-panel .nav-cta { display: inline-flex; justify-content: center; align-self: stretch; margin-top: 16px; padding: 16px 20px; font-size: 16px; }
}

/* v70 — mobile hero: centered */
@media (max-width: 680px) {
  .hero-right { justify-self: center; }
  .hero-right::before { width: 100%; right: -22%; top: -6%; }
  .hero-left, .hero-foot, .hero-side { align-items: center; text-align: center; }
  .hero-kicker { justify-content: center; }
  h1.hero-h, h1.hero-h em { margin-inline: auto; text-align: center; }
  h1.hero-h em { max-width: 20ch; text-wrap: balance; }
  .hero-sub { margin-inline: auto; max-width: 32ch; text-wrap: pretty; }
  .hero-socials { justify-content: center; }
}

/* v71 — mobile: breathing room above social links */
@media (max-width: 680px) { .hero-side { margin-top: 28px; } .hero-foot { gap: 0; } }

/* v72 — mobile vibe cards: more vertical rhythm */
@media (max-width: 680px) {
  .vc-grid { row-gap: 56px; column-gap: 0; }
  .vc-media { margin-bottom: 18px; }
  .vc-body p { margin-bottom: 16px; }
}

/* v73 — mobile footer: space below contact border */
@media (max-width: 680px) {
  .site-footer { padding: 32px 0 44px; }
  .footer-inner { gap: 18px; }
}

/* v76 — footer: copyright only, centered */
.footer-inner { justify-content: center; text-align: center; }
