:root {
  /* ── Page surfaces ─────────────────────────────────────── */
  --bg:        #20202A;   /* main dark, warm & lightish */
  --bg-soft:   #17171F;   /* darker section variation */
  --bg-card:   #FFFFFF;   /* white card surface */
  --dark:      #0B0B11;   /* deepest dark — contact, footer, posters */
  --dark-2:    #15151B;

  /* ── Text on dark surfaces ─────────────────────────────── */
  --text:       #EDEAE2;
  --text-mid:   #B5B2A8;
  --text-dim:   #8A8780;
  --text-faint: #5A5852;

  /* ── Text inside white cards ───────────────────────────── */
  --ink:    #15151A;
  --ink-2:  #3A3A44;
  --ink-3:  #6B6B78;
  --ink-4:  #9F9FAA;

  /* ── Accents ───────────────────────────────────────────── */
  --yellow:      #F5BC2D;
  --yellow-2:    #FFD66B;
  --yellow-soft: #FAE9B5;
  --blue-soft:   #DCE4FF;
  --blue:        #2A4FCF;

  /* ── Lines ─────────────────────────────────────────────── */
  --rule:      rgba(237, 234, 226, 0.10);
  --rule-soft: rgba(237, 234, 226, 0.05);
  --rule-card: #E5E2DA;

  /* ── Typography ────────────────────────────────────────── */
  --display: "Bricolage Grotesque", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --sans:    "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --pad: 56px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--dark); }

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--text); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(237, 234, 226, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--rule);
}

/* ═════════════════════════════════════════════════════════════
   HERO — split-screen with diagonal cut
   ═════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-dark {
  position: absolute;
  inset: 0;
  background: var(--dark);
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
  z-index: 0;
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  gap: 24px;
}

.brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.brand:hover { transform: rotate(-6deg); color: var(--yellow); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15.5px;
}
.topbar-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(237, 234, 226, 0.72);
  transition: color 0.3s var(--ease);
}
.topbar-nav a:not(.topbar-cta):hover { color: var(--text); }
.topbar-nav a:not(.topbar-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.topbar-nav a:not(.topbar-cta):hover::after { transform: scaleX(1); }

.topbar-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  padding: 22px 56px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.005em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.topbar-cta:hover {
  background: var(--yellow-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(245, 188, 45, 0.6);
}

/* Hero grid */
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  min-height: calc(100vh - 100px);
}

.hero-content {
  padding-right: 32px;
  margin-left: clamp(-80px, -4vw, -20px);
}
.hero-greet {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-mid);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.hero-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 8.5vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 96;
}
.hero-dot {
  color: var(--yellow);
  -webkit-text-stroke: 0;
}
.hero-role {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--text);
  margin: 0 0 48px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.hero-role-em {
  color: var(--yellow);
  font-weight: 700;
}
.hero-slash {
  color: var(--yellow);
  font-weight: 700;
  margin: 0 6px;
  font-size: 0.9em;
  vertical-align: -0.04em;
}

.hero-socials {
  position: relative;
  display: flex;
  gap: 14px;
}

.hero-resume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px 0 14px;
  background: var(--yellow);
  color: #ffffff;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 22px -12px rgba(245, 188, 45, 0.5);
}
.hero-resume-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
}
.hero-resume:hover {
  background: #E5A91A;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(245, 188, 45, 0.65);
}
.hero-resume:hover .hero-resume-icon { background: rgba(0, 0, 0, 0.28); }

.social-btn {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.social-btn:hover,
.social.is-active .social-btn {
  background: var(--yellow);
  color: var(--dark);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -10px rgba(245, 188, 45, 0.55);
}

/* One shared popup that slides under the active icon */
.social-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 6px 16px 6px 6px;
  border-radius: 12px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--pop-x, 0), 6px, 0);
  transition:
    transform 0.4s var(--ease),
    opacity 0.25s var(--ease);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
