@font-face {
  font-family: 'Handel Gothic';
  src: url('fonts/handel-gothic-d-medium.ttf') format('truetype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Handel Gothic';
  src: url('fonts/handel-gothic-d-bold.ttf') format('truetype');
  font-weight: 601 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Conduit ITC';
  src: url('fonts/conduit-itc-regular.otf') format('opentype');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* SEO/LLM/non-JS fallback content — readable in source, not visible on screen */
.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a1420;
  color: #efe8d5;
  font-family: 'Conduit ITC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 45%, #14273b 0%, #0a1420 55%, #05080e 100%);
}

#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* On submenus: stretch the video to fill the window so its baked-in
   blue top/bottom borders stay visible without side letterboxing, and
   drop the top edge 40px to sit below the toolbar. */
body.sub #bg-video {
  object-fit: fill;
  top: 40px;
  height: calc(100vh - 40px);
  transform: translateX(-50%);
}

/* HUD top bar: solid color strip at top of all submenus,
   with an optional route-specific label aligned left (Halo 2 style). */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgb(11, 28, 50);
  z-index: 4;
  display: none;
  align-items: center;
  padding: 0 2.4vw;
  pointer-events: none;
  font-family: 'Handel Gothic', sans-serif;
  font-weight: 600;
  font-size: 1.9vh;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f7f1dd;
  user-select: none;
}
body.sub .hud-top { display: flex; }
body:has(#view[data-route="projects"]) .hud-label::before { content: 'Projects'; }
body:has(#view[data-route="about"])    .hud-label::before { content: 'About'; }
body:has(#view[data-route="resume"])   .hud-label::before { content: 'Resume'; }
body:has(#view[data-route="contact"])  .hud-label::before { content: 'Contact'; }
body.sub .hud-label {
  transform: translate(105px, 33px);
  letter-spacing: calc(0.22em - 1px);
}
/* About page: tighter kerning, shifted right, slightly larger. */
body:has(#view[data-route="about"]) .hud-label {
  transform: translate(195px, 31px);
  letter-spacing: 0.08em;
  font-size: 2.299vh;
}

/* Suppress any native video UI (Firefox PiP, iOS tap-to-play overlay, etc.) */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-internal-media-controls-overlay-cast-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}
video::-moz-media-controls-picture-in-picture-toggle-button { display: none !important; }

/* Projects page: Halo 2 "select level" style two-column layout */
.panel--projects {
  max-width: none;
  width: 100%;
  height: calc(100vh - 40px);
  margin-top: 40px;
  padding: 4vh 6vw;
  justify-content: flex-start;
  position: relative;
}

.panel--projects > .menu {
  position: absolute;
  bottom: 4vh;
  right: 6vw;
  align-items: flex-end;
}

.proj-layout {
  display: grid;
  grid-template-columns: minmax(154px, 19.6vw) 1fr;
  gap: 4vw;
  width: 100%;
  align-items: start;
  text-align: left;
  margin-top: 150px;
  margin-left: 450px;
}
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.7vh;
  margin-top: calc(4vh - 110px);
  margin-left: 4vw;
}
.proj-item {
  position: relative;
  display: block;
  font-family: 'Conduit ITC', sans-serif;
  font-size: 2.05vh;
  letter-spacing: calc(0.08em - 1px);
  color: rgba(190, 205, 225, 0.6);
  text-decoration: none;
  padding: 0.35vh 1.2vw 0.35vh 0.6vw;
  cursor: pointer;
  background-color: rgba(50, 110, 180, 0.18);
  background-image:
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18));
  background-repeat: no-repeat;
  background-size: 100% 1.7px;
  background-position: 0 0, 0 25%, 0 50%, 0 75%, 0 100%;
  border: none;
  transition:
    color 160ms,
    background-color 160ms,
    border-color 160ms,
    text-shadow 160ms,
    transform 160ms;
  outline: none;
}
.proj-item--locked {
  color: rgba(140, 160, 180, 0.4);
  letter-spacing: calc(0.18em - 1px);
}
.proj-item--locked:hover,
.proj-item--locked:focus,
.proj-item--locked.active {
  color: rgba(200, 220, 240, 0.65);
}
.proj-item:hover,
.proj-item:focus,
.proj-item.active {
  color: #ffffff;
  background-color: rgba(90, 160, 220, 0.38);
  transform: translateX(10px);
  text-shadow: 0 0 0.6vh rgba(170, 220, 255, 0.55);
}
.proj-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.55vw;
  height: 85%;
  border-left: 1px solid rgba(200, 230, 255, 0.8);
  border-top: 1px solid rgba(200, 230, 255, 0.8);
  border-bottom: 1px solid rgba(200, 230, 255, 0.8);
  transform: translateY(-50%);
}

