/* ============================================================
   Satyen Barve — shared styles
   Same structure as the reference layout, re-keyed to a cooler,
   heavier palette: steel blue + copper on cool paper.
   ============================================================ */

:root {
  /* ── surfaces: cool off-white ─────────────────────────── */
  --bg:        #f5f4f0;
  --panel:     #eceae4;
  --card:      #ffffff;
  --card-2:    #f3f2ec;   /* subtle tint against white cards */
  --border:    rgba(29,78,124,0.16);
  --border-hi: rgba(29,78,124,0.42);
  --rule:      rgba(var(--shadow-rgb),0.10);

  /* ── ink ──────────────────────────────────────────────── */
  --text:      #131e2a;
  --dim:       #46566a;   /* body copy */
  --muted:     #7b8798;   /* eyebrows, meta, captions */

  /* ── brand hues ───────────────────────────────────────────
     Two tiers each: the deep tone is what's legible as TEXT on
     off-white; the bright tone carries fills, glows and anything
     with dark type sitting on top of it.                       */
  --accent:        #1d4e7c;   /* steel blue */
  --accent-bright: #6fa8dc;
  --gold:          #9d5a1c;   /* copper */
  --gold-bright:   #e5a45c;

  --grad:      linear-gradient(130deg, #1d4e7c 0%, #9d5a1c 100%);  /* gradient TEXT */
  --grad-fill: linear-gradient(130deg, #6fa8dc 0%, #e5a45c 100%);  /* gradient FILLS */
  --on-accent: #ffffff;       /* type on a filled steel button */
  --on-bright: #101c28;       /* type on a bright copper/gradient fill */

  /* ── theme-dependent surfaces ─────────────────────────── */
  --nav-bg:     rgba(245,244,240,.82);
  --deep:       #e3e1d9;   /* the darkest band on a light page */
  --shadow-rgb: 19,30,42;  /* drop-shadow tint */
  --grain:      .022;      /* film-grain strength */

  --nav-h:  62px;
  --maxw:   1080px;
  --pad:    2rem;

  /* squarer than the reference — reads structural rather than soft */
  --r-card: 12px;
  --r-btn:  6px;
  --r-sm:   8px;

  --display: 'Source Serif 4', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ══ DARK MODE ═══════════════════════════════════════════════
   The inline script in each <head> stamps data-theme on <html>
   before first paint (stored choice, else the OS preference),
   so only this one selector is needed — no flash, no duplication.
   The contact card deliberately keeps its bright gradient in both
   themes; it reads as an accent panel either way.               */
:root[data-theme="dark"] {
  --bg:        #0e1520;
  --panel:     #131c28;
  --card:      #182231;
  --card-2:    #1e2937;
  --border:    rgba(111,168,220,0.20);
  --border-hi: rgba(111,168,220,0.46);
  --rule:      rgba(255,255,255,0.09);

  --text:      #e9eff6;
  --dim:       #aab8c6;
  --muted:     #7f8d9c;

  /* the bright tier becomes the legible one once the page is dark */
  --accent:        #6fa8dc;
  --accent-bright: #9cc6ea;
  --gold:          #e5a45c;
  --gold-bright:   #f2c48d;

  --grad:      linear-gradient(130deg, #6fa8dc 0%, #e5a45c 100%);
  --on-accent: #0e1520;    /* dark type on a filled steel button */

  --nav-bg:     rgba(14,21,32,.82);
  --deep:       #0a1018;
  --shadow-rgb: 0,0,0;
  --grain:      .035;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* film grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9997;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

::selection { background: rgba(111,168,220,.35); color: var(--text); }

/* ── CURSOR ──────────────────────────────────────────────── */
#cur-dot {
  position: fixed; z-index: 9999;
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; transform: translate(-50%,-50%);
  transition: width .22s, height .22s, background .22s;
  will-change: left, top;
}
#cur-ring {
  position: fixed; z-index: 9998;
  width: 30px; height: 30px;
  border: 1.5px solid rgba(29,78,124,.42); border-radius: 50%;
  pointer-events: none; transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.23,1,.32,1),
              height .3s cubic-bezier(.23,1,.32,1), border-color .3s;
  will-change: left, top;
}
body.ch #cur-dot  { width: 11px; height: 11px; background: var(--gold); }
body.ch #cur-ring { width: 46px; height: 46px; border-color: rgba(157,90,28,.34); }
body.cc #cur-dot  { transform: translate(-50%,-50%) scale(.6); }
@media (hover:none), (max-width: 860px) {
  #cur-dot, #cur-ring { display: none; }
  body { cursor: auto; }
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.monogram {
  font-family: var(--mono);
  font-size: 1rem; font-weight: 700; letter-spacing: .12em;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.monogram::before {
  content: ''; width: 9px; height: 9px; flex: none;
  background: var(--grad-fill); border-radius: 2px;
  transform: rotate(45deg);
}
.nav-right { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-btn);
  display: grid; place-items: center;
  color: var(--muted); background: transparent;
  border: 1px solid transparent;
  text-decoration: none; cursor: none;
  transition: color .2s, background .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(111,168,220,.10); border-color: var(--border); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* theme toggle — shows the icon of the mode you'd switch TO */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun  { display: block; }

.burger {
  width: 34px; height: 34px; border-radius: var(--r-btn);
  display: grid; place-items: center; gap: 4px;
  background: transparent; border: 1px solid transparent;
  cursor: none;
}
.burger:hover { background: rgba(111,168,220,.10); border-color: var(--border); }
.burger span {
  display: block; width: 17px; height: 1.5px; border-radius: 2px;
  background: var(--text);
  transition: transform .28s cubic-bezier(.23,1,.32,1), opacity .2s;
}
.burger span + span { margin-top: 4px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu {
  position: fixed; z-index: 299;
  top: calc(var(--nav-h) + 10px); right: var(--pad);
  width: min(290px, calc(100vw - 2 * var(--pad)));
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: .5rem;
  box-shadow: 0 20px 48px rgba(var(--shadow-rgb),.14);
  opacity: 0; transform: translateY(-8px) scale(.98);
  pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
body.menu-open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu a {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .6rem .75rem; border-radius: var(--r-btn);
  color: var(--dim); text-decoration: none;
  font-size: .85rem; transition: background .18s, color .18s;
}
.menu a:hover { background: rgba(111,168,220,.10); color: var(--text); }
.menu a span {
  font-family: var(--mono);
  font-size: .62rem; color: var(--muted); letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.menu-sep { height: 1px; background: var(--rule); margin: .4rem .75rem; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 6.5rem 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--deep  { background: var(--deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::after {
  content: ''; display: block;
  width: 38px; height: 2px;
  background: var(--grad); margin-top: .55rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--center::after { margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 3.25rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: var(--r-btn);
  font-size: .86rem; font-weight: 600; text-decoration: none;
  letter-spacing: .01em;
  border: 1px solid transparent; cursor: none;
  transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.btn:hover { opacity: .9; }
.btn-fill  { background: var(--accent); color: var(--on-accent); }
.btn-gold  { background: var(--gold-bright); color: var(--on-bright); }
.btn-soft  { background: rgba(111,168,220,.14); color: var(--text); border-color: var(--border-hi); }
.btn-soft:hover { background: rgba(111,168,220,.22); }
.btn-ghost { border-color: var(--rule); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-hi); }
.arr { transition: transform .18s; }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); text-decoration: none;
  font-size: .82rem; font-weight: 600;
  font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.link-arrow:hover { color: var(--gold); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 86vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) var(--pad) 5rem;
}
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(111,168,220,.32), transparent 65%),
    radial-gradient(ellipse 40% 35% at 76% 62%, rgba(229,164,92,.24), transparent 65%);
  pointer-events: none;
}
/* faint engineering grid, sits under the glow */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--shadow-rgb),.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--shadow-rgb),.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 80%);
}
:root[data-theme="dark"] .hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-hi { font-size: 1rem; color: var(--dim); margin-bottom: .35rem; }
.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 9.5vw, 6rem);
  line-height: 1.02; letter-spacing: -.025em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}
.hero-tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--text); line-height: 1.35;
  max-width: 620px; margin: 0 auto 1rem;
}
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.05rem);
  color: var(--dim); line-height: 1.7;
  max-width: 600px; margin: 0 auto 2.6rem;
}
.hero-btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 2.25rem; left: 0; right: 0;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); z-index: 1;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 4.5rem; align-items: start;
}
.about-lead {
  font-size: 1.22rem; line-height: 1.65; color: var(--text);
  font-weight: 400; margin-bottom: 1.4rem;
}
.about-lead strong { font-family: var(--display); font-weight: 700; }
.about-body { color: var(--dim); line-height: 1.85; font-size: .97rem; }
.about-body + .about-body { margin-top: 1rem; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-body a {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: rgba(29,78,124,.35);
  transition: color .2s, text-decoration-color .2s;
}
.about-body a strong { color: inherit; }
.about-body a:hover { color: var(--gold); text-decoration-color: var(--gold); }

.stats-row {
  display: flex; gap: 2.75rem; flex-wrap: wrap;
  margin-top: 2.75rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.stat-num {
  font-family: var(--display); font-weight: 700;
  font-size: 2.1rem; line-height: 1; color: var(--text); margin-bottom: .3rem;
  letter-spacing: -.02em;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); max-width: 160px; line-height: 1.6;
}

/* portrait */
.portrait-wrap { position: relative; padding-bottom: 2.5rem; }
.portrait {
  position: relative; aspect-ratio: 4/5; width: 100%;
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(29,78,124,.24);
  background:
    radial-gradient(120% 95% at 18% 0%, rgba(111,168,220,.42), transparent 62%),
    radial-gradient(115% 95% at 92% 100%, rgba(229,164,92,.40), transparent 62%),
    var(--card);
  box-shadow: 0 16px 40px rgba(var(--shadow-rgb),.10);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.portrait img[hidden], .portrait-fallback[hidden] { display: none; }
.portrait-fallback { text-align: center; padding: 1.5rem; }
.portrait-fallback .pf-mono {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 5rem); line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portrait-fallback .pf-note {
  margin-top: .6rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

.badge-pill {
  position: absolute; left: -.75rem; bottom: 1.5rem;
  background: var(--card-2); border: 1px solid var(--border-hi);
  border-radius: var(--r-sm); padding: .7rem 1rem;
  font-size: .82rem; font-weight: 500; line-height: 1.35;
  max-width: 190px;
  box-shadow: 0 14px 32px rgba(var(--shadow-rgb),.13);
}
.badge-round {
  position: absolute; right: -.5rem; bottom: .5rem;
  width: 108px; height: 108px; border-radius: var(--r-card);
  background: var(--grad-fill); color: var(--on-bright);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 14px 32px rgba(var(--shadow-rgb),.18);
}
.badge-round b {
  font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  line-height: 1; display: block; letter-spacing: -.02em;
}
.badge-round span {
  display: block; font-family: var(--mono); font-size: .5rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; margin-top: .3rem;
}

/* ── WORK CARDS ──────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .28s cubic-bezier(.23,1,.32,1), border-color .25s, box-shadow .28s;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 18px 40px rgba(var(--shadow-rgb),.12);
}
.work-visual {
  position: relative; height: 210px; overflow: hidden;
  border-bottom: 1px solid var(--rule);
  display: grid; place-items: center; padding: 1.5rem;
  background: var(--card-2);
}
/* full-bleed cover image instead of a CSS mock */
.work-visual--img { padding: 0; }
.work-visual--img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.work-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.work-date { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .06em; margin-top: .9rem; }
.work-kicker {
  font-family: var(--mono);
  font-size: .66rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.work-title {
  font-family: var(--display); font-size: 1.45rem;
  font-weight: 700; line-height: 1.18; margin-bottom: .55rem;
  letter-spacing: -.015em;
}
.work-org {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  letter-spacing: .04em; margin-bottom: .9rem;
}
.work-desc { font-size: .9rem; color: var(--dim); line-height: 1.75; margin-bottom: 1.4rem; }
.work-card .link-arrow { margin-top: auto; }

/* card visuals (pure CSS mocks — no image assets needed) */
.mock {
  width: 100%; max-width: 300px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .85rem; font-size: .62rem;
}
.mock-bar { display: flex; align-items: center; gap: .3rem; margin-bottom: .7rem; }
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); display: block; }
.mock-bar b {
  margin-left: auto; color: var(--muted); font-family: var(--mono);
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .55rem;
}
.mock-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .7rem; }
.mock-chips span {
  padding: .2rem .5rem; border-radius: 3px;
  background: rgba(111,168,220,.14); color: var(--accent);
  border: 1px solid var(--border); font-family: var(--mono);
}
.mock-line { height: 6px; border-radius: 2px; background: var(--rule); margin-bottom: .35rem; }
.mock-line.w70 { width: 70%; }
.mock-line.w45 { width: 45%; }
.mock-out {
  margin-top: .7rem; padding: .5rem .6rem; border-radius: 4px;
  background: rgba(229,164,92,.18); border: 1px solid rgba(157,90,28,.30);
  color: var(--gold); font-weight: 600; font-family: var(--mono);
}
.mock-funnel { display: flex; flex-direction: column; gap: .4rem; }
.mock-funnel div {
  height: 22px; border-radius: 3px; display: flex; align-items: center;
  padding: 0 .5rem; color: var(--on-bright); font-weight: 600; font-family: var(--mono);
}
.mock-kpi { display: flex; gap: .5rem; margin-top: .7rem; }
.mock-kpi div {
  flex: 1; border-radius: 4px; padding: .45rem .5rem;
  background: rgba(111,168,220,.10); border: 1px solid var(--border);
}
.mock-kpi b { display: block; color: var(--text); font-size: .95rem; font-family: var(--display); font-weight: 700; }
.mock-kpi span { color: var(--muted); font-size: .55rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.mock-svg { width: 100%; height: auto; display: block; }

/* ── EXPERIENCE (timeline) ───────────────────────────────── */
.exp-list { border-top: 1px solid var(--rule); }
.exp {
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: 1.5rem; align-items: start;
  padding: 1.6rem 0;
  text-decoration: none; color: inherit;
  transition: color .2s;
}
.exp-date {
  font-family: var(--mono);
  font-size: .74rem; color: var(--muted); padding-top: .28rem; letter-spacing: .06em;
}
.exp-role { font-size: 1.02rem; font-weight: 600; color: var(--text); margin-bottom: .22rem; }
.exp-org  { font-size: .84rem; color: var(--muted); }
.exp-tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border); border-radius: 3px;
  padding: .28rem .55rem; white-space: nowrap; margin-top: .18rem;
}
a.exp:hover .exp-role { color: var(--accent); }
a.exp:hover .exp-tag { border-color: var(--border-hi); color: var(--gold); }