.social-pop.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(var(--pop-x, 0), 0, 0);
}
.social-pop-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 4px 4px 0;
  border-radius: 6px;
  transition: color 0.25s var(--ease);
}
.social-pop-link:hover .social-pop-text {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.social-pop-text {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.social-pop-copy {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.social-pop-copy:hover {
  background: var(--yellow-2);
  transform: scale(1.04);
}
.social-pop-copy.copied {
  background: var(--ink);
  color: var(--yellow);
}

/* Portrait side */
.hero-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: clamp(20px, 4vw, 70px);
}

.portrait-circle {
  position: absolute;
  right: -80px;
  top: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 30px 80px -30px rgba(245, 188, 45, 0.45);
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--dark-2);
  border-radius: 24px;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.portrait-yellow {
  position: absolute;
  inset: 28% 0 0 0;
  background: var(--yellow);
  z-index: 1;
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 2;
}

/* Stat badges — sit in horizontal rows below the hero socials */
.hero-stats {
  margin-top: 84px;
}
.badge-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.hero-stats .badge-row:first-child {
  margin-top: 0;
}
.badge-row + .badge-row {
  margin-top: 28px;
}
.badge {
  position: relative;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
  cursor: default;
}
/* Geometry indicator on top of each badge — a small yellow tab
   that expands on hover and glows. */
.badge::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 14px;
  width: 18px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px 4px 0 0;
  transition:
    width 0.55s var(--ease),
    height 0.45s var(--ease),
    top 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.3s var(--ease);
}
/* Second taller "pin" element that rises out of the tab on hover */
.badge::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 21px;
  width: 4px;
  height: 0;
  background: var(--yellow);
  border-radius: 999px;
  opacity: 0;
  transition:
    height 0.45s var(--ease) 0.05s,
    top 0.45s var(--ease) 0.05s,
    opacity 0.3s var(--ease);
}
.badge:hover {
  /* Scale only (no translateY) so the card grows outward from its center
     without sliding under/away from the cursor. Cursor stays inside the
     transformed bounds, which kills the "vibrate near the edge" loop. */
  transform: scale(1.05);
  z-index: 4;
  box-shadow:
    0 32px 60px -20px rgba(0, 0, 0, 0.75),
    0 14px 30px -14px rgba(245, 188, 45, 0.5),
    0 0 0 1px rgba(245, 188, 45, 0.35);
}
.badge:hover::before {
  width: 55%;
  height: 6px;
  top: -10px;
  background: var(--yellow-2);
  box-shadow: 0 -4px 14px -2px rgba(245, 188, 45, 0.7);
}
.badge:hover::after {
  height: 10px;
  top: -22px;
  opacity: 1;
}
.badge-stat {
  flex: 1;
  min-width: 0;
}
.badge-stat .stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--yellow);
  line-height: 1;
  white-space: nowrap;
}
.badge-stat .stat-num::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.badge-stat .stat-lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 7px;
  white-space: nowrap;
}

/* Career snapshot card under the portrait */
.snapshot-card {
  position: relative;
  margin-top: 25px;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 14px;
  padding: 18px 20px 20px;
  box-shadow:
    0 22px 45px -22px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 2;
}
.snapshot-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 32px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px 4px 0 0;
}
.snapshot-yoe {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.025em;
  color: var(--yellow);
  line-height: 1;
}
.snapshot-yoe::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 2px;
  margin-right: 9px;
}
.snapshot-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.snapshot-val {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.snapshot-sep {
  color: var(--yellow);
  font-weight: 700;
  margin: 0 4px;
}

.snapshot-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.snapshot-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 99px;
  height: 43px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.snapshot-co {
  background: #f4f1ea;
  overflow: hidden;
  padding: 5px 11px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.snapshot-co-jumbo {
  background: #0E0833;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.snapshot-co:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--yellow);
}
.snapshot-co img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.snapshot-pin {
  background: var(--yellow);
  color: var(--dark);
}
.snapshot-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.snapshot-title:hover {
  border-bottom-color: var(--yellow);
}
.snapshot-online {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  margin-left: -11px;
}
.snapshot-online::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.55);
  animation: snapshotPulse 1.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes snapshotPulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ═════════════════════════════════════════════════════════════
   SECTION SHELL
   ═════════════════════════════════════════════════════════════ */

.section {
  padding: 120px 0;
  position: relative;
}
.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow-rule {
  display: inline-block;
  width: 44px;
  height: 2px;
  background: var(--yellow);
}

.section-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 56px;
  max-width: 22ch;
  font-variation-settings: "opsz" 72;
}
.section-h em {
  font-style: normal;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 1;
}
.section-h em::before {
  content: "";
  position: absolute;
  inset: 0.04em -6px;
  background: var(--yellow);
  z-index: -1;
  transform: skew(-4deg);
  border-radius: 2px;
}

