/* ==========================================================================
   Blueprint CV — styles
   ========================================================================== */
:root {
  --navy-900: #0b1a33;
  --navy-850: #0e2242;
  --navy-800: #10264a;
  --navy-700: #16325c;
  --blue-600: #1e4d8c;
  --blue-400: #7fb2f0;
  --blue-200: #c9ddf5;
  --paper: #f2efe6;
  --orange: #ff7a3d;
  --orange-light: #ffa572;
  --holo: #8fe6ff;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--navy-900);
  height: 100%;
  margin: 0;
}
body {
  font-family: var(--font-sans);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); }
a:hover { color: var(--orange-light); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- scrollbars ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
  background-color: var(--navy-900);
  background-image: repeating-linear-gradient(#7fb2f02e 0 1px, #0000 1px 12px);
  border-left: 1px solid #7fb2f059;
}
::-webkit-scrollbar-thumb {
  background: var(--blue-600);
  border: 3px solid var(--navy-900);
  border-left-width: 4px;
  box-shadow: inset 0 0 0 1px var(--blue-400);
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active { background: var(--orange); box-shadow: inset 0 0 0 1px var(--orange-light); }
::-webkit-scrollbar-corner { background: var(--navy-900); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #3a6fb5 var(--navy-900); }
}

/* ---------- keyframes ---------- */
@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 #ff7a3d8c; }
  50% { box-shadow: 0 0 0 10px #ff7a3d00; }
}
@keyframes ticker { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  60% { opacity: 1; transform: scale(0.95) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes reticleIn {
  0% { opacity: 0; transform: scale(1.5); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes reticleOut { to { opacity: 0; transform: scale(0.92); } }
@keyframes readout { 0% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes boxDraw { from { clip-path: inset(0 0 100%); } to { clip-path: inset(0); } }
@keyframes slideIn { from { opacity: 0; transform: translate(60px); } to { opacity: 1; transform: none; } }
@keyframes lineSweep {
  0% { background-position: 0 100%; background-size: 0 2px; }
  50% { background-position: 0 100%; background-size: 100% 2px; }
  50.01% { background-position: 100% 100%; }
  100% { background-position: 100% 100%; background-size: 0 2px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes unfold {
  0% { clip-path: inset(50%); }
  35% { clip-path: inset(calc(50% - 1px) 0); }
  100% { clip-path: inset(0); }
}
@keyframes foldOut {
  0% { clip-path: inset(0); }
  45% { clip-path: inset(calc(50% - 1px) 0); }
  85%, 100% { clip-path: inset(calc(50% - 1px) 50%); }
}
@keyframes closeFlash { 0%, 40% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes sweep { 0%, 35% { opacity: 1; top: 50%; } 100% { opacity: 0; top: 100%; } }
@keyframes sweepUp { 0%, 35% { opacity: 1; top: 50%; } 100% { opacity: 0; top: 0; } }
@keyframes cornerIn { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: scale(1); } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes holoScan { from { background-position: 0 -60%; } to { background-position: 0 160%; } }
@keyframes copiedHolo {
  0% { opacity: 0; transform: scaleX(0.02) scaleY(0.6); }
  8% { opacity: 0.9; transform: scaleX(0.03) scaleY(1); }
  13% { opacity: 0.4; }
  16% { opacity: 1; transform: scaleX(1.04) scaleY(1); }
  19% { opacity: 0.55; }
  22%, 60%, 62%, 84% { opacity: 1; transform: none; }
  61% { opacity: 0.6; }
  92% { opacity: 0.5; transform: skew(-8deg); }
  100% { opacity: 0; transform: scaleX(1) scaleY(0.05); }
}

/* ---------- utilities ---------- */
.mono { font-family: var(--font-mono); }
.dot-live {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  animation: ticker 1.4s infinite;
}
.rise { animation: rise 0.7s both; }
.bp-btn { transition: background 0.25s, color 0.25s, border-color 0.25s; }
@media (hover: hover) {
  .bp-btn:hover {
    background: var(--orange) !important;
    color: var(--navy-900) !important;
    border-color: var(--orange) !important;
  }
}
.bp-card { transition: transform 0.35s, border-color 0.35s, background 0.35s; }
@media (hover: hover) {
  .bp-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange) !important;
    background: #1e4d8c47 !important;
  }
}

/* ---------- root / layout ---------- */
.bp-root {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(#5b92d629 1px, #0000 1px),
    linear-gradient(90deg, #5b92d629 1px, #0000 1px),
    linear-gradient(#5b92d60f 1px, #0000 1px),
    linear-gradient(90deg, #5b92d60f 1px, #0000 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  animation: gridDrift 40s linear infinite;
}
.bp-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s;
}
.bp-reading .bp-wrap { filter: blur(2px) brightness(0.5); }
.bp-closing .bp-wrap { filter: blur(1px) brightness(0.75) !important; }

.bp-head {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px) 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.bp-head-id { display: flex; flex-direction: column; gap: 12px; }
.bp-h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  animation: rise 0.9s 0.1s both;
}
.bp-role {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: clamp(16px, 2vw, 22px);
  animation: rise 0.9s 0.25s both;
}
.bp-role .caret { animation: blink 1s step-end infinite; }
.bp-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue-200);
  text-align: right;
  animation: rise 0.9s 0.4s both;
}
.bp-hint-row { display: flex; align-items: center; gap: 8px; }
.bp-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}

.bp-stage {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  zoom: 1.15;
}
.bp-gl {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}
.bp-gl.ready { opacity: 1; }
.bp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bp-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeIn 0.4s 0.15s both;
}
.bp-spinner-ring {
  width: 54px;
  height: 54px;
  border: 2px solid #c9ddf540;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.bp-spinner-text,
.bp-fallback {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--blue-200);
}
.bp-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  letter-spacing: 0.08em;
  border: 1.5px dashed #7fb2f0b3;
}

/* ---------- focus mode ---------- */
.bp-focus .bp-head,
.bp-focus .bp-mnav,
.bp-focus .bp-vctl { opacity: 0; pointer-events: none; }
.bp-focus .bp-stage { pointer-events: none; }
.bp-vig {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 55%, #0000 55%, #0308148c 80%, #030814e6 100%);
  transition: opacity 1s;
}
.bp-focus .bp-vig { opacity: 1; }

.bp-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 21;
  width: min(70vw, 760px);
  height: min(58vh, 480px);
  margin-top: calc(min(58vh, 480px) / -2);
  margin-left: calc(min(70vw, 760px) / -2);
  pointer-events: none;
  animation: reticleIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bp-reading .bp-reticle { animation: reticleOut 0.7s 0.1s both; }
.bp-reticle .rc { position: absolute; width: 34px; height: 34px; border: 0 solid var(--orange); }
.bp-reticle .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.bp-reticle .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.bp-reticle .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.bp-reticle .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.bp-reticle .cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  opacity: 0.8;
  background:
    linear-gradient(var(--orange), var(--orange)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 50% / 100% 1px no-repeat;
}
.bp-reticle .ro {
  position: absolute;
  bottom: -30px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange);
  white-space: nowrap;
  animation: readout 1.2s steps(6, end) both;
}

/* ---------- sheet dialog ---------- */
.bp-ov {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 3vw, 40px);
}
.bp-scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #060e1eb8;
  cursor: zoom-out;
  animation: fadeIn 0.45s both;
}
.bp-closing .bp-scrim { animation: fadeOut 0.5s 0.1s both; }
.bp-dlg {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  height: 100%;
  max-height: 820px;
  background-color: var(--navy-850);
  background-image:
    linear-gradient(#7fb2f01f 1px, #0000 1px),
    linear-gradient(90deg, #7fb2f01f 1px, #0000 1px);
  background-size: 40px 40px;
  border: 1.5px solid var(--blue-200);
  box-shadow: 0 40px 120px #0009;
  animation: unfold 1s cubic-bezier(0.7, 0, 0.2, 1) both;
}
.bp-closing .bp-dlg { animation: foldOut 0.72s cubic-bezier(0.4, 0, 0.3, 1) both; }
.bp-closing .bp-dlg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 9;
  height: 2px;
  margin-top: -1px;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange), 0 0 4px #ffc2a3;
  animation: closeFlash 0.72s linear both;
}
.dlg-sweep {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
  pointer-events: none;
}
.dlg-sweep.down { animation: sweep 1s cubic-bezier(0.7, 0, 0.2, 1) both; }
.dlg-sweep.up { animation: sweepUp 1s cubic-bezier(0.7, 0, 0.2, 1) both; }
.dlg-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid var(--orange);
  animation: cornerIn 0.5s both;
}
.dlg-corner.tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; animation-delay: 0.8s; }
.dlg-corner.tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; animation-delay: 0.85s; }
.dlg-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; animation-delay: 0.9s; }
.dlg-corner.br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; animation-delay: 0.95s; }