/* ── EDUCATION / GENERIC CARDS ───────────────────────────── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edu-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 2rem;
  transition: border-color .25s, transform .25s;
}
.edu-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.edu-school { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-bottom: .35rem; letter-spacing: -.015em; }
.edu-prog { font-size: .9rem; color: var(--accent); margin-bottom: .3rem; }
.edu-meta { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: 1.4rem; letter-spacing: .05em; }
.edu-list { list-style: none; display: grid; gap: .6rem; }
.edu-list li {
  position: relative; padding-left: 1.1rem;
  font-size: .88rem; color: var(--dim); line-height: 1.7;
}
.edu-list li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 6px; height: 2px; background: var(--gold);
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.skill-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem; }
.skill-ico {
  width: 32px; height: 32px; border-radius: var(--r-btn);
  display: grid; place-items: center; flex: none;
  background: rgba(111,168,220,.14); border: 1px solid var(--border);
  color: var(--accent);
}
.skill-ico.gold { background: rgba(229,164,92,.22); color: var(--gold); border-color: rgba(157,90,28,.28); }
.skill-ico svg { width: 15px; height: 15px; fill: currentColor; }
.skill-head h3 {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
}
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  padding: .42rem .8rem; border-radius: var(--r-btn);
  border: 1px solid var(--border); background: var(--card);
  font-size: .78rem; color: var(--dim);
  transition: border-color .2s, color .2s, background .2s;
}
.pill:hover { border-color: var(--border-hi); color: var(--text); background: var(--card-2); }

/* ── CONTACT CARD ────────────────────────────────────────── */
.card-contact {
  position: relative; overflow: hidden;
  max-width: 760px; margin: 0 auto;
  border-radius: var(--r-card); padding: 2.75rem;
  background: var(--grad-fill); color: var(--on-bright);
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
  box-shadow: 0 24px 60px rgba(29,78,124,.24);
}
.card-contact h2 {
  font-family: var(--display); font-size: 2.1rem;
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
}
.cc-rule { width: 46px; height: 3px; background: rgba(10,20,30,.5); margin: .9rem 0 .8rem; }
.cc-role {
  font-family: var(--mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(10,20,30,.74);
}
.cc-note { margin: 1.15rem 0 1.5rem; font-size: .95rem; line-height: 1.7; color: rgba(10,20,30,.88); }
.cc-note strong { font-weight: 700; }
.cc-btns { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.cc-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .68rem 1.15rem; border-radius: var(--r-btn);
  border: 1.5px solid rgba(10,20,30,.38); color: var(--on-bright);
  text-decoration: none; font-size: .88rem; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.cc-btn:hover { background: rgba(10,20,30,.10); border-color: rgba(10,20,30,.62); }
.cc-btn svg { width: 15px; height: 15px; fill: currentColor; }
.cc-side {
  border-left: 2px dashed rgba(10,20,30,.28);
  padding-left: 2.5rem; text-align: center;
}
.cc-mark {
  display: grid; place-items: center;
  width: 124px; height: 124px; border-radius: var(--r-card);
  background: #fff; margin: 0 auto .8rem; padding: 9px;
  box-shadow: 0 6px 18px rgba(10,20,30,.18);
  font-family: var(--display); font-weight: 700; font-size: 2.6rem;
  letter-spacing: -.03em; color: var(--on-bright);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cc-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cc-mark:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10,20,30,.26); }
.cc-side small {
  display: block; font-family: var(--mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(10,20,30,.72);
}
.cc-loc { margin-top: .35rem; color: rgba(10,20,30,.55); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem var(--pad);
  text-align: center;
}
footer p { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── PROJECT PAGES ───────────────────────────────────────── */
.p-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 5.5rem) 0 4.5rem;
}
.p-hero::before {
  content: ''; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(ellipse 50% 50% at 30% 20%, rgba(111,168,220,.28), transparent 65%);
  pointer-events: none;
}
.p-hero .wrap { position: relative; z-index: 1; }
.back-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  margin-bottom: 2.25rem; transition: color .2s, gap .2s;
}
.back-link:hover { color: var(--text); gap: .75rem; }
.p-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.06;
  letter-spacing: -.025em;
  margin: .7rem 0 1.1rem;
}
.p-sub { font-size: 1.08rem; color: var(--dim); line-height: 1.7; max-width: 640px; }
.p-meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.p-meta div span {
  display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .35rem;
}
.p-meta div b { font-weight: 600; font-size: .9rem; color: var(--text); }

