/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* light mode palette (iMac-inspired lavender/blue/blush blobs) */
  --bg-1: #eef0fb;
  --bg-2: #e8ecf9;
  --blob-a: #b9c2f2;
  --blob-b: #dcd3f5;
  --blob-c: #f3d9e6;
  --blob-d: #cfe3f0;
  --grid-line: rgba(0,0,0,0.09);

  --text-primary: #1b1d2a;
  --text-secondary: #4c5063;
  --text-muted: #6b6f83;

  --glass-fill: rgba(255,255,255,0.38);
  --glass-fill-strong: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.65);
  --glass-shadow: rgba(80,90,140,0.18);
  --glass-shine: rgba(255,255,255,0.9);

  --accent: #6d63f6;
  --accent-2: #ff7fb0;

  --name-grad-1: #0f52ba;
  --name-grad-2: #0e9e94;

  --tint-glow: var(--tint-glow);
  --hole: rgba(40,50,80,0.55);
  --slot: rgba(20,25,50,0.28);
  --strap-shadow: rgba(20,30,80,0.22);
  --moon: #9aa3d1;
  --knob-dark-1: #4a4d6b;
  --knob-dark-2: #282a45;

  --nav-slider-fill: rgba(255,255,255,0.85);
  --nav-slider-border: rgba(255,255,255,0.9);

  --radius-lg: 40px;
  --radius-md: 20px;
  --radius-sm: 14px;

  color-scheme: light;
}

html.dark{
  --bg-1: #14162a;
  --bg-2: #1b1e35;
  --blob-a: #3a3f8a;
  --blob-b: #4b3170;
  --blob-c: #6a2f55;
  --blob-d: #2b4f6b;
  --grid-line: rgba(255,255,255,0.08);

  --text-primary: #f2f2fa;
  --text-secondary: #c7c9de;
  --text-muted: #9698b3;

  --glass-fill: rgba(255,255,255,0.07);
  --glass-fill-strong: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
  --glass-shadow: rgba(0,0,0,0.45);
  --glass-shine: rgba(255,255,255,0.35);

  --accent: #9b8bff;
  --accent-2: #ff9dc4;

  --name-grad-1: #5aa9ff;
  --name-grad-2: #2be8d8;

  --nav-slider-fill: rgba(255,255,255,0.22);
  --nav-slider-border: rgba(255,255,255,0.32);

  color-scheme: dark;
}

/* ============================================================
   THEME: RED  (active when <html data-theme="red">)
   To go back to the original blue/navy colors, change
   data-theme="red" to data-theme="main" in index.html.
   ============================================================ */
html[data-theme="red"]{
  --bg-1: #fbeeee;
  --bg-2: #f8e6e7;
  --blob-a: #f2b8bd;
  --blob-b: #f5d3c9;
  --blob-c: #f3d9e0;
  --blob-d: #f0c9c4;
  --grid-line: rgba(0,0,0,0.09);

  --text-primary: #211416;
  --text-secondary: #5a4548;
  --text-muted: #7d6a6d;

  --glass-fill: rgba(255,255,255,0.42);
  --glass-fill-strong: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.7);
  --glass-shadow: rgba(140,50,60,0.2);

  --accent: #d6283a;
  --accent-2: #ff7a6b;

  --name-grad-1: #a50f1d;
  --name-grad-2: #e8394a;

  --tint-glow: rgba(230,60,75,0.18);
  --hole: rgba(70,20,26,0.55);
  --slot: rgba(50,12,18,0.28);
  --strap-shadow: rgba(90,10,20,0.25);
  --moon: #b98a90;
  --knob-dark-1: #3a3a3c;
  --knob-dark-2: #161618;
}
html.dark[data-theme="red"]{
  --bg-1: #08080a;
  --bg-2: #101012;
  --blob-a: #5c0f1a;
  --blob-b: #3a0b12;
  --blob-c: #6b1220;
  --blob-d: #2a0a10;
  --grid-line: rgba(255,255,255,0.07);

  --text-primary: #f6f2f2;
  --text-secondary: #cfc8c9;
  --text-muted: #968c8e;

  --glass-fill: rgba(255,255,255,0.06);
  --glass-fill-strong: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.15);
  --glass-shadow: rgba(0,0,0,0.65);
  --glass-shine: rgba(255,255,255,0.3);

  --accent: #ff4d5e;
  --accent-2: #ff8a7a;

  --name-grad-1: #ff3b4e;
  --name-grad-2: #ff8a6b;

  --nav-slider-fill: rgba(255,255,255,0.16);
  --nav-slider-border: rgba(255,255,255,0.28);

  --tint-glow: rgba(255,70,90,0.2);
  --hole: rgba(30,10,14,0.6);
  --slot: rgba(20,6,10,0.4);
  --strap-shadow: rgba(0,0,0,0.5);
  --moon: #c9a0a6;
  --knob-dark-1: #3a3a3c;
  --knob-dark-2: #161618;
}

*{ box-sizing: border-box; }
html,body{
  margin:0; padding:0;
  min-height:100%;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-1);
  transition: background 0.5s ease, color 0.4s ease;
  overflow-x: hidden;
}

button{ font-family: inherit; }

/* ============================================================
   BACKGROUND — iMac-style blurred blob gradient
   ============================================================ */
.bg-layer{
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
}
.grid-lines{
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  will-change: transform;
}
.blob-a{ width: 55vw; height: 55vw; top: -18vw; left: -14vw; background: var(--blob-a); animation: drift1 26s ease-in-out infinite; }
.blob-b{ width: 45vw; height: 45vw; top: 6vw; right: -16vw; background: var(--blob-b); animation: drift2 32s ease-in-out infinite; }
.blob-c{ width: 42vw; height: 42vw; bottom: -16vw; left: 10vw; background: var(--blob-c); animation: drift3 30s ease-in-out infinite; }
.blob-d{ width: 38vw; height: 38vw; bottom: -10vw; right: 6vw; background: var(--blob-d); animation: drift1 34s ease-in-out infinite reverse; }

@keyframes drift1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(4%, 6%) scale(1.08); }
}
@keyframes drift2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-6%, 4%) scale(0.95); }
}
@keyframes drift3{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(5%, -5%) scale(1.05); }
}