.proj-preview {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  max-width: 560px;
  margin-left: 6vw;
  margin-top: -100px;
}
.proj-img {
  width: 250px;
  height: 250px;
  position: relative;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.proj-img::before {
  content: '';
  position: absolute;
  inset: 2px;
  background:
    linear-gradient(135deg, rgba(120, 160, 200, 0.15), rgba(20, 40, 70, 0.6)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  box-shadow: 0 0 2vh rgba(90, 170, 230, 0.12) inset;
}
.proj-caption {
  font-family: 'Conduit ITC', sans-serif;
  font-size: 2.16vh;
  line-height: 1.5;
  color: rgb(111, 142, 172);
  max-width: 250px;
}

@media (max-width: 720px) {
  .proj-layout { grid-template-columns: 1fr; gap: 2vh; }
  .panel--projects { padding: 3vh 5vw; height: calc(100vh - 40px); }
}

/* Submenu UI slides in from right to left, staggered */
body.sub .view .panel > * {
  opacity: 0;
  transform: translateX(4vw);
  transition:
    opacity 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
body.sub .view.shown .panel > * {
  opacity: 1;
  transform: translateX(0);
}
body.sub .view.shown .panel > *:nth-child(1) { transition-delay: 40ms; }
body.sub .view.shown .panel > *:nth-child(2) { transition-delay: 120ms; }
body.sub .view.shown .panel > *:nth-child(3) { transition-delay: 200ms; }
body.sub .view.shown .panel > *:nth-child(n+4) { transition-delay: 260ms; }

/* Back-to-home: panel contents slide right and ghost out */
body.sub .view.view-exiting .panel > * {
  opacity: 0 !important;
  transform: translateX(8vw) !important;
  transition:
    opacity 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transition-delay: 0ms !important;
}

.video-tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20,39,59,0.30) 0%, rgba(10,20,32,0.45) 55%, rgba(5,8,14,0.75) 100%);
}

.stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(0.6vh);
  transition:
    opacity 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.view.shown {
  opacity: 1;
  transform: translateY(0);
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 90vw;
}

.wordmark {
  font-family: 'Handel Gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 7.7vh, 6.05rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #e6eef6 45%, #8a9db0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0.3vh 0.4vh rgba(0,0,0,0.7));
  margin-bottom: 4vh;
  transform: translateY(100%);
}

.page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.press-any {
  font-family: 'Handel Gothic', sans-serif;
  font-size: 2.1375vh;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #efe8d5;
  font-weight: 700;
  animation: pulse 1.5s ease-in-out infinite;
  transition: opacity 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(calc(100% + 50px));
}

.press-any.hidden {
  opacity: 0 !important;
  animation: none;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1.0; }
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#menu { transform: translateY(50%); }

.menu.visible {
  opacity: 1;
  pointer-events: auto;
}

.item {
  position: relative;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  font-family: 'Handel Gothic', sans-serif;
  font-size: 2.662vh;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(239, 232, 213, 0.6);
  padding: 0.6vh 2vw;
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5vh);
  transition:
    color    200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity  300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    text-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22.5vw;
  height: 0.85vh;
  transform: translate(-50%, -50%) scaleX(0.7);
  background: radial-gradient(
    ellipse 50% 100% at center,
    rgba(38, 79, 113, 1.0) 0%,
    rgba(38, 79, 113, 1.0) 35%,
    rgba(38, 79, 113, 0.70) 65%,
    transparent 95%
  );
  filter: blur(0.8vh);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 360ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.menu.visible .item {
  opacity: 1;
  transform: translateY(0);
}

.menu.visible .item:nth-child(1) { transition-delay: 0ms,   0ms,   0ms,   0ms; }
.menu.visible .item:nth-child(2) { transition-delay: 80ms,  80ms,  80ms,  80ms; }
.menu.visible .item:nth-child(3) { transition-delay: 160ms, 160ms, 160ms, 160ms; }
.menu.visible .item:nth-child(4) { transition-delay: 240ms, 240ms, 240ms, 240ms; }

