/* ============================================================
   Shalini Singh — Portfolio
   Warm & human design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Bright cool neutrals */
  --cream:        #EEF3FF;
  --cream-deep:   #FCF4C2;
  --surface:      #FFFFFF;
  --ink:          #0E1B3A;
  --ink-soft:     #2B3A5E;
  --muted:        #69739A;
  --muted-light:  #9AA3C5;
  --line:         #DCE3F6;
  --line-soft:    #E9EEFB;

  /* Bright blue + yellow accents */
  --clay:         #4285F4;   /* bright blue primary */
  --clay-soft:    rgba(66,133,244,0.12);
  --clay-deep:    #1A5FD6;   /* deeper blue — text & hover */
  --sage:         #9A7A00;   /* dark amber — text-safe yellow */
  --sage-soft:    rgba(254,223,78,0.22);
  --gold:         #FEDF4E;   /* bright yellow */

  --shadow-sm: 0 1px 2px rgba(14,27,58,0.05), 0 2px 6px rgba(14,27,58,0.06);
  --shadow-md: 0 4px 14px rgba(14,27,58,0.08), 0 10px 30px rgba(14,27,58,0.07);
  --shadow-lg: 0 10px 30px rgba(14,27,58,0.10), 0 30px 60px rgba(14,27,58,0.09);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0.0, 0.1, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* selection */
::selection { background: var(--clay-soft); color: var(--clay-deep); }

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

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 150px); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
}
.display em { font-style: italic; color: var(--clay); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }

.h-serif { font-family: var(--serif); font-weight: 400; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--clay); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.mono {
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; font-size: 1.02rem; white-space: nowrap; }
.brand .dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--clay); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { background: var(--clay-soft); color: var(--clay-deep); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px !important; border-radius: 999px !important;
  background: var(--ink); color: var(--cream) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--clay-deep) !important; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    background: var(--surface); padding: 40px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; font-family: var(--serif); }
  .nav-toggle { display: block; z-index: 101; }

  /* Collapse inline multi-column grids (1fr 1fr, repeat(3,1fr), etc.) to a
     single column on phones. These are set via inline styles in the HTML, so
     they need !important to override and prevent horizontal overflow. */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--surface); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none;
}
.hero-blob.a { width: 540px; height: 540px; background: var(--clay-soft); top: -160px; right: -120px; }
.hero-blob.b { width: 420px; height: 420px; background: var(--sage-soft); bottom: -200px; left: -120px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 30px;
  white-space: nowrap; max-width: 100%;
}
.hero-tag .pip { width: 8px; height: 8px; border-radius: 50%; background: rgb(35,154,0); box-shadow: 0 0 0 4px rgba(35,154,0,0.16); }
.hero-tag b { font-weight: 600; color: var(--ink); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.stat { border-left: 2px solid var(--line); padding-left: 20px; }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; }
.stat .num em { font-style: italic; color: var(--clay); }
.stat .lbl { margin-top: 8px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.8vw, 36px); }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }
.project {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-soft); }
.project .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.project .thumb .ph { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.project:hover .thumb .ph { transform: scale(1.04); }
.project .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 999px; background: var(--cream-deep); color: var(--ink-soft);
}
.project h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.02em; }
.project p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.project .more {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--clay-deep);
}
.project .more .arrow { transition: transform .3s var(--ease); }
.project:hover .more .arrow { transform: translateX(5px); }

