/* =========================================================
   Bala Ramkumar — portfolio
   Visual language: live-dashboard / HUD. Inter at heavy weights,
   tight tracking, uppercase micro-labels, pastel stat tiles,
   diagonal clip-path wipes, springy expo-out motion.
   ========================================================= */

:root {
  --bg: #f3f3f0;
  --panel: #ffffff;
  --ink: #161616;
  --ink-2: rgba(22, 22, 22, 0.55);
  --line: rgba(22, 22, 22, 0.14);
  --inverse: #f7f7f5;

  --purple: #c288f7;
  --deep: #2b0037;
  --orange: #f55706;
  --blue: #4f6be0;
  --pink: #f39bd0;
  --green-ink: #1f6b45;

  --t-yellow: #f6e8a6;
  --t-purple: #dcc0fb;
  --t-green: #cde9d6;
  --t-peach: #fcd5c0;
  --t-blue: #cfd8ff;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --ease-spring: cubic-bezier(.3, 1.6, .5, 1);
  --ease-wipe: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --panel: #151515; --ink: #f7f7f5; --ink-2: rgba(247, 247, 245, 0.55);
    --line: rgba(247, 247, 245, 0.16); --inverse: #111;
    --t-yellow: #3a3418; --t-purple: #33204a; --t-green: #18342a; --t-peach: #42230f; --t-blue: #1c2550;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --panel: #151515; --ink: #f7f7f5; --ink-2: rgba(247, 247, 245, 0.55);
  --line: rgba(247, 247, 245, 0.16); --inverse: #111;
  --t-yellow: #3a3418; --t-purple: #33204a; --t-green: #18342a; --t-peach: #42230f; --t-blue: #1c2550;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease-out), color .5s var(--ease-out);
  overflow-x: clip;
}
body.intro-on { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--ink-2); }
.label {
  font-size: 12.5px; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; margin: 0;
}