.item:hover,
.item:focus,
.item.active {
  color: #ffffff;
  text-shadow:
    0 0 0.6vh rgba(170, 220, 255, 0.55);
}

.item:hover::before,
.item:focus::before,
.item.active::before {
  opacity: 1;
  transform: translate(-50%, -50%) scaleX(1);
}

.content {
  position: relative;
  z-index: 3;
  width: min(72vw, 880px);
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
  font-family: 'Conduit ITC', sans-serif;
  font-size: 1.9vh;
  line-height: 1.65;
  color: rgba(239, 232, 213, 0.85);
  margin-bottom: 4vh;
  padding-right: 1vw;
}

.content h2 {
  font-family: 'Conduit ITC', sans-serif;
  font-size: 2.1375vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9d6e6;
  margin: 2.2vh 0 0.6vh;
  font-weight: 500;
}

.content h2:first-child { margin-top: 0; }

.content p { margin-bottom: 1vh; }

.content ul { list-style: none; }

.content ul li {
  padding: 0.4vh 0;
  border-bottom: 1px solid rgba(120, 160, 200, 0.15);
}

.content a {
  color: #9ec9ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 201, 238, 0.4);
  transition: color 180ms, border-color 180ms;
}

.content a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Halo 2 style scrolling main menu messages — three rows, each with
   a clipped "lower half" main track and a slower, more translucent
   unicode-block ghost track beneath it. */
.mm-messages {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

.mm-messages,
.mm-messages * { user-select: none !important; -webkit-user-select: none !important; }

.mm-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 6vh;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.mm-row--top { top: 20vh; }
.mm-row--mid { top: 52vh; }
.mm-row--bot { bottom: 6vh; }

.mm-track {
  position: absolute;
  left: 0;
  white-space: nowrap;
  display: flex;
  width: max-content;
  will-change: transform;
}

.mm-track--main {
  top: 0;
  font-family: 'Handel Gothic', sans-serif;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: transparent;
}

.mm-track--main .mm-text {
  font-size: 2.4vh;
  line-height: 1;
  background: linear-gradient(
    180deg,
    rgba(42, 74, 120, 0.0)   0%,
    rgba(38, 70, 118, 0.35)  45%,
    rgba(32, 62, 110, 0.55)  75%,
    rgba(24, 50, 95, 0.70)   100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    blur(0.15vh)
    drop-shadow(0 0 0.25vh rgba(30, 60, 110, 0.45))
    drop-shadow(0 0 0.9vh  rgba(20, 45, 90,  0.30));
  opacity: 0.63;
  padding-right: 4vw;
}

/* Only the middle row uses the Halo 2 lower-half clip. */
.mm-row--mid .mm-track--main {
  height: 1.2vh;
  overflow: hidden;
}
.mm-row--mid .mm-track--main .mm-text { margin-top: -1.2vh; }

/* Bottom row: flipped vertically, with 75% of the text clipped away. */
.mm-row--bot .mm-track--main {
  height: 0.6vh;
  overflow: hidden;
}
.mm-row--bot .mm-track--main .mm-text {
  display: inline-block;
  transform: scaleY(-1);
  transform-origin: center center;
  margin-top: -1.8vh;
}

/* Top row main track: render squares instead of letters — smaller and spaced
   more like a glyph band than glowing text. */
.mm-row--top .mm-track--main {
  font-family: 'Conduit ITC', 'Consolas', monospace;
  letter-spacing: 0.25em;
  font-weight: 500;
}
.mm-row--top .mm-track--main .mm-text {
  font-size: 1.5vh;
  opacity: 0.5;
}

/* Default ghost (used by mid + bot). */
.mm-track--ghost {
  top: 1.5vh;
  font-family: 'Conduit ITC', 'Consolas', monospace;
  font-size: 1.05vh;
  letter-spacing: 0.1em;
  color: rgba(55, 100, 160, 0.18);
  text-shadow:
    0 0 0.4vh rgba(30, 70, 130, 0.22),
    0 0 1.1vh rgba(18, 50, 100, 0.14);
  opacity: 0.68;
  filter: blur(0.2vh);
}

/* Top row ghost: spaced translucent pipes | | | | | |. */
.mm-row--top .mm-track--ghost {
  top: 2.2vh;
  font-family: 'Conduit ITC', 'Consolas', monospace;
  font-size: 2vh;
  letter-spacing: 0.4em;
  color: rgba(210, 218, 228, 0.12);
  text-shadow:
    0 0 0.4vh rgba(190, 200, 215, 0.12),
    0 0 1.0vh rgba(160, 175, 195, 0.07);
  opacity: 0.54;
  filter: blur(0.25vh);
}

.mm-track--ghost .mm-text { padding-right: 4vw; }

/* Scroll left-to-right: duplicated content slides from -50% to 0. */
@keyframes mm-scroll-lr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0);    }
}