.prose { max-width: 760px; }
.prose-label {
  font-family: var(--mono);
  font-size: .64rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem;
}
.prose-label::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.prose h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.5rem; margin-bottom: .9rem; letter-spacing: -.02em;
}
.prose h2 + p { margin-top: 0; }
.prose p { color: var(--dim); line-height: 1.9; font-size: .98rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: none; display: grid; gap: .7rem; margin-top: 1rem; }
.prose ul + p { margin-top: 1.35rem; }
.prose li { position: relative; padding-left: 1.25rem; color: var(--dim); line-height: 1.8; font-size: .95rem; }
.prose li::before {
  content: ''; position: absolute; left: 0; top: .78em;
  width: 8px; height: 2px; background: var(--accent);
}
/* outcome bullets get a check-rule instead */
.prose ul.wins li::before { background: var(--gold); }
.prose + .prose { margin-top: 3.25rem; }
.prose strong { color: var(--text); font-weight: 600; }

.metric-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.metric {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 1.6rem;
}
.metric b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 2rem; line-height: 1; margin-bottom: .5rem; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); line-height: 1.6;
}

/* ── PROJECT SHOTS ───────────────────────────────────────── */
.shots { margin: 3.25rem 0; }
.shots-frame {
  display: block;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 1.1rem;
  transition: border-color .35s ease, transform .35s ease;
}
a.shots-frame:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.shots-scroll { overflow-x: auto; border-radius: var(--r-sm); }
.shots-frame img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.shots figcaption {
  margin-top: .95rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  color: var(--muted); line-height: 1.8; max-width: 760px;
}

