/* ==========================================================================
   Priyal Shrivastava, Portfolio
   Design system

   Palette: white paper, ink-dark folds, ballpoint blue, highlighter yellow.
   The whole scheme is the researcher's toolkit: pen, highlighter, paper.
   Blue #1D40C8 on white: 7.6:1. Gold #FFD43B on ink #101015: 12.4:1.
   ========================================================================== */

:root {
  /* Aligned to Copilot Trust showpiece (work/microsoft-copilot-trust.html) */
  --bg: #FFFFFF;
  --ink: #0B0B0C;
  --paper: #FFFFFF;
  --text: #0B0B0C;
  --muted: #6B6E68;
  --border: #E8E8EE;
  --surface: #F6F6F9;
  --glow: #4F46E5;
  --accent: #4F46E5;
  --accent-ink: #4338CA;
  --pen: #4F46E5;
  --gold: #9D91FF;
  --highlight: rgba(157, 145, 255, 0.28);
  --highlight-strong: rgba(157, 145, 255, 0.45);
  --ink-soft: rgba(255, 255, 255, 0.75);
  --ink-mute: rgba(255, 255, 255, 0.55);
  --ink-line: rgba(255, 255, 255, 0.14);
  --radius: 10px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--glow);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 1000;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity 0.2s var(--ease);
}

.logo:hover {
  opacity: 0.7;
}

.logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 96px 0 88px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px rgba(16, 16, 21, 0.25);
  transition: transform 0.5s var(--ease);
}

.hero-photo img:hover {
  transform: scale(1.03) rotate(-1deg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin-bottom: 20px;
}

.hero h1 .serif,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* Coded phrases: highlighter marks with a researcher's code label */
.coded {
  background-image: linear-gradient(120deg, var(--highlight-strong), var(--highlight));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 6px;
  padding: 0.02em 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  cursor: default;
  animation: paint 0.9s var(--ease) 0.3s backwards;
}

@keyframes paint {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

.coded sup {
  font-family: var(--font);
  font-size: 0.24em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.3em;
  vertical-align: super;
  white-space: nowrap;
}

.coded.lit {
  background-image: linear-gradient(120deg, var(--highlight-strong), var(--highlight-strong));
}

.hero-lately {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

/* Code cards: the legend for the coded intro */
.code-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.code-card .code-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.code-card p:not(.code-name) {
  font-size: 15px;
  line-height: 1.6;
  color: #3C3C44;
}

.code-card.lit {
  transform: translateY(-4px);
  border-color: #E3BB1E;
  border-left-color: var(--gold);
  background: #FFF8DF;
  box-shadow: 0 16px 32px -20px rgba(16, 16, 21, 0.3);
}

@media (max-width: 1000px) {
  .code-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Staggered entrance on load */
.hero-text > *,
.hero-photo,
.code-card {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s var(--ease) forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.28s; }
.hero-text > *:nth-child(4) { animation-delay: 0.36s; }
.hero-photo { animation-delay: 0.2s; }
.code-card:nth-child(1) { animation-delay: 0.4s; }
.code-card:nth-child(2) { animation-delay: 0.5s; }
.code-card:nth-child(3) { animation-delay: 0.6s; }
.code-card:nth-child(4) { animation-delay: 0.7s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Dark folds
   -------------------------------------------------------------------------- */

.band {
  padding: 104px 0;
}

.band-ink {
  background: var(--ink);
  color: #fff;
}

.band-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
}

.band-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ink-line);
}

/* Skim list: claims with receipts, each linking to its project */
.skim-list {
  list-style: none;
}

.skim-list li {
  border-bottom: 1px solid var(--ink-line);
}

.skim-list li:first-child {
  border-top: 1px solid var(--ink-line);
}

.skim-list a {
  display: grid;
  grid-template-columns: 170px 1fr 40px;
  gap: 28px;
  align-items: baseline;
  padding: 22px 8px;
  transition: background 0.3s var(--ease);
}

.skim-list a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.skim-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.skim-text {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.skim-list a:hover .skim-text {
  color: #fff;
}

.skim-arrow {
  justify-self: end;
  color: var(--ink-mute);
  font-size: 20px;
  transform: translateY(-2px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.skim-list a:hover .skim-arrow {
  opacity: 1;
  transform: translateY(2px);
  color: var(--gold);
}

.num-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin-top: 32px;
}

@media (max-width: 768px) {
  .skim-list a {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }

  .skim-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */

.section {
  padding: 88px 0 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.section-label .count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--muted);
}

.section-hint {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 56ch;
}

.hint-touch {
  display: none;
}

@media (hover: none) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}

/* --------------------------------------------------------------------------
   Work list, engagement rows
   -------------------------------------------------------------------------- */

.work-list {
  border-top: 1px solid var(--border);
}

.work-row {
  display: grid;
  grid-template-columns: 170px 1fr 64px;
  gap: 28px;
  align-items: center;
  padding: 32px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease);
  position: relative;
}

.work-row:hover {
  background: var(--surface);
}

/* Project thumbnails: bespoke mini diagrams, one color per project */
.work-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.work-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.work-row:hover .work-thumb {
  transform: rotate(-1.6deg) scale(1.04);
  box-shadow: 0 14px 28px -14px rgba(16, 16, 21, 0.35);
}

.work-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.work-kicker .work-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  margin-right: 6px;
}

.work-main {
  min-width: 0;
}

.work-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  display: inline-block;
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}