.mm-row--top .mm-track--main  { animation: mm-scroll-lr 40s linear infinite; }
.mm-row--top .mm-track--ghost { animation: mm-scroll-lr 65s linear infinite; }

.mm-row--mid .mm-track--main  { animation: mm-scroll-lr 53s linear infinite; }
.mm-row--mid .mm-track--ghost { animation: mm-scroll-lr 80s linear infinite; }

.mm-row--bot .mm-track--main  { animation: mm-scroll-lr 24.8s linear infinite; }
.mm-row--bot .mm-track--ghost { animation: mm-scroll-lr 39.2s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .mm-track { animation: none !important; }
}

@media (max-width: 700px) {
  .mm-track--main .mm-text { font-size: 2vh; }
  .mm-row--mid .mm-track--main { height: 1vh; }
  .mm-row--mid .mm-track--main .mm-text { margin-top: -1vh; }
  .mm-row--top .mm-track--main .mm-text { font-size: 1.3vh; }
}

/* Subpage: skip the staggered fade-in — show the back button immediately */
.view[data-route]:not([data-route="home"]) .menu .item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms !important;
}

@media (max-width: 700px) {
  .wordmark { font-size: 4.62vh; white-space: normal; }
  .page-title { font-size: 4.5vh; }
  .item { font-size: 2.86vh; }
  .item::before { width: 29vw; }
  .content { width: 90vw; font-size: 2vh; }
}

/* =========================================================
   About page: Halo 2 "Select Player" layout
   Reference: halo2ref/frame_29s.png
   ========================================================= */

:root {
  --h2-cyan: #3ecfcf;
  --h2-cyan-dim: rgba(100, 200, 220, 0.55);
  --h2-cyan-line: rgba(130, 220, 230, 0.75);
  --h2-bg: #07101c;
  --h2-label: rgba(150, 190, 220, 0.72);
  --h2-value: #eaf3fa;
  --h2-orange: #f48a22;
  --h2-blue: #2b80c4;
}

.panel--about {
  max-width: none;
  width: 100%;
  height: calc(100vh - 40px);
  margin-top: 40px;
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
}

.about-h2 {
  display: grid;
  grid-template-columns: minmax(280px, 36vw) minmax(240px, 28vw);
  gap: 2vw;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  padding: 3vh 0 8vh;
  box-sizing: border-box;
  align-items: stretch;
  justify-content: center;
  text-align: left;
}

/* ---------- LEFT column ---------- */

.about-h2-left {
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  min-width: 0;
  padding-top: calc(30vh - 170px);
}

.about-h2-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2vw;
  margin-top: 1vh;
}

.about-h2-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8vh;
  flex-shrink: 0;
}

.about-h2-emblem {
  width: 28.8vh;
  height: 28.8vh;
  background: rgba(16, 38, 68, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h2-cyan);
  box-shadow: inset 0 0 4vh rgba(30, 100, 150, 0.25);
}
.about-h2-emblem svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(70, 200, 220, 0.35));
  opacity: 0.55;
}

.about-h2-name {
  font-family: 'Conduit ITC', sans-serif;
  font-size: 2.2vh;
  letter-spacing: 0.06em;
  color: var(--h2-value);
  margin: 0;
  text-align: center;
  text-shadow: 0 0 0.6vh rgba(150, 210, 240, 0.35);
}

/* Stat block: two-line pairs (label on one line, value on next). */
.about-h2-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4vh;
  margin: 0;
  padding: 0;
  font-family: 'Conduit ITC', sans-serif;
  line-height: 1.2;
}
.about-h2-stat {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.4vh;
}
.about-h2-stat dt {
  font-size: 2.3vh;
  letter-spacing: 0.02em;
  color: var(--h2-label);
}
.about-h2-stat dd {
  font-size: 2.57vh;
  letter-spacing: 0.02em;
  color: var(--h2-value);
  margin: 0;
  padding-left: 1.2vw;
  text-shadow: 0 0 0.5vh rgba(170, 220, 240, 0.25);
}

