/* ================= Design tokens ================= */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-soft: #0d1015;
  --surface: #12151b;
  --surface-2: #171b23;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eceef3;
  --muted: #a3abb9;
  --faint: #8a93a3;
  --accent: #8fb0ff;
  --accent-2: #6ee7d2;
  --ph: #fbbf24;
  --danger: #f87171;
  --grid: rgba(255, 255, 255, .045);
  --glow: rgba(109, 147, 255, .22);
  --glow-2: rgba(110, 231, 210, .12);
  --header-bg: rgba(10, 12, 16, .72);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .7);
}
[data-theme="light"] {
  --bg: #f7f7f4;
  --bg-soft: #efefeb;
  --surface: #ffffff;
  --surface-2: #f3f4f1;
  --border: rgba(15, 18, 25, .09);
  --border-strong: rgba(15, 18, 25, .18);
  --text: #12151b;
  --muted: #4b5363;
  --faint: #5c6473;
  --accent: #2b54d1;
  --accent-2: #0d7a6c;
  --ph: #a15c07;
  --danger: #b91c1c;
  --grid: rgba(15, 18, 25, .055);
  --glow: rgba(43, 84, 209, .14);
  --glow-2: rgba(13, 122, 108, .08);
  --header-bg: rgba(247, 247, 244, .8);
  --shadow: 0 1px 2px rgba(15, 18, 25, .04), 0 24px 48px -30px rgba(15, 18, 25, .28);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
ul { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1.1rem; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ================= Buttons & links ================= */
.btn {
  font: inherit; font-size: .95rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: .45rem 1.05rem; font-size: .875rem; }

.link-arrow {
  font: inherit; font-size: .95rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--accent); text-decoration: none; background: none; border: 0; padding: .25rem 0; cursor: pointer;
}
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover .i { transform: translate(2px, -2px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ================= Placeholders (dashed, amber "To fill in" items) ================= */
.ph-card { border: 1.5px dashed var(--border-strong) !important; background: transparent !important; box-shadow: none !important; }
.ph-label {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ph); border: 1px dashed currentColor; border-radius: 999px; padding: .18rem .65rem;
}
.ph-text { color: var(--faint); font-style: italic; }
.ph-note {
  display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem; padding: .7rem .9rem;
  border: 1px dashed var(--border-strong); border-radius: 12px; font-size: .9rem; color: var(--faint);
}
.ph-note .i { width: 16px; height: 16px; margin-top: .2rem; color: var(--ph); }
.tag.ph-tag { border-style: dashed; color: var(--ph); background: transparent; }

/* ================= Organization logos ================= */
.org-logo {
  display: grid; grid-template: 100% / 100%; place-items: center; flex-shrink: 0;
  width: 132px; height: 56px; padding: 8px 12px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(15, 18, 25, .1);
  box-shadow: 0 1px 2px rgba(15, 18, 25, .06);
}
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-logo.sm { width: 84px; height: 40px; padding: 5px 8px; border-radius: 10px; }
.org-logo.sq { width: 48px; height: 48px; padding: 5px; }
.org-logo.badge { padding: 3px; }

/* ================= Header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.brand svg { fill: currentColor; }
.brand-mark { width: 38px; height: 23.26px; }
.brand-word { width: 148px; height: 9.36px; }
.nav-menu { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.nav-menu a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  font-size: .925rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle { display: none; }
.nav-menu .nav-cta { display: none; }
.btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--glow); }
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun { display: none; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (max-width: 1023px) {
  .menu-toggle { display: inline-grid; }
  .js .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .js .nav-menu.open { display: flex; }
  .nav-menu a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu .nav-cta { display: block; margin-top: .5rem; }
  .nav-menu .nav-cta a { background: var(--text); color: var(--bg); text-align: center; font-weight: 600; }
  html:not(.js) .nav-menu { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
}
@media (max-width: 370px) {
  .brand-word { display: none; }
}

/* ================= Sections ================= */
section { padding-block: clamp(4.5rem, 9vw, 7.5rem); scroll-margin-top: var(--header-h); }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.section-head.split > div { max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: .8rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin-top: 1rem; }
.muted { color: var(--muted); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.5vw, 1.9rem); box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 1.2rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tag {
  font-size: .8rem; font-weight: 500; line-height: 1.4; padding: .28rem .7rem;
  border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-2);
}

.icon-tile {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 1.25rem;
}
.icon-tile .i { width: 22px; height: 22px; }

/* ================= Hero ================= */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(40% 50% at 25% 30%, var(--glow), transparent 70%), radial-gradient(35% 45% at 80% 20%, var(--glow-2), transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .7rem;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title { margin-top: 1.4rem; }
.hero-name { display: block; font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; letter-spacing: 0; color: var(--accent); margin-bottom: 1rem; }
.hero-tagline { display: block; font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 650; }
.hero-tagline .serif {
  font-size: 1.08em; padding-right: .05em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(110deg, var(--text) 10%, var(--accent) 55%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 620px; margin-top: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.75rem; }

.profile-card { padding: 1.25rem 1.25rem 1.5rem; }
.profile-photo {
  aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; margin-bottom: 1.25rem;
  background: #eef0f3; border: 1px solid var(--border);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: .25rem; }
.profile-top h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
.profile-top p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.facts { list-style: none; padding: 0 .25rem; margin: 1.25rem 0 0; display: grid; gap: .8rem; }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: .8rem; align-items: start; font-size: .93rem; color: var(--muted); }
.facts li .i { width: 18px; height: 18px; margin-top: .2rem; color: var(--faint); }
.facts strong { color: var(--text); font-weight: 600; }
.profile-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.open-to { display: flex; flex-wrap: wrap; gap: .4rem; padding-inline: .25rem; }

.stats { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.stat { padding: 1.6rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.stat-value { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.stat-label { display: block; margin-top: .35rem; color: var(--muted); font-size: .92rem; }

.logos { margin-top: clamp(3rem, 6vw, 4rem); }
.logos > p { margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.logo-strip { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; }
.logo-strip .org-logo { width: 128px; height: 58px; transition: transform .25s var(--ease); }
.logo-strip .org-logo:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .logo-strip .org-logo { width: calc(50% - .375rem); }
}

/* ================= Highlights (bento) ================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; }
.bento .card.wide { grid-column: span 4; }
.hl-metric {
  font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.1rem;
}
.hl-metric.word { font-size: clamp(2rem, 3.6vw, 2.7rem); letter-spacing: -.03em; }
.bento h3 { margin-bottom: .5rem; }
.bento p { color: var(--muted); font-size: .98rem; }
.bento .tags { margin-top: .5rem; }
.hl-foot { margin-top: auto; padding-top: 1rem; font-size: .82rem; font-weight: 500; color: var(--faint); display: flex; gap: .5rem; align-items: center; }
.hl-foot .i { width: 15px; height: 15px; }
.bento .ph-card .hl-metric { background: none; color: var(--faint); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card { grid-column: span 1; }
  .bento .card.wide { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .bento { grid-template-columns: 1fr; }
}

/* ================= About / What I do ================= */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.focus-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.focus-list li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; }
.focus-list .i { color: var(--accent-2); margin-top: .2rem; }
.stack { display: grid; gap: 1.25rem; }
.now-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .75rem; }
.now-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.now-role { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.now-company { color: var(--accent); font-weight: 600; margin: .2rem 0 0; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; }
.principles .num { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--accent); line-height: 1.2; }
.principles strong { display: block; font-weight: 600; }
.principles span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .focus-list { grid-template-columns: 1fr; }
}

/* ================= Services ================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.services-grid .card:hover { transform: translateY(-3px); }
.services-grid p { color: var(--muted); font-size: .98rem; margin-top: .6rem; }
.deliverables { list-style: none; padding: 1.1rem 0 0; margin: 1.1rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .5rem; }
.deliverables li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.deliverables .i { width: 16px; height: 16px; margin-top: .3rem; color: var(--accent-2); }
.services-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin-top: 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.services-cta p { margin: 0; color: var(--muted); }
.services-cta strong { color: var(--text); font-weight: 600; }

/* ================= Experience timeline ================= */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(220px + 1.5rem); top: .6rem; bottom: 0; width: 1px; background: linear-gradient(var(--border-strong), transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding-bottom: 3.25rem; }
.tl-item::before {
  content: ""; position: absolute; left: calc(220px + 1.5rem - 5px); top: .5rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.tl-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px var(--glow); }
.tl-date { font-weight: 600; font-size: .95rem; }
.tl-place { color: var(--faint); font-size: .9rem; margin-top: .2rem; }
.tl-meta .org-logo { margin-top: 1rem; }
.tl-body h3 { font-size: 1.35rem; }
.tl-company { color: var(--accent); font-weight: 600; margin-top: .25rem; }
.tl-body > p { color: var(--muted); margin-top: .9rem; }
.wins { padding: 0; margin: 0 0 1.25rem; list-style: none; display: grid; gap: .6rem; }
.wins li { position: relative; padding-left: 1.4rem; }
.wins li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--accent-2); }
.wins strong { font-weight: 600; }
@media (max-width: 760px) {
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: .75rem; padding-left: 2rem; }
  .tl-item::before { left: 0; }
  .tl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
  .tl-meta .org-logo { margin-top: 0; order: -1; }
  .tl-meta > div:not(.org-logo) { flex: 1 1 100%; }
}