/* ═════════════════════════════════════════════════════════════
   ABOUT
   ═════════════════════════════════════════════════════════════ */

.section-about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid .section-h { margin-bottom: 0; }
.about-body p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
}
.about-body p:last-child { margin-bottom: 0; }
.about-body .lead {
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}
.about-body strong { color: var(--text); }
.about-body em {
  font-style: normal;
  font-weight: 600;
  color: var(--yellow);
}

/* ═════════════════════════════════════════════════════════════
   SKILLS
   ═════════════════════════════════════════════════════════════ */

.section-skills {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (min-width: 921px) {
  .skill-grid > :nth-child(4) { grid-column: 1 / span 1; }
  .skill-grid > :nth-child(5) { grid-column: 2 / span 2; }
}

.skill-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 50px -28px rgba(0, 0, 0, 0.6);
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -28px rgba(0, 0, 0, 0.7),
    0 0 0 2px var(--yellow);
}
.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.skill-card:hover .skill-icon {
  background: var(--yellow);
  color: var(--dark);
  transform: rotate(-6deg);
}
.skill-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.skill-list {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.skill-list .paren {
  color: var(--ink-3);
  font-size: 0.92em;
}

/* ═════════════════════════════════════════════════════════════
   BLOGS
   ═════════════════════════════════════════════════════════════ */

.section-blogs {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 920px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 50px -28px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--yellow);
  transition: height 0.45s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -28px rgba(0, 0, 0, 0.7),
    0 0 0 2px var(--yellow);
}
.blog-card:hover::before { height: 100%; }

.blog-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: inline-block;
}
.blog-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.blog-card-lede {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.blog-card-arrow {
  font-size: 18px;
  color: var(--ink-2);
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.blog-card:hover .blog-card-arrow {
  color: var(--ink);
  transform: translateX(6px);
}

/* ═════════════════════════════════════════════════════════════
   BLOG POST PAGES (dark, matches site theme)
   ═════════════════════════════════════════════════════════════ */

.post-page { background: var(--bg); color: var(--text); }
.post-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(32, 32, 42, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.post-topbar .brand { color: var(--text); }

.post-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--pad) 40px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.25s var(--ease);
}
.post-back:hover { color: var(--yellow); }
.post-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.post-eyebrow .post-eyebrow-tag {
  color: var(--yellow);
  font-weight: 600;
  margin-right: 10px;
}
.post-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 24px;
  font-variation-settings: "opsz" 72;
}
.post-lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 0 30px;
}
.post-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.post-meta span + span::before {
  content: "·";
  margin: 0 12px;
  color: var(--text-faint);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--pad) 60px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-mid);
}
.post-body > * + * { margin-top: 22px; }
.post-body p { margin: 0; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { font-style: italic; color: var(--text); }
.post-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 56px 0 12px;
}
.post-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 36px 0 8px;
}
.post-body h2 + p,
.post-body h3 + p { margin-top: 0; }

.post-body ul,
.post-body ol {
  margin: 0;
  padding-left: 24px;
}
.post-body li { margin-bottom: 10px; }
.post-body li::marker { color: var(--yellow); }

.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(245, 188, 45, 0.10);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--yellow-2);
}
.post-body pre {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--dark);
  color: #E8E2C9;
  padding: 22px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--rule);
}
.post-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-body blockquote {
  border-left: 3px solid var(--yellow);
  padding: 6px 18px;
  margin: 0;
  color: var(--text);
  font-style: italic;
  background: rgba(245, 188, 45, 0.06);
  border-radius: 0 6px 6px 0;
}