/* Selection list — same styling as .proj-item rows on the Projects page. */
.about-h2-sel {
  display: flex;
  flex-direction: column;
  gap: 0.7vh;
  margin: 40px 0 0 40px;
  padding: 0;
  width: 20.88vw;
  max-width: 20.88vw;
  background: transparent;
  border: none;
}
.about-h2-sel-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 160ms;
}
.about-h2-sel-row:hover,
.about-h2-sel-row:focus,
.about-h2-sel-row.active {
  transform: translateX(10px);
}

.about-h2-sel-row-body {
  position: relative;
  flex: 1;
  font-family: 'Conduit ITC', sans-serif;
  font-size: 2.05vh;
  letter-spacing: calc(0.08em - 1px);
  color: rgba(190, 205, 225, 0.6);
  padding: 0.35vh 1.2vw 0.35vh 0.6vw;
  background-color: rgba(50, 110, 180, 0.18);
  background-image:
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18)),
    linear-gradient(rgba(51,74,96,0.18), rgba(51,74,96,0.18));
  background-repeat: no-repeat;
  background-size: 100% 1.7px;
  background-position: 0 0, 0 25%, 0 50%, 0 75%, 0 100%;
  transition: color 160ms, background-color 160ms, text-shadow 160ms;
}
.about-h2-sel-row:hover .about-h2-sel-row-body,
.about-h2-sel-row:focus .about-h2-sel-row-body,
.about-h2-sel-row.active .about-h2-sel-row-body {
  color: #ffffff;
  background-color: rgba(90, 160, 220, 0.38);
  text-shadow: 0 0 0.6vh rgba(170, 220, 255, 0.55);
}
.about-h2-sel-row:hover .about-h2-sel-emblem-sm,
.about-h2-sel-row:focus .about-h2-sel-emblem-sm,
.about-h2-sel-row.active .about-h2-sel-emblem-sm {
  background: rgba(40, 80, 130, 0.9);
}
/* Active indicator: L-bracket to the LEFT of the emblem (outside the row's flex flow). */
.about-h2-sel-row.active::before {
  content: '';
  position: absolute;
  left: -0.9vw;
  top: 50%;
  width: 0.55vw;
  height: 85%;
  border-left: 1px solid rgba(200, 230, 255, 0.8);
  border-top: 1px solid rgba(200, 230, 255, 0.8);
  border-bottom: 1px solid rgba(200, 230, 255, 0.8);
  transform: translateY(-50%);
}

/* Small emblem square to the LEFT of the rectangle, inside the row. */
.about-h2-sel-emblem-sm {
  width: 2.4vh;
  height: 2.4vh;
  align-self: center;
  background: rgba(16, 38, 68, 0.85);
  color: var(--h2-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}
.about-h2-sel-emblem-sm svg {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* ---------- RIGHT column (character slot) ---------- */

.about-h2-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  padding-top: calc(30vh - 140px + 1vh);
}

.about-h2-char {
  position: relative;
  width: 100%;
  max-width: 22vw;
  aspect-ratio: 3 / 4.6;
  max-height: 57.5vh;
  background: transparent;
  overflow: hidden;
  border: none;
}

/* Technical grid + curved sweep background */
.about-h2-char-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 230, 245, 0.315) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 230, 245, 0.315) 1px, transparent 1px);
  background-size: 3.2vh 3.2vh, 3.2vh 3.2vh;
  filter: drop-shadow(0 0 3px rgba(100, 220, 240, 0.765));
  mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 85%);
}

/* ---------- Bottom BACK prompt ---------- */

.panel--about > .about-back {
  position: absolute;
  right: 2vw;
  bottom: 2vh;
  z-index: 5;
}
.panel--about .about-back .item {
  font-family: 'Conduit ITC', sans-serif;
  font-size: 1.9vh;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h2-value);
}
.panel--about .about-back .item::before {
  width: 0;
  content: none;
}

@media (max-width: 900px) {
  .about-h2 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 2vh; padding: 2vh 4vw 10vh; }
  .about-h2-identity { width: auto; flex-direction: row; align-items: center; gap: 1.5vw; }
  .about-h2-emblem { width: 11vh; height: 11vh; }
  .about-h2-sel { min-width: 0; width: 100%; margin-left: 0; }
  .about-h2-right { min-height: 45vh; }
  .about-h2-prompts { right: 14vw; }
}