/* ---------- Placeholder imagery ---------- */
.ph {
  --ph-bg: var(--cream-deep);
  --ph-stripe: rgba(131,122,111,0.10);
  background:
    repeating-linear-gradient(135deg, var(--ph-stripe) 0 2px, transparent 2px 14px),
    var(--ph-bg);
  display: grid; place-items: center; position: relative; color: var(--muted);
}
.ph[data-clay] { --ph-bg: var(--clay-soft); --ph-stripe: rgba(66,133,244,0.14); color: var(--clay-deep); }
.ph[data-sage] { --ph-bg: var(--sage-soft); --ph-stripe: rgba(254,223,78,0.30); color: #8A6D00; }
.ph .ph-label {
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.74rem; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 7px;
}
.ph .ph-label::before { content: "▦"; opacity: .5; }

/* Browser frame */
.frame { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface); }
.frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: inline-block; }
.frame .bar i:nth-child(1){ background:#E8A39C;} .frame .bar i:nth-child(2){ background:#EBCB8C;} .frame .bar i:nth-child(3){ background:#A8CBA0;}
.frame .bar .url { margin-left: 10px; font-family: ui-monospace, monospace; font-size: 0.72rem; color: var(--muted-light); background: var(--surface); padding: 4px 12px; border-radius: 999px; flex: 1; max-width: 320px; }
.frame .screen { aspect-ratio: 16/9; }

/* Phone frame */
.phone { width: 260px; border-radius: 34px; padding: 10px; background: var(--ink); box-shadow: var(--shadow-lg); }
.phone .screen { border-radius: 26px; aspect-ratio: 9/19; overflow: hidden; }

/* Landscape tablet frame (on a tinted surface) */
.device-surface { width: 100%; height: 100%; display: grid; place-items: center; padding: clamp(16px, 4%, 40px); }
.tablet {
  width: 100%; max-width: 100%; background: #161b29; border-radius: 20px;
  padding: 16px 18px; box-shadow: var(--shadow-lg); position: relative;
}
.tablet::before { /* front camera */
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: #3a4055; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.tablet .scr { border-radius: 7px; overflow: hidden; background: #fff; line-height: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.tablet .scr img { width: 100%; height: auto; display: block; }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 720px){ .process { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
.pstep { padding: 28px 24px 28px 0; border-top: 2px solid var(--ink); position: relative; }
.pstep .pn { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1.1rem; }
.pstep h4 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 14px 0 8px; letter-spacing: -0.02em; }
.pstep p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Skills ---------- */
.skills { display: flex; flex-wrap: wrap; gap: 12px; }
.skill {
  font-size: 1rem; font-weight: 500; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.skill:hover { transform: translateY(-3px); border-color: var(--clay); color: var(--clay-deep); background: var(--clay-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-block: clamp(64px, 9vw, 110px); }
.footer a { color: var(--cream); }
.footer .big {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -0.02em;
}
.footer .big em { font-style: italic; color: var(--gold); }
.footer .mail { display: inline-block; border-bottom: 1.5px solid color-mix(in oklab, var(--cream) 40%, transparent); transition: border-color .3s var(--ease); }
.footer .mail:hover { border-color: var(--gold); }
.footer .social { display: flex; flex-wrap: wrap; gap: 22px; }
.footer .social a { font-weight: 500; color: color-mix(in oklab, var(--cream) 75%, transparent); transition: color .3s var(--ease); display:inline-flex; gap:6px; align-items:center; }
.footer .social a:hover { color: var(--gold); }
.footer .rule { height: 1px; background: color-mix(in oklab, var(--cream) 18%, transparent); margin-block: 48px; }
.footer .fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: color-mix(in oklab, var(--cream) 55%, transparent); font-size: 0.88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Case study specific
   ============================================================ */
.cs-hero { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(40px, 5vw, 70px); }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); margin-bottom: 28px; transition: color .3s var(--ease), gap .3s; }
.cs-back:hover { color: var(--clay-deep); gap: 12px; }
.cs-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.025em; }
.cs-title em { font-style: italic; color: var(--clay); }

.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; margin-top: 44px; }
@media (max-width: 640px){ .cs-meta { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }
.cs-meta .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-light); font-weight: 600; }
.cs-meta .v { margin-top: 7px; font-weight: 600; font-size: 1.05rem; }

/* content blocks */
.block { padding-block: clamp(48px, 7vw, 90px); }
.block + .block { border-top: 1px solid var(--line-soft); }
.cs-col { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px){ .cs-col { grid-template-columns: 1fr; gap: 24px; } }
.cs-col .side { position: sticky; top: 100px; }
@media (max-width: 820px){ .cs-col .side { position: static; } }
.block-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.prose p { color: var(--ink-soft); margin-bottom: 18px; max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }

/* bullet list */
.blist { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 4px 0 0; }
.blist li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.blist li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--clay); }
.blist.sage li::before { border-color: var(--sage); }

/* insight cards */
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px){ .insights { grid-template-columns: 1fr; } }
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.insight:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.insight .ins-n { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1.05rem; margin-bottom: 10px; }
.insight p { font-size: 0.97rem; color: var(--ink-soft); }
.insight .impl { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--muted); }
.insight .impl b { color: var(--sage); font-weight: 600; }