/* ---------- reveal (staggered expo-out slide) ---------- */
[data-reveal] {
  opacity: 0; translate: 0 22px;
  transition: opacity .5s var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s);
}
[data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: 4px 7px 3px; border-radius: 3px; line-height: 1; white-space: nowrap; color: #fff;
}
.p-orange { background: var(--orange); }
.p-purple { background: var(--purple); color: var(--deep); }
.p-ink { background: var(--ink); color: var(--bg); }
.p-green { background: #2fae6a; }
.p-yellow { background: #f4d23a; color: #2b2200; }
.p-blue { background: var(--blue); }
.p-gold { background: linear-gradient(135deg, #f7c948, #f59e0b); color: #2b1a00; }

/* ---------- diagonal clip-path wipe (hover) ---------- */
.wipe { position: relative; isolation: isolate; }
.wipe::before, .wipe::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  clip-path: polygon(0 0, 0 -25%, 0 135%, 0 135%);
  transition: clip-path .28s var(--ease-in);
}
.wipe::before { background: var(--wipe-bg, var(--deep)); z-index: -1; }
.wipe::after {
  content: attr(data-label); color: var(--wipe-ink, var(--purple));
  display: flex; align-items: center; justify-content: inherit; padding: inherit; font: inherit; letter-spacing: inherit;
  z-index: 1;
}
@media (hover: hover) {
  .wipe:hover::before, .wipe:hover::after,
  .cta:hover .wipe::before, .cta:hover .wipe::after,
  .card:hover .btn.wipe::before, .card:hover .btn.wipe::after {
    clip-path: polygon(0 0, 100% -25%, 100% 135%, 0 135%);
    transition: clip-path .6s var(--ease-out);
  }
}

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #0a0a0a;
  display: grid; place-items: center;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path .9s var(--ease-wipe);
}
.intro.out { clip-path: circle(0% at 50% 50%); }
.intro-svg { width: min(78vmin, 620px); overflow: visible; }
.intro-ring { transform-origin: 300px 300px; animation: ring-in 1.6s var(--ease-out) both, ring-spin 14s linear 1.6s infinite; filter: url(#wobble); }
.intro-solid, .intro-outline { font-family: Inter, sans-serif; font-weight: 900; font-size: 60px; letter-spacing: -.02em; }
.intro-solid { fill: #f7f7f5; }
.intro-outline { fill: none; stroke: #f7f7f5; stroke-width: 2.2; font-size: 64px; letter-spacing: .04em; }
.intro-globe { transform-origin: 300px 300px; animation: globe-in .9s var(--ease-spring) .15s both; }
.g-fill { fill: #b98af0; }
.g-edge { fill: none; stroke: #2b0037; stroke-width: 4; }
.g-lines * { fill: none; stroke: #2b0037; stroke-width: 2; }
.g-mer { transform-origin: 300px 300px; animation: ls-spin 4.8s cubic-bezier(.37, 0, .63, 1) infinite; }
.g-mer2 { animation-delay: -2.4s; }
@keyframes ls-spin { 0% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes ring-in { 0% { opacity: 0; transform: rotate(-80deg) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes globe-in { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px 7px 7px 2px;
  background: var(--ink); color: var(--bg); font-weight: 900; font-size: 13px; letter-spacing: -.04em;
  transition: transform .4s var(--ease-spring), background .3s;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); background: var(--purple); color: var(--deep); }
.brand-name { font-weight: 900; font-size: 22px; letter-spacing: -.045em; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #ff4f3d; position: relative; }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff4f3d; animation: ping 1.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.clock { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; display: flex; justify-content: center;
  --wipe-bg: var(--ink); --wipe-ink: var(--bg);
}
.theme-btn {
  background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; border-radius: 50%;
  transition: transform .5s var(--ease-spring);
}
.theme-btn:hover { transform: rotate(180deg); }

/* ---------- dashboard hero ---------- */
.dash {
  display: grid; grid-template-columns: minmax(250px, 1fr) minmax(320px, 1.5fr) minmax(250px, 1fr);
  gap: clamp(16px, 3vw, 48px); padding: 24px var(--gutter) 40px; align-items: start;
  min-height: calc(100vh - 140px);
}
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-name {
  margin: 0; font-weight: 900; font-size: clamp(44px, 5.2vw, 80px); line-height: .88; letter-spacing: -.055em;
  filter: url(#wobble);
}
.col-left .label { margin-top: -6px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile {
  position: relative; padding: 9px 10px 8px; min-height: 64px;
  clip-path: polygon(0 12%, 6% 0, 94% 0, 100% 12%, 100% 88%, 94% 100%, 6% 100%, 0 88%);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease-spring);
}
.tile:hover { transform: translateY(-3px) rotate(-1deg); }
.tile b { font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tile small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.tile-ico { position: absolute; right: 9px; top: 7px; font-size: 11px; opacity: .7; }
.t-yellow { background: var(--t-yellow); } .t-yellow small { color: #a07c00; }
.t-purple { background: var(--t-purple); } .t-purple small { color: #7a3fc4; }
.t-green  { background: var(--t-green); }  .t-green small { color: var(--green-ink); }
.t-peach  { background: var(--t-peach); }  .t-peach small { color: var(--orange); }
:root[data-theme="dark"] .tile small { filter: brightness(1.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile small { filter: brightness(1.7); } }

.mini-ticker { background: #0d0d0d; color: #f7f7f5; overflow: hidden; border-radius: 3px; padding: 6px 0; }
.mini-track { display: flex; gap: 14px; width: max-content; animation: marquee 16s linear infinite; align-items: center; font-size: 11px; font-weight: 600; padding-left: 10px; }
.mini-track b { font-weight: 900; }
@keyframes marquee { to { transform: translateX(-50%); } }

.block-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 10px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.block-head .muted { text-transform: none; letter-spacing: .02em; font-weight: 600; }

.dotgrid { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; }
.dotgrid i { aspect-ratio: 1; border-radius: 50%; background: var(--line); transition: background .4s, transform .4s var(--ease-spring); }
.dotgrid i.on { background: var(--orange); }
.dotgrid i.hi { background: var(--purple); transform: scale(1.35); }

.feed { display: flex; align-items: center; gap: 8px; background: #0d0d0d; color: #f7f7f5; padding: 6px; border-radius: 4px; font-size: 10px; font-weight: 600; overflow: hidden; }
.feed .muted { color: rgba(247,247,245,.55); margin-left: auto; }
.feed > * { transition: opacity .25s, translate .5s var(--ease-out); }
.feed.swap > * { opacity: 0; translate: 0 -8px; }

/* center: sphere */
.col-center { align-items: center; gap: 0; }
.geo { width: min(100%, 620px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.geo-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center; }
.geo-head b { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.geo-head .coord { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.globe-wrap { position: relative; width: 100%; aspect-ratio: 1 / .86; }
.globe-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 24px 32px rgba(0,0,0,.22)); }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.globe-tip {
  position: absolute; z-index: 3; width: 220px; padding: 10px 12px; border-radius: 8px;
  background: #0d0d0d; color: #f7f7f5; border: 1.5px solid rgba(255,255,255,.14);
  display: grid; gap: 4px; pointer-events: none; font-size: 12px;
  animation: tip-in .3s var(--ease-spring);
}
.globe-tip[hidden] { display: none; }
.globe-tip .pill { justify-self: start; }
.globe-tip b { font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.globe-tip .tip-yr { font-weight: 700; color: rgba(247,247,245,.6); font-size: 11px; }
.globe-tip p { margin: 2px 0 0; line-height: 1.4; color: rgba(247,247,245,.85); }
@keyframes tip-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.geo-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.read {
  padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  clip-path: polygon(0 12%, 6% 0, 94% 0, 100% 12%, 100% 88%, 94% 100%, 6% 100%, 0 88%);
}
.read small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; opacity: .75; }
.read b { font-size: clamp(16px, 1.6vw, 22px); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.r-purple { background: var(--t-purple); } .r-yellow { background: var(--t-yellow); } .r-green { background: var(--t-green); }
.geo-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.chipbtn {
  font: inherit; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  display: flex; justify-content: center;
  --wipe-bg: var(--ink); --wipe-ink: var(--bg);
  transition: translate .4s var(--ease-spring);
}
.chipbtn:hover { translate: 0 -2px; }
.chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chipbtn[aria-pressed="true"]::after { color: var(--purple); }
.read > * { transition: opacity .16s, translate .3s var(--ease-out); }
.read.flip > * { opacity: 0; translate: 0 -6px; }
.geo-steps { display: flex; align-items: center; width: 100%; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.geo-steps[hidden] { display: none; }
.step {
  flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--ink);
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px;
  transition: background .3s, border-color .3s, transform .4s var(--ease-spring);
}
.step i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--line); font-size: 10px; transition: background .3s; }
.step:hover { transform: translateY(-2px); }
.step.done i { background: var(--c); color: #161616; }
.step.on { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.06); }
.step.on i { background: var(--c); color: #161616; }
.step-line { flex: 1 1 8px; min-width: 6px; height: 2px; background: var(--line); }
.geo-note { margin: 0; font-size: 11px; font-weight: 600; text-align: center; }
.col-center .cta { margin-top: 22px; }

/* chunky CTA: face lifts, shadow plate stays */
.cta { position: relative; display: inline-block; margin-top: -10px; }
.cta-shadow { position: absolute; inset: 0; translate: 0 6px; border-radius: 999px; background: var(--deep); }
.cta-face {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 30px 14px 14px; border-radius: 999px; border: 3px solid var(--deep);
  background: #e9d8ff; color: var(--deep);
  font-weight: 900; font-size: 20px; letter-spacing: -.02em; text-transform: uppercase;
  transition: translate .45s var(--ease-spring);
  --wipe-bg: var(--deep); --wipe-ink: var(--purple);
}
.cta-face.wipe::after { padding-left: 64px; justify-content: flex-start; }
.cta:hover .cta-face { translate: 0 -4px; }
.cta:active .cta-face { translate: 0 3px; transition-duration: .1s; }
.cta-disc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--purple); color: var(--deep); border: 3px solid var(--deep); position: relative; z-index: 2; }
.cta-disc svg { width: 14px; }
.cta.small .cta-face { padding: 12px 24px; font-size: 16px; }
.cta.small .cta-face.wipe::after { padding: 12px 24px; justify-content: center; }
.cta.alt .cta-face { background: var(--panel); color: var(--ink); border-color: var(--ink); --wipe-bg: var(--ink); --wipe-ink: var(--bg); }
.cta.alt .cta-shadow { background: var(--ink); }
:root[data-theme="dark"] .cta-shadow:not(.cta.alt .cta-shadow) { background: #7a45b8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-shadow:not(.cta.alt .cta-shadow) { background: #7a45b8; } }

/* right col */
.big-stat b { font-size: clamp(44px, 4.6vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .9; display: block; }
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ranks li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.ranks i { font-style: normal; color: var(--ink-2); }
.ranks span {
  position: relative; padding: 3px 8px; border-radius: 999px; z-index: 0; color: var(--ink);
}
.ranks span::before {
  content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c); border-radius: 999px; z-index: -1;
  transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out) var(--d, .2s);
}
.ranks.in-view span::before { transform: scaleX(1); }
.ranks span { transition: color .4s .5s; }
.ranks.in-view li:nth-child(1) span { color: #fff; }
.ranks.in-view li:nth-child(3) span { color: var(--bg); }
.ranks b { font-weight: 700; font-variant-numeric: tabular-nums; }

.dots-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dots-list li { display: grid; grid-template-columns: 1fr auto 34px; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; }
.dots-list b { text-align: right; font-weight: 700; }
.dotbar { display: block; width: 80px; height: 6px;
  background: radial-gradient(circle, var(--purple) 2.4px, transparent 2.6px) 0 0 / 8px 6px repeat-x;
  -webkit-mask: linear-gradient(90deg, #000 calc(var(--n) * 10%), rgba(0,0,0,.25) 0); mask: linear-gradient(90deg, #000 calc(var(--n) * 10%), rgba(0,0,0,.25) 0);
}
.stack-strip { display: flex; gap: 4px; align-items: stretch; }
.sq { display: grid; place-items: center; min-width: 38px; height: 34px; background: var(--ink); color: var(--bg); font-weight: 900; font-size: 11px; border-radius: 3px; transition: transform .35s var(--ease-spring); }
.sq:hover { transform: translateY(-4px) rotate(-4deg); }
.sq-o { background: var(--orange); color: #fff; } .sq-p { background: var(--purple); color: var(--deep); } .sq-b { background: var(--blue); color: #fff; }
.strip-num { margin-left: auto; background: #0d0d0d; color: #f7f7f5; padding: 4px 10px; border-radius: 3px; font-size: 9px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.strip-num b { font-size: 20px; color: var(--orange); letter-spacing: -.04em; }

/* ---------- odometer digits ---------- */
.odo { display: inline-flex; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.odo .dg { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
.odo .dg-col { display: flex; flex-direction: column; transition: transform 1.6s var(--ease-out) var(--dd, 0s); }
.odo .dg-col span { height: 1em; line-height: 1; }

/* ---------- big ticker ---------- */
.ticker { background: #0d0d0d; color: #f7f7f5; overflow: hidden; padding: 14px 0; rotate: -1.2deg; margin: 10px -20px 30px; }
.ticker-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span { font-weight: 900; font-size: clamp(22px, 3vw, 40px); letter-spacing: -.04em; text-transform: uppercase; }
.ticker-track .pill { font-size: 13px; padding: 7px 10px 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 7vw, 96px) var(--gutter); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 28px; }
.sec-title { margin: 0; font-weight: 900; font-size: clamp(48px, 9vw, 140px); letter-spacing: -.06em; line-height: .82; text-transform: uppercase; filter: url(#wobble); }
.sec-count { font-weight: 800; font-size: clamp(18px, 2vw, 28px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.card {
  --accent: var(--purple); --tint: var(--t-purple);
  position: relative; background: var(--panel); border: 2px solid var(--ink); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 0 var(--ink);
  transition: translate .5s var(--ease-spring), box-shadow .5s var(--ease-spring), opacity .5s var(--d, 0s);
}
.card.in { transition: translate .5s var(--ease-spring), box-shadow .5s var(--ease-spring), opacity .5s; }
.card:hover { translate: -4px -6px; box-shadow: 6px 8px 0 var(--ink); }
.card::before { /* accent corner that wipes across on hover */
  content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--tint); z-index: 0;
  clip-path: polygon(0 0, 22% 0, 0 30%, 0 30%);
  transition: clip-path .7s var(--ease-out);
}
.card:hover::before { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 70%); }
.card > * { position: relative; z-index: 1; }
.c-orange { --accent: var(--orange); --tint: var(--t-peach); }
.c-blue { --accent: var(--blue); --tint: var(--t-blue); }
.c-green { --accent: #2fae6a; --tint: var(--t-green); }
.c-yellow { --accent: #f4d23a; --tint: var(--t-yellow); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.card h3 { margin: 0; font-weight: 900; font-size: 28px; letter-spacing: -.045em; line-height: .95; }
.card-sub { margin: -4px 0 0; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--accent); letter-spacing: .02em; }
.c-yellow .card-sub { color: #b08d00; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.card-img { margin: -18px -18px 6px; border-radius: 12px 12px 0 0; overflow: hidden; border-bottom: 2px solid var(--ink); aspect-ratio: 16 / 8.5; background: var(--tint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.06); }
.card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.card-stat { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); border-radius: 6px; padding: 8px 10px; width: fit-content; }
.card-stat b { font-size: 26px; font-weight: 900; letter-spacing: -.05em; color: var(--accent); line-height: 1; }
.card-stat span { font-size: 9.5px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.chips span { font-size: 11px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 9px; transition: background .25s, color .25s, border-color .25s; }
.chips span:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips.big span { font-size: 15px; padding: 8px 14px; border-width: 2px; }
.btn {
  align-self: flex-start; display: flex; justify-content: center; font-size: 13px; font-weight: 800; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink);
  --wipe-bg: var(--ink); --wipe-ink: var(--accent);
}

/* experience */
.xp { list-style: none; margin: 0; padding: 0; }
.xp li {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line); position: relative;
}
.xp li::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.xp li:hover::before { transform: scaleX(1); }
.xp > li > i { font-style: normal; font-weight: 900; font-size: 30px; letter-spacing: -.05em; color: var(--ink-2); transition: color .3s, transform .4s var(--ease-spring); }
.xp li:hover > i { color: var(--orange); transform: scale(1.2) rotate(-6deg); }
.xp h3 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.045em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xp p { margin: 0 0 6px; max-width: 70ch; line-height: 1.5; font-size: 15px; }
.xp .muted { font-size: 13px; font-weight: 600; }
.when { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink-2); padding-top: 8px; font-variant-numeric: tabular-nums; }

.edu {
  margin-top: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--t-yellow); border-radius: 14px; padding: 24px;
  clip-path: polygon(0 4%, 2% 0, 98% 0, 100% 5%, 100% 95%, 98% 100%, 2% 100%, 0 96%);
}
.edu h3 { margin: 6px 0; font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -.05em; }
.edu p { margin: 0 0 4px; font-weight: 600; }
.edu-r { text-align: right; }
.edu-r b { font-size: clamp(54px, 8vw, 110px); font-weight: 900; letter-spacing: -.06em; line-height: .85; display: block; color: var(--orange); }

/* awards */
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.awards li {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px;
  transition: transform .45s var(--ease-spring), border-color .3s, opacity .5s var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s);
}
.awards li:hover { transform: translateX(8px); border-color: var(--ink); }
.awards .pill { justify-self: start; font-size: 11px; }
.aw { font-weight: 700; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: -.02em; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.skill-col .label { display: block; margin-bottom: 12px; color: var(--ink-2); }

/* contact */
.contact { text-align: center; padding-bottom: clamp(60px, 10vw, 140px); }
.contact-title { margin: 0 0 36px; font-weight: 900; font-size: clamp(52px, 11vw, 170px); letter-spacing: -.065em; line-height: .84; text-transform: uppercase; filter: url(#wobble); }
.contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.foot { display: flex; justify-content: space-between; gap: 10px; padding: 20px var(--gutter) 30px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .col-center { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 720px) {
  .dash { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .col-center { order: 0; }
  .col-left { order: -1; }
  .nav, .clock { display: none; }
  .brand-name { font-size: 18px; }
  .xp li { grid-template-columns: 34px 1fr; }
  .xp .when { grid-column: 2; padding-top: 0; }
  .awards li { grid-template-columns: 1fr; gap: 6px; }
  .edu-r { text-align: left; }
  .cta-face { font-size: 17px; }
  .read b { white-space: normal; font-size: 15px; line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; translate: none; }
}

/* ---------- about ---------- */
.about { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); }
.about-lede { margin: 10px 0 18px; max-width: 22ch; font-weight: 900; font-size: clamp(34px, 5.4vw, 80px); line-height: .95; letter-spacing: -.05em; }
.about-lede em { font-style: normal; background: var(--purple); color: var(--deep); padding: 0 .12em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.about-body { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; font-weight: 500; }

/* ---------- experience extras ---------- */
.sub-head { margin: 40px 0 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.sub-head .label { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.03em; font-weight: 900; }
.vol { list-style: none; margin: 0; padding: 0; }
.vol li { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vol h4 { margin: 0 0 4px; font-size: 18px; font-weight: 900; letter-spacing: -.03em; }
.vol h4 .muted { font-weight: 700; letter-spacing: -.01em; }
.vol p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.vol .when { padding-top: 2px; }
.sub-head + .edu { margin-top: 16px; }
.edu .chips { margin-top: 12px; }
.edu .chips span { border-color: rgba(22,22,22,.25); }
.schools { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.school {
  background: var(--panel); border: 2px solid var(--ink); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px;
  transition: translate .5s var(--ease-spring), box-shadow .5s var(--ease-spring), opacity .5s var(--d, 0s);
}
.school:hover { translate: -3px -4px; box-shadow: 5px 6px 0 var(--ink); }
.school h4 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.school p { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.school .when { padding: 0; }
.school .chips { margin-top: 6px; }
@media (max-width: 720px) {
  .vol li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- interests (off the clock) ---------- */
.interests { margin-top: clamp(28px, 4vw, 48px); }
.interests .sub-head { margin-top: 0; }
.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.int {
  position: relative; overflow: hidden; isolation: isolate; cursor: default;
  background: var(--tc); border-radius: 10px; padding: 18px 18px 20px; min-height: 230px;
  display: flex; flex-direction: column; gap: 8px; outline: none;
  transition: transform .5s var(--ease-spring);
}
.int-k { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }
.int-t { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; letter-spacing: -.05em; line-height: .95; max-width: 14ch; }
.int p { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 500; max-width: 34ch; }
.int strong { font-weight: 900; }
.int-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.t-panthers { background: #0085ca; }
.t-city { background: #6cabdd; color: #1c2c5b; }
.t-celtics { background: #007a33; }
.t-sox { background: #bd3039; }

/* corner art */
.int-art { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; z-index: -1; opacity: .55; }
.int-orbit { fill: none; stroke: var(--ink); stroke-width: 2; animation: int-spin 9s linear infinite; }
.int-bars rect { fill: var(--ink); transform-origin: 50% 100%; transform-box: fill-box; animation: int-bar 1.8s var(--ease-out) infinite alternate; }
.int-bars rect:nth-child(2) { animation-delay: -.4s; } .int-bars rect:nth-child(3) { animation-delay: -.9s; } .int-bars rect:nth-child(4) { animation-delay: -1.3s; }
.int-eq { display: flex; align-items: flex-end; gap: 4px; }
.int-eq i { flex: 1; height: 100%; background: var(--ink); border-radius: 2px; transform-origin: bottom; animation: int-eq 1s ease-in-out infinite alternate; }
.int-eq i:nth-child(2) { animation-delay: -.3s; } .int-eq i:nth-child(3) { animation-delay: -.6s; } .int-eq i:nth-child(4) { animation-delay: -.15s; } .int-eq i:nth-child(5) { animation-delay: -.8s; }
@keyframes int-spin { to { transform: rotate(360deg); } }
@keyframes int-bar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes int-eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* diagonal wipe back face */
.int-back {
  position: absolute; inset: 0; z-index: 2; background: var(--deep); color: var(--purple);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px 18px 20px;
  clip-path: polygon(0 0, 0 -25%, 0 135%, 0 135%);
  transition: clip-path .28s var(--ease-in);
}
.int-back b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; letter-spacing: -.05em; line-height: .95; color: #fff; }
.int-back span { font-size: 14.5px; line-height: 1.45; font-weight: 600; max-width: 32ch; }
.int-link { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--deep); background: var(--purple); padding: 6px 9px 5px; border-radius: 4px; text-decoration: none; }
.int.flip .int-back, .int:focus-visible .int-back { clip-path: polygon(0 0, 100% -25%, 100% 135%, 0 135%); transition: clip-path .6s var(--ease-out); }
@media (hover: hover) {
  .int:hover { transform: translateY(-4px) rotate(-.6deg); }
  .int:hover .int-back { clip-path: polygon(0 0, 100% -25%, 100% 135%, 0 135%); transition: clip-path .6s var(--ease-out); }
}
@media (max-width: 860px) { .int-grid { grid-template-columns: minmax(0, 1fr); } .int { min-height: 0; } }
.t-wish { background: #f39bd0; color: #3a0a28; }

/* ---------- song + quote of the day ---------- */
.sotd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0 !important; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: var(--bg); width: fit-content; max-width: 100%; }
.sotd small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--orange); }
.sotd b { font-size: 15px; font-weight: 900; letter-spacing: -.03em; }
.sotd span { font-size: 13px; font-weight: 600; opacity: .7; }
.foot { flex-wrap: wrap; }
.qotd { flex-basis: 100%; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.qotd:empty { display: none; }
.qotd small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.qotd q { font-weight: 800; letter-spacing: -.02em; quotes: "“" "”"; }
.qotd cite { font-style: normal; font-weight: 600; color: var(--ink-2); }
.qotd cite::before { content: "— "; }