/* ================= Projects ================= */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.project {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.project:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.project.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

.proj-visual {
  --c1: #6d93ff; --c2: #6ee7d2;
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, color-mix(in srgb, var(--c2) 32%, transparent), transparent 60%),
    var(--surface-2);
}
.proj-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.proj-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-visual .org-logo { position: absolute; left: 1rem; bottom: 1rem; }
.glyph {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); color: var(--text);
  transition: transform .4s var(--ease);
}
.glyph .i { width: 38px; height: 38px; stroke-width: 1.5; }
.project:hover .glyph { transform: scale(1.06) rotate(-3deg); }
.v-violet { --c1: #a78bfa; --c2: #f0abfc; }
.v-amber  { --c1: #fbbf24; --c2: #fb7185; }
.v-teal   { --c1: #2dd4bf; --c2: #60a5fa; }
.v-rose   { --c1: #fb7185; --c2: #a78bfa; }
.v-lime   { --c1: #a3e635; --c2: #2dd4bf; }
.v-sky    { --c1: #38bdf8; --c2: #818cf8; }
.project.featured .proj-visual { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--border); }
.project.featured .glyph { width: 116px; height: 116px; border-radius: 30px; }
.project.featured .glyph .i { width: 50px; height: 50px; }
.project.ph-card .proj-visual { background: transparent; border-bottom: 1.5px dashed var(--border-strong); }
.project.ph-card .glyph { color: var(--ph); border-style: dashed; background: transparent; box-shadow: none; }

.proj-body { display: flex; flex-direction: column; gap: .9rem; flex: 1; padding: clamp(1.4rem, 2.5vw, 2rem); }
.proj-kicker { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.proj-kicker .cat { color: var(--accent); }
.proj-body h3 { font-size: 1.3rem; }
.project.featured .proj-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.proj-body > p { color: var(--muted); margin: 0; font-size: .98rem; }
.impact {
  display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .93rem;
}
.impact .i { width: 18px; height: 18px; margin-top: .15rem; color: var(--accent-2); }
.impact.ph { background: transparent; border-style: dashed; color: var(--faint); font-style: italic; }
.impact.ph .i { color: var(--ph); }
.proj-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: auto; padding-top: .4rem; }
@media (max-width: 860px) {
  .project.featured { grid-template-columns: 1fr; }
  .project.featured .proj-visual { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ================= Case study dialog ================= */
.case-modal {
  width: min(780px, 100% - 2rem); max-height: min(88vh, 900px); padding: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.case-modal::backdrop { background: rgba(5, 7, 10, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.case-modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-inner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.25rem; }
.modal-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.modal-body h3 { font-size: 1.05rem; margin: 1.75rem 0 .6rem; }
.modal-body p, .modal-body li { color: var(--muted); }
.modal-body ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.results { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem !important; }
.results li { padding: 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text) !important; }
.results li.ph-card { color: var(--faint) !important; }
.results strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.results span { color: var(--muted); font-size: .88rem; }

/* ================= Skills ================= */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.skills-grid h3 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.skills-grid h3 .i { color: var(--accent); }

/* ================= Education & certifications ================= */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.edu-item + .edu-item { margin-top: 1.25rem; }
.edu-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.edu-years { color: var(--faint); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.edu-item h3 { font-size: 1.2rem; }
.edu-school { color: var(--accent); font-weight: 600; margin-top: .3rem; }
.edu-major { color: var(--muted); font-size: .96rem; margin: .5rem 0 1rem; }
.col-title { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.cert-list li:first-child { padding-top: 0; }
.cert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-icon { display: grid; place-items: center; width: 84px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); }
.cert-name { font-weight: 600; line-height: 1.35; font-size: .97rem; }
.cert-meta { color: var(--faint); font-size: .86rem; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; } }

/* ================= Recognition ================= */
.recog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.recog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.recog-list li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.recog-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.recog-list strong { font-weight: 600; line-height: 1.4; }
.recog-list .yr { color: var(--faint); font-size: .88rem; font-variant-numeric: tabular-nums; }
.recog-list .src { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.recog-list .org-logo { grid-column: 1 / -1; margin-top: .5rem; }
.recog-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.recog-head .icon-tile { margin: 0; }

/* ================= Testimonials ================= */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote-mark { font-family: var(--font-serif); font-size: 4rem; line-height: .6; color: var(--accent); height: 2rem; }
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; gap: .8rem; align-items: center; }
.q-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); font-weight: 600; font-size: .85rem; }
.q-name { font-weight: 600; font-size: .95rem; }
.q-role { color: var(--faint); font-size: .85rem; }

/* ================= Résumé ================= */
.resume-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(1.75rem, 4vw, 3rem); }
.resume-panel h2 { margin-top: .8rem; }
.resume-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.glance { margin: 0; display: grid; gap: 0; }
.glance div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--border); }
.glance div:last-child { border-bottom: 0; }
.glance dt { color: var(--faint); font-size: .9rem; }
.glance dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) { .resume-panel { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .glance div { grid-template-columns: 1fr; gap: .15rem; } }

/* ================= Contact ================= */
.contact-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 28px; border: 1px solid var(--border-strong); background: var(--surface);
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 50% 0%, var(--glow), transparent 70%), radial-gradient(40% 60% at 90% 100%, var(--glow-2), transparent 70%);
}
.contact-panel > * { position: relative; }
.contact-panel h2 { font-size: clamp(2.3rem, 5.5vw, 4rem); max-width: 820px; margin-inline: auto; }
.contact-panel .lead { max-width: 600px; margin-inline: auto; }
.contact-panel .ph-note { max-width: 560px; margin-inline: auto; justify-content: center; text-align: left; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); list-style: none; padding-left: 0; }
.contact-links a { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); text-decoration: none; font-weight: 500; padding: .35rem 0; }
.contact-links a:hover { color: var(--text); }
.contact-links .i { width: 18px; height: 18px; }