.next-nav {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2.5rem 0 0; border-top: 1px solid var(--rule);
}
.next-nav span {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .35rem;
}
.next-nav a.next-link {
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em;
}
.next-nav a.next-link:hover { color: var(--accent); }

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portrait-wrap { max-width: 380px; }
  .work-grid, .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 2rem; }
  .card-contact { grid-template-columns: 1fr; }
  .cc-side { border-left: none; border-top: 2px dashed rgba(10,20,30,.28); padding-left: 0; padding-top: 2rem; }
}
@media (max-width: 640px) {
  :root { --pad: 1.25rem; }
  .section { padding: 4.5rem 0; }
  .shots-frame img { width: auto; height: 320px; max-width: none; }
  .hero { min-height: 88vh; }
  .hero-meta { font-size: .6rem; letter-spacing: .1em; padding: 0 1rem; }
  .exp { grid-template-columns: 1fr; gap: .5rem; }
  .exp-date { color: var(--accent); padding-top: 0; }
  .exp-tag { justify-self: start; }
  .card-contact { padding: 2rem 1.5rem; }
  .p-meta { gap: 1.5rem 2rem; }
  .stats-row { gap: 1.75rem; }
  /* the full name is long — tighten it so the icon row always fits */
  .monogram { font-size: .78rem; letter-spacing: .06em; gap: .35rem; }
  .monogram::before { width: 7px; height: 7px; }
  .nav-right { gap: .15rem; }
  .icon-btn, .burger { width: 30px; height: 30px; }
}