.post-body .post-callout {
  display: flex;
  gap: 14px;
  background: rgba(245, 188, 45, 0.08);
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 3px solid var(--yellow);
  font-size: 15.5px;
  color: var(--text);
}
.post-body .post-callout strong { color: var(--text); }

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 8px;
  color: var(--text-mid);
}
.post-table th,
.post-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.post-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
}
.post-table tbody tr:hover { background: rgba(245, 188, 45, 0.05); }
.post-table-wrap { overflow-x: auto; }

.post-diagram {
  margin: 28px calc(-1 * var(--pad));
  padding: 24px clamp(12px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  border: 1px solid var(--rule);
}
.post-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.post-diagram-caption {
  margin: 18px auto 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  max-width: 640px;
}

.post-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--pad) 80px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
}
.post-foot a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.post-foot a:hover { color: var(--yellow); }

/* ═════════════════════════════════════════════════════════════
   WORK
   ═════════════════════════════════════════════════════════════ */

.section-work { background: var(--bg); }

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
.work-card:first-of-type { border-top: none; padding-top: 32px; }

.work-text-right .work-content { order: 2; }
.work-text-right .work-visual  { order: 1; }

.work-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  margin-bottom: 22px;
}
.work-tag-yellow { background: var(--yellow); color: var(--dark); }
.work-tag-blue   { background: var(--blue-soft); color: var(--blue); }

.work-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 16px;
  max-width: 18ch;
}
.work-title em {
  font-style: normal;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 1;
}
.work-title em::before {
  content: "";
  position: absolute;
  inset: 0.04em -6px;
  background: var(--yellow);
  z-index: -1;
  transform: skew(-4deg);
  border-radius: 2px;
}

.work-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.work-link {
  color: var(--text-mid);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-link:hover { color: var(--text); border-color: var(--yellow); }
.work-dot { color: var(--text-faint); margin: 0 6px; }

.work-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.work-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-mid);
}
.work-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 3px;
  transform: rotate(45deg);
}
.work-bullets li strong { color: var(--text); }
.work-bullets-tight li { font-size: 15px; }
.work-bullets-tight li::before {
  width: 8px;
  height: 8px;
  top: 10px;
  background: var(--text-dim);
}

.work-subblock {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
}
.work-subhead {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.work-subhead-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 7px;
  font-weight: 700;
  font-style: italic;
}

/* Posters */
.work-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}
.poster-jumbo {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #FFCB3D 0%, #F5A60A 100%);
  color: var(--dark);
}
.poster-juego {
  background:
    radial-gradient(120% 100% at 0% 100%, rgba(245, 188, 45, 0.22), transparent 60%),
    linear-gradient(160deg, #1B1B25 0%, #0A0A10 100%);
  color: #fff;
  border: 1px solid var(--rule);
}
.poster-corner {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 15, 20, 0.65);
}
.poster-corner-light { color: rgba(237, 234, 226, 0.5); }
.poster-wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 11vw, 132px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  position: absolute;
  top: 40%;
  left: 28px;
  right: 28px;
  transform: translateY(-50%);
  font-variation-settings: "opsz" 96;
  pointer-events: none;
}
.poster-juego .poster-wordmark { color: var(--yellow); }
.poster-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}
.poster-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.poster-stats strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.025em;
  color: inherit;
}
.poster-stats span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 15, 20, 0.65);
}
.poster-stats-light span { color: rgba(237, 234, 226, 0.55); }

.poster-pulse {
  position: absolute;
  top: 25%;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 15, 20, 0.25);
  animation: spin 40s linear infinite;
}
.poster-pulse::before,
.poster-pulse::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(15, 15, 20, 0.18);
}
.poster-pulse::before { inset: 30px; }
.poster-pulse::after  { inset: 60px; }

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.poster-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 188, 45, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 188, 45, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════
   EDUCATION
   ═════════════════════════════════════════════════════════════ */

.section-edu {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding: 80px 0;
}
.edu-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 640px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 50px -28px rgba(0, 0, 0, 0.5);
}
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--yellow);
}
.edu-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.edu-card h3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-2);
}
.edu-card p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.edu-dot { color: var(--ink-4); margin: 0 6px; }

/* ═════════════════════════════════════════════════════════════
   CONTACT
   ═════════════════════════════════════════════════════════════ */