.work-row:hover .work-title {
  transform: translateX(6px);
  color: var(--accent);
}

.work-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.work-row:hover .tag {
  border-color: #D6D6E0;
}

.tag.nda {
  color: var(--accent);
  border-color: rgba(29, 64, 200, 0.3);
}

/* The turn: revealed on hover/focus, always visible on touch devices.
   Kept in normal flow (max-height, not display:none) so screen readers
   always announce it. */
.work-turn {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
  color: #3C3C44;
  max-width: 62ch;
  transition: max-height 0.5s var(--ease), opacity 0.45s var(--ease), margin-top 0.5s var(--ease);
}

.work-row:hover .work-turn,
.work-row:focus-visible .work-turn,
body.curious .work-turn {
  max-height: 160px;
  opacity: 1;
  margin-top: 12px;
}

.turn-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 8px;
}

@media (hover: none) {
  .work-turn {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
  }
}

.work-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  color: var(--muted);
  transition: all 0.35s var(--ease);
}

.work-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.work-row:hover .work-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.work-row:hover .work-arrow svg {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   About (dark fold)
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.about-grid strong {
  font-weight: 700;
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.chip.hot {
  border-color: rgba(255, 212, 59, 0.5);
  color: var(--gold);
}

/* Beyond the day job */
.elsewhere-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.elsewhere {
  list-style: none;
}

.elsewhere li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.elsewhere li:last-child {
  border-bottom: none;
}

.elsewhere .el-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 10px;
  transform: rotate(-1deg);
}

.elsewhere em {
  font-family: var(--serif);
  font-style: italic;
  color: #fff;
}

.elsewhere a {
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.elsewhere a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   "Why" easter egg: sticky-note toast
   -------------------------------------------------------------------------- */

.sticky-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 260px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 2px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(16, 16, 21, 0.4);
  transform: rotate(-2deg) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.sticky-toast.show {
  opacity: 1;
  transform: rotate(-2deg) translateY(0);
}

.sticky-toast .toast-small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6B5800;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Footer (dark, everywhere)
   -------------------------------------------------------------------------- */

.footer {
  margin-top: 96px;
  background: var(--ink);
  color: #fff;
  padding: 88px 0 48px;
}

.footer-flush {
  margin-top: 0;
  border-top: 1px solid var(--ink-line);
}

.footer-cta {
  margin-bottom: 64px;
}

.footer-cta .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.footer-cta a.big-link {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-block;
  position: relative;
  transition: color 0.3s var(--ease);
}

.footer-cta a.big-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 4px;
  background: var(--gold);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.footer-cta a.big-link:hover {
  color: var(--gold);
}

.footer-cta a.big-link:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-mute);
}

.footer-bottom .heart {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Project page
   -------------------------------------------------------------------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 40px 0 0;
  transition: color 0.25s var(--ease);
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.project-hero {
  padding: 56px 0 40px;
}

.project-company {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.project-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 20px;
}

.project-summary {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 32px 0;
  margin: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-item .meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-item .meta-value {
  font-size: 15px;
  font-weight: 600;
}

.project-body {
  max-width: 720px;
}

.project-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 64px 0 20px;
  position: relative;
  padding-left: 18px;
}

.project-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--gold);
}

.project-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.project-body p {
  color: #3C3C44;
  margin-bottom: 18px;
}

.project-body ul {
  padding-left: 22px;
  margin-bottom: 18px;
  color: #3C3C44;
}

.project-body li {
  margin-bottom: 8px;
}

.project-body strong {
  font-weight: 700;
  color: var(--text);
}

/* Diagram figures */
.diagram {
  margin: 32px 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diagram img,
.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

/* Before / after comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.compare figure {
  margin: 0;
}

.compare img {
  border: 1px solid var(--border);
  width: 100%;
}

.compare figcaption {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.compare figcaption.new {
  color: var(--accent);
}

@media (max-width: 768px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 64, 200, 0.4);
}

.stat .stat-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Callout */
.callout {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 17px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Method phase blocks */
.phase {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.phase:last-of-type {
  border-bottom: none;
}

.phase-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase h3 {
  margin-top: 8px;
}

/* Next project */
.next-project {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.next-project .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.next-project a {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.next-project a:hover {
  color: var(--accent);
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-photo img {
    width: 96px;
    height: 96px;
  }

  .code-cards {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .band {
    padding: 72px 0;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .section {
    padding: 64px 0 40px;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 16px;
  }

  .work-thumb {
    max-width: 260px;
  }

  .work-arrow {
    display: none;
  }

  .sticky-toast {
    left: 16px;
    bottom: 16px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