.bp-bar,
.bp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: opacity 0.22s;
}
.bp-bar {
  padding: 16px 20px;
  border-bottom: 1.5px solid #c9ddf573;
  animation: fadeIn 0.4s 0.7s both;
}
.bp-foot {
  padding: 12px 20px;
  letter-spacing: 0.14em;
  border-top: 1.5px solid #c9ddf573;
  animation: fadeIn 0.4s 0.9s both;
}
.bp-bartitle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
  white-space: nowrap;
  text-overflow: ellipsis;
  animation: rise 0.6s 0.35s both;
}
.bp-navbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--paper);
  letter-spacing: 0.14em;
  background: none;
  border: 1.5px solid #c9ddf599;
  cursor: pointer;
}
.bp-navbtn.strong { border-color: var(--blue-200); }
.bp-count { color: var(--blue-400); }
.bp-body {
  flex: 1;
  min-height: 0;
  padding: clamp(20px, 4vw, 48px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.22s;
}
.bp-closing .bp-bar,
.bp-closing .bp-body,
.bp-closing .bp-foot { opacity: 0; }

/* ---------- shared sheet atoms ---------- */
.panel { background: #0b1a33b3; border: 1.5px solid #c9ddf566; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: #1e4d8c4d;
  border: 1px solid #c9ddf599;
  animation: popIn 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.3) both;
}
.chip.dashed {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--blue-200);
  background: none;
  border: 1px dashed #7fb2f0b3;
  animation: none;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue-400);
}
.fact { padding: 18px 20px; animation: rise 0.6s both; }
.fact-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue-400);
}
.fact-v { margin: 8px 0 0; font-size: 16px; color: var(--paper); }
.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  border: 1.5px solid var(--blue-200);
}