.section-contact {
  background: var(--dark);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.14;
  filter: blur(50px);
}
.section-contact .section-h { max-width: 18ch; }
.contact-lede {
  font-size: 18px;
  color: var(--text-mid);
  margin: -32px 0 56px;
  max-width: 50ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  align-items: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 50px -28px rgba(0, 0, 0, 0.6);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -26px rgba(245, 188, 45, 0.3),
    0 0 0 2px var(--yellow);
}
.contact-icon {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-card:hover .contact-icon {
  background: var(--yellow);
  color: var(--dark);
  transform: rotate(-6deg);
}
.contact-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  grid-column: 2;
}
.contact-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  grid-column: 2;
  word-break: break-word;
  transition: color 0.3s var(--ease);
}
.contact-value:hover { color: var(--blue); }
.contact-copy {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: transparent;
  border: 1.5px solid var(--rule-card);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.contact-copy:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}
.contact-copy.copied {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}

/* ═════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════ */

.footer {
  background: var(--dark);
  color: var(--text-faint);
  padding: 32px var(--pad);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
}
.footer-dot { color: var(--text-faint); opacity: 0.5; }

/* ═════════════════════════════════════════════════════════════
   REVEAL
   ═════════════════════════════════════════════════════════════ */

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

/* Hero load choreography */
.hero-greet, .hero-name, .hero-role, .hero-socials, .hero-portrait {
  opacity: 0;
  animation: rise 1s var(--ease) forwards;
}
.hero-greet    { animation-delay: 0.1s; }
.hero-name     { animation-delay: 0.22s; }
.hero-role     { animation-delay: 0.42s; }
.hero-socials  { animation-delay: 0.58s; }
.hero-portrait { animation-delay: 0.35s; }
@keyframes rise {
  0%   { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}

:focus-visible {
  outline: 2.5px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-greet, .hero-name, .hero-role, .hero-socials, .hero-portrait {
    opacity: 1; animation: none;
  }
  .poster-pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  :root { --pad: 40px; }
  .hero-grid { gap: 40px; }
  .about-grid { gap: 48px; }
  .work-card { gap: 40px; }
}

@media (max-width: 920px) {
  .hero-bg-dark {
    clip-path: polygon(0 60%, 100% 50%, 100% 100%, 0 100%);
  }
  .topbar { padding: 20px 24px; gap: 12px; }
  .topbar-nav { gap: 18px; font-size: 13.5px; }
  .topbar-cta { padding: 14px 32px; font-size: 15px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 16px 24px 64px;
    min-height: auto;
  }
  .hero-content { padding-right: 0; }
  .hero-portrait { min-height: 360px; }
  .portrait-wrap { max-width: 320px; }
  .portrait-circle { width: 140px; height: 140px; right: -50px; }
  .badge-row { margin-top: 16px; gap: 6px; }
  .badge { padding: 8px 10px; border-radius: 12px; }
  .badge-stat .stat-num { font-size: 16px; }
  .badge-stat .stat-lab { font-size: 8.5px; letter-spacing: 0.14em; }

  .section { padding: 80px 0; }
  :root { --pad: 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skill-grid { grid-template-columns: 1fr; gap: 14px; }
  @media (min-width: 0) {
    .skill-grid > :nth-child(4),
    .skill-grid > :nth-child(5) { grid-column: 1; }
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 0;
  }
  .work-text-right .work-content { order: 1; }
  .work-text-right .work-visual  { order: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 48px 1fr auto; }
  .contact-icon { width: 48px; height: 48px; border-radius: 12px; }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px;
  }
  .footer-dot { display: none; }
}

@media (max-width: 560px) {
  .hero-name { font-size: 56px; letter-spacing: -0.04em; }
  .section-h { font-size: 34px; }
  .work-title { font-size: 26px; }
  .topbar-nav a:not(.topbar-cta) { display: none; }
  .badge { padding: 7px 9px; border-radius: 11px; }
  .badge-stat .stat-num { font-size: 14px; }
  .badge-stat .stat-lab { font-size: 8px; letter-spacing: 0.12em; }
}