/* ================= Footer ================= */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--border); color: var(--faint); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner a { color: var(--muted); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.footer-inner a:hover { color: var(--text); }
.footer-inner .i { width: 16px; height: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; transform: translate(-50%, calc(100% + 3rem));
  padding: .8rem 1.2rem; border-radius: 12px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: transform .35s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* ================= Brand / founder ================= */
.brand-logo { width: 132px; height: 88.6px; fill: currentColor; color: var(--text); flex-shrink: 0; }
.brand-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.founder { display: flex; align-items: center; gap: .8rem; }
.founder img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--border-strong); background: #eef0f3; }
.founder strong { display: block; font-weight: 600; line-height: 1.3; }
.founder span { color: var(--muted); font-size: .9rem; }
.org-logo.brand-tile { background: #f7f7f7; }

/* ================= Intro loader ================= */
.loader {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: var(--bg); color: var(--text);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
html.intro { overflow: hidden; }
html.intro .loader, .loader.done { display: grid; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 60%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 60%);
}
.loader-inner { position: relative; display: grid; justify-items: center; gap: 2rem; transition: transform .6s var(--ease); }
.loader.done .loader-inner { transform: scale(.96); }
.loader-logo { width: min(250px, 62vw); height: auto; overflow: visible; }
.ld-frame { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ld-draw .8s var(--ease) forwards; }
.ld-arch {
  fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.5;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ld-draw .7s var(--ease) .2s forwards, ld-fill .3s ease .7s forwards;
}
.ld-block { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: ld-drop .45s cubic-bezier(.3, 1.4, .5, 1) .85s forwards; }
.ld-word { fill: currentColor; clip-path: inset(0 100% 0 0); animation: ld-wipe .5s var(--ease) .95s forwards; }
.loader-bar { width: min(150px, 40vw); height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.loader-bar span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: ld-bar 1.75s var(--ease) forwards;
}
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fill { to { fill-opacity: 1; } }
@keyframes ld-drop { from { opacity: 0; transform: translateY(-70%); } to { opacity: 1; transform: none; } }
@keyframes ld-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes ld-bar { to { transform: scaleX(1); } }
html.intro .rise { animation-play-state: paused; }

/* ================= Request info page ================= */
.page-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 650; margin-top: 1rem; max-width: 820px; }
.page-hero h1 .serif {
  font-size: 1.06em; padding-right: .05em;
  background: linear-gradient(110deg, var(--text) 10%, var(--accent) 55%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .88rem; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; }
.request-section { padding-top: 0; }
.request-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form-card { padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-card:hover { border-color: var(--border); }
.form-section { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
.form-legend { padding: 0; margin-bottom: 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { padding: 0; font-weight: 600; font-size: .93rem; }
.field-label .req { color: var(--accent); margin-left: .15rem; }
.field-label .opt { color: var(--faint); font-weight: 500; font-size: .85rem; margin-left: .35rem; }
.input {
  font: inherit; font-size: 1rem; width: 100%; min-height: 50px; padding: .75rem .95rem;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--faint); opacity: 1; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 170px; resize: vertical; line-height: 1.55; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.field-foot { display: flex; justify-content: space-between; gap: 1rem; }
.hint { margin: 0; color: var(--faint); font-size: .85rem; }
.field-error { margin: 0; color: var(--danger); font-size: .87rem; font-weight: 500; }
.field-error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice span {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.05rem;
  border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted);
  font-size: .93rem; font-weight: 500; cursor: pointer; user-select: none; transition: all .2s var(--ease);
}
.choice span:hover { color: var(--text); background: var(--surface-2); }
.choice .i { width: 16px; height: 16px; display: none; }
.choice input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.choice input:checked + span .i { display: block; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--danger); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.form-actions .btn { min-width: 190px; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.privacy { margin: 0; font-size: .87rem; color: var(--faint); max-width: 340px; display: flex; gap: .5rem; }
.privacy .i { width: 16px; height: 16px; margin-top: .2rem; }
.form-status { margin: 1rem 0 0; color: var(--danger); font-weight: 500; font-size: .93rem; }
.form-status:empty { display: none; }
.form-success { text-align: center; padding: clamp(1rem, 4vw, 2.5rem) 0; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
}
.success-icon .i { width: 34px; height: 34px; stroke-width: 2; }
.form-success h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0; }
.form-success h2:focus { outline: none; }
.form-success p { color: var(--muted); max-width: 460px; margin: 1rem auto 0; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.side-stack { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.side-stack h2 { font-size: 1.15rem; margin: 0 0 1.1rem; letter-spacing: -.01em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: .85rem; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong); font-weight: 600; font-size: .88rem; color: var(--accent);
}
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: .93rem; }
.direct { list-style: none; padding: 0; margin: 0; display: grid; }
.direct a, .direct span { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: var(--muted); text-decoration: none; font-weight: 500; }
.direct a:hover { color: var(--text); }
.direct .i { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 960px) {
  .request-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ================= Motion ================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.js .rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .rise { animation: none; }
}

@media (forced-colors: active) {
  .hero-tagline .serif, .hl-metric { color: CanvasText; background: none; }
  .card, .project, .chip, .btn { border: 1px solid CanvasText; }
}

/* ================= Print: produces a clean résumé ================= */
@media print {
  :root, [data-theme] {
    --bg: #fff; --bg-soft: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #222; --faint: #444;
    --accent: #000; --accent-2: #000; --border: #bbb; --border-strong: #999; --shadow: none;
  }
  @page { margin: 14mm; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .site-header, .skip-link, .hero::before, .hero::after, .socials, .hero-cta, .logos, .filters, .proj-visual,
  .proj-links, #testimonials, #contact, .resume-actions, .site-footer, .toast, .status-pill, .case-modal,
  .ph-card, .ph-note, .ph-label, .ph-tag, .impact.ph, .profile-photo, .loader, .breadcrumb, .services-cta { display: none !important; }
  section { padding-block: 10pt; border: 0 !important; }
  .section-head { margin-bottom: 10pt; }
  h2 { font-size: 16pt; }
  .hero-tagline { font-size: 20pt; }
  .hero-tagline .serif, .hl-metric { color: #000; background: none; }
  .card, .project, .tl-item, .edu-item, .quote { break-inside: avoid; box-shadow: none; }
  .project, .project.featured { display: block; }
  .project[hidden] { display: block !important; }
  .project.ph-card[hidden] { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; word-break: break-all; }
  .tag { border-color: #999; }
  .org-logo { box-shadow: none; }
}