.grain{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
html.dark .grain{ opacity: 0.12; }

/* ============================================================
   GLASS CORE
   ============================================================ */
.glass{
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 8px 30px var(--glass-shadow),
    inset 0 1px 0 var(--glass-shine),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.glass-text{
  display: inline-block;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-md);
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 20px var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar{
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
}

.brand-pill{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.25s ease;
}
.brand-pill:hover{ transform: translateY(-1px) scale(1.04); }

.nav-pill{
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
}

.nav-slider{
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: 0;
  border-radius: 999px;
  background: var(--nav-slider-fill);
  border: 1px solid var(--nav-slider-border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18), inset 0 1px 0 var(--glass-shine);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), width 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 0;
  pointer-events: none;
}

.nav-link{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.nav-link:hover{ color: var(--text-primary); }
.nav-link.is-active{
  color: var(--text-primary);
}

.mode-toggle{
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 7px;
  justify-content: space-between;
  color: var(--text-secondary);
}
.mode-icon{ display:flex; z-index: 1; }
.mode-icon.sun{ color: #e0a030; }
.mode-icon.moon{ color: var(--moon); }
.mode-knob{
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(160deg,#fff,#dfe2f5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
html.dark .mode-knob{ transform: translateX(24px); background: linear-gradient(160deg,var(--knob-dark-1),var(--knob-dark-2)); }

@media (max-width: 820px){
  .nav-pill{ display:none; }
}

/* ============================================================
   VIEWS
   ============================================================ */
#viewport{
  position: relative;
  min-height: calc(100vh - 66px);
  padding: 96px 24px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.view{
  display: none;
  animation: viewIn 0.5s ease;
}
.view.is-active{ display: block; }

@keyframes viewIn{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

.back-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  margin-bottom: 32px;
  transition: transform 0.25s ease;
}
.back-btn:hover{ transform: translateX(-3px); }

/* ---------- HOME ---------- */
#view-home{ position: relative; }

.home-float-layer{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.home-float-layer .float-badge{
  position: absolute;
  opacity: 0.55;
  font-size: 0.95rem;
  padding: 12px 20px;
  animation-name: floatYWide;
  animation-duration: 6s;
}
.home-float-layer .fb-icon{ font-size: 1.05rem; }

/* all 4 badges stay in the clear zone above the intro text — the tile
   grid below has an uneven last row (2 of 3 columns), so anywhere lower
   risks landing behind an opaque tile card */
.fh-1{ top: 4%;  left: 4%;  animation-delay: 0s; }
.fh-2{ top: 17%; left: 19%; animation-delay: 0.9s; }
.fh-3{ top: 17%; right: 19%; animation-delay: 1.6s; }
.fh-4{ top: 4%;  right: 4%; animation-delay: 2.3s; }

@keyframes floatYWide{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-20px); }
}

@media (max-width: 820px){
  .fh-1{ top: 1%; left: 2%; }
  .fh-2{ top: 13%; left: 24%; }
  .fh-3{ top: 13%; right: 24%; }
  .fh-4{ top: 1%; right: 2%; }
}
@media (max-width: 560px){
  .home-float-layer .float-badge{ font-size: 0.8rem; padding: 9px 15px; }
}

.home-intro{
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  margin-bottom: 26px;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.home-title{ margin: 0 0 18px; border-radius: 999px; padding: 0.55em 1.4em; }
.home-title span{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  letter-spacing: 0.01em;
}
.home-sub{
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

.tile-grid{
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
/* each tile spans 2 of 6 columns: 3 on the first row, and the last two
   tiles are pushed to columns 2-3 and 4-5 so they sit centered */
.tile-grid .tile{ grid-column: span 2; }
.tile-grid .tile:nth-child(4){ grid-column: 2 / span 2; }
.tile-grid .tile:nth-child(5){ grid-column: 4 / span 2; }

/* on wide screens the boxes sit on the left so the ID lanyard on the right
   gets room — change the 70% to make the boxes wider or narrower */
@media (min-width: 901px){
  .tile-grid{ width: 70%; margin: 0 auto 0 0; }
}

@media (max-width: 900px){
  .tile-grid{ grid-template-columns: repeat(2, 1fr); }
  .tile-grid .tile,
  .tile-grid .tile:nth-child(4),
  .tile-grid .tile:nth-child(5){ grid-column: auto; }
  /* lone last tile sits centered under the pair above it */
  .tile-grid .tile:nth-child(5){
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 11px);
  }
}
@media (max-width: 560px){
  .tile-grid{ grid-template-columns: 1fr; }
  .tile-grid .tile:nth-child(5){ width: 100%; }
}

.tile{
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1), box-shadow 0.55s ease;
  animation: tileIn 0.6s ease both;
  animation-delay: calc(var(--tile-delay, 0) * 70ms);
}
@keyframes tileIn{
  from{ opacity: 0; transform: translateY(18px) scale(0.97); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.tile:hover, .tile:focus-visible{
  transform: scale(1.075);
  box-shadow: 0 20px 46px var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  z-index: 2;
}
.tile-icon{ color: var(--accent); margin-bottom: 8px; }
.tile-icon svg{ width: 34px; height: 34px; display: block; }
.tile-icon-emoji{ display: block; font-size: 30px; line-height: 34px; height: 34px; }
.tile-icon-img{ display: block; height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.tile-label{ font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.tile-sub{ font-size: 0.9rem; color: var(--text-muted); }

.tile-shine{
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.75s ease;
}
.tile:hover .tile-shine{ left: 130%; }

/* ---------- ABOUT ---------- */
.about-wrap{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 820px){
  .about-wrap{ grid-template-columns: 1fr; gap: 70px; justify-items: center; text-align: center; }
}

.portrait-frame{
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}
.portrait-frame--sm{
  width: 200px;
  height: 200px;
  margin: 0;
}
@media (max-width: 560px){
  .portrait-frame--sm{ width: 150px; height: 150px; }
}
.portrait-glow{
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--name-grad-1) 0%, var(--name-grad-2) 45%, transparent 72%);
  filter: blur(38px);
  opacity: 0.55;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse{
  0%,100%{ opacity: 0.45; transform: scale(1); }
  50%{ opacity: 0.65; transform: scale(1.06); }
}
.portrait-placeholder{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  overflow: hidden;
  color: var(--accent);
}

.float-badge{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: floatY 4.5s ease-in-out infinite;
}
.fb-icon{ font-size: 0.85rem; line-height: 1; }
.fb-1{ top: -6%; left: -16%; animation-delay: 0s; }
.fb-2{ top: 8%; right: -20%; animation-delay: 0.6s; }
.fb-3{ bottom: 10%; left: -22%; animation-delay: 1.2s; }
.fb-4{ bottom: -6%; right: -12%; animation-delay: 1.8s; }

@media (max-width: 820px){
  .fb-1{ top: -8%; left: 2%; }
  .fb-2{ top: -8%; right: 2%; }
  .fb-3{ bottom: -8%; left: 6%; }
  .fb-4{ bottom: -8%; right: 6%; }
}

@keyframes floatY{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-9px); }
}

.name-plate{ margin-bottom: 22px; border-radius: 999px; padding: 0.55em 1.4em; }
.name-plate h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: 0.01em;
}

.about-paragraph{
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 28px;
}

.social-row{ display: flex; gap: 12px; }
.social-btn{
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: transform 0.25s ease, color 0.25s ease;
}
.social-btn:hover{ transform: translateY(-3px) scale(1.08); color: var(--accent); }



/* ---------- CURSOR BUBBLE ---------- */
.cursor-bubble{
  position: fixed;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.75), rgba(255,255,255,0.08) 55%),
    var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(3px) saturate(170%);
  -webkit-backdrop-filter: blur(3px) saturate(170%);
  box-shadow:
    0 8px 22px var(--glass-shadow),
    inset 0 1px 0 var(--glass-shine),
    inset 0 -6px 12px rgba(90,160,255,0.16);
}
.cursor-bubble.is-visible{ opacity: 0.55; }
@media (hover: none), (pointer: coarse){
  .cursor-bubble{ display: none; }
}

/* ---------- LANYARD + ID CARD (home) ---------- */
.lanyard-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lanyard-svg{ position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.lanyard-strap{
  fill: none;
  stroke: var(--name-grad-1);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 16;
  opacity: 0.92;
  filter: drop-shadow(0 4px 8px var(--strap-shadow));
}
.lanyard-stitch{
  fill: none;
  stroke: rgba(255,255,255,0.75);
  stroke-width: 1.6;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
}

.id-card{
  --u: 1px;
  position: absolute;
  left: 0; top: 0;
  width: calc(190 * var(--u));
  height: calc(290 * var(--u));
  border-radius: calc(24 * var(--u));
  padding: 0 calc(16 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(calc(22 * var(--u))) saturate(160%);
  -webkit-backdrop-filter: blur(calc(22 * var(--u))) saturate(160%);
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}
.id-card.is-dragging{ cursor: grabbing; }

.id-clip{
  position: absolute;
  top: calc(-32 * var(--u)); left: 50%;
  z-index: 2;
  width: calc(24 * var(--u)); height: calc(48 * var(--u));
  transform: translateX(-50%);
  border-radius: calc(8 * var(--u)) calc(8 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u));
  background: linear-gradient(160deg, #f4f6fb, #9aa3b8 55%, #dfe4ef);
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.9);
}
.id-clip::after{
  content: "";
  position: absolute;
  top: calc(5 * var(--u)); left: 50%;
  width: calc(10 * var(--u)); height: calc(10 * var(--u));
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--hole);
}
.id-slot{
  position: absolute;
  top: calc(12 * var(--u)); left: 50%;
  width: calc(46 * var(--u)); height: calc(8 * var(--u));
  transform: translateX(-50%);
  border-radius: calc(999 * var(--u));
  background: var(--slot);
  box-shadow: inset 0 1px calc(2 * var(--u)) rgba(0,0,0,0.35);
}

.id-head{
  width: calc(100% + calc(32 * var(--u)));
  margin: 0 calc(-16 * var(--u));
  padding: calc(30 * var(--u)) 0 calc(10 * var(--u));
  border-radius: calc(24 * var(--u)) calc(24 * var(--u)) 0 0;
  background: linear-gradient(120deg, var(--name-grad-1), var(--name-grad-2));
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #fff;
}
.id-brand{ font-family: var(--font-display); font-weight: 700; font-size: calc(15.2 * var(--u)); letter-spacing: 0.02em; }
.id-kind{ font-size: calc(9.6 * var(--u)); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }

.id-photo{
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(84 * var(--u)); height: calc(84 * var(--u));
  margin: calc(-6 * var(--u)) 0 calc(8 * var(--u));
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  color: var(--name-grad-1);
  background: var(--glass-fill-strong);
  border: calc(3 * var(--u)) solid var(--glass-border);
  box-shadow: 0 0 0 calc(3 * var(--u)) var(--name-grad-2), 0 calc(6 * var(--u)) calc(18 * var(--u)) var(--glass-shadow);
}
img.id-photo{ display: block; }

.id-name{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(15.2 * var(--u));
  line-height: 1.2;
  color: var(--text-primary);
}
.id-role{ margin: calc(4 * var(--u)) 0 0; font-size: calc(11.52 * var(--u)); font-weight: 600; color: var(--text-secondary); }
.id-school{ margin: calc(2 * var(--u)) 0 0; font-size: calc(10.56 * var(--u)); color: var(--text-muted); }
.id-number{ margin: calc(8 * var(--u)) 0 0; font-size: calc(10.56 * var(--u)); letter-spacing: 0.08em; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.id-barcode{
  display: block;
  width: 70%;
  height: calc(20 * var(--u));
  margin-top: auto;
  margin-bottom: calc(14 * var(--u));
  background: repeating-linear-gradient(90deg,
    var(--text-primary) 0 calc(2 * var(--u)), transparent calc(2 * var(--u)) calc(4 * var(--u)),
    var(--text-primary) calc(4 * var(--u)) calc(5 * var(--u)), transparent calc(5 * var(--u)) calc(8 * var(--u)),
    var(--text-primary) calc(8 * var(--u)) calc(11 * var(--u)), transparent calc(11 * var(--u)) calc(13 * var(--u)));
  opacity: 0.7;
  border-radius: calc(2 * var(--u));
}
.id-sheen{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.08) 100%);
}

@media (max-width: 560px){
  .id-card{ --u: 0.842px; }
}

/* ---------- EDUCATIONAL ATTAINMENT ---------- */
#view-education{ position: relative; }

.edu-float-layer{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.edu-float-emoji{
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0.55;
  animation-name: floatYWide;
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* scattered across the header, the side margins beside the card list,
   and the footer area — never behind the opaque cards themselves */
.ee-1{  top: 2%;   left: 4%;   animation-delay: 0s; }
.ee-2{  top: 5%;   right: 5%;  animation-delay: 0.6s; }
.ee-3{  top: 20%;  left: 7%;   animation-delay: 1.2s; }
.ee-4{  top: 24%;  right: 8%;  animation-delay: 1.8s; }
.ee-5{  top: 42%;  left: 4%;   animation-delay: 2.4s; }
.ee-6{  top: 46%;  right: 5%;  animation-delay: 3.0s; }
.ee-7{  top: 64%;  left: 6%;   animation-delay: 3.6s; }
.ee-8{  top: 68%;  right: 7%;  animation-delay: 4.2s; }
.ee-9{  bottom: 3%; left: 9%;  animation-delay: 4.8s; }
.ee-10{ bottom: 5%; right: 10%; animation-delay: 5.4s; }

@media (max-width: 700px){
  .edu-float-layer{ display: none; }
}

#view-education .back-btn{ position: relative; z-index: 1; }

.edu-intro{ position: relative; z-index: 1; text-align: center; margin-bottom: 32px; }
.edu-heading{
  display: inline-block;
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  padding: 0.5em 1.1em;
  border-radius: 999px;
}

.edu-scroll{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 6px 10px 6px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}
.edu-scroll::-webkit-scrollbar{ width: 8px; }
.edu-scroll::-webkit-scrollbar-thumb{
  background: var(--glass-border);
  border-radius: 999px;
}
.edu-scroll::-webkit-scrollbar-track{ background: transparent; }

.edu-card{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 34px;
  padding: 30px;
  border-radius: var(--radius-lg);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.edu-logo-link{ display: block; flex: 0 0 auto; }
.edu-logo-plate{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  transition: transform 0.3s ease;
}
html.dark .edu-logo-plate{ background: rgba(255,255,255,0.08); }
.edu-logo-link:hover .edu-logo-plate{ transform: scale(1.04); }
.edu-logo{
  display: block;
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
}

.edu-info{ flex: 0 1 460px; }

.edu-school{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.edu-info p{
  margin: 3px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
}
.edu-achieve{
  margin: 10px 0 4px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 400;
}
.edu-achieve li{ margin: 3px 0; }
.edu-years{
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

@media (max-width: 700px){
  .edu-card{ justify-content: center; text-align: center; width: 100%; flex-wrap: wrap; }
  .edu-info{ flex-basis: 100%; text-align: center; }
  .edu-logo{ max-height: 100px; }
}

/* ---------- STUB SECTIONS ---------- */
.stub-wrap{ display: flex; justify-content: center; padding-top: 40px; }
.stub-card{
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
  max-width: 420px;
}
.stub-card h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 4px 0 14px;
}
.stub-text{ color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

/* ============================================================
   TYPING EFFECT (name reveal)
   ============================================================ */
.type-target{ position: relative; }
.type-target.is-typing::after{
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: caretBlink 0.8s steps(1, start) infinite;
}
@keyframes caretBlink{
  50%{ opacity: 0; }
}

/* gradient name text (Home + About Me) */
#homeTypeTarget,
#aboutTypeTarget{
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* currentColor would be transparent on the gradient text above,
   so the typing cursor needs an explicit visible color */
#homeTypeTarget.is-typing::after,
#aboutTypeTarget.is-typing::after{
  background: var(--name-grad-1);
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* focus visibility */
button:focus-visible, a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ---------- FOOTER ---------- */
.site-footer{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0 clamp(20px, 4vw, 58px);
  padding: 18px 0 22px;
  border-top: 1px solid var(--grid-line);
  font-family: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
@media (max-width: 560px){
  .site-footer{ justify-content: center; text-align: center; }
}


/* ---------- LOADING SCREEN ---------- */
.loader{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60vw 60vw at 0% 18%, var(--blob-a), transparent 60%),
    radial-gradient(50vw 50vw at 100% 100%, var(--blob-c), transparent 60%),
    var(--bg-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.loader::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.loader.is-on{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s;
}
html.is-loading{ overflow: hidden; }

.loader-inner{
  position: relative;
  width: min(92vw, 640px);
  text-align: center;
}
.loader-text{
  font-family: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, 'Courier New', monospace;
  font-weight: 700;
  font-size: clamp(1.3rem, 5.4vw, 3rem);
  line-height: 1.3;
  white-space: nowrap;
  min-height: 1.3em;
}
.loader-text .ch{
  display: inline-block;
  width: 0.62em;            /* every slot is the same width, so nothing shifts while letters spin */
  text-align: center;
  color: var(--text-secondary);
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.loader-text .ch.is-space{ width: 0.4em; }
.loader-text .ch.is-set{
  color: var(--name-grad-1);
  opacity: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--name-grad-2) 55%, transparent);
  animation: chLock 0.35s ease;
}
@keyframes chLock{
  0%{ transform: translateY(-10px) scale(1.15); }
  100%{ transform: translateY(0) scale(1); }
}
.loader-bar{
  margin: 26px auto 10px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.loader-bar span{
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  box-shadow: 0 0 14px var(--name-grad-2);
}
.loader-meta{
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}


/* ---------- HOME ACTION BUTTONS ---------- */
.home-actions{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 22px 0 0;
}
@media (min-width: 901px){
  .home-actions{ width: 70%; margin-right: auto; margin-left: 0; }
}
.btn-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
}
.btn-pill:hover{ transform: translateY(-3px); }
.btn-pill:active{ transform: translateY(0) scale(0.97); }
.btn-pill--solid{
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  color: #fff;
  border: 0;
  padding: 13px 29px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--name-grad-2) 35%, transparent);
}
.btn-pill--solid:hover{ box-shadow: 0 12px 28px color-mix(in srgb, var(--name-grad-2) 50%, transparent); }
.btn-pill--ghost{
  background: var(--glass-fill);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.btn-pill--ghost:hover{ background: var(--glass-fill-strong); }


/* ---------- HOME BIO (above the boxes) ---------- */
.home-bio{
  position: relative;
  z-index: 1;
  pointer-events: none;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
.home-bio strong{ font-weight: 700; -webkit-text-stroke: 0.6px currentColor; }
@media (min-width: 901px){
  .home-bio{ width: 70%; margin-right: auto; margin-left: 0; }
}
@media (max-width: 900px){
  .home-bio{ text-align: center; text-align-last: center; }
}

/* shorter screens: tighten a little (a small scroll is fine) */
@media (min-width: 901px) and (max-height: 860px){
  #viewport{ padding-top: 88px; }
  .home-intro{ margin-bottom: 32px; }
  .home-bio{ font-size: 1.15rem; line-height: 1.5; margin-bottom: 20px; }
  .tile{ min-height: 124px; padding: 16px 22px; }
  .tile-grid{ gap: 14px; }
  .home-actions{ margin-top: 16px; }
  .skills-marquee{ margin-top: 14px; }
  .home-status{ margin-top: 8px; }
  .status-chip{ padding: 6px 14px; }
}


/* ---------- BIG ID VIEW (click MLL) ---------- */
.id-hint{ display: none; }
html[data-view="id"] #view-home > :not(.lanyard-layer):not(.id-hint){ display: none !important; }
html[data-view="id"] .id-hint{
  display: block;
  position: fixed;
  left: 0; right: 0;
  bottom: 84px;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  pointer-events: none;
}


/* home: footer line sits right under the buttons */
html[data-view="home"] #viewport{ min-height: 0; padding-bottom: 20px; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
#view-contact{ position: relative; }
#view-contact .back-btn{ position: relative; z-index: 1; }

.contact-wrap{
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}
.contact-intro{ text-align: center; margin-bottom: 26px; }
.contact-title{
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.contact-title span{
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.contact-lead{
  margin: 0 auto;
  max-width: 440px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-card{
  position: relative;
  padding: 30px 28px 26px;
  border-radius: 34px;
  box-shadow: 0 22px 60px var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}
/* a gradient light that runs around the edge while you type */
@property --ang{ syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.contact-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--name-grad-1) 72%, var(--name-grad-2) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: edgeSpin 4s linear infinite;
  pointer-events: none;
}
.contact-card:focus-within::before{ opacity: 1; }
@keyframes edgeSpin{ to{ --ang: 360deg; } }

.field{ position: relative; margin-bottom: 20px; }
.field input,
.field textarea{
  display: block;
  width: 100%;
  padding: 24px 18px 10px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.field textarea{ min-height: 150px; resize: vertical; line-height: 1.5; padding-bottom: 26px; }
.field input:focus,
.field textarea:focus{
  border-color: var(--accent);
  background: var(--glass-fill-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field label{
  position: absolute;
  left: 19px;
  top: 17px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, letter-spacing 0.2s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label{
  top: 7px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.counter{
  position: absolute;
  right: 16px;
  bottom: 9px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.field-error{
  display: block;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0 0 0 6px;
  font-size: 0.8rem;
  color: var(--accent);
  transition: max-height 0.25s ease, margin 0.25s ease;
}
.field.has-error .field-error{ max-height: 40px; margin-top: 6px; }
.field.has-error input,
.field.has-error textarea{ border-color: var(--accent); animation: fieldShake 0.35s ease; }
@keyframes fieldShake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-5px); }
  75%{ transform: translateX(5px); }
}

.send-btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--name-grad-2) 38%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.send-btn::after{ /* light sweep */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
}
.send-btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--name-grad-2) 52%, transparent); }
.send-btn:hover::after{ animation: sweep 0.9s ease; }
@keyframes sweep{ to{ left: 130%; } }
.send-btn:active{ transform: translateY(0) scale(0.98); }
.send-plane{ transition: transform 0.5s cubic-bezier(.5,0,.2,1), opacity 0.4s ease; }
.send-btn:hover .send-plane{ transform: translate(3px,-3px) rotate(8deg); }
.send-spinner{
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin360 0.8s linear infinite;
}
@keyframes spin360{ to{ transform: rotate(360deg); } }
.send-btn.is-sending{ pointer-events: none; filter: saturate(0.85); }
.send-btn.is-sending .send-label,
.send-btn.is-sending .send-plane{ opacity: 0; }
.send-btn.is-sending .send-plane{ transform: translate(70px,-50px) scale(0.4); }
.send-btn.is-sending .send-spinner{ opacity: 1; }

.form-status{
  min-height: 1.2em;
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
}

/* success */
.contact-done{
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 8px 10px;
  gap: 4px;
}
.contact-card.is-sent form{ display: none; }
.contact-card.is-sent .contact-done{ display: flex; animation: doneIn 0.6s cubic-bezier(.2,.8,.2,1); }
@keyframes doneIn{ from{ opacity: 0; transform: translateY(14px) scale(0.96); } to{ opacity: 1; transform: none; } }
.done-check{ color: var(--accent); margin-bottom: 8px; }
.done-check circle,
.done-check path{ stroke-dasharray: 160; stroke-dashoffset: 160; }
.contact-card.is-sent .done-check circle{ animation: drawLine 0.7s 0.1s ease forwards; }
.contact-card.is-sent .done-check path{ animation: drawLine 0.5s 0.6s ease forwards; }
@keyframes drawLine{ to{ stroke-dashoffset: 0; } }
.contact-done h3{
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
}
.contact-done p{ margin: 4px 0 18px; color: var(--text-secondary); max-width: 360px; line-height: 1.5; }

.contact-direct{
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.contact-direct a{
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.contact-direct a:hover{ color: var(--accent); }

@media (max-width: 560px){
  .contact-card{ padding: 22px 16px 20px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce){
  .contact-card::before{ animation: none; }
}



/* ============================================================
   HOME EXTRAS: status chip, socials, skills marquee, drag hint
   ============================================================ */
.home-status{ margin-top: 12px; pointer-events: none; }
.status-chip{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.status-sep{ opacity: 0.5; }
.status-dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #35e07a;
  animation: statusPulse 1.9s ease-out infinite;
}
@keyframes statusPulse{
  0%{ box-shadow: 0 0 0 0 rgba(53,224,122,0.65); }
  70%{ box-shadow: 0 0 0 9px rgba(53,224,122,0); }
  100%{ box-shadow: 0 0 0 0 rgba(53,224,122,0); }
}

.home-actions{ align-items: center; }
.home-social{ display: flex; gap: 10px; margin-left: 6px; }
.home-social .social-btn{
  width: 46px; height: 46px;
  pointer-events: auto;
}

.skills-marquee{
  position: relative;
  z-index: 1;
  pointer-events: none;
  margin: 20px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
@media (min-width: 901px){
  .skills-marquee{ width: 70%; margin-right: auto; margin-left: 0; }
}
.skills-track{
  display: flex;
  width: max-content;
  animation: skillsScroll 34s linear infinite;
}
.skill-pill{
  flex: none;
  margin-right: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
}
@keyframes skillsScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .skills-track{ animation: none; }
}

.drag-hint{
  position: absolute;
  z-index: 2;
  left: 0; top: 0;
  padding: 9px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--name-grad-2) 40%, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: hintBob 2.2s ease-in-out infinite;
}
.drag-hint.is-visible{ opacity: 1; }
.drag-hint.is-gone{ opacity: 0 !important; }
.drag-hand{ display: inline-block; animation: handNudge 1.1s ease-in-out infinite; }
@keyframes hintBob{ 0%,100%{ margin-top: 0; } 50%{ margin-top: -6px; } }
@keyframes handNudge{ 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(-4px); } }
html[data-view="id"] .drag-hint{ display: none; }
@media (max-width: 700px){
  .drag-hint{ display: none; }
}


/* ============================================================
   RUNNING EDGE LIGHT on the name and the 5 boxes
   (same effect as the contact box; uses @property --ang from above)
   ============================================================ */
.home-title{ position: relative; }
.home-title::before,
.tile::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--name-grad-1) 72%, var(--name-grad-2) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: edgeSpin 4.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.tile::before{ padding: 1px; opacity: 0.4; transition: opacity 0.3s ease; }
.tile:hover::before{ opacity: 0.75; animation-duration: 2.8s; }
/* start each box at a different point so they don't all spin in sync */
.tile:nth-child(2)::before{ animation-delay: -0.9s; }
.tile:nth-child(3)::before{ animation-delay: -1.8s; }
.tile:nth-child(4)::before{ animation-delay: -2.7s; }
.tile:nth-child(5)::before{ animation-delay: -3.6s; }
@media (prefers-reduced-motion: reduce){
  .home-title::before, .tile::before{ animation: none; }
}


/* compact home so the footer and skills strip are visible with little scrolling */
@media (min-width: 901px){
  html[data-view="home"] #viewport{ padding-top: 88px; padding-bottom: 10px; min-height: calc(100vh - 62px); }
  html[data-view="home"] .home-intro{ margin-bottom: 20px; }
  html[data-view="home"] .home-title{ margin-bottom: 6px; padding: 0.4em 1.3em; }
  html[data-view="home"] .home-status{ margin-top: 8px; }
  html[data-view="home"] .status-chip{ padding: 5px 13px; font-size: 0.8rem; }
  html[data-view="home"] .home-bio{ font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.45; margin-bottom: 18px; }
  html[data-view="home"] .tile{ min-height: 118px; padding: 14px 22px; }
  html[data-view="home"] .tile-icon-emoji{ font-size: 24px; line-height: 26px; height: 26px; }
  html[data-view="home"] .tile-label{ font-size: 1.05rem; }
  html[data-view="home"] .tile-sub{ font-size: 0.8rem; }
  html[data-view="home"] .tile-grid{ gap: 14px; }
  html[data-view="home"] .home-actions{ margin-top: 18px; }
  html[data-view="home"] .btn-pill{ padding: 9px 22px; font-size: 0.92rem; }
  html[data-view="home"] .btn-pill--solid{ padding: 10px 23px; }
  html[data-view="home"] .home-social .social-btn{ width: 40px; height: 40px; }
  html[data-view="home"] .skills-marquee{ margin-top: 16px; }
  html[data-view="home"] .skill-pill{ padding: 6px 14px; font-size: 0.8rem; }
  html[data-view="home"] .site-footer{ padding: 12px 0 14px; }
}


/* ============================================================
   PERSONAL INFORMATION PAGE
   ============================================================ */
.about-role{
  margin: -6px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.about-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.tag-chip{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.tag-chip:hover{ transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px){ .about-tags{ justify-content: center; } }

/* scroll-in */
.reveal{ opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 0.1s); }
.reveal.is-in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; transition: none; } }

#view-about{ padding-bottom: 20px; }

/* highlight cards */
.pi-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 70px;
}
.pi-stat{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pi-stat:hover{ transform: translateY(-6px); }
.pi-stat-icon{ font-size: 1.7rem; margin-bottom: 6px; }
.pi-stat strong{
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pi-stat span:last-child{ font-size: 0.85rem; color: var(--text-secondary); line-height: 1.35; }
@media (max-width: 900px){ .pi-stats{ grid-template-columns: repeat(2, 1fr); margin-top: 50px; } }
@media (max-width: 480px){ .pi-stats{ grid-template-columns: 1fr; } }

/* facts + skills */
.pi-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 800px){ .pi-grid{ grid-template-columns: 1fr; } }
.pi-card{ padding: 26px 28px; border-radius: 30px; }
.pi-h{
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}
.facts{ margin: 0; }
.facts > div{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--glass-border);
  font-size: 0.92rem;
}
.facts > div:first-child{ border-top: 0; padding-top: 0; }
.facts dt{ color: var(--text-muted); font-weight: 500; }
.facts dd{ margin: 0; color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.facts a{ color: var(--accent); text-decoration: none; }
.facts a:hover{ text-decoration: underline; }
.skill-group + .skill-group{ margin-top: 16px; }
.skill-group p{
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.skill-group div{ display: flex; flex-wrap: wrap; gap: 8px; }

/* section titles */
.pi-title{
  margin: 80px 0 28px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  color: var(--text-primary);
}
.pi-title span{
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* journey timeline */
.journey{
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0 0 0 34px;
  max-width: 760px;
}
.journey::before{
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--name-grad-1), var(--name-grad-2));
  opacity: 0.7;
}
.journey li{ position: relative; padding-bottom: 22px; }
.journey li:last-child{ padding-bottom: 0; }
.journey li::before{
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 4px solid var(--name-grad-1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--name-grad-1) 20%, transparent);
}
.journey li.is-now::before{ border-color: var(--name-grad-2); animation: nowPulse 2s ease-out infinite; }
@keyframes nowPulse{
  0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--name-grad-2) 55%, transparent); }
  100%{ box-shadow: 0 0 0 14px transparent; }
}
.j-year{
  display: inline-block;
  margin-bottom: 8px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.j-card{
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px;
  border-radius: 22px;
  transition: transform 0.3s ease;
}
.j-card:hover{ transform: translateX(6px); }
.j-card strong{ font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); }
.j-card span{ font-size: 0.9rem; line-height: 1.45; color: var(--text-secondary); }

/* what drives me */
.drive-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px){ .drive-grid{ grid-template-columns: 1fr; } }
.drive-card{
  padding: 28px 24px;
  border-radius: 30px;
  text-align: center;
  transition: transform 0.35s ease;
}
.drive-card:hover{ transform: translateY(-6px) rotate(-0.6deg); }
.drive-card > span{ display: block; font-size: 2.2rem; margin-bottom: 8px; }
.drive-card strong{ display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); }
.drive-card p{ margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-secondary); }

/* closing call-to-action */
.pi-cta{
  margin: 70px auto 10px;
  max-width: 760px;
  padding: 40px 28px;
  border-radius: 36px;
  text-align: center;
}
.pi-cta h3{
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--text-primary);
}
.pi-cta h3 span{
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pi-cta p{ margin: 0 0 22px; color: var(--text-secondary); }
.pi-cta-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ============================================================
   NEW: tile spotlight, live clock, quick search
   ============================================================ */
/* subtle light that follows the cursor inside each box */
.tile::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(circle 90px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--name-grad-1) 20%, transparent), transparent 75%);
}
.tile:hover::after{ opacity: 1; }