/* problem / solution / why table */
.psw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 720px){ .psw { grid-template-columns: 1fr; } }
.psw .pcol { background: var(--surface); padding: 26px 24px; }
.psw .pcol h5 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 18px; }
.psw .pcol:nth-child(1) h5 { color: var(--muted); }
.psw .pcol:nth-child(2) h5 { color: var(--clay-deep); }
.psw .pcol:nth-child(3) h5 { color: var(--sage); }
.psw .pcol ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.psw .pcol li { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.psw .pcol li:last-child { border-bottom: none; padding-bottom: 0; }

/* big figure */
.figure { border-radius: var(--r-lg); overflow: hidden; }
.figure .cap { margin-top: 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* flow steps inline */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow .node { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.flow .node.alt { background: var(--clay-soft); border-color: transparent; color: var(--clay-deep); }
.flow .sep { color: var(--muted-light); font-size: 1.1rem; }

/* outcome metrics */
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; }
.outcome { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-sm); }
.outcome .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--clay-soft); display: grid; place-items: center; color: var(--clay-deep); margin-bottom: 16px; font-family: var(--serif); font-style: italic; }
.outcome p { font-size: 0.96rem; color: var(--ink-soft); }

/* next project nav */
.cs-next { background: var(--cream-deep); padding-block: clamp(56px, 8vw, 96px); }
.cs-next a { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cs-next .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; }
.cs-next .name { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; transition: color .3s var(--ease); }
.cs-next a:hover .name { color: var(--clay); }

/* brief external link */
.brief-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 24px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--clay-soft); color: var(--clay-deep);
  font-weight: 600; font-size: 0.95rem;
  transition: transform .3s var(--ease), background .3s var(--ease), gap .3s var(--ease);
}
.brief-link:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--clay) 22%, transparent); gap: 13px; }
.brief-link .arrow { transition: transform .3s var(--ease); }

/* impact / success metrics table */
.metrics { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 0; align-items: center; }
.metric-row + .metric-row { border-top: 1px solid var(--line-soft); }
.metric-row > div { padding: 16px 18px; }
.metric-head { background: var(--cream-deep); }
.metric-head > div { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 700; color: var(--muted); padding-block: 13px; }
.metric-row .m-name { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.metric-row .m-name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-top: 3px; letter-spacing: 0; text-transform: none; }
.metric-row .m-base { font-family: ui-monospace, monospace; font-size: 0.9rem; color: var(--muted); }
.metric-row .m-target { font-family: ui-monospace, monospace; font-size: 0.95rem; font-weight: 600; color: var(--clay-deep); }
.metric-row .m-how { font-size: 0.86rem; color: var(--ink-soft); }
.metric-group { background: color-mix(in oklab, var(--clay-soft) 60%, transparent); }
.metric-group > div { grid-column: 1 / -1; padding: 11px 18px; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--clay-deep); }
@media (max-width: 720px){
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric-row .m-how { grid-column: 1 / -1; border-top: 1px dashed var(--line-soft); }
  .metric-head, .metric-head .m-how { display: none; }
  .metric-row .m-name { grid-column: 1 / -1; }
}
.metric-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.metric-note b { color: var(--sage); font-weight: 700; }

/* ============================================================
   About page
   ============================================================ */
.about-hero { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(30px, 4vw, 50px); }

/* two-column list rows (companies / education) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.row:hover { padding-left: 14px; background: linear-gradient(90deg, var(--clay-soft), transparent); }
.row .r-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.row .r-sub { color: var(--muted); font-size: 0.92rem; margin-top: 3px; }
.row .r-date { font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* journey timeline */
.timeline { position: relative; margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 40px 38px; border-left: 2px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--clay);
}
.tl-item .tl-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-item .tl-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.tl-item .tl-role { font-size: 0.82rem; color: var(--clay-deep); font-weight: 600; background: var(--clay-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tl-item .tl-desc { color: var(--ink-soft); font-size: 0.98rem; }
.tl-item .tl-desc + .tl-desc { margin-top: 8px; }

/* interests */
.interests { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 680px){ .interests { grid-template-columns: 1fr; } }
.interest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.interest:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.interest .gly { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--clay); line-height: 1; }
.interest h4 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 16px 0 6px; }
.interest p { color: var(--muted); font-size: 0.95rem; }