/* ---------- about ---------- */
.about { display: flex; flex-wrap: wrap; gap: 40px; }
.about-text { display: flex; flex: 1 1 420px; flex-direction: column; gap: 20px; min-width: 0; }
.about-lead { margin: 0; font-size: 20px; line-height: 1.6; color: var(--paper); }
.about-bio { margin: 0; font-size: 17px; line-height: 1.6; color: var(--blue-200); }
.about-links { display: flex; flex-wrap: wrap; gap: 12px; }
.about-langs { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.about-facts {
  display: grid;
  flex: 1 1 320px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: flex-start;
  min-width: 0;
  margin: 0;
  border: 1.5px solid #c9ddf58c;
  animation: boxDraw 0.8s cubic-bezier(0.7, 0, 0.2, 1) 1.1s both;
}
.about-facts .fact { padding: 18px; border: 0.5px solid #c9ddf54d; }

/* ---------- experience ---------- */
.roles { display: flex; flex-direction: column; gap: 24px; }
.role-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.role-title { margin: 0; font-size: 21px; }
.role-company { font-weight: 400; color: var(--blue-400); }
.role-dates {
  margin-top: -4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--orange);
}
.role-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--blue-200);
}
.role-card .chips { margin-top: 4px; }

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  animation: rise 0.7s both;
}
.project-name { margin: 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.project-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--blue-200); }