.status-clock{ margin-left: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px){ .home-status{ display: flex; flex-direction: column; align-items: center; gap: 8px; } .status-clock{ margin-left: 0; } }

.search-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.25s ease;
}
.search-pill:hover{ transform: translateY(-2px); }
kbd{
  padding: 2px 7px;
  border-radius: 7px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
}
@media (max-width: 1250px){ .search-pill .search-text{ display: none; } .search-pill{ width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 820px){ .search-pill{ display: none; } }

.palette{
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.palette.is-open{ opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.palette-box{
  width: min(92vw, 520px);
  padding: 12px;
  border-radius: 26px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.palette.is-open .palette-box{ transform: none; }
.palette-input{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--text-muted);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
}
.palette-input input{
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}
.palette-list{ list-style: none; margin: 8px 0 4px; padding: 0; max-height: 46vh; overflow-y: auto; }
.palette-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}
.palette-list li .pi{ width: 1.4em; text-align: center; }
.palette-list li .pk{ margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.palette-list li.is-sel{
  color: #fff;
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
}
.palette-list li.is-sel .pk{ color: rgba(255,255,255,0.85); }
.palette-empty{ padding: 18px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.palette-hint{ margin: 6px 0 2px; text-align: center; font-size: 0.74rem; color: var(--text-muted); }

/* "Ctrl + K" tip appears only when the cursor is on the search button */
.search-pill{ position: relative; }
.search-tip{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 5px 10px;
  border-radius: 10px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 22px var(--glass-shadow);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.search-pill:hover .search-tip,
.search-pill:focus-visible .search-tip{ opacity: 1; transform: translate(-50%, 0); }


/* ============================================================
   VERSION 2 — one fixed screen, bento layout, pop-up details
   ============================================================ */
html.v2, html.v2 body{ height: 100%; overflow: hidden; }
html.v2 .bg-layer{ display: none; }
.grad-text{
  background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* top bar */
.v2-top{
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.4vw, 56px);
  pointer-events: none;
}
.v2-top > *{ pointer-events: auto; }
.v2-top-right{ display: flex; align-items: center; gap: 10px; }
.v2-top .btn-pill{ padding: 9px 20px; font-size: 0.9rem; }
.v2-top .btn-pill--solid{ padding: 10px 21px; }
.brand-pill{ cursor: default; }

/* bento */
.bento{
  position: fixed;
  inset: 72px clamp(20px, 3.4vw, 56px) 62px;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 0.85fr;
  grid-template-rows: 1.15fr 1fr 0.5fr;
  gap: 14px;
  min-height: 0;
}
.b-tile{
  position: relative;
  min-width: 0; min-height: 0;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(12px, 2vh, 22px) clamp(14px, 1.6vw, 24px);
  color: var(--text-primary);
  text-align: left;
  font: inherit;
}
.b-profile{ grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; }
.b-pitch{ grid-column: 2 / 5; grid-row: 1; display: flex; flex-direction: column; justify-content: center; }
.b-edu{ grid-column: 2; grid-row: 2; }
.b-ach{ grid-column: 3; grid-row: 2; }
.b-id{ grid-column: 4; grid-row: 2 / 4; }
.b-skills{ grid-column: 1 / 4; grid-row: 3; padding: 0 !important; display: flex; align-items: center; }

/* running edge light + cursor spotlight (same effect as before) */
.edge::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--name-grad-1) 72%, var(--name-grad-2) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: edgeSpin 5s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}
.b-pitch.edge::before{ opacity: 0.9; }
.b-tile:nth-child(3)::before{ animation-delay: -1s; }
.b-tile:nth-child(4)::before{ animation-delay: -2s; }
.b-tile:nth-child(5)::before{ animation-delay: -3s; }
.b-link{ cursor: pointer; display: flex; flex-direction: column; gap: 4px; justify-content: center; border: 0; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.b-link:hover{ transform: translateY(-4px); }
.b-tile::after{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(circle 110px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--name-grad-1) 9%, transparent), transparent 75%);
}
.b-tile:hover::after{ opacity: 1; }

/* profile */
.ring{
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(var(--name-grad-1), var(--name-grad-2), var(--name-grad-1));
  box-shadow: 0 0 46px color-mix(in srgb, var(--name-grad-1) 45%, transparent);
  line-height: 0;
}
.b-photo{
  width: clamp(92px, 21vh, 168px);
  height: clamp(92px, 21vh, 168px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--glass-fill-strong);
  border: 3px solid var(--bg-1);
}
.b-name{ margin: clamp(8px, 1.6vh, 16px) 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.15; }
.b-role{ margin: 3px 0 0; color: var(--text-secondary); font-size: clamp(0.82rem, 1.1vw, 0.95rem); }
.b-status{ display: inline-flex; align-items: center; gap: 8px; margin: clamp(8px, 1.6vh, 14px) 0 0; font-size: 0.84rem; font-weight: 600; }
.b-meta{ margin: 5px 0 0; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.b-social{ display: flex; gap: 9px; margin-top: clamp(10px, 2vh, 18px); }
.b-social .social-btn{ width: 38px; height: 38px; }

/* pitch */
.b-pitch .eyebrow{ margin: 0; }
.b-title{ margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.1; }
.b-code{
  margin: clamp(6px, 1.4vh, 12px) 0 0;
  padding: 9px 14px;
  border-radius: 12px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  color: #6fe3a0;
  background: rgba(0,0,0,0.32);
}
html:not(.dark) .b-code{ color: #0d7a43; background: rgba(0,0,0,0.06); }
.b-caret{ display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink{ 50%{ opacity: 0; } }
.b-stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: clamp(8px, 1.6vh, 14px); }
.b-stats > div{ display: flex; flex-direction: column; gap: 1px; padding: clamp(6px, 1.2vh, 10px) 12px; border-radius: 16px; background: var(--glass-fill); border: 1px solid var(--glass-border); min-width: 0; }
.b-stats strong{ font-family: var(--font-display); font-size: clamp(0.9rem, 1.35vw, 1.2rem); white-space: nowrap; }
.b-stats span{ font-size: 0.74rem; color: var(--text-secondary); line-height: 1.3; }

/* link tiles */
.b-h{ font-family: var(--font-display); font-weight: 700; font-size: clamp(0.95rem, 1.3vw, 1.15rem); }
.b-sub{ font-size: 0.78rem; color: var(--text-secondary); line-height: 1.35; }
.b-big{ font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.b-open{ align-self: flex-start; margin-top: 6px; padding: 5px 13px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--glass-fill-strong); border: 1px solid var(--glass-border); }
.b-tl{ display: flex; align-items: center; margin-top: 6px; }
.b-tl i{ width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--name-grad-1); background: var(--bg-1); flex: none; }
.b-tl u{ flex: 1; height: 3px; background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2)); }
.b-tl i.now{ background: var(--name-grad-2); border-color: var(--name-grad-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--name-grad-2) 28%, transparent); }
.b-years{ display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }

/* ID tile */
.b-id{ padding: 0; }
.b-drag{ position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); transition: opacity 0.5s ease; pointer-events: none; }
.b-drag.is-gone{ opacity: 0; }
html.v2 .lanyard-layer{ z-index: 5; }
html.v2 .id-card{ box-shadow: 0 14px 30px var(--glass-shadow), inset 0 1px 0 var(--glass-shine); }

/* skills strip */
.b-skills .skills-track{ width: max-content; }
.b-skills{ -webkit-mask-image: none; mask-image: none; }
.b-skills .skill-pill{ margin-right: 10px; }

/* pager (prev / next) — change position here when you have the instructions */
.pager{
  position: fixed;
  left: 0; right: 0; bottom: 14px;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.pager-btn{
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--text-primary);
  font: 600 0.8rem var(--font-body);
  cursor: pointer;
}
.pager-btn:disabled{ opacity: 0.4; cursor: default; }
.pager-dots{ display: flex; gap: 8px; }
.pager-dots i{ width: 9px; height: 9px; border-radius: 50%; background: var(--glass-border); }
.pager-dots i.on{ width: 26px; border-radius: 9px; background: linear-gradient(90deg, var(--name-grad-1), var(--name-grad-2)); }

/* pop-ups */
.modal{
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.modal.is-open{ opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.modal-box{
  position: relative;
  width: min(100%, 760px);
  max-height: 88vh;
  display: flex; flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: 34px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal-box{ transform: none; }
.modal-box--form{ width: min(100%, 560px); overflow-y: auto; }
.modal-x{
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--text-primary);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-title{ margin: 2px 0 14px; font-family: var(--font-display); font-size: 1.6rem; }
.modal-scroll{ overflow-y: auto; min-height: 0; padding-right: 6px; }
.modal .edu-scroll{ max-height: none; display: flex; flex-direction: column; gap: 14px; }
.modal .edu-card{ box-shadow: none; }
.award-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.award-list li{ display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 20px; background: var(--glass-fill); border: 1px solid var(--glass-border); }
.award-list li > span{ font-size: 1.6rem; }
.award-list strong{ display: block; font-family: var(--font-display); font-size: 0.98rem; }
.award-list small{ color: var(--text-secondary); font-size: 0.8rem; }
.modal-box--form .contact-intro{ margin-bottom: 14px; }
.modal-box--form .contact-title{ font-size: clamp(1.8rem, 4vw, 2.4rem); }
.modal-box--form .contact-card{ box-shadow: none; padding: 18px 16px 14px; background: transparent; border: 0; backdrop-filter: none; }
.modal-box--form .contact-card::before{ display: none; }

/* shorter screens: lose the code line, tighten */
@media (max-height: 640px){
  .b-code{ display: none; }
  .b-stats span{ display: none; }
  .b-sub{ display: none; }
  .b-meta{ display: none; }
}
@media (max-height: 540px){ .b-status{ display: none; } }

/* narrow screens / phones: stack and allow scrolling (the fixed one-screen layout is for laptops and desktops) */
@media (max-width: 900px){
  html.v2, html.v2 body{ height: auto; overflow: auto; }
  .bento{ position: static; margin: 72px 16px 0; display: flex; flex-direction: column; gap: 14px; }
  .b-tile{ min-height: 130px; }
  .b-id{ min-height: 340px; }
  .b-skills{ min-height: 64px; }
  .pager{ position: static; margin: 18px 0 24px; }
  .b-stats{ grid-template-columns: 1fr; }
  .b-code{ white-space: normal; }
}

.ring{ display: block; flex: none; }
.b-photo{ display: block; flex: none; aspect-ratio: 1; }
.b-title{ font-size: clamp(1.4rem, min(3.2vw, 5.6vh), 2.9rem); }
.b-stats strong{ font-size: clamp(0.9rem, min(1.35vw, 2.6vh), 1.35rem); }
.id-card, .id-card *{ user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.id-card{ touch-action: none; }

/* v2 top nav: only Home is available for now */
.v2-top .nav-pill{ position: absolute; left: 50%; transform: translateX(-50%); }
.v2-top .nav-link.is-active{ background: var(--nav-slider-fill); border: 1px solid var(--nav-slider-border); box-shadow: 0 4px 14px rgba(0,0,0,0.18), inset 0 1px 0 var(--glass-shine); }
.v2-top .nav-link:disabled{ opacity: 0.45; cursor: not-allowed; }
.b-sum{ margin: clamp(4px, 1vh, 10px) 0 0; color: var(--text-secondary); font-size: clamp(0.78rem, 1.05vw, 0.95rem); line-height: 1.45; max-width: 70ch; }
@media (max-width: 1200px){ .v2-top .nav-pill{ display: none; } }
@media (max-height: 760px){ .b-sum{ display: none; } }

/* v2 round 4 */
.b-contact{ display: flex; flex-direction: column; gap: 4px; margin-top: clamp(8px, 1.6vh, 14px); font-size: clamp(0.76rem, 1vw, 0.88rem); font-weight: 600; }
.b-contact a{ color: var(--text-primary); text-decoration: none; opacity: 0.92; }
.b-contact a:hover{ color: var(--accent); }
.b-drag{ bottom: 12px; left: 50%; right: auto; transform: translateX(-50%); width: max-content; padding: 6px 14px; border-radius: 999px; background: var(--glass-fill-strong); border: 1px solid var(--glass-border); color: var(--text-primary); font-size: 0.82rem; font-weight: 700; z-index: 6; animation: dragNudge 2.2s ease-in-out infinite; }
@keyframes dragNudge{ 50%{ transform: translateX(-50%) translateY(-3px); } }

.modal-box--soon{ width: min(100%, 420px); text-align: center; align-items: center; padding: 34px 28px 30px; }
.modal-box--soon .modal-title{ font-size: 2.2rem; margin: 4px 0 8px; }
.soon-text{ margin: 0; color: var(--text-secondary); }

/* v2 ID card: fixed design size, scaled with transform (so text never hits the browser's minimum font size) */
html.v2 .id-card{ --u: 1px !important; width: 212px; height: 322px; padding: 0 18px; transform-origin: 50% 50%; }
html.v2 .id-head{ width: calc(100% + 36px); margin: 0 -18px; padding: 34px 0 22px; }
html.v2 .id-photo{ width: 100px; height: 100px; margin: -26px 0 10px; }
html.v2 .id-name{ font-size: 18px; line-height: 1.15; }
html.v2 .id-chip{ margin: 8px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, var(--name-grad-1), var(--name-grad-2)); }
html.v2 .id-role{ margin: 10px 0 0; font-size: 13px; }
html.v2 .id-school{ margin: 2px 0 0; font-size: 12px; }
html.v2 .id-rule{ width: 70%; height: 1px; margin: 10px 0 8px; background: var(--glass-border); }
html.v2 .id-number{ margin: 0; font-size: 12px; }
html.v2 .id-barcode{ width: 72%; height: 24px; margin-bottom: 16px; }
html.v2 .id-rule{ display: none; }
html.v2 .id-head{ padding: 30px 0 18px; }
html.v2 .id-photo{ width: 96px; height: 96px; margin: -24px 0 8px; }
html.v2 .id-number{ margin-top: 10px; }
html.v2 .id-barcode{ margin-top: auto; margin-bottom: 14px; }

/* ===== phones & tablets: stacked, scrolls normally ===== */
@media (max-width: 900px){
  html.v2, html.v2 body{ height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  html.v2 body{ position: relative; }
  .v2-top{ top: 0; padding: 10px 14px; background: color-mix(in srgb, var(--bg-1) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); gap: 8px; }
  .v2-top .nav-pill{ display: none; }
  .v2-top-right{ gap: 7px; }
  .v2-top .btn-pill, .v2-top .btn-pill--solid{ padding: 8px 14px; font-size: 0.82rem; white-space: nowrap; }
  .brand-pill{ padding: 8px 14px; font-size: 0.85rem; }
  .bento{ position: static; margin: 0; padding: 70px 14px 8px; display: flex; flex-direction: column; gap: 12px; }
  .b-tile{ border-radius: 26px; padding: 18px; overflow: hidden; }
  .b-profile{ order: 1; padding: 22px 18px; }
  .b-pitch{ order: 2; }
  .b-id{ order: 3; min-height: 440px; }
  .b-edu{ order: 4; }
  .b-ach{ order: 5; }
  .b-skills{ order: 6; min-height: 64px; padding: 0 !important; }
  .b-photo{ width: 132px; height: 132px; }
  .b-title{ font-size: 1.9rem; }
  .b-sum{ display: block !important; font-size: 0.92rem; }
  .b-code{ display: block !important; white-space: nowrap; font-size: 0.74rem; }
  .b-stats{ grid-template-columns: 1fr; }
  .b-stats span{ display: block !important; }
  .b-sub, .b-meta, .b-status{ display: block !important; }
  .b-status{ display: inline-flex !important; }
  .b-meta{ display: block !important; }
  .b-contact{ font-size: 0.9rem; }
  .b-contact a{ padding: 4px 0; }
  .b-link:hover{ transform: none; }
  .b-open{ padding: 8px 18px; font-size: 0.82rem; }
  html.v2 .lanyard-layer{ position: absolute; inset: 0; height: 100%; width: 100%; }
  .pager{ position: static; margin: 14px 0 22px; padding-bottom: env(safe-area-inset-bottom); }
  .modal{ padding: 12px; align-items: flex-end; }
  .modal-box{ max-height: 90vh; padding: 22px 16px 16px; border-radius: 28px; }
  .modal-title{ font-size: 1.35rem; }
  .modal-box--form{ width: 100%; }
}
@media (max-width: 420px){
  .v2-top .btn-pill--ghost{ padding: 8px 11px; }
  .v2-top .mode-toggle{ transform: scale(0.9); }
}

/* ===== pages (Home Page / Personal Information) ===== */
.page-soon{ position: fixed; inset: 72px clamp(20px, 3.4vw, 56px) 62px; z-index: 1; display: none; }
html[data-page="soon"] .page-soon{ display: flex; animation: pageIn 0.45s ease both; }
html[data-page="soon"] .bento, html[data-page="soon"] .lanyard-layer{ display: none; }
html[data-page="home"] .bento{ animation: pageIn 0.45s ease both; }
@keyframes pageIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
.soon-card{ margin: auto; width: min(100%, 560px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 30px; }
.soon-card .b-title{ font-size: clamp(2rem, 5vw, 3.2rem); }
.soon-card .btn-pill{ margin-top: 14px; }
.v2-top .nav-link:not(:disabled){ cursor: pointer; }

/* 4 highlight boxes */
.b-stats{ grid-template-columns: repeat(4, 1fr); }
.b-stats strong{ white-space: normal; line-height: 1.15; }
.b-stats .b-hl{ border-color: color-mix(in srgb, var(--name-grad-1) 55%, var(--glass-border)); background: color-mix(in srgb, var(--name-grad-1) 6%, var(--glass-fill)); box-shadow: 0 0 14px color-mix(in srgb, var(--name-grad-1) 10%, transparent); }
@media (max-width: 1100px){ .b-stats{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px){
  .page-soon{ position: static; padding: 90px 14px 8px; min-height: 60vh; }
  html[data-page="soon"] .page-soon{ display: flex; }
  .b-stats{ grid-template-columns: 1fr; }
}
.b-stats strong{ font-size: clamp(0.82rem, min(1.12vw, 2.3vh), 1.12rem); white-space: nowrap; }
@media (max-width: 900px){ .b-stats strong{ font-size: 1.05rem; } }

/* ============ v2 round 5: new home layout ============ */
.bento{ grid-template-columns: 1.05fr 1fr 1fr 0.85fr; grid-template-rows: 1.02fr 1.12fr 0.78fr; }
.b-profile{ grid-column: 1; grid-row: 1 / 4; }
.b-pitch{ grid-column: 2 / 5; grid-row: 1; justify-content: center; }
.b-proj{ grid-column: 2 / 4; grid-row: 2; display: flex; flex-direction: column; gap: 8px; }
.b-id{ grid-column: 4; grid-row: 2 / 4; }
.b-intern{ grid-column: 2; grid-row: 3; }
.b-edu{ grid-column: 3; grid-row: 3; }

.b-title{ font-size: clamp(1.4rem, min(2.9vw, 5vh), 2.7rem); line-height: 1.12; }
.b-stats{ grid-template-columns: repeat(5, 1fr); gap: 9px; }
.b-stats > div, .b-statbtn{ padding: clamp(6px, 1.1vh, 10px) 12px; border-radius: 16px; background: var(--glass-fill); border: 1px solid var(--glass-border); min-width: 0; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 1px; }
.b-statbtn{ cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease; }
.b-statbtn:hover{ transform: translateY(-2px); border-color: var(--name-grad-1); }
.b-statbtn > span, .b-stats > div > span{ font-size: 0.74rem; color: var(--text-secondary); line-height: 1.3; }
.b-stats .b-hl{ border-color: color-mix(in srgb, var(--name-grad-1) 45%, var(--glass-border)); background: color-mix(in srgb, var(--name-grad-1) 6%, var(--glass-fill)); box-shadow: 0 0 14px color-mix(in srgb, var(--name-grad-1) 10%, transparent); }
.b-stats strong{ font-size: clamp(0.8rem, min(1.05vw, 2.2vh), 1.05rem); white-space: nowrap; }

.b-marquee{ margin-top: clamp(8px, 1.4vh, 14px); overflow: hidden; border-radius: 999px; border: 1px solid var(--glass-border); background: color-mix(in srgb, var(--bg-1) 55%, transparent); padding: 5px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.b-marquee .skill-pill{ padding: 4px 13px; font-size: 0.78rem; margin-right: 8px; }

.b-focus{ margin-top: clamp(10px, 2vh, 18px); width: 100%; text-align: left; padding: 9px 14px; border-radius: 16px; background: var(--glass-fill); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; font-weight: 600; }
.b-focus .eyebrow{ margin: 0; font-size: 0.64rem; }

.b-proj .b-h{ flex: none; }
.proj-grid{ flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proj-card{ display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass-fill); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform 0.3s ease, border-color 0.3s ease; }
.proj-card:hover{ transform: translateY(-3px); border-color: var(--name-grad-1); }
.proj-img{ position: relative; flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, rgba(255,255,255,0.06) 10px 20px); border-bottom: 1px solid var(--glass-border); overflow: hidden; }
.proj-img img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-img em{ font-style: normal; font-size: 0.7rem; color: var(--text-muted); }
.proj-in{ display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 10px; }
.proj-in strong{ font-family: var(--font-display); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-in small{ font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-view{ font-size: 0.72rem; font-weight: 700; color: var(--accent); }

.b-ul{ list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.78rem; color: var(--text-secondary); }
.b-ul li{ position: relative; padding-left: 13px; line-height: 1.3; }
.b-ul li::before{ content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.modal-ul{ text-align: left; font-size: 0.95rem; gap: 8px; margin-top: 8px; }
.award-list a{ color: var(--accent); font-weight: 700; text-decoration: none; }

@media (max-height: 760px){ .b-sum{ display: none; } .b-ul li:nth-child(2){ display: none; } }
@media (max-height: 640px){ .b-stats span{ display: none; } .proj-in small{ display: none; } }

@media (max-width: 1100px) and (min-width: 901px){ .b-stats{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px){
  .b-profile{ order: 1; } .b-pitch{ order: 2; } .b-proj{ order: 3; } .b-intern{ order: 4; } .b-edu{ order: 5; } .b-id{ order: 6; min-height: 440px; }
  .b-stats{ grid-template-columns: 1fr 1fr; }
  .b-stats span{ display: block !important; }
  .b-title{ font-size: 1.8rem; }
  .proj-grid{ grid-template-columns: 1fr; }
  .proj-card{ flex-direction: row; min-height: 84px; }
  .proj-img{ flex: none; width: 110px; border-bottom: 0; border-right: 1px solid var(--glass-border); }
  .b-ul li:nth-child(2){ display: block !important; }
  .b-sub{ display: block !important; }
}
@media (max-height: 800px){ .b-sum{ display: none; } }
.b-marquee .skills-track{ animation-duration: 30s; }

/* ============ v2 round 6: 5 project cards, wide education, front drag hint ============ */
.bento{ grid-template-columns: 0.95fr 1fr 1fr 0.8fr; }
.b-edu{ grid-column: 2 / 4; grid-row: 3; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 18px; }
.b-edu-text{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.b-edu-tl{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b-edu-tl .b-years{ display: flex; justify-content: space-between; }
.proj-grid{ grid-template-columns: repeat(5, 1fr); gap: 9px; }
.proj-in{ padding: 7px 9px 9px; }
.proj-in strong{ font-size: clamp(0.72rem, 0.95vw, 0.84rem); white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-in small{ font-size: 0.66rem; }
.proj-view{ font-size: 0.68rem; }
.proj-img{ min-height: 30px; }

/* drag hint now lives in the lanyard layer, in front of the card */
.lanyard-layer .b-drag{ position: absolute; left: 0; top: 0; bottom: auto; right: auto; transform: translateX(-50%); z-index: 8; }

/* project pop-up */
.modal-box--proj{ width: min(100%, 720px); max-height: 92vh; overflow-y: auto; }
.pj-gallery{ display: flex; flex-direction: column; gap: 8px; margin: 2px 0 12px; }
.pj-stage{ position: relative; border-radius: 20px; overflow: hidden; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, rgba(255,255,255,0.06) 10px 20px); border: 1px solid var(--glass-border); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.pj-stage img{ width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.pj-nav{ position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; font-size: 0.85rem; }
.pj-prev{ left: 10px; } .pj-next{ right: 10px; }
.pj-count{ position: absolute; right: 12px; bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(0,0,0,0.6); color: #fff; }
.pj-thumbs{ display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pj-thumbs button{ flex: none; width: 66px; height: 46px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #000; cursor: pointer; opacity: 0.6; }
.pj-thumbs button.on{ border-color: var(--name-grad-1); opacity: 1; }
.pj-thumbs img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-text{ margin: 0; color: var(--text-secondary); font-size: 0.96rem; line-height: 1.55; }
.pj-link{ display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pj-link:empty{ display: none; }

@media (max-width: 900px){
  .bento{ grid-template-columns: none; }
  .b-edu{ grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
  .proj-grid{ grid-template-columns: 1fr; }
  .lanyard-layer .b-drag{ font-size: 0.8rem; }
}
@media (max-height: 700px){ .b-edu-tl{ display: none; } .b-edu{ grid-template-columns: 1fr; } .proj-in small{ display: none; } }
@media (max-height: 760px) and (min-width: 901px){ .b-ul li:nth-child(3){ display: none; } }
.bento{ grid-template-rows: 1.12fr 1.1fr 0.74fr; }
@media (max-height: 820px) and (min-width: 901px){ .b-ul li:nth-child(3){ display: none; } }
.b-pitch .b-sum{ max-width: none; }
@media (max-height: 700px) and (min-width: 901px){ .b-edu .b-ul li:nth-child(2){ display: none; } .b-edu .b-sub{ display: none; } }

/* v2 round 7: internship tile back, education compact again, 4 project cards */
.b-intern{ grid-column: 2; grid-row: 3; }
.b-edu{ grid-column: 3; grid-row: 3; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.proj-grid{ grid-template-columns: repeat(4, 1fr); gap: 10px; }
.proj-in strong{ font-size: clamp(0.78rem, 1vw, 0.92rem); }
.proj-in small{ font-size: 0.7rem; }
@media (max-height: 760px) and (min-width: 901px){ .b-ul li:nth-child(2){ display: none; } }
@media (max-width: 900px){ .b-edu, .b-intern{ grid-column: auto; } .b-intern{ order: 4; } .b-ul li:nth-child(2){ display: block !important; } }
@media (max-height: 700px) and (min-width: 901px){ .b-intern .b-sub{ display: none; } }

/* moving text behind the ID card */
.id-marquee{ position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: space-evenly; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.idm-row{ overflow: hidden; white-space: nowrap; line-height: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3.6vh, 2.3rem); letter-spacing: -0.01em; text-transform: uppercase; color: color-mix(in srgb, var(--text-primary) 3.5%, transparent); }
.idm-row.is-outline{ color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text-primary) 8%, transparent); }
.idm-track{ display: inline-flex; width: max-content; animation: idmLeft 60s linear infinite; will-change: transform; }
.idm-track.to-right{ animation-name: idmRight; }
.idm-grp{ flex: none; }
@keyframes idmLeft{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@keyframes idmRight{ from{ transform: translateX(-50%); } to{ transform: translateX(0); } }
@media (prefers-reduced-motion: reduce){ .idm-track{ animation: none; } }