/* ---------- education ---------- */
.edu { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.edu-col { display: flex; flex: 2 1 480px; flex-direction: column; gap: 22px; min-width: 0; }
.edu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background: #0b1a33bf;
  border-color: #c9ddf580;
  animation: rise 0.7s 1.15s both;
}
.edu-stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
  border: 2px solid var(--orange);
  animation: stamp 0.7s 1.9s both;
}
.edu-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue-400);
}
.edu-title {
  margin: 0;
  padding-right: 120px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
}
.edu-degree { font-size: 18px; font-weight: 500; color: var(--orange); }
.edu-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0 80px, #c9ddf559 80px);
  transform-origin: 0;
  animation: drawLine 0.8s 1.4s both;
}
.edu-facts {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border: 1.5px solid #c9ddf58c;
  animation: boxDraw 0.8s cubic-bezier(0.7, 0, 0.2, 1) 1.1s both;
}
.edu-facts .fact { border-bottom: 1px solid #c9ddf54d; }
.edu-facts .fact:last-child { border-bottom: 0; }

/* ---------- skills ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.skill-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; animation: rise 0.6s both; }
.skill-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill-hatch { width: 40px; height: 24px; border: 1px solid var(--blue-200); }
.skill-name { font-size: 23px; font-weight: 700; }
.skill-bar {
  height: 3px;
  background: var(--orange);
  transform-origin: 0;
  animation: fill 1.2s both;
}

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; }
.contact-cta { display: flex; flex: 2 1 400px; flex-direction: column; gap: 24px; min-width: 0; }
.contact-line {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  animation: rise 0.7s 1.15s both;
}
.contact-sub {
  max-width: 460px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--blue-200);
  animation: rise 0.7s 1.22s both;
}
.contact-mailbox { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-900);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: var(--orange);
  animation: pulse 2s 2s infinite;
}
.contact-mail:hover { color: var(--navy-900); }
.contact-copyrow { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: none;
  border: 1.5px solid var(--blue-200);
  cursor: pointer;
}
.contact-copied {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: #e9fff2;
  text-shadow: -1px 0 #ff5a8c73, 1px 0 #5affaacc, 0 0 12px #6effaacc;
  transform-origin: 0;
  background-color: #12965438;
  background-image:
    repeating-linear-gradient(0deg, #8cffbe24 0 1px, #0000 1px 3px),
    linear-gradient(#78ffb429, #28c8780f);
  border: 1px solid #8cffbebf;
  box-shadow: 0 0 22px #50ff9673, inset 0 0 18px #78ffb440;
  animation: copiedHolo 1.9s linear both;
}
.contact-copied::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(#0000 0%, #aaffcd4d 50%, #0000 100%) 0 0 / 100% 38% no-repeat;
  animation: holoScan 1.1s linear infinite;
}
.contact-links {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1.5px solid var(--blue-200);
  animation: boxDraw 0.8s cubic-bezier(0.7, 0, 0.2, 1) 1.1s both;
}
.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 20px 22px;
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 2px no-repeat;
  border-bottom: 1px solid #c9ddf559;
  animation-name: slideIn, lineSweep;
  animation-duration: 0.7s, 1s;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.25, 1.15), ease;
  animation-fill-mode: both;
}
.contact-link .k { opacity: 0.75; }
.contact-based {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  color: var(--blue-400);
  animation: slideIn 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) 2s both;
}
.contact-based span:last-child { color: var(--paper); text-align: right; }

/* ---------- mobile view controls + nav ---------- */
.bp-mnav,
.bp-vctl { display: none; transition: opacity 0.5s; }
.bp-vzoom,
.bp-vstick { position: absolute; bottom: 10px; }
.bp-vzoom {
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  background: #0b1a33e0;
  border: 1px solid #c9ddf573;
}
.bp-vlevel {
  height: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 30px;
  color: var(--orange);
}
.bp-vslider {
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 38px;
  height: 124px;
  margin: 0 0 12px;
  background: none;
  cursor: pointer;
  touch-action: none;
}
.bp-vslider::-webkit-slider-runnable-track { width: 2px; background: #c9ddf58c; }
.bp-vslider::-moz-range-track { width: 2px; background: #c9ddf58c; }
.bp-vslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 14px;
  margin-left: -11px;
  background: var(--orange);
  border: 0;
  border-radius: 0;
}
.bp-vslider::-moz-range-thumb { width: 24px; height: 14px; background: var(--orange); border: 0; border-radius: 0; }
.bp-vbtn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  color: var(--paper);
  background: none;
  border: 0;
  border-top: 1px solid #c9ddf573;
  cursor: pointer;
  touch-action: manipulation;
}
.bp-vbtn:active { background: var(--orange); color: var(--navy-900); }
.bp-vbtn:disabled { opacity: 0.4; pointer-events: none; }
.bp-vstick {
  right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 104px;
  height: 104px;
  background:
    linear-gradient(#c9ddf54d, #c9ddf54d) 50% / 1px 60% no-repeat,
    linear-gradient(#c9ddf54d, #c9ddf54d) 50% / 60% 1px no-repeat,
    #0b1a33e0;
  border: 1px solid #c9ddf573;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}
.bp-vstick.held { border-color: var(--orange); cursor: grabbing; }
.bp-vknob {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px #ff7a3d8c, inset 0 0 0 2px #0b1a3359;
  pointer-events: none;
  transition: transform 0.2s;
}
.bp-vstick.held .bp-vknob { transition: none; }
.bp-mbtn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 4px 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--paper);
  background: #1e4d8c4d;
  border: 1px solid #c9ddf573;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bp-mbtn .n { font-size: 11px; font-weight: 600; color: var(--orange); }
.bp-mbtn .l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-mbtn .ab { display: none; }
.bp-mbtn:active { background: var(--orange); color: var(--navy-900); border-color: var(--orange); }
.bp-mbtn:active .n { color: var(--navy-900); }

/* WebGL unavailable: always show the sheet buttons. */
.bp-nogl .bp-mnav {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #0b1a33f0;
  border-top: 1px solid #7fb2f059;
}
.bp-nogl .bp-hint, .bp-nogl .bp-vctl { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .bp-stage { zoom: 0.9; } }
@media (min-width: 821px) and (min-height: 561px) { .bp-stage { z-index: 5; padding-bottom: 158px; } }
@media (min-width: 1101px) and (max-height: 899px) { .bp-stage { zoom: 1.08; } }
@media (min-width: 1101px) and (max-height: 850px) { .bp-stage { zoom: 1.01; } }
@media (min-width: 1101px) and (max-height: 810px) { .bp-stage { zoom: 0.94; } }
@media (min-width: 1101px) and (max-height: 770px) { .bp-stage { zoom: 0.89; } }
@media (min-width: 1101px) and (max-height: 730px) { .bp-stage { zoom: 0.82; } }
@media (min-width: 1101px) and (max-height: 690px) { .bp-stage { zoom: 0.74; } }

@media (max-width: 820px), (max-height: 560px) {
  .bp-root { min-height: 0; }
  .bp-stage { min-height: 0; touch-action: none; }
  .bp-hint { display: none; }
  .bp-vctl { position: relative; z-index: 5; display: block; height: 0; }
  .bp-mnav {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #0b1a33f0;
    border-top: 1px solid #7fb2f059;
  }
  .bp-ov { padding: 8px; }
  .bp-dlg { max-height: none; }
  .bp-bar { padding: 8px 12px; }
  .bp-body { padding: 20px 16px 28px; }
  .bp-foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .bp-bar, .bp-foot { flex-wrap: nowrap; }
  .bp-bar button, .bp-foot button { flex: none; white-space: nowrap; }
  .edu-title { padding-right: 0; padding-top: 34px; }
}
@media (max-width: 820px) { .bp-stage { zoom: 0.65; } }
@media (max-width: 700px) { .bp-stage { zoom: 0.55; } }
@media (max-width: 600px) {
  .bp-stage { zoom: 0.4; }
  .bp-head { padding: 18px 16px 0; }
  .bp-h1 { font-size: 38px; }
  .bp-role { font-size: 14px; }
  .bp-count { display: none; }
  .bp-foot button { flex: 1 1 0 !important; padding: 0 10px; }
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .projects, .skills { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .bp-stage { zoom: 0.35; }
  .bp-h1 { font-size: 34px; }
}
@media (max-width: 380px) {
  .bp-stage { zoom: 0.3; }
  .bp-bartitle { font-size: 20px; }
  .bp-mbtn .l { display: none; }
  .bp-mbtn .ab { display: inline; }
  .bp-bar button { padding: 0 10px; letter-spacing: 0.06em; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .bp-stage { zoom: 0.38; }
  .bp-head { flex-wrap: nowrap; padding: 10px 16px 0; }
  .bp-head-id { gap: 4px; }
  .bp-h1 { font-size: 24px; }
  .bp-role { font-size: 12px; }
  .bp-mnav { gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bp-mbtn { flex-direction: row; gap: 6px; min-height: 44px; font-size: 11px; }
  .bp-bartitle { font-size: 19px; }
  .bp-bar, .bp-foot { padding: 4px 10px; }
  .bp-bar button, .bp-foot button { min-height: 40px; }
  .bp-body { padding: 10px 16px 16px; }
}
@media (max-height: 400px) and (orientation: landscape) { .bp-stage { zoom: 0.31; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
