/* Shared stylesheet extracted from inline page styles. */

/* Shared utility classes replacing former inline styles. */
body.page-resume .edu-note {
  font-size: 0.8rem;
  color: var(--text-main);
  margin-top: 4px;
}

/* Game UI data engineer portfolio refresh. */
body.page-home.game-shell {
  --bg: #111714;
  --bg-deep: #090d0c;
  --surface: rgba(18, 26, 23, 0.88);
  --surface-strong: rgba(25, 36, 32, 0.96);
  --text: #f2f7ef;
  --muted: #a9b8ad;
  --accent: #3cff9d;
  --accent-strong: #11d97c;
  --accent-soft: rgba(60, 255, 157, 0.12);
  --warning: #ffd15c;
  --cyan: #59d7ff;
  --line: rgba(186, 255, 213, 0.11);
  --line-strong: rgba(186, 255, 213, 0.22);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-strong: 0 30px 92px rgba(0, 0, 0, 0.44);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --font-body: "Inter", sans-serif;
  --font-display: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  background:
    linear-gradient(rgba(89, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 215, 255, 0.035) 1px, transparent 1px),
    radial-gradient(
      circle at 16% 8%,
      rgba(60, 255, 157, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 209, 92, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #111714 0%, #0b100e 58%, #070a09 100%);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto,
    auto;
}

body.page-home.game-shell::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 8px,
      rgba(60, 255, 157, 0.025) 9px
    );
  opacity: 0.75;
}

body.page-home.game-shell .nav-shell,
body.page-home.game-shell .card,
body.page-home.game-shell .project-card,
body.page-home.game-shell .contact-card,
body.page-home.game-shell .hero-panel,
body.page-home.game-shell .contact-link-card,
body.page-home.game-shell .project-detail,
body.page-home.game-shell .proof-item {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(60, 255, 157, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(25, 36, 32, 0.96), rgba(12, 18, 16, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    var(--shadow-soft);
}

body.page-home.game-shell .nav-shell {
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

body.page-home.game-shell .logo,
body.page-home.game-shell .section-title,
body.page-home.game-shell .hero-title,
body.page-home.game-shell .card-title,
body.page-home.game-shell .project-title,
body.page-home.game-shell .contact-card h3 {
  letter-spacing: 0;
  text-transform: none;
}

body.page-home.game-shell .logo,
body.page-home.game-shell .eyebrow,
body.page-home.game-shell .section-number,
body.page-home.game-shell .mini-label,
body.page-home.game-shell .project-type,
body.page-home.game-shell .status-pill {
  font-family: var(--font-mono);
}

body.page-home.game-shell .logo {
  color: var(--text);
  font-size: 1.4rem;
}

body.page-home.game-shell .nav-links a,
body.page-home.game-shell .hero-subtitle,
body.page-home.game-shell .section-copy,
body.page-home.game-shell .card-copy,
body.page-home.game-shell .skill-card p,
body.page-home.game-shell .project-card p,
body.page-home.game-shell .mini-list li,
body.page-home.game-shell .project-detail span,
body.page-home.game-shell .contact-card p,
body.page-home.game-shell .contact-link-card span,
body.page-home.game-shell .stack-item span,
body.page-home.game-shell .metric-card span {
  color: var(--muted);
}

body.page-home.game-shell .hero-title {
  display: block;
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 800;
  line-height: 0.94;
}

body.page-home.game-shell .hero-subtitle {
  font-size: 1.05rem;
}

body.page-home.game-shell .section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
}

body.page-home.game-shell .badge,
body.page-home.game-shell .pill,
body.page-home.game-shell .status-pill,
body.page-home.game-shell .project-button,
body.page-home.game-shell .btn-primary,
body.page-home.game-shell .btn-secondary,
body.page-home.game-shell .nav-cta {
  border-radius: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.page-home.game-shell .badge,
body.page-home.game-shell .pill {
  background: rgba(10, 16, 14, 0.8);
  border-color: var(--line-strong);
  color: var(--text);
}

body.page-home.game-shell .badge--soft,
body.page-home.game-shell .status-pill--live {
  background: rgba(60, 255, 157, 0.13);
  border-color: rgba(60, 255, 157, 0.35);
  color: var(--accent);
}

body.page-home.game-shell .status-pill--building {
  background: rgba(255, 209, 92, 0.12);
  border-color: rgba(255, 209, 92, 0.34);
  color: var(--warning);
}

body.page-home.game-shell .btn-primary,
body.page-home.game-shell .project-button,
body.page-home.game-shell .nav-cta {
  border: 1px solid rgba(60, 255, 157, 0.45);
  background: linear-gradient(180deg, #19e886, #0b8f55);
  color: #04110b;
  box-shadow: 0 0 28px rgba(60, 255, 157, 0.18);
  font-weight: 800;
}

body.page-home.game-shell .btn-secondary {
  border-color: rgba(89, 215, 255, 0.34);
  background: rgba(89, 215, 255, 0.08);
  color: var(--cyan);
}

body.page-home.game-shell .hero-panel.game-card {
  min-height: auto;
  padding: 1.2rem;
}

body.page-home.game-shell .player-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 10, 0.54);
}

body.page-home.game-shell .avatar-frame {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(60, 255, 157, 0.55);
  border-radius: 8px;
  background: #202824;
  box-shadow: 0 0 24px rgba(60, 255, 157, 0.12);
}

body.page-home.game-shell .avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-home.game-shell .player-card h2 {
  margin-top: 0.2rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

body.page-home.game-shell .player-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

body.page-home.game-shell .metric-card {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 10, 0.62);
}

body.page-home.game-shell .metric-card strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 5vw, 2.7rem);
}

body.page-home.game-shell .project-card--featured {
  grid-column: span 6;
}

body.page-home.game-shell .project-card--small {
  grid-column: span 4;
}

body.page-home.game-shell .footer-shell {
  border-color: var(--line-strong);
}

body.page-home.game-shell .footer-links a {
  border-radius: 6px;
  border-color: var(--line-strong);
  background: rgba(25, 36, 32, 0.82);
}

body.page-resume,
body.page-book-project,
body.page-search-project {
  --bg-main: #0b100e;
  --bg-surface: rgba(20, 30, 26, 0.96);
  --bg-elevated: #111714;
  --primary: #3cff9d;
  --primary-deep: #11d97c;
  --primary-glow: #59d7ff;
  --text-main: #f2f7ef;
  --text-muted: rgba(198, 213, 202, 0.76);
  --glass-border: rgba(186, 255, 213, 0.16);
  --glass-strong: rgba(186, 255, 213, 0.26);
  --glass-bg: rgba(16, 24, 21, 0.94);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 28px 82px rgba(0, 0, 0, 0.42);
}

body.page-resume .cv-sheet,
body.page-book-project .case-card,
body.page-search-project .case-card,
body.page-book-project .sidebar-card,
body.page-search-project .sidebar-card,
body.page-book-project .navbar,
body.page-search-project .navbar {
  border-radius: 8px;
  border-color: var(--glass-border);
  background:
    linear-gradient(135deg, rgba(60, 255, 157, 0.08), transparent 34%),
    rgba(16, 24, 21, 0.94);
}

@media (max-width: 1040px) {
  body.page-home.game-shell .project-card--featured,
  body.page-home.game-shell .project-card--small {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  body.page-home.game-shell .player-card {
    grid-template-columns: 1fr;
  }
}

/* Static Valorant-inspired Data Engineer portfolio. */
:root {
  --v-white: #ffffff;
  --v-red: #e11d48;
  --v-dark: #0f0f11;
  --v-gray: #d1d5db;
  --v-ink: #15161a;
  --v-muted: #68707d;
  --v-panel: rgba(255, 255, 255, 0.82);
  --v-line: rgba(15, 15, 17, 0.14);
  --v-line-dark: rgba(255, 255, 255, 0.14);
  --v-shadow: 12px 12px 0 rgba(15, 15, 17, 0.08);
  --v-font-display: "Orbitron", sans-serif;
  --v-font-heading: "Rajdhani", sans-serif;
  --v-font-body: "Inter", sans-serif;
  --v-glow: rgba(225, 29, 72, 0.4);
  --v-glow-intense: rgba(225, 29, 72, 0.8);
}

@keyframes loaderSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(500%);
  }
}

@keyframes gridDrift {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(58px) translateY(58px);
  }
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-40px) translateX(-10px);
  }
  75% {
    transform: translateY(-20px) translateX(20px);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes dataLine {
  0% {
    opacity: 0;
    width: 0;
  }
  50% {
    opacity: 1;
    width: 100%;
  }
  100% {
    opacity: 0;
    width: 0;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(225, 29, 72, 0.3),
      inset 0 0 20px rgba(225, 29, 72, 0.1);
  }
  50% {
    box-shadow:
      0 0 40px rgba(225, 29, 72, 0.6),
      inset 0 0 30px rgba(225, 29, 72, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.valorant-portfolio,
body.valorant-portfolio * {
  box-sizing: border-box;
}

body.valorant-portfolio {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--v-ink);
  font-family: var(--v-font-body);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(225, 29, 72, 0.18),
      transparent 28rem
    ),
    linear-gradient(90deg, rgba(15, 15, 17, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(15, 15, 17, 0.055) 1px, transparent 1px), #f3f0ea;
  background-size:
    auto,
    46px 46px,
    46px 46px,
    auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body.valorant-portfolio::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(
      115deg,
      transparent 0 58%,
      rgba(225, 29, 72, 0.1) 58% 61%,
      transparent 61%
    ),
    repeating-radial-gradient(
      circle at 20% 30%,
      rgba(15, 15, 17, 0.06) 0 1px,
      transparent 1px 4px
    );
}

body.valorant-portfolio a {
  color: inherit;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

.reveal.is-visible {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .v-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .v-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 15, 17, 0.96);
    padding: 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-top: none;
  }

  .v-links.is-open {
    display: flex;
  }

  .v-links a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(225, 29, 72, 0.1);
    display: block;
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.2rem;
  background: var(--v-dark);
  color: var(--v-white);
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 2px solid var(--v-red);
  font-family: var(--v-font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--v-red);
  clip-path: polygon(0 0, 88% 0, 100% 18%, 100% 100%, 12% 100%, 0 82%);
  box-shadow:
    0 0 30px rgba(225, 29, 72, 0.5),
    inset 0 0 30px rgba(225, 29, 72, 0.2);
  animation: glowPulse 2s ease-in-out infinite;
}

.loader-track {
  width: min(320px, 70vw);
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.loader-track span {
  display: block;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, var(--v-red), rgba(225, 29, 72, 0.6));
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.8);
  animation: loaderSlide 1.1s ease-in-out infinite;
}

.loader p {
  margin: 0;
  font-family: var(--v-font-heading);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v-gray);
  font-size: 0.9rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--v-red), #ffffff, var(--v-red));
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
}

.mouse-light {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.22), transparent 64%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.v-container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-panel {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.v-nav {
  position: fixed;
  inset: 1rem 1rem auto;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 15, 17, 0.76);
  color: var(--v-white);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

.v-logo {
  text-decoration: none;
  font-family: var(--v-font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.v-logo span {
  color: var(--v-red);
}

.v-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v-links a {
  text-decoration: none;
  font-family: var(--v-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-gray);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.v-links a:hover {
  color: var(--v-white);
  text-shadow: 0 0 18px rgba(225, 29, 72, 0.75);
}

.v-nav-cta {
  padding: 0.65rem 0.95rem;
  background: var(--v-red);
  color: var(--v-white) !important;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}

.v-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--v-white);
  cursor: pointer;
}

.v-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 8rem;
  overflow: hidden;
  color: var(--v-white);
  background:
    linear-gradient(120deg, rgba(15, 15, 17, 0.96), rgba(15, 15, 17, 0.84)),
    radial-gradient(
      circle at 70% 25%,
      rgba(225, 29, 72, 0.34),
      transparent 24rem
    ),
    var(--v-dark);
}

.grid-layer {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: gridDrift 18s linear infinite;
}

.particle-field span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--v-red);
  box-shadow: 0 0 28px rgba(225, 29, 72, 0.9);
  animation: floatParticle 8s ease-in-out infinite;
}

.particle-field span:nth-child(1) {
  top: 18%;
  left: 14%;
  animation-delay: 0s;
}
.particle-field span:nth-child(2) {
  top: 28%;
  right: 18%;
  animation-delay: 1s;
}
.particle-field span:nth-child(3) {
  bottom: 24%;
  left: 24%;
  animation-delay: 2s;
}
.particle-field span:nth-child(4) {
  bottom: 18%;
  right: 28%;
  animation-delay: 3s;
}
.particle-field span:nth-child(5) {
  top: 52%;
  right: 9%;
  animation-delay: 4s;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.kicker,
.section-code {
  margin: 0;
  font-family: var(--v-font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--v-red);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0.7rem 0 0;
  font-family: var(--v-font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 7vw, 6.9rem);
  line-height: 0.88;
}

.hero-subtitle {
  max-width: 56ch;
  margin: 1.2rem 0 0;
  color: var(--v-gray);
  font-family: var(--v-font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
}

.typing-line {
  min-height: 1.8rem;
  margin: 1rem 0 0;
  color: #ffffff;
  font-family: var(--v-font-heading);
  font-size: 1.05rem;
}

.typing-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--v-red);
  animation: blink 0.8s step-end infinite;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.v-btn,
.project-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--v-font-heading);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.v-btn-primary,
.project-actions a:first-child {
  background: var(--v-red);
  color: var(--v-white);
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.24);
}

.v-btn-ghost,
.project-actions a:last-child {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--v-white);
}

.v-btn:hover,
.project-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px rgba(225, 29, 72, 0.34);
}

.hero-card,
.about-panel,
.v-project,
.cert-card,
.contact-card,
.terminal,
.timeline-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v-line);
  background: var(--v-panel);
  box-shadow: var(--v-shadow);
  backdrop-filter: blur(18px);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}

.hero-card {
  padding: 1.2rem;
  color: var(--v-ink);
}

.hero-card::before,
.v-project::before,
.cert-card::before,
.timeline-item::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--v-red), transparent);
}

.hero-card-top,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--v-font-heading);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card-top span,
.project-meta span {
  color: var(--v-muted);
}

.hero-card-top strong,
.project-meta strong {
  color: var(--v-red);
}

.profile-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}

.profile-frame {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--v-dark);
  background: #ece8e1;
}

.profile-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-row p,
.profile-row h2 {
  margin: 0;
}

.profile-row h2 {
  font-family: var(--v-font-heading);
  font-size: 1.7rem;
  line-height: 1;
}

.profile-row span {
  color: var(--v-muted);
}

.hero-stats,
.github-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-stats div,
.github-stats div {
  padding: 1rem;
  border: 1px solid var(--v-line);
  background: rgba(15, 15, 17, 0.04);
}

.hero-stats strong,
.github-stats strong {
  display: block;
  font-family: var(--v-font-display);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  color: var(--v-red);
}

.hero-stats span,
.github-stats span {
  display: block;
  color: var(--v-muted);
  font-size: 0.85rem;
}

.data-flow {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.data-flow span {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--v-red), transparent);
  animation: dataLine 2.2s ease-in-out infinite;
}

.data-flow span:nth-child(2) {
  animation-delay: 0.35s;
}
.data-flow span:nth-child(3) {
  animation-delay: 0.7s;
}

.split-layout,
.contact-layout,
.github-layout,
.cert-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.section-heading p:not(.section-code) {
  max-width: 54ch;
  color: var(--v-muted);
}

.about-panel,
.cert-card,
.contact-card,
.timeline-item {
  padding: 1.5rem;
}

.about-panel p {
  margin: 0 0 1rem;
  color: #303741;
  line-height: 1.8;
}

.about-grid,
.tag-row,
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.about-grid span,
.tag-row span,
.project-metrics span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--v-line);
  background: rgba(225, 29, 72, 0.06);
  color: var(--v-ink);
  font-family: var(--v-font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dark-band {
  color: var(--v-white);
  background:
    linear-gradient(130deg, rgba(225, 29, 72, 0.14), transparent 36%),
    var(--v-dark);
}

.dark-band .section-heading h2 {
  color: var(--v-white);
}

.dark-band .section-heading p:not(.section-code) {
  color: var(--v-gray);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.tech-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--v-line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--v-white);
  text-align: center;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.tech-card i {
  font-size: 1.8rem;
  color: var(--v-red);
}

.tech-card span {
  font-family: var(--v-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.72);
  box-shadow: 0 0 34px rgba(225, 29, 72, 0.18);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.v-project {
  grid-column: span 3;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  transform-style: preserve-3d;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.v-project:nth-child(3),
.v-project:nth-child(4),
.v-project:nth-child(5) {
  grid-column: span 2;
}

.v-project h3,
.cert-card h3,
.timeline-item h3 {
  margin: 0;
  font-family: var(--v-font-heading);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.v-project p,
.cert-card p,
.timeline-item p {
  margin: 0;
  color: var(--v-muted);
  line-height: 1.7;
}

.project-actions {
  margin-top: auto;
}

.project-actions a:last-child {
  border-color: var(--v-line);
  color: var(--v-ink);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 2px;
  background: linear-gradient(var(--v-red), transparent);
}

.timeline-item {
  margin-left: 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--v-line-dark);
  color: var(--v-white);
}

.timeline-item span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--v-red);
  font-family: var(--v-font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.timeline-item p {
  color: var(--v-gray);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cert-card i {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--v-red);
  font-size: 2rem;
}

.github-stats {
  margin: 0;
}

.github-stats div {
  border-color: var(--v-line-dark);
  background: rgba(255, 255, 255, 0.06);
}

.terminal {
  grid-column: 1 / -1;
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 0 44px rgba(225, 29, 72, 0.12);
}

.terminal-top {
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1rem 0;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  background: var(--v-red);
}

.terminal pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: var(--v-gray);
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.7;
}

.contact-section {
  background:
    linear-gradient(120deg, rgba(225, 29, 72, 0.1), transparent 40%), #ffffff;
}

.contact-card {
  display: grid;
  gap: 0.85rem;
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--v-line);
  text-decoration: none;
  font-family: var(--v-font-heading);
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-card a:hover {
  transform: translateX(6px);
  border-color: var(--v-red);
  box-shadow: 0 0 24px rgba(225, 29, 72, 0.12);
}

.contact-card i {
  color: var(--v-red);
  font-size: 1.25rem;
}

.v-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(1rem, calc((100vw - 1180px) / 2));
  background: var(--v-dark);
  color: var(--v-gray);
}

.v-footer p {
  margin: 0;
}

.v-footer a {
  color: var(--v-white);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.float-card {
  animation: subtleFloat 6s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes gridDrift {
  to {
    transform: translate3d(58px, 58px, 0);
  }
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-22px) scale(1.3);
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes dataLine {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleX(0.35);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1040px) {
  .hero-layout,
  .split-layout,
  .contact-layout,
  .github-layout,
  .cert-layout {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v-project,
  .v-project:nth-child(3),
  .v-project:nth-child(4),
  .v-project:nth-child(5) {
    grid-column: span 6;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .v-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .v-links {
    position: fixed;
    top: 5.4rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(15, 15, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .v-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .v-links a {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .hero-actions,
  .project-actions,
  .v-btn,
  .project-actions a {
    width: 100%;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats,
  .github-stats {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* True final cascade: flat Valorant-inspired white and rose-red theme. */
body.page-home.game-shell {
  --bg: #ece8e1;
  --bg-deep: #d9d2c7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #0f1923;
  --muted: #52606a;
  --accent: #ff4655;
  --accent-strong: #d92f3d;
  --accent-soft: rgba(255, 70, 85, 0.1);
  --warning: #0f1923;
  --cyan: #0f1923;
  --line: rgba(15, 25, 35, 0.14);
  --line-strong: rgba(15, 25, 35, 0.32);
  --shadow-soft: 10px 10px 0 rgba(15, 25, 35, 0.08);
  --shadow-strong: 14px 14px 0 rgba(15, 25, 35, 0.12);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(15, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(
      135deg,
      transparent 0 64%,
      rgba(255, 70, 85, 0.08) 64% 68%,
      transparent 68%
    ),
    #ece8e1;
  background-size:
    42px 42px,
    42px 42px,
    100% 760px,
    auto;
}

body.page-home.game-shell::before {
  background:
    linear-gradient(
      115deg,
      transparent 0 52%,
      rgba(255, 70, 85, 0.09) 52% 56%,
      transparent 56%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 52%);
  opacity: 1;
}

body.page-home.game-shell .nav-shell,
body.page-home.game-shell .card,
body.page-home.game-shell .project-card,
body.page-home.game-shell .contact-card,
body.page-home.game-shell .hero-panel,
body.page-home.game-shell .contact-link-card,
body.page-home.game-shell .project-detail,
body.page-home.game-shell .metric-card,
body.page-home.game-shell .player-card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body.page-home.game-shell .card::before,
body.page-home.game-shell .project-card::before,
body.page-home.game-shell .contact-card::before,
body.page-home.game-shell .hero-panel::before {
  height: 5px;
  background: var(--accent);
}

body.page-home.game-shell .card::after,
body.page-home.game-shell .project-card::after,
body.page-home.game-shell .contact-card::after,
body.page-home.game-shell .hero-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, transparent 0 50%, var(--accent) 50%);
  pointer-events: none;
}

body.page-home.game-shell .nav-shell {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

body.page-home.game-shell .nav-links a {
  color: #34414b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-home.game-shell .nav-links a:hover,
body.page-home.game-shell .logo span,
body.page-home.game-shell .eyebrow,
body.page-home.game-shell .section-number,
body.page-home.game-shell .mini-label,
body.page-home.game-shell .project-type,
body.page-home.game-shell .contact-link-card i {
  color: var(--accent);
}

body.page-home.game-shell .hero-title,
body.page-home.game-shell .section-title,
body.page-home.game-shell .project-title--large {
  color: #0f1923;
  text-transform: uppercase;
}

body.page-home.game-shell .hero-title {
  max-width: 13ch;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  line-height: 0.9;
}

body.page-home.game-shell .section-title {
  font-size: clamp(2.25rem, 5.4vw, 4.4rem);
}

body.page-home.game-shell .card-title,
body.page-home.game-shell .project-title,
body.page-home.game-shell .contact-card h3,
body.page-home.game-shell .skill-card h3,
body.page-home.game-shell .player-card h2,
body.page-home.game-shell .project-detail strong,
body.page-home.game-shell .contact-link-card strong,
body.page-home.game-shell .stack-item strong {
  color: #0f1923;
}

body.page-home.game-shell .hero-subtitle,
body.page-home.game-shell .section-copy,
body.page-home.game-shell .skill-card p,
body.page-home.game-shell .project-card p,
body.page-home.game-shell .mini-list li,
body.page-home.game-shell .project-detail span,
body.page-home.game-shell .contact-card p,
body.page-home.game-shell .contact-link-card span,
body.page-home.game-shell .stack-item span,
body.page-home.game-shell .metric-card span,
body.page-home.game-shell .player-card span {
  color: var(--muted);
}

body.page-home.game-shell .badge,
body.page-home.game-shell .status-pill {
  border: 1px solid rgba(15, 25, 35, 0.24);
  border-radius: 0;
  background: #f7f5f1;
  color: #0f1923;
}

body.page-home.game-shell .badge--soft,
body.page-home.game-shell .status-pill--live {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

body.page-home.game-shell .status-pill--building {
  border-color: #0f1923;
  background: #0f1923;
  color: #ffffff;
}

body.page-home.game-shell .btn-primary,
body.page-home.game-shell .project-button,
body.page-home.game-shell .nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 6px 6px 0 rgba(15, 25, 35, 0.15);
}

body.page-home.game-shell .btn-primary::after,
body.page-home.game-shell .project-button::after,
body.page-home.game-shell .nav-cta::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  background: #0f1923;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

body.page-home.game-shell .btn-secondary {
  border: 1px solid #0f1923;
  border-radius: 0;
  background: #ffffff;
  color: #0f1923;
  box-shadow: 6px 6px 0 rgba(15, 25, 35, 0.1);
}

body.page-home.game-shell .btn-primary:hover,
body.page-home.game-shell .btn-secondary:hover,
body.page-home.game-shell .project-button:hover,
body.page-home.game-shell .card:hover,
body.page-home.game-shell .project-card:hover,
body.page-home.game-shell .contact-card:hover,
body.page-home.game-shell .hero-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-strong);
}

body.page-home.game-shell .panel-dot,
body.page-home.game-shell .mini-list li::before {
  border-radius: 0;
  background: var(--accent);
}

/* Ancient-style portfolio theme for Data Engineer homepage */
body.ancient-portfolio {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #3c3224;
  background: linear-gradient(180deg, #f6f0e4 0%, #e7dcc7 100%);
  background-attachment: fixed;
}

body.ancient-portfolio::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  background-image:
    radial-gradient(
      circle at 12% 14%,
      rgba(215, 185, 123, 0.18),
      transparent 18%
    ),
    radial-gradient(
      circle at 86% 16%,
      rgba(172, 146, 98, 0.14),
      transparent 14%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(92, 72, 50, 0.03) 1px, transparent 1px);
}

body.ancient-portfolio a {
  color: inherit;
}

body.ancient-portfolio .v-nav {
  background: rgba(255, 249, 238, 0.9);
  border-color: rgba(129, 100, 62, 0.18);
  box-shadow: 0 18px 50px rgba(92, 72, 50, 0.12);
}

body.ancient-portfolio .v-logo {
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #5d462f;
}

body.ancient-portfolio .v-logo span {
  color: #a57f4b;
}

body.ancient-portfolio .v-links a,
body.ancient-portfolio .v-menu-toggle {
  color: #6f5c47;
}

body.ancient-portfolio .v-links a:hover,
body.ancient-portfolio .v-links a:focus-visible {
  color: #7f603c;
  text-shadow: 0 0 18px rgba(175, 141, 90, 0.28);
}

body.ancient-portfolio .v-nav-cta,
body.ancient-portfolio .v-btn-primary,
body.ancient-portfolio .project-actions a:first-child {
  background: linear-gradient(135deg, #a57f4b, #d4b27d);
  color: #2f2210 !important;
  border-color: rgba(145, 108, 60, 0.3);
  box-shadow: 0 12px 26px rgba(129, 100, 62, 0.18);
}

body.ancient-portfolio .v-btn-ghost,
body.ancient-portfolio .project-actions a:last-child {
  border-color: rgba(129, 100, 60, 0.18);
  background: rgba(255, 249, 238, 0.85);
  color: #594a36;
}

body.ancient-portfolio .v-hero {
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 244, 0.98),
      rgba(235, 217, 190, 0.98)
    ),
    radial-gradient(
      circle at 18% 18%,
      rgba(215, 185, 123, 0.2),
      transparent 18%
    ),
    radial-gradient(
      circle at 82% 25%,
      rgba(170, 132, 84, 0.16),
      transparent 20%
    );
  color: #3c3224;
}

body.ancient-portfolio .grid-layer {
  opacity: 0.22;
  background:
    linear-gradient(90deg, rgba(92, 72, 50, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(92, 72, 50, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

body.ancient-portfolio .particle-field span {
  width: 10px;
  height: 10px;
  background: rgba(169, 125, 69, 0.26);
  box-shadow: 0 0 18px rgba(169, 125, 69, 0.18);
}

body.ancient-portfolio .hero-copy h1,
body.ancient-portfolio .section-heading h2 {
  color: #4e3c2c;
  font-family: "Rajdhani", sans-serif;
}

body.ancient-portfolio .kicker,
body.ancient-portfolio .section-code {
  color: #8c7252;
}

body.ancient-portfolio .hero-subtitle,
body.ancient-portfolio .section-heading p:not(.section-code) {
  color: #6d5c48;
}

body.ancient-portfolio .typing-line {
  color: #5b4835;
}

body.ancient-portfolio .typing-caret {
  background: #8c7252;
}

body.ancient-portfolio .hero-card,
body.ancient-portfolio .about-panel,
body.ancient-portfolio .v-project,
body.ancient-portfolio .cert-card,
body.ancient-portfolio .contact-card,
body.ancient-portfolio .terminal,
body.ancient-portfolio .timeline-item {
  background: rgba(255, 249, 239, 0.92);
  border-color: rgba(138, 107, 70, 0.16);
  box-shadow: 0 24px 50px rgba(92, 72, 50, 0.08);
}

body.ancient-portfolio .hero-card::before,
body.ancient-portfolio .v-project::before,
body.ancient-portfolio .cert-card::before,
body.ancient-portfolio .timeline-item::before,
body.ancient-portfolio .contact-card::before {
  background: linear-gradient(90deg, rgba(165, 127, 75, 0.9), transparent);
}

body.ancient-portfolio .hero-card-top span,
body.ancient-portfolio .project-meta span {
  color: #8c7155;
}

body.ancient-portfolio .hero-card-top strong,
body.ancient-portfolio .project-meta strong,
body.ancient-portfolio .timeline-item span,
body.ancient-portfolio .cert-card i,
body.ancient-portfolio .contact-card i {
  color: #a67e4d;
}

body.ancient-portfolio .profile-frame {
  border-color: rgba(145, 109, 65, 0.18);
  background: #faf3e6;
}

body.ancient-portfolio .hero-stats div,
body.ancient-portfolio .github-stats div {
  background: rgba(255, 249, 238, 0.88);
  border-color: rgba(138, 107, 70, 0.14);
}

body.ancient-portfolio .hero-stats strong,
body.ancient-portfolio .github-stats strong {
  color: #7a5f3e;
}

body.ancient-portfolio .about-grid span,
body.ancient-portfolio .tag-row span,
body.ancient-portfolio .project-metrics span {
  background: rgba(226, 199, 156, 0.24);
  color: #5c4a34;
  border-color: rgba(145, 109, 65, 0.18);
}

body.ancient-portfolio .tech-card {
  background: rgba(255, 250, 242, 0.84);
  border-color: rgba(140, 108, 68, 0.14);
}

body.ancient-portfolio .tech-card i,
body.ancient-portfolio .cert-card i,
body.ancient-portfolio .project-meta strong {
  color: #a67e4d;
}

body.ancient-portfolio .tech-card:hover,
body.ancient-portfolio .v-project:hover,
body.ancient-portfolio .contact-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(92, 72, 50, 0.12);
}

body.ancient-portfolio .dark-band {
  background: linear-gradient(
    180deg,
    rgba(240, 229, 209, 0.96),
    rgba(229, 212, 185, 0.96)
  );
}

body.ancient-portfolio .dark-band .section-heading h2,
body.ancient-portfolio .dark-band .section-heading p:not(.section-code) {
  color: #4c3d2f;
}

body.ancient-portfolio .timeline::before {
  background: linear-gradient(180deg, #a57f4b, rgba(165, 127, 75, 0.4));
}

body.ancient-portfolio .timeline-item {
  color: #4f4031;
}

body.ancient-portfolio .timeline-item p,
body.ancient-portfolio .project-actions a:last-child,
body.ancient-portfolio .about-panel p,
body.ancient-portfolio .v-project p,
body.ancient-portfolio .timeline-item p,
body.ancient-portfolio .section-heading p:not(.section-code) {
  color: #6f5f50;
}

body.ancient-portfolio .terminal {
  background: rgba(63, 51, 39, 0.08);
  border-color: rgba(145, 109, 65, 0.16);
}

body.ancient-portfolio .terminal pre {
  color: #5e4f3d;
}

body.ancient-portfolio .contact-card a {
  border-color: rgba(145, 109, 65, 0.14);
  background: rgba(255, 250, 242, 0.9);
}

body.ancient-portfolio .contact-card a:hover {
  border-color: #a67e4d;
  box-shadow: 0 18px 36px rgba(92, 72, 50, 0.1);
}

body.ancient-portfolio .v-footer {
  background: rgba(234, 221, 198, 0.95);
  color: #5e4f3d;
  border-top: 1px solid rgba(145, 109, 65, 0.14);
}

body.ancient-portfolio .scroll-progress {
  background: linear-gradient(
    90deg,
    rgba(165, 127, 75, 0.95),
    rgba(213, 183, 128, 0.95)
  );
}

body.ancient-portfolio .mouse-light {
  background: radial-gradient(
    circle,
    rgba(212, 181, 121, 0.22),
    transparent 48%
  );
}

body.ancient-portfolio .loader {
  background: rgba(255, 250, 244, 0.98);
  color: #5c4d3c;
}

body.ancient-portfolio .loader-mark {
  border-color: #a57f4b;
  color: #a57f4b;
  background: rgba(255, 249, 238, 0.88);
  box-shadow: 0 0 24px rgba(165, 127, 75, 0.28);
  animation: glowPulse 3.4s ease-in-out infinite;
}

body.ancient-portfolio .loader-track {
  background: rgba(92, 72, 50, 0.08);
  border-color: rgba(165, 127, 75, 0.2);
}

body.ancient-portfolio .loader-track span {
  background: linear-gradient(90deg, #a57f4b, #d4b27d);
  box-shadow: 0 0 18px rgba(165, 127, 75, 0.3);
}

body.ancient-portfolio .loader p {
  color: #6d5c48;
}

body.ancient-portfolio .hero-card,
body.ancient-portfolio .about-panel,
body.ancient-portfolio .v-project,
body.ancient-portfolio .cert-card,
body.ancient-portfolio .contact-card,
body.ancient-portfolio .terminal,
body.ancient-portfolio .timeline-item {
  animation: fadeInScale 0.8s ease both;
}

body.page-home.game-shell .panel-dot {
  box-shadow: 0 0 0 7px var(--accent-soft);
}

body.page-home.game-shell .avatar-frame {
  border: 1px solid #0f1923;
  border-radius: 0;
  background: #ece8e1;
  box-shadow: 6px 6px 0 rgba(255, 70, 85, 0.18);
}

body.page-home.game-shell .metric-card strong {
  color: var(--accent);
  font-weight: 800;
}

body.page-home.game-shell .footer-links a,
body.page-home.game-shell .nav-links.active {
  border-radius: 0;
  background: #ffffff;
}

body.page-resume,
body.page-book-project,
body.page-search-project {
  --bg-main: #ece8e1;
  --bg-surface: #ffffff;
  --bg-elevated: #0f1923;
  --primary: #ff4655;
  --primary-deep: #d92f3d;
  --primary-glow: #ff4655;
  --text-main: #0f1923;
  --text-muted: rgba(15, 25, 35, 0.68);
  --glass-border: rgba(15, 25, 35, 0.22);
  --glass-strong: rgba(15, 25, 35, 0.35);
  --glass-bg: #ffffff;
  --shadow-soft: 8px 8px 0 rgba(15, 25, 35, 0.08);
  --shadow-strong: 12px 12px 0 rgba(15, 25, 35, 0.12);
}

body.page-resume .cv-sheet,
body.page-book-project .case-card,
body.page-search-project .case-card,
body.page-book-project .sidebar-card,
body.page-search-project .sidebar-card,
body.page-book-project .navbar,
body.page-search-project .navbar {
  border-radius: 0;
  border-color: var(--glass-border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body.page-resume .cv-banner,
body.page-book-project .btn-primary,
body.page-search-project .btn-primary {
  background: #ff4655;
  color: #ffffff;
}

body.page-book-project .badge,
body.page-search-project .badge {
  border-radius: 0;
}

@media (max-width: 820px) {
  body.page-home.game-shell .nav-links,
  body.page-home.game-shell .nav-links a {
    border-radius: 0;
  }
}

/* Valorant-inspired professional polish: flat white, rose red, sharp borders. */
body.page-home.game-shell {
  --bg: #ece8e1;
  --bg-deep: #d9d2c7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #0f1923;
  --muted: #52606a;
  --accent: #ff4655;
  --accent-strong: #d92f3d;
  --accent-soft: rgba(255, 70, 85, 0.1);
  --warning: #a86d00;
  --cyan: #0f1923;
  --line: rgba(15, 25, 35, 0.14);
  --line-strong: rgba(15, 25, 35, 0.32);
  --shadow-soft: 10px 10px 0 rgba(15, 25, 35, 0.08);
  --shadow-strong: 14px 14px 0 rgba(15, 25, 35, 0.12);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(15, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(
      135deg,
      transparent 0 64%,
      rgba(255, 70, 85, 0.08) 64% 68%,
      transparent 68%
    ),
    #ece8e1;
  background-size:
    42px 42px,
    42px 42px,
    100% 760px,
    auto;
}

body.page-home.game-shell::before {
  background:
    linear-gradient(
      115deg,
      transparent 0 52%,
      rgba(255, 70, 85, 0.09) 52% 56%,
      transparent 56%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 52%);
  opacity: 1;
}

body.page-home.game-shell .nav-shell,
body.page-home.game-shell .card,
body.page-home.game-shell .project-card,
body.page-home.game-shell .contact-card,
body.page-home.game-shell .hero-panel,
body.page-home.game-shell .contact-link-card,
body.page-home.game-shell .project-detail,
body.page-home.game-shell .metric-card,
body.page-home.game-shell .player-card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body.page-home.game-shell .card::before,
body.page-home.game-shell .project-card::before,
body.page-home.game-shell .contact-card::before,
body.page-home.game-shell .hero-panel::before {
  height: 5px;
  background: var(--accent);
}

body.page-home.game-shell .card::after,
body.page-home.game-shell .project-card::after,
body.page-home.game-shell .contact-card::after,
body.page-home.game-shell .hero-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, transparent 0 50%, var(--accent) 50%);
  pointer-events: none;
}

body.page-home.game-shell .nav {
  padding-top: 0.85rem;
}

body.page-home.game-shell .nav-shell {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

body.page-home.game-shell .nav-links a {
  color: #34414b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-home.game-shell .nav-links a:hover,
body.page-home.game-shell .logo span,
body.page-home.game-shell .eyebrow,
body.page-home.game-shell .section-number,
body.page-home.game-shell .mini-label,
body.page-home.game-shell .project-type,
body.page-home.game-shell .contact-link-card i {
  color: var(--accent);
}

body.page-home.game-shell .hero-title,
body.page-home.game-shell .section-title,
body.page-home.game-shell .project-title--large {
  color: #0f1923;
  text-transform: uppercase;
}

body.page-home.game-shell .hero-title {
  max-width: 13ch;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  line-height: 0.9;
}

body.page-home.game-shell .section-title {
  font-size: clamp(2.25rem, 5.4vw, 4.4rem);
}

body.page-home.game-shell .card-title,
body.page-home.game-shell .project-title,
body.page-home.game-shell .contact-card h3,
body.page-home.game-shell .skill-card h3,
body.page-home.game-shell .player-card h2,
body.page-home.game-shell .project-detail strong,
body.page-home.game-shell .contact-link-card strong,
body.page-home.game-shell .stack-item strong {
  color: #0f1923;
}

body.page-home.game-shell .hero-subtitle,
body.page-home.game-shell .section-copy,
body.page-home.game-shell .skill-card p,
body.page-home.game-shell .project-card p,
body.page-home.game-shell .mini-list li,
body.page-home.game-shell .project-detail span,
body.page-home.game-shell .contact-card p,
body.page-home.game-shell .contact-link-card span,
body.page-home.game-shell .stack-item span,
body.page-home.game-shell .metric-card span,
body.page-home.game-shell .player-card span {
  color: var(--muted);
}

body.page-home.game-shell .badge,
body.page-home.game-shell .status-pill {
  border: 1px solid rgba(15, 25, 35, 0.24);
  border-radius: 0;
  background: #f7f5f1;
  color: #0f1923;
}

body.page-home.game-shell .badge--soft,
body.page-home.game-shell .status-pill--live {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

body.page-home.game-shell .status-pill--building {
  border-color: #0f1923;
  background: #0f1923;
  color: #ffffff;
}

body.page-home.game-shell .btn-primary,
body.page-home.game-shell .project-button,
body.page-home.game-shell .nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 6px 6px 0 rgba(15, 25, 35, 0.15);
}

body.page-home.game-shell .btn-primary::after,
body.page-home.game-shell .project-button::after,
body.page-home.game-shell .nav-cta::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  background: #0f1923;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

body.page-home.game-shell .btn-secondary {
  border: 1px solid #0f1923;
  border-radius: 0;
  background: #ffffff;
  color: #0f1923;
  box-shadow: 6px 6px 0 rgba(15, 25, 35, 0.1);
}

body.page-home.game-shell .btn-primary:hover,
body.page-home.game-shell .btn-secondary:hover,
body.page-home.game-shell .project-button:hover,
body.page-home.game-shell .card:hover,
body.page-home.game-shell .project-card:hover,
body.page-home.game-shell .contact-card:hover,
body.page-home.game-shell .hero-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-strong);
}

body.page-home.game-shell .panel-dot {
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--accent-soft);
}

body.page-home.game-shell .avatar-frame {
  border: 1px solid #0f1923;
  border-radius: 0;
  background: #ece8e1;
  box-shadow: 6px 6px 0 rgba(255, 70, 85, 0.18);
}

body.page-home.game-shell .metric-card strong {
  color: var(--accent);
  font-weight: 800;
}

body.page-home.game-shell .mini-list li::before {
  border-radius: 0;
  background: var(--accent);
}

body.page-home.game-shell .footer-links a {
  border-radius: 0;
  border-color: var(--line-strong);
  background: #ffffff;
}

body.page-home.game-shell .nav-links.active {
  background: #ffffff;
}

body.page-resume,
body.page-book-project,
body.page-search-project {
  --bg-main: #ece8e1;
  --bg-surface: #ffffff;
  --bg-elevated: #0f1923;
  --primary: #ff4655;
  --primary-deep: #d92f3d;
  --primary-glow: #ff4655;
  --text-main: #0f1923;
  --text-muted: rgba(15, 25, 35, 0.68);
  --glass-border: rgba(15, 25, 35, 0.22);
  --glass-strong: rgba(15, 25, 35, 0.35);
  --glass-bg: #ffffff;
  --shadow-soft: 8px 8px 0 rgba(15, 25, 35, 0.08);
  --shadow-strong: 12px 12px 0 rgba(15, 25, 35, 0.12);
}

body.page-resume .cv-sheet,
body.page-book-project .case-card,
body.page-search-project .case-card,
body.page-book-project .sidebar-card,
body.page-search-project .sidebar-card,
body.page-book-project .navbar,
body.page-search-project .navbar {
  border-radius: 0;
  border-color: var(--glass-border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body.page-resume .cv-banner,
body.page-book-project .btn-primary,
body.page-search-project .btn-primary {
  background: #ff4655;
  color: #ffffff;
}

body.page-book-project .badge,
body.page-search-project .badge {
  border-radius: 0;
}

@media (max-width: 820px) {
  body.page-home.game-shell .nav-links {
    border-radius: 0;
    background: #ffffff;
  }

  body.page-home.game-shell .nav-links a {
    border-radius: 0;
  }
}

body.page-book-project .nav-cta-compact,
body.page-search-project .nav-cta-compact {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* index.html */
body.page-home {
  --bg: #f5f0e7;
  --bg-deep: #ebe2d3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #211f1a;
  --muted: #6e695e;
  --accent: #0c9a58;
  --accent-strong: #087242;
  --accent-soft: rgba(12, 154, 88, 0.12);
  --line: rgba(33, 31, 26, 0.08);
  --line-strong: rgba(33, 31, 26, 0.14);
  --shadow-soft: 0 22px 60px rgba(31, 24, 16, 0.08);
  --shadow-strong: 0 28px 76px rgba(31, 24, 16, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --nav-height: 88px;
  --font-body: "Instrument Sans", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --font-mono: "IBM Plex Mono", monospace;
}

body.page-home,
body.page-home * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.page-home {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(
      circle at top right,
      rgba(12, 154, 88, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at left center,
      rgba(255, 255, 255, 0.7),
      transparent 30%
    ),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 55%, var(--bg-deep) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    linear-gradient(
      90deg,
      transparent 49%,
      rgba(33, 31, 26, 0.012) 50%,
      transparent 51%
    );
  background-size:
    100% 100%,
    22px 22px;
  opacity: 0.5;
  z-index: -1;
}

body.page-home ::selection {
  background: var(--accent);
  color: #fff;
}

body.page-home a {
  color: inherit;
}

body.page-home button,
body.page-home input,
body.page-home textarea {
  font: inherit;
}

body.page-home .container {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
}

body.page-home .section-padding {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

body.page-home section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1.4rem);
}

body.page-home .nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

body.page-home .nav-shell {
  width: min(1180px, calc(100% - 2.2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(25, 25, 29, 0.08);
}

body.page-home .logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.page-home .logo span {
  color: var(--accent);
}

body.page-home .nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

body.page-home .nav-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

body.page-home .nav-links a:hover {
  color: var(--text);
}

body.page-home .nav-cta {
  padding: 0.72rem 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #10b566 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(8, 114, 66, 0.22);
}

body.page-home .hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

body.page-home .hero {
  padding-top: calc(var(--nav-height) + 2.7rem);
}

body.page-home .hero-grid,
body.page-home .contact-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.8rem);
}

body.page-home .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

body.page-home .eyebrow,
body.page-home .section-number,
body.page-home .mini-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

body.page-home .hero-copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  max-width: 580px;
}

body.page-home .hero-title,
body.page-home .section-title,
body.page-home .card-title,
body.page-home .project-title,
body.page-home .contact-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

body.page-home .hero-title {
  font-size: clamp(3.15rem, 6vw, 5.3rem);
  display: contents;
  width: fit-content;
  line-height: 0.95;
  max-width: min(100%, 8ch);
  text-wrap: balance;
}

body.page-home .hero-subtitle {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 42ch;
}

body.page-home .hero-actions,
body.page-home .stack-list,
body.page-home .badge-row,
body.page-home .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

body.page-home .hero-badges {
  gap: 0.65rem;
  margin-top: 0.1rem;
}

body.page-home .hero-actions {
  margin-top: 0.55rem;
}

body.page-home .badge,
body.page-home .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  gap: 0.4rem;
  padding: 0.45rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

body.page-home .badge--default {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

body.page-home .badge--soft {
  background: var(--accent-soft);
  border-color: rgba(12, 154, 88, 0.2);
  color: var(--accent-strong);
}

body.page-home .badge--secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--text);
}

body.page-home .badge--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

body.page-home .btn-primary,
body.page-home .btn-secondary,
body.page-home .project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

body.page-home .btn-primary,
body.page-home .project-button {
  background: linear-gradient(180deg, #10b566 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(8, 114, 66, 0.22);
}

body.page-home .btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

body.page-home .btn-primary:hover,
body.page-home .btn-secondary:hover,
body.page-home .project-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(31, 24, 16, 0.12);
}

body.page-home .card,
body.page-home .project-card,
body.page-home .contact-card,
body.page-home .hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.8)
  );
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

body.page-home .card::before,
body.page-home .project-card::before,
body.page-home .contact-card::before,
body.page-home .hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(12, 154, 88, 0.3),
    transparent
  );
}

body.page-home .hero-panel,
body.page-home .card,
body.page-home .project-card,
body.page-home .contact-card {
  padding: 1.5rem;
  height: 100%;
}

body.page-home .card:hover,
body.page-home .project-card:hover,
body.page-home .contact-card:hover,
body.page-home .hero-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 154, 88, 0.22);
  box-shadow: var(--shadow-strong);
}

body.page-home .hero-panel {
  display: grid;
  gap: 1rem;
}

body.page-home .hero-panel--visual {
  position: relative;
  min-height: 500px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.72s ease-out both;
}

body.page-home .hero-illustration {
  display: block;
  width: min(100%, 560px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 26px 44px rgba(31, 24, 16, 0.14));
  animation: floatVisual 7s ease-in-out infinite;
}

body.page-home .stack-list {
  display: grid;
  gap: 0.9rem;
}

body.page-home .stack-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line-strong);
}

body.page-home .stack-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.page-home .stack-item strong {
  display: block;
  font-size: 0.98rem;
}

body.page-home .stack-item span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.94rem;
}

body.page-home .panel-head,
body.page-home .panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.page-home .panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

body.page-home .metrics-grid,
body.page-home .hero-proof,
body.page-home .about-grid,
body.page-home .contact-link-grid {
  display: grid;
  gap: 0.9rem;
}

body.page-home .metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-home .metric-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 154, 88, 0.06);
}

body.page-home .metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.86;
}

body.page-home .metric-card span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

body.page-home .stamp {
  width: fit-content;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(12, 154, 88, 0.2);
  border-radius: var(--radius-md);
  background: rgba(12, 154, 88, 0.08);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

body.page-home .panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 600;
}

body.page-home .section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.8rem;
}

body.page-home .section-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.95;
}

body.page-home .section-copy {
  margin-top: 0.55rem;
  max-width: 60ch;
  color: var(--muted);
}

body.page-home .card-title {
  font-size: 2rem;
  line-height: 1;
  margin-top: 0.45rem;
}

body.page-home .card-copy {
  margin-top: 0.7rem;
  color: var(--muted);
}

body.page-home .mini-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

body.page-home .mini-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
}

body.page-home .mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

body.page-home .skills-grid,
body.page-home .projects-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

body.page-home .about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-home .skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-home .skill-card {
  padding: 1.45rem;
}

body.page-home .skill-card h3 {
  font-size: 1.14rem;
}

body.page-home .skill-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

body.page-home .skill-card .badge-row,
body.page-home .skill-card .pill-row {
  margin-top: 0.2rem;
}

body.page-home .projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.page-home .project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.page-home .project-card--featured {
  grid-column: span 6;
}

body.page-home .project-card--small {
  grid-column: span 4;
}

body.page-home .project-card p {
  margin-top: 0;
  color: var(--muted);
}

body.page-home .project-card--featured p {
  max-width: 46ch;
}

body.page-home .project-card .badge-row,
body.page-home .project-card .pill-row {
  margin-top: 0;
}

body.page-home .project-card .project-button {
  margin-top: 0;
  align-self: flex-start;
}

body.page-home .project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.page-home .project-type,
body.page-home .proof-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.page-home .hero-support {
  color: var(--muted);
  font-size: 0.95rem;
}

body.page-home .hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.2rem;
}

body.page-home .proof-item,
body.page-home .project-detail,
body.page-home .contact-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
}

body.page-home .proof-item {
  padding: 1rem 1.05rem;
}

body.page-home .proof-item strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

body.page-home .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.page-home .status-pill--live {
  background: rgba(12, 154, 88, 0.12);
  border-color: rgba(12, 154, 88, 0.18);
  color: var(--accent-strong);
}

body.page-home .status-pill--building {
  background: rgba(179, 122, 19, 0.1);
  border-color: rgba(179, 122, 19, 0.2);
  color: #8c5c0d;
}

body.page-home .project-title {
  font-size: 1.62rem;
  line-height: 1.02;
}

body.page-home .project-title--large {
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  line-height: 0.97;
}

body.page-home .project-details {
  display: grid;
  gap: 0.75rem;
}

body.page-home .project-detail {
  padding: 0.95rem 1rem;
}

body.page-home .project-detail strong {
  display: block;
  font-size: 0.96rem;
}

body.page-home .project-detail span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

body.page-home .project-actions {
  margin-top: auto;
}

body.page-home .project-card--small .badge-row,
body.page-home .project-card--small .pill-row {
  margin-top: 0;
}

body.page-home .project-card--small p {
  max-width: none;
}

body.page-home .project-card--building {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(248, 243, 236, 0.84)
  );
}

body.page-home .project-note {
  margin-top: auto;
  font-size: 0.92rem;
}

body.page-home .project-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(140, 92, 13, 0.25);
  background: rgba(179, 122, 19, 0.08);
  color: #8c5c0d;
  font-weight: 600;
}

body.page-home .contact-card h3 {
  font-size: 2.35rem;
  line-height: 1;
}

body.page-home .contact-card p {
  margin-top: 0.2rem;
  color: var(--muted);
}

body.page-home .contact-card {
  display: grid;
  gap: 1rem;
}

body.page-home .contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

body.page-home .contact-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

body.page-home .contact-link-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

body.page-home .contact-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 154, 88, 0.22);
  box-shadow: 0 18px 30px rgba(31, 24, 16, 0.08);
}

body.page-home .contact-link-card i {
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin-top: 0.1rem;
}

body.page-home .contact-link-card strong {
  display: block;
  font-size: 0.98rem;
}

body.page-home .contact-link-card span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes floatVisual {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.01);
  }
}

body.page-home footer {
  padding: 0 0 2.5rem;
}

body.page-home .footer-shell {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

body.page-home .footer-links {
  display: flex;
  gap: 0.75rem;
}

body.page-home .footer-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

@media (max-width: 1040px) {
  body.page-home .hero-grid,
  body.page-home .about-grid,
  body.page-home .contact-grid,
  body.page-home .skills-grid,
  body.page-home .hero-proof {
    grid-template-columns: 1fr;
  }

  body.page-home .project-card--featured,
  body.page-home .project-card--small {
    grid-column: span 12;
  }

  body.page-home .hero-panel--visual {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  body.page-home.menu-open {
    overflow: hidden;
  }

  body.page-home .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home .nav-links {
    position: fixed;
    inset: calc(var(--nav-height) + 0.7rem) 1rem auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  body.page-home .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.page-home .nav-links li,
  body.page-home .nav-links a,
  body.page-home .nav-cta {
    width: 100%;
  }

  body.page-home .nav-links a,
  body.page-home .nav-cta {
    display: inline-flex;
    justify-content: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
  }

  body.page-home .nav-cta {
    border: 0;
  }
}

@media (max-width: 768px) {
  body.page-home .hero {
    padding-top: calc(var(--nav-height) + 2rem);
  }

  body.page-home .hero-title {
    font-size: clamp(2.9rem, 12vw, 4.4rem);
  }

  body.page-home .section-head {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body.page-home .hero-actions,
  body.page-home .panel-footer {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-home .btn-primary,
  body.page-home .btn-secondary,
  body.page-home .project-button,
  body.page-home .project-placeholder {
    width: 100%;
  }

  body.page-home .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-home .hero-panel--visual {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  body.page-home .metrics-grid,
  body.page-home .skills-grid,
  body.page-home .contact-link-grid {
    grid-template-columns: 1fr;
  }

  body.page-home .contact-card h3 {
    font-size: 2rem;
  }

  body.page-home .hero-panel--visual {
    min-height: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.page-home,
  body.page-home *,
  body.page-home *::before,
  body.page-home *::after {
    transition: none !important;
  }

  body.page-home .hero-illustration {
    animation: none !important;
  }
}

/* resume.html */
body.page-resume {
  --bg-main: #f3efe9;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-elevated: #232821;
  --primary: #0ab24a;
  --primary-deep: #0a933d;
  --primary-glow: #0ab24a;
  --text-main: #2e2923;
  --text-muted: rgba(94, 86, 76, 0.78);
  --glass-border: rgba(46, 41, 35, 0.1);
  --glass-strong: rgba(46, 41, 35, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.96);
  --shadow-soft: 0 12px 28px rgba(46, 41, 35, 0.06);
  --shadow-strong: 0 18px 44px rgba(46, 41, 35, 0.08);
  --font-mono: "Fira Code", monospace;
  --font-sans: "Inter", sans-serif;
}

body.page-resume ::selection {
  background: var(--primary);
  color: var(--bg-main);
}

body.page-resume,
body.page-resume * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.page-resume {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.page-resume .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow));
  z-index: 1200;
  box-shadow: 0 0 18px rgba(52, 178, 123, 0.28);
}

body.page-resume #network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}

body.page-resume .audio-control {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  background: rgba(17, 24, 28, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(1, 0, 0, 0.24);
}

body.page-resume .audio-control:hover {
  border-color: var(--primary-glow);
  color: var(--text-main);
  transform: translateY(-2px);
}

body.page-resume .audio-control.playing {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  box-shadow: 0 16px 36px rgba(52, 178, 123, 0.16);
}

body.page-resume .audio-control.playing i {
  animation: spin 3s linear infinite;
}

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

body.page-resume .resume-container {
  position: relative;
  max-width: 1020px;
  margin: 5rem auto;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

body.page-resume .resume-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow));
}

body.page-resume .sidebar {
  background: linear-gradient(
    180deg,
    rgba(23, 32, 38, 0.92),
    rgba(17, 24, 28, 0.72)
  );
  padding: 3rem 2rem;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

body.page-resume .profile-header h1 {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -1.5px;
}

body.page-resume .profile-header h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--primary-glow);
  font-weight: 500;
  opacity: 1;
  margin-bottom: 1rem;
}

body.page-resume .profile-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

body.page-resume .profile-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

body.page-resume .shortcut-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

body.page-resume .shortcut-link:hover {
  color: var(--text-main);
  border-color: rgba(52, 178, 123, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(52, 178, 123, 0.14);
}

body.page-resume .shortcut-link i {
  color: var(--primary-glow);
}

body.page-resume .sb-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

body.page-resume .sb-section-title i {
  font-size: 1.1rem;
  color: var(--primary-glow);
}

body.page-resume .contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.page-resume .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.2s;
}

body.page-resume .contact-item:hover {
  color: var(--primary-glow);
}

body.page-resume .contact-item i {
  font-size: 1.1rem;
  color: var(--primary-glow);
  opacity: 0.8;
}

body.page-resume .edu-item {
  margin-bottom: 1.5rem;
}

body.page-resume .edu-school {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.2;
}

body.page-resume .edu-degree {
  font-size: 0.85rem;
  color: var(--primary-glow);
  margin-bottom: 4px;
  display: block;
}

body.page-resume .edu-date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

body.page-resume .skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-resume .skill-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid rgba(52, 178, 123, 0.22);
  border-radius: 999px;
  background: rgba(52, 178, 123, 0.12);
  color: var(--primary-glow);
  font-family: var(--font-sans);
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.05),
    0 4px 12px rgba(52, 178, 123, 0.08);
  transition: all 0.25s ease;
}

body.page-resume .skill-pill:hover {
  background: rgba(52, 178, 123, 0.18);
  border-color: rgba(52, 178, 123, 0.4);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.06),
    0 6px 16px rgba(52, 178, 123, 0.14);
}

body.page-resume .main-content {
  padding: 3rem;
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0.02),
    rgba(17, 24, 28, 0.08)
  );
}

body.page-resume .main-section {
  margin-bottom: 1.4rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(248, 249, 250, 0.06);
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0.03),
    rgba(248, 249, 250, 0.02)
  );
  box-shadow: var(--shadow-soft);
}

body.page-resume .main-title {
  font-size: 1.2rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

body.page-resume .main-title i {
  color: var(--primary-glow);
  font-size: 1.3rem;
}

body.page-resume .job-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1.5rem;
}

body.page-resume .job-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: -3rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

body.page-resume .job-item:last-child::before {
  display: none;
}

body.page-resume .job-item::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-glow);
  box-shadow: 0 0 10px rgba(52, 178, 123, 0.32);
}

body.page-resume .job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

body.page-resume .job-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

body.page-resume .job-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-glow);
  background: rgba(52, 178, 123, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(52, 178, 123, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.05),
    0 4px 12px rgba(52, 178, 123, 0.08);
}

body.page-resume .job-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

body.page-resume .tech-row {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.page-resume .tech-item {
  background: rgba(52, 178, 123, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(52, 178, 123, 0.22);
  color: var(--primary-glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.05),
    0 4px 12px rgba(52, 178, 123, 0.08);
  transition: all 0.25s ease;
}

body.page-resume .tech-item:hover {
  background: rgba(52, 178, 123, 0.18);
  border-color: rgba(52, 178, 123, 0.4);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.06),
    0 6px 16px rgba(52, 178, 123, 0.14);
}

body.page-resume .actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.page-resume .btn-action {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: white;
  border: 1px solid rgba(248, 249, 250, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(52, 178, 123, 0.18);
  transition: 0.3s;
  text-decoration: none;
  font-size: 1.2rem;
}

body.page-resume .btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(52, 178, 123, 0.16);
}

body.page-resume,
body.page-resume .resume-container,
body.page-resume .main-content,
body.page-resume .main-section,
body.page-resume .shortcut-link,
body.page-resume .skill-pill,
body.page-resume .job-type,
body.page-resume .tech-item {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.page-resume .resume-container {
  max-width: 900px;
  margin: 4rem auto;
  grid-template-columns: 280px 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(31, 31, 33, 0.08);
}

body.page-resume .sidebar {
  background: #f7f2ec;
  border-right: 1px solid #e6dfd6;
  padding: 2.5rem 2rem;
}

body.page-resume .main-content {
  padding: 2.5rem 2.5rem 3rem;
  background: #ffffff;
}

body.page-resume .profile-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.25rem;
  color: #1f1d19;
}

body.page-resume .profile-header h2 {
  color: #0a8b3d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

body.page-resume .profile-summary {
  color: #5f5a50;
  font-size: 0.94rem;
}

body.page-resume .profile-shortcuts {
  gap: 0.5rem;
  margin-top: 1.15rem;
}

body.page-resume .shortcut-link {
  background: #0a8b3d;
  color: #ffffff;
  border: none;
  box-shadow: none;
  font-size: 0.8rem;
}

body.page-resume .shortcut-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(10, 139, 61, 0.18);
}

body.page-resume .sb-section-title {
  margin-bottom: 1rem;
  color: #7d766a;
  letter-spacing: 1.5px;
}

body.page-resume .contact-list,
body.page-resume .skill-cloud {
  gap: 0.75rem;
}

body.page-resume .contact-item {
  color: #5f5a50;
}

body.page-resume .contact-item:hover {
  color: #0a8b3d;
}

body.page-resume .edu-item {
  margin-bottom: 1.4rem;
}

body.page-resume .edu-degree {
  color: #0a8b3d;
}

body.page-resume .skill-pill,
body.page-resume .tech-item,
body.page-resume .job-type {
  background: #f4f1eb;
  color: #5f5a50;
  border: 1px solid #e6dfd6;
}

body.page-resume .main-section {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  background: transparent;
}

body.page-resume .main-title {
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid #e6dfd6;
  padding-bottom: 0.75rem;
  color: #1f1d19;
}

body.page-resume .job-item {
  margin-bottom: 2rem;
  padding-left: 0;
}

body.page-resume .job-item::before,
body.page-resume .job-item::after {
  display: none;
}

body.page-resume .job-header {
  flex-wrap: wrap;
  gap: 1rem;
}

body.page-resume .job-role {
  font-size: 1.05rem;
  color: #1f1d19;
}

body.page-resume .job-desc {
  color: #5f5a50;
  margin-bottom: 1rem;
}

body.page-resume .tech-row {
  gap: 0.5rem;
}

body.page-resume .btn-action {
  background: #0a8b3d;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(10, 139, 61, 0.16);
}

body.page-resume .btn-action:hover {
  box-shadow: 0 16px 28px rgba(10, 139, 61, 0.2);
}

body.page-resume .audio-control,
body.page-resume .scroll-progress,
body.page-resume #network-canvas {
  display: none;
}

body.page-home .hero-panel,
body.page-home .card,
body.page-home .project-card,
body.page-home .contact-card,
body.page-home .skill-card,
body.page-home .hero-copy,
body.page-resume .resume-container,
body.page-resume .sidebar,
body.page-resume .main-content,
body.page-resume .profile-header,
body.page-resume .job-item,
body.page-book-project .project-header,
body.page-book-project .case-card,
body.page-book-project .sidebar-card,
body.page-book-project .project-meta-card,
body.page-search-project .project-header,
body.page-search-project .case-card,
body.page-search-project .sidebar-card,
body.page-search-project .project-meta-card {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.72s ease-out both;
}

body.page-home .btn-primary:hover,
body.page-home .btn-secondary:hover,
body.page-home .project-button:hover,
body.page-resume .shortcut-link:hover,
body.page-book-project .btn-primary:hover,
body.page-search-project .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

body.page-home .badge:hover,
body.page-home .pill:hover,
body.page-resume .badge:hover,
body.page-resume .skill-pill:hover,
body.page-resume .tech-item:hover,
body.page-book-project .tech-badge:hover,
body.page-search-project .tech-badge:hover {
  transform: translateY(-2px);
}

body.page-home .hero-title,
body.page-home .section-title,
body.page-home .main-title,
body.page-home .project-card h1,
body.page-book-project .section-title,
body.page-search-project .section-title,
body.page-resume .job-role,
body.page-resume .sb-section-title {
  animation: fadeInUp 0.9s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-panel,
  body.page-home .card,
  body.page-home .project-card,
  body.page-home .contact-card,
  body.page-home .skill-card,
  body.page-home .hero-copy,
  body.page-resume .resume-container,
  body.page-resume .sidebar,
  body.page-resume .main-content,
  body.page-resume .profile-header,
  body.page-resume .job-item,
  body.page-book-project .project-header,
  body.page-book-project .case-card,
  body.page-book-project .sidebar-card,
  body.page-book-project .project-meta-card,
  body.page-search-project .project-header,
  body.page-search-project .case-card,
  body.page-search-project .sidebar-card,
  body.page-search-project .project-meta-card,
  body.page-home .hero-title,
  body.page-home .section-title,
  body.page-home .main-title,
  body.page-home .project-card h1,
  body.page-book-project .section-title,
  body.page-search-project .section-title,
  body.page-resume .job-role,
  body.page-resume .sb-section-title {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body.page-resume {
    background: white;
    color: black;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.page-resume #network-canvas,
  body.page-resume .actions,
  body.page-resume .audio-control,
  body.page-resume .scroll-progress {
    display: none;
  }

  body.page-resume .resume-container::before {
    display: none;
  }

  body.page-resume .resume-container {
    margin: 0;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: none;
    background: white;
    color: black;
    grid-template-columns: 280px 1fr;
  }

  body.page-resume .sidebar {
    background: #f8f9fa !important;
    border-right: 1px solid #eee;
    padding: 2rem;
  }

  body.page-resume .main-content {
    padding: 2rem;
  }

  body.page-resume .main-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin-bottom: 2rem;
  }

  body.page-resume .profile-header h1,
  body.page-resume .edu-school,
  body.page-resume .job-role,
  body.page-resume .main-title {
    color: #000;
  }

  body.page-resume .main-title {
    border-bottom-color: #ddd;
  }

  body.page-resume .profile-header h2,
  body.page-resume .edu-degree,
  body.page-resume .sb-section-title i,
  body.page-resume .main-title i,
  body.page-resume .contact-item i,
  body.page-resume .job-type {
    color: #34b27b;
  }

  body.page-resume .contact-item,
  body.page-resume .edu-date,
  body.page-resume .job-desc,
  body.page-resume .tech-item,
  body.page-resume .skill-pill {
    color: #444;
  }

  body.page-resume .skill-pill,
  body.page-resume .tech-item {
    border-color: #ddd;
    background: white !important;
  }

  body.page-resume .job-item::before {
    background: #ddd;
  }

  body.page-resume .job-item::after {
    background: #34b27b !important;
    box-shadow: none;
  }

  body.page-resume .job-type {
    background: #ecfdf3 !important;
    border-color: #a7f3d0;
  }
}

@media (max-width: 850px) {
  body.page-resume .resume-container {
    grid-template-columns: 1fr;
    margin: 1rem;
    border-radius: 20px;
  }

  body.page-resume .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem;
  }

  body.page-resume .main-content {
    padding: 2rem;
  }

  body.page-resume .audio-control {
    bottom: 20px;
    left: 20px;
    font-size: 0.75rem;
  }
}

body.page-resume #network-canvas {
  opacity: 0.08;
}

body.page-resume .resume-container {
  border: none;
  box-shadow: 0 16px 36px rgba(17, 24, 28, 0.08);
}

body.page-resume .resume-container::before {
  height: 3px;
}

body.page-resume .sidebar {
  background: rgba(248, 249, 250, 0.96);
  border-right: none;
  box-shadow: none;
}

body.page-resume .main-content,
body.page-resume .main-section {
  background: var(--bg-main);
  border: none;
  box-shadow: none;
}

body.page-resume .main-section {
  padding: 0;
  margin-bottom: 2rem;
}

body.page-resume .main-title {
  padding-bottom: 0.65rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--bg-elevated);
}

body.page-resume .audio-control,
body.page-resume .shortcut-link,
body.page-resume .skill-pill,
body.page-resume .job-type,
body.page-resume .tech-item {
  border: none;
  box-shadow: none;
}

body.page-resume .audio-control,
body.page-resume .shortcut-link,
body.page-resume .btn-action {
  background: rgba(248, 249, 250, 0.96);
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(17, 24, 28, 0.06);
}

body.page-resume .shortcut-link,
body.page-resume .skill-pill,
body.page-resume .job-type,
body.page-resume .tech-item {
  border-radius: 999px;
}

body.page-resume .skill-pill,
body.page-resume .job-type,
body.page-resume .tech-item {
  background: rgba(248, 249, 250, 0.96);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(17, 24, 28, 0.04);
}

body.page-resume .audio-control:hover,
body.page-resume .audio-control.playing,
body.page-resume .btn-action:hover,
body.page-resume .shortcut-link:hover,
body.page-resume .skill-pill:hover,
body.page-resume .tech-item:hover {
  box-shadow: 0 14px 28px rgba(17, 24, 28, 0.08);
}

body.page-resume .contact-item {
  word-break: break-word;
}

body.page-resume .profile-header h1,
body.page-resume .profile-summary,
body.page-resume .sb-section-title,
body.page-resume .contact-item,
body.page-resume .edu-school,
body.page-resume .edu-date {
  color: var(--text-main);
}

body.page-resume .profile-header h2,
body.page-resume .sb-section-title i,
body.page-resume .shortcut-link i,
body.page-resume .contact-item i,
body.page-resume .edu-degree,
body.page-resume .main-title i {
  color: var(--primary);
}

body.page-resume .profile-shortcuts {
  gap: 0.75rem;
}

@media (max-width: 850px) {
  body.page-resume .resume-container {
    margin: 0;
    border-radius: 0;
  }

  body.page-resume .sidebar {
    padding: 1.75rem;
  }

  body.page-resume .main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 560px) {
  body.page-resume .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  body.page-resume .profile-shortcuts {
    display: grid;
  }

  body.page-resume .actions {
    right: 1rem;
    bottom: 1rem;
  }
}

body.page-resume {
  background:
    radial-gradient(
      circle at top right,
      rgba(10, 178, 74, 0.06),
      transparent 22%
    ),
    linear-gradient(180deg, #faf7f3 0%, var(--bg-main) 100%);
}

body.page-resume .resume-container,
body.page-resume .sidebar {
  background: rgba(255, 255, 255, 1);
}

body.page-resume .main-title {
  border-bottom: 1px solid rgba(46, 41, 35, 0.08);
}

body.page-resume .audio-control,
body.page-resume .shortcut-link {
  background: rgba(255, 255, 255, 1);
  color: var(--text-main);
  border: none;
  box-shadow: 0 14px 30px rgba(46, 41, 35, 0.07);
}

body.page-resume .skill-pill,
body.page-resume .job-type,
body.page-resume .tech-item {
  background: rgba(52, 178, 123, 0.12);
  color: var(--primary);
  border: none;
  box-shadow: none;
}

body.page-resume .btn-action {
  background: var(--primary);
  color: var(--bg-main);
  border: none;
  box-shadow: none;
}

body.page-resume .audio-control.playing {
  color: var(--primary);
}

body.page-resume .job-item::before {
  background: rgba(17, 24, 28, 0.08);
}

body.page-resume .job-item::after {
  box-shadow: none;
}

/* projects/book-recommendation/index.html */
body.page-book-project {
  --bg-main: #f3efe9;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-elevated: #232821;
  --primary: #0ab24a;
  --primary-deep: #0a933d;
  --primary-glow: #0ab24a;
  --text-main: #2e2923;
  --text-muted: rgba(94, 86, 76, 0.78);
  --glass-border: rgba(46, 41, 35, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.96);
  --shadow-soft: 0 12px 28px rgba(46, 41, 35, 0.06);
  --shadow-strong: 0 18px 44px rgba(46, 41, 35, 0.08);
  --font-mono: "Fira Code", monospace;
  --font-sans: "Inter", sans-serif;
}

body.page-book-project ::selection {
  background: var(--primary);
  color: var(--bg-main);
}

body.page-book-project,
body.page-book-project * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page-book-project {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.page-book-project #network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}

body.page-book-project .audio-control {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  background: rgba(17, 24, 28, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(1, 0, 0, 0.24);
}

body.page-book-project .audio-control:hover {
  border-color: var(--primary-glow);
  color: var(--text-main);
  transform: translateY(-2px);
}

body.page-book-project .audio-control.playing {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  box-shadow: 0 16px 36px rgba(52, 178, 123, 0.16);
}

body.page-book-project .audio-control.playing i {
  animation: spin 3s linear infinite;
}

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

body.page-book-project h1,
body.page-book-project h2,
body.page-book-project h3,
body.page-book-project h4 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.page-book-project .mono {
  font-family: var(--font-mono);
}

body.page-book-project .text-accent {
  color: var(--primary-glow);
}

body.page-book-project .section-title {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  white-space: nowrap;
  position: relative;
  color: var(--text-main);
}

body.page-book-project .section-title::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--glass-border) 0%, transparent 100%);
  margin-left: 20px;
}

body.page-book-project .section-number {
  color: var(--primary-glow);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-right: 12px;
}

body.page-book-project .navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(17, 24, 28, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(248, 249, 250, 0.03);
}

body.page-book-project .logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.8px;
  color: var(--text-main);
  font-family: var(--font-mono);
}

body.page-book-project .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

body.page-book-project .nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

body.page-book-project .nav-links a:hover {
  color: var(--primary-glow);
}

body.page-book-project .hamburger {
  display: none;
  cursor: pointer;
  color: var(--primary-glow);
  font-size: 1.8rem;
  z-index: 1001;
}

body.page-book-project .section-padding {
  padding: 6rem 8%;
}

body.page-book-project .container {
  max-width: 1100px;
  margin: 0 auto;
}

body.page-book-project .project-header {
  margin-top: 5rem;
}

body.page-book-project .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

body.page-book-project .project-meta span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.06);
}

body.page-book-project .project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
}

body.page-book-project .project-copy {
  display: grid;
  gap: 1rem;
}

body.page-book-project .case-card,
body.page-book-project .sidebar-card {
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    180deg,
    rgba(23, 32, 38, 0.9),
    rgba(17, 24, 28, 0.98)
  );
  box-shadow: var(--shadow-soft);
}

body.page-book-project .case-card h3,
body.page-book-project .sidebar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

body.page-book-project .case-card p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.8;
}

body.page-book-project .case-card ul,
body.page-book-project .sidebar-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

body.page-book-project .case-card li,
body.page-book-project .sidebar-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

body.page-book-project .case-card li::before,
body.page-book-project .sidebar-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-glow);
}

body.page-book-project .project-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
}

body.page-book-project .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-book-project .tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-glow);
  background: rgba(52, 178, 123, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 178, 123, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.05),
    0 4px 12px rgba(52, 178, 123, 0.08);
}

body.page-book-project .project-meta-card {
  display: grid;
  gap: 0.75rem;
}

body.page-book-project .project-meta-card strong {
  color: var(--text-main);
}

body.page-book-project .project-meta-card p,
body.page-book-project .sidebar-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

body.page-book-project .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-deep) 100%
  );
  cursor: pointer;
  color: white;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(248, 249, 250, 0.08);
  box-shadow: 0 14px 28px rgba(52, 178, 123, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}

body.page-book-project .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(52, 178, 123, 0.16);
}

body.page-book-project .btn-primary::after {
  display: none;
}

body.page-book-project .btn-primary:hover::after {
  display: none;
}

body.page-book-project,
body.page-book-project .navbar,
body.page-book-project .project-meta span,
body.page-book-project .case-card,
body.page-book-project .sidebar-card {
  background: var(--bg-main);
  border-color: var(--glass-border);
  box-shadow: none;
}

body.page-book-project .navbar {
  box-shadow: none;
}

body.page-book-project .audio-control {
  background: var(--bg-elevated);
  color: var(--bg-main);
  border-color: var(--bg-elevated);
  box-shadow: none;
}

body.page-book-project .audio-control:hover,
body.page-book-project .audio-control.playing {
  color: var(--bg-main);
  border-color: var(--primary);
  box-shadow: none;
}

body.page-book-project .logo,
body.page-book-project .nav-links a,
body.page-book-project .section-title,
body.page-book-project .project-meta,
body.page-book-project .case-card p,
body.page-book-project .case-card li,
body.page-book-project .sidebar-card p,
body.page-book-project .sidebar-list li {
  color: var(--text-main);
}

body.page-book-project .text-accent,
body.page-book-project .section-number,
body.page-book-project .case-card li::before,
body.page-book-project .sidebar-list li::before,
body.page-book-project .sidebar-card h3,
body.page-book-project .case-card h3 {
  color: var(--primary);
}

body.page-book-project .section-title::after {
  background: var(--primary);
}

body.page-book-project .tech-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-elevated);
  box-shadow: none;
  color: var(--bg-main);
}

body.page-book-project .btn-primary {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  box-shadow: none;
}

body.page-book-project .btn-primary:hover {
  box-shadow: none;
}

body.page-book-project .fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-out;
}

body.page-book-project .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body.page-book-project .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-main);
    padding: 2rem;
    border-left: 1px solid var(--glass-border);
    gap: 2rem;
    height: calc(100vh - 70px);
    width: 70%;
    transition: right 0.3s ease;
  }

  body.page-book-project .nav-links.active {
    right: 0;
  }

  body.page-book-project .hamburger {
    display: block;
  }

  body.page-book-project .audio-control {
    bottom: 20px;
    left: 20px;
    font-size: 0.75rem;
  }

  body.page-book-project .project-layout {
    grid-template-columns: 1fr;
  }
}

body.page-book-project #network-canvas {
  opacity: 0.08;
}

body.page-book-project .navbar {
  border: none;
  box-shadow: 0 1px 0 rgba(17, 24, 28, 0.08);
}

body.page-book-project .audio-control,
body.page-book-project .project-meta span {
  border: none;
  box-shadow: none;
}

body.page-book-project .audio-control {
  background: var(--bg-elevated);
  color: var(--bg-main);
}

body.page-book-project .case-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.page-book-project .case-card + .case-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-elevated);
}

body.page-book-project .sidebar-card {
  background: rgba(248, 249, 250, 0.96);
  color: var(--text-main);
  border: none;
  box-shadow: 0 16px 32px rgba(17, 24, 28, 0.08);
}

body.page-book-project .sidebar-card h3,
body.page-book-project .sidebar-card p,
body.page-book-project .sidebar-list li {
  color: var(--text-main);
}

body.page-book-project .project-meta span {
  background: rgba(248, 249, 250, 0.96);
  color: var(--text-main);
  box-shadow: 0 8px 20px rgba(17, 24, 28, 0.04);
}

body.page-book-project .tech-badge {
  border: none;
  box-shadow: 0 8px 20px rgba(17, 24, 28, 0.04);
}

body.page-book-project .btn-primary {
  border: none;
  box-shadow: none;
}

body.page-book-project .btn-primary:hover,
body.page-book-project .audio-control:hover,
body.page-book-project .audio-control.playing {
  box-shadow: 0 14px 28px rgba(17, 24, 28, 0.08);
}

@media (max-width: 900px) {
  body.page-book-project .nav-links {
    top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    border: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
    box-shadow: -12px 0 30px rgba(17, 24, 28, 0.08);
  }

  body.page-book-project .nav-links a {
    color: var(--text-main);
  }

  body.page-book-project .project-header {
    margin-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  body.page-book-project .section-title {
    white-space: normal;
    align-items: flex-start;
  }

  body.page-book-project .section-title::after {
    margin-left: 0;
  }

  body.page-book-project .project-header {
    margin-top: 4rem;
  }
}

body.page-book-project {
  background:
    radial-gradient(
      circle at top right,
      rgba(10, 178, 74, 0.06),
      transparent 22%
    ),
    linear-gradient(180deg, #faf7f3 0%, var(--bg-main) 100%);
}

body.page-book-project .navbar {
  background: rgba(255, 255, 255, 0.92);
}

body.page-book-project .audio-control,
body.page-book-project .sidebar-card {
  background: rgba(255, 255, 255, 1);
  color: var(--text-main);
  border: none;
  box-shadow: 0 14px 30px rgba(46, 41, 35, 0.07);
}

body.page-book-project .project-meta span,
body.page-book-project .tech-badge {
  background: rgba(52, 178, 123, 0.12);
  color: var(--primary);
  border: none;
  box-shadow: none;
}

body.page-book-project .audio-control.playing {
  color: var(--primary);
}

body.page-book-project .case-card + .case-card {
  border-top: 1px solid rgba(17, 24, 28, 0.08);
}

@media (max-width: 900px) {
  body.page-book-project .nav-links {
    background: rgba(248, 249, 250, 0.98);
    box-shadow: -12px 0 30px rgba(17, 24, 28, 0.08);
  }
}

/* projects/local-document-search/index.html */
body.page-search-project {
  --bg-main: #f3efe9;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-elevated: #232821;
  --primary: #0ab24a;
  --primary-deep: #0a933d;
  --primary-glow: #0ab24a;
  --text-main: #2e2923;
  --text-muted: rgba(94, 86, 76, 0.78);
  --glass-border: rgba(46, 41, 35, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.96);
  --shadow-soft: 0 12px 28px rgba(46, 41, 35, 0.06);
  --shadow-strong: 0 18px 44px rgba(46, 41, 35, 0.08);
  --font-mono: "Fira Code", monospace;
  --font-sans: "Inter", sans-serif;
}

body.page-search-project ::selection {
  background: var(--primary);
  color: var(--bg-main);
}

body.page-search-project,
body.page-search-project * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page-search-project {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.page-search-project #network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}

body.page-search-project .audio-control {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  background: rgba(17, 24, 28, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(1, 0, 0, 0.24);
}

body.page-search-project .audio-control:hover {
  border-color: var(--primary-glow);
  color: var(--text-main);
  transform: translateY(-2px);
}

body.page-search-project .audio-control.playing {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  box-shadow: 0 16px 36px rgba(52, 178, 123, 0.16);
}

body.page-search-project .audio-control.playing i {
  animation: spin 3s linear infinite;
}

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

body.page-search-project h1,
body.page-search-project h2,
body.page-search-project h3,
body.page-search-project h4 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.page-search-project .mono {
  font-family: var(--font-mono);
}

body.page-search-project .text-accent {
  color: var(--primary-glow);
}

body.page-search-project .section-title {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  white-space: nowrap;
  position: relative;
  color: var(--text-main);
}

body.page-search-project .section-title::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--glass-border) 0%, transparent 100%);
  margin-left: 20px;
}

body.page-search-project .section-number {
  color: var(--primary-glow);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-right: 12px;
}

body.page-search-project .navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(17, 24, 28, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(248, 249, 250, 0.03);
}

body.page-search-project .logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.8px;
  color: var(--text-main);
  font-family: var(--font-mono);
}

body.page-search-project .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

body.page-search-project .nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

body.page-search-project .nav-links a:hover {
  color: var(--primary-glow);
}

body.page-search-project .hamburger {
  display: none;
  cursor: pointer;
  color: var(--primary-glow);
  font-size: 1.8rem;
  z-index: 1001;
}

body.page-search-project .section-padding {
  padding: 6rem 8%;
}

body.page-search-project .container {
  max-width: 1100px;
  margin: 0 auto;
}

body.page-search-project .project-header {
  margin-top: 5rem;
}

body.page-search-project .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

body.page-search-project .project-meta span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.06);
}

body.page-search-project .project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
}

body.page-search-project .project-copy {
  display: grid;
  gap: 1rem;
}

body.page-search-project .case-card,
body.page-search-project .sidebar-card {
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    180deg,
    rgba(23, 32, 38, 0.9),
    rgba(17, 24, 28, 0.98)
  );
  box-shadow: var(--shadow-soft);
}

body.page-search-project .case-card h3,
body.page-search-project .sidebar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

body.page-search-project .case-card p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.8;
}

body.page-search-project .case-card ul,
body.page-search-project .sidebar-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

body.page-search-project .case-card li,
body.page-search-project .sidebar-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

body.page-search-project .case-card li::before,
body.page-search-project .sidebar-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-glow);
}

body.page-search-project .project-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
}

body.page-search-project .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-search-project .tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-glow);
  background: rgba(52, 178, 123, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 178, 123, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(248, 249, 250, 0.05),
    0 4px 12px rgba(52, 178, 123, 0.08);
}

body.page-search-project .project-meta-card strong {
  color: var(--text-main);
}

body.page-search-project .project-meta-card p,
body.page-search-project .sidebar-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

body.page-search-project .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-deep) 100%
  );
  cursor: pointer;
  color: white;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(248, 249, 250, 0.08);
  box-shadow: 0 14px 28px rgba(52, 178, 123, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}

body.page-search-project .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(52, 178, 123, 0.16);
}

body.page-search-project .btn-primary::after {
  display: none;
}

body.page-search-project .btn-primary:hover::after {
  display: none;
}

body.page-search-project,
body.page-search-project .navbar,
body.page-search-project .project-meta span,
body.page-search-project .case-card,
body.page-search-project .sidebar-card {
  background: var(--bg-main);
  border-color: var(--glass-border);
  box-shadow: none;
}

body.page-search-project .navbar {
  box-shadow: none;
}

body.page-search-project .audio-control {
  background: var(--bg-elevated);
  color: var(--bg-main);
  border-color: var(--bg-elevated);
  box-shadow: none;
}

body.page-search-project .audio-control:hover,
body.page-search-project .audio-control.playing {
  color: var(--bg-main);
  border-color: var(--primary);
  box-shadow: none;
}

body.page-search-project .logo,
body.page-search-project .nav-links a,
body.page-search-project .section-title,
body.page-search-project .project-meta,
body.page-search-project .case-card p,
body.page-search-project .case-card li,
body.page-search-project .sidebar-card p,
body.page-search-project .sidebar-list li {
  color: var(--text-main);
}

body.page-search-project .text-accent,
body.page-search-project .section-number,
body.page-search-project .case-card li::before,
body.page-search-project .sidebar-list li::before,
body.page-search-project .sidebar-card h3,
body.page-search-project .case-card h3 {
  color: var(--primary);
}

body.page-search-project .section-title::after {
  background: var(--primary);
}

body.page-search-project .tech-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-elevated);
  box-shadow: none;
  color: var(--bg-main);
}

body.page-search-project .btn-primary {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  box-shadow: none;
}

body.page-search-project .btn-primary:hover {
  box-shadow: none;
}

body.page-search-project .fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-out;
}

body.page-search-project .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body.page-search-project .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-main);
    padding: 2rem;
    border-left: 1px solid var(--glass-border);
    gap: 2rem;
    height: calc(100vh - 70px);
    width: 70%;
    transition: right 0.3s ease;
  }

  body.page-search-project .nav-links.active {
    right: 0;
  }

  body.page-search-project .hamburger {
    display: block;
  }

  body.page-search-project .audio-control {
    bottom: 20px;
    left: 20px;
    font-size: 0.75rem;
  }

  body.page-search-project .project-layout {
    grid-template-columns: 1fr;
  }
}

body.page-search-project #network-canvas {
  opacity: 0.08;
}

body.page-search-project .navbar {
  border: none;
  box-shadow: 0 1px 0 rgba(17, 24, 28, 0.08);
}

body.page-search-project .audio-control,
body.page-search-project .project-meta span {
  border: none;
  box-shadow: none;
}

body.page-search-project .audio-control {
  background: var(--bg-elevated);
  color: var(--bg-main);
}

body.page-search-project .case-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.page-search-project .case-card + .case-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-elevated);
}

body.page-search-project .sidebar-card {
  background: rgba(248, 249, 250, 0.96);
  color: var(--text-main);
  border: none;
  box-shadow: 0 16px 32px rgba(17, 24, 28, 0.08);
}

body.page-search-project .sidebar-card h3,
body.page-search-project .sidebar-card p,
body.page-search-project .sidebar-list li {
  color: var(--text-main);
}

body.page-search-project .project-meta span {
  background: rgba(248, 249, 250, 0.96);
  color: var(--text-main);
  box-shadow: 0 8px 20px rgba(17, 24, 28, 0.04);
}

body.page-search-project .tech-badge {
  border: none;
  box-shadow: 0 8px 20px rgba(17, 24, 28, 0.04);
}

body.page-search-project .btn-primary {
  border: none;
  box-shadow: none;
}

body.page-search-project .btn-primary:hover,
body.page-search-project .audio-control:hover,
body.page-search-project .audio-control.playing {
  box-shadow: 0 14px 28px rgba(17, 24, 28, 0.08);
}

@media (max-width: 900px) {
  body.page-search-project .nav-links {
    top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    border: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
    box-shadow: -12px 0 30px rgba(17, 24, 28, 0.08);
  }

  body.page-search-project .nav-links a {
    color: var(--text-main);
  }

  body.page-search-project .project-header {
    margin-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  body.page-search-project .section-title {
    white-space: normal;
    align-items: flex-start;
  }

  body.page-search-project .section-title::after {
    margin-left: 0;
  }

  body.page-search-project .project-header {
    margin-top: 4rem;
  }
}

body.page-search-project {
  background:
    radial-gradient(
      circle at top right,
      rgba(10, 178, 74, 0.06),
      transparent 22%
    ),
    linear-gradient(180deg, #faf7f3 0%, var(--bg-main) 100%);
}

body.page-search-project .navbar {
  background: rgba(255, 255, 255, 0.92);
}

body.page-search-project .audio-control,
body.page-search-project .sidebar-card {
  background: rgba(255, 255, 255, 1);
  color: var(--text-main);
  border: none;
  box-shadow: 0 14px 30px rgba(46, 41, 35, 0.07);
}

body.page-search-project .project-meta span,
body.page-search-project .tech-badge {
  background: rgba(52, 178, 123, 0.12);
  color: var(--primary);
  border: none;
  box-shadow: none;
}

body.page-search-project .audio-control.playing {
  color: var(--primary);
}

body.page-search-project .case-card + .case-card {
  border-top: 1px solid rgba(17, 24, 28, 0.08);
}

@media (max-width: 900px) {
  body.page-search-project .nav-links {
    background: rgba(248, 249, 250, 0.98);
    box-shadow: -12px 0 30px rgba(17, 24, 28, 0.08);
  }
}

@media screen {
  body.page-home,
  body.page-resume,
  body.page-book-project,
  body.page-search-project {
    --ref-bg: #fafafa;
    --ref-surface: rgba(255, 255, 255, 0.96);
    --ref-surface-strong: #ffffff;
    --ref-text: #121212;
    --ref-muted: #626262;
    --ref-border: #dcdcdc;
    --ref-border-strong: #d0d0d0;
    --ref-primary: #1c1c1c;
    --ref-primary-deep: #121212;
    --ref-primary-soft: rgba(28, 28, 28, 0.06);
    --ref-secondary: #f0f0f0;
    --ref-muted-surface: #f0f0f0;
    --ref-accent-surface: #f0f0f0;
    --ref-chart-1: #4fd6ca;
    --ref-chart-2: #19b7ad;
    --ref-chart-3: #109790;
    --ref-chart-4: #0c7a74;
    --ref-chart-5: #0a6560;
    --ref-accent-ink: var(--ref-chart-3);
    --ref-shadow: 0 14px 34px rgba(18, 18, 18, 0.05);
    --ref-radius: 24px;
    --ref-gap: 1rem;
    --ref-gap-lg: 1.5rem;
  }

  body.page-home {
    --bg: var(--ref-bg);
    --surface: var(--ref-surface);
    --surface-strong: var(--ref-surface-strong);
    --text: var(--ref-text);
    --muted: var(--ref-muted);
    --accent: var(--ref-accent-ink);
    --accent-soft: var(--ref-accent-surface);
    --line: var(--ref-border);
    --line-strong: var(--ref-border-strong);
    --shadow: var(--ref-shadow);
    --radius: var(--ref-radius);
  }

  body.page-resume,
  body.page-book-project,
  body.page-search-project {
    --bg-main: var(--ref-bg);
    --bg-surface: var(--ref-surface);
    --glass-bg: var(--ref-surface-strong);
    --bg-elevated: var(--ref-primary);
    --primary: var(--ref-accent-ink);
    --primary-deep: var(--ref-chart-4);
    --primary-glow: var(--ref-accent-ink);
    --text-main: var(--ref-text);
    --text-muted: rgba(18, 18, 18, 0.56);
    --glass-border: var(--ref-border);
    --glass-strong: var(--ref-border-strong);
    --shadow-soft: var(--ref-shadow);
    --shadow-strong: 0 18px 42px rgba(18, 18, 18, 0.07);
  }

  body.page-home,
  body.page-resume,
  body.page-book-project,
  body.page-search-project {
    background:
      radial-gradient(
        circle at 18% 0%,
        rgba(79, 214, 202, 0.05),
        transparent 18%
      ),
      radial-gradient(
        circle at 84% 10%,
        rgba(255, 255, 255, 0.92),
        transparent 30%
      ),
      linear-gradient(180deg, #ffffff 0%, var(--ref-bg) 100%);
    color: var(--ref-text);
  }

  body.page-home::before {
    background:
      radial-gradient(
        circle at top left,
        rgba(79, 214, 202, 0.045),
        transparent 32%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.04)
      );
    background-size:
      100% 100%,
      100% 100%;
  }

  body.page-home .nav {
    padding: 1rem max(1rem, 4vw);
  }

  body.page-home .nav-shell {
    min-height: 68px;
    padding: 0.85rem 0.95rem;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
  }

  body.page-book-project .navbar,
  body.page-search-project .navbar {
    top: 1rem;
    left: 50%;
    width: min(1100px, calc(100% - 2rem));
    transform: translateX(-50%);
    padding: 0.85rem 0.95rem;
    gap: 0.9rem;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
  }

  body.page-home .nav-links,
  body.page-book-project .nav-links,
  body.page-search-project .nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body.page-home .nav-links a,
  body.page-book-project .nav-links a,
  body.page-search-project .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 0.95rem;
    border-radius: calc(var(--ref-radius) - 8px);
    color: var(--ref-muted);
    text-decoration: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  body.page-home .nav-links a:hover,
  body.page-book-project .nav-links a:hover,
  body.page-search-project .nav-links a:hover {
    background: var(--ref-primary-soft);
    color: var(--ref-text);
  }

  body.page-home .nav-cta,
  body.page-book-project .nav-cta-compact,
  body.page-search-project .nav-cta-compact {
    min-height: 44px;
    padding: 0.72rem 1.05rem;
  }

  body.page-home .hamburger,
  body.page-book-project .hamburger,
  body.page-search-project .hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ref-border);
    border-radius: calc(var(--ref-radius) - 8px);
    background: var(--ref-surface-strong);
    color: var(--ref-text);
    cursor: pointer;
  }

  body.page-home .nav-shell,
  body.page-home .card,
  body.page-home .project-card,
  body.page-home .contact-card,
  body.page-home .hero-panel,
  body.page-home .footer-links a,
  body.page-home .hamburger,
  body.page-home input,
  body.page-home textarea,
  body.page-resume .resume-container,
  body.page-resume .sidebar,
  body.page-resume .main-section,
  body.page-resume .shortcut-link,
  body.page-resume .skill-pill,
  body.page-resume .job-type,
  body.page-resume .tech-item,
  body.page-resume .btn-action,
  body.page-resume .audio-control,
  body.page-book-project .navbar,
  body.page-book-project .audio-control,
  body.page-book-project .case-card,
  body.page-book-project .sidebar-card,
  body.page-book-project .project-meta span,
  body.page-book-project .tech-badge,
  body.page-book-project .btn-primary,
  body.page-book-project .nav-cta-compact,
  body.page-search-project .navbar,
  body.page-search-project .audio-control,
  body.page-search-project .case-card,
  body.page-search-project .sidebar-card,
  body.page-search-project .project-meta span,
  body.page-search-project .tech-badge,
  body.page-search-project .btn-primary,
  body.page-search-project .nav-cta-compact {
    background: var(--ref-surface-strong);
    border-radius: var(--ref-radius) !important;
    border: 1px solid var(--ref-border);
    box-shadow: var(--ref-shadow);
  }

  body.page-home .pill,
  body.page-home .btn-primary,
  body.page-home .project-button,
  body.page-home .nav-cta,
  body.page-home .stamp,
  body.page-resume .skill-pill,
  body.page-resume .job-type,
  body.page-resume .tech-item,
  body.page-resume .btn-action,
  body.page-book-project .project-meta span,
  body.page-book-project .tech-badge,
  body.page-book-project .btn-primary,
  body.page-book-project .nav-cta-compact,
  body.page-search-project .project-meta span,
  body.page-search-project .tech-badge,
  body.page-search-project .btn-primary,
  body.page-search-project .nav-cta-compact {
    border-radius: var(--ref-radius) !important;
  }

  body.page-home .btn-primary,
  body.page-home .project-button,
  body.page-home .nav-cta,
  body.page-resume .btn-action,
  body.page-book-project .btn-primary,
  body.page-book-project .nav-cta-compact,
  body.page-search-project .btn-primary,
  body.page-search-project .nav-cta-compact {
    background: linear-gradient(
      180deg,
      #2d2d2e 0%,
      var(--ref-primary-deep) 100%
    );
    color: #ffffff;
    border-color: rgba(35, 35, 36, 0.04);
    box-shadow: 0 10px 24px rgba(32, 32, 33, 0.14);
  }

  body.page-home .btn-secondary,
  body.page-resume .shortcut-link,
  body.page-book-project .audio-control,
  body.page-search-project .audio-control {
    background: var(--ref-secondary);
    color: var(--ref-text);
    border: 1px solid var(--ref-border);
    box-shadow: 0 6px 16px rgba(18, 18, 18, 0.04);
  }

  body.page-home .badge,
  body.page-resume .badge,
  body.page-book-project .badge,
  body.page-search-project .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    gap: 0.4rem;
    padding: 0.45rem 0.78rem !important;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    background: var(--ref-secondary);
    color: var(--ref-text);
    border-color: var(--ref-border);
    border-radius: 999px !important;
    box-shadow: none;
  }

  body.page-home .badge--default,
  body.page-resume .badge--default,
  body.page-book-project .badge--default,
  body.page-search-project .badge--default {
    background: var(--ref-primary);
    color: #ffffff;
    border-color: var(--ref-primary);
  }

  body.page-home .badge-primary,
  body.page-resume .badge-primary,
  body.page-book-project .badge-primary,
  body.page-search-project .badge-primary {
    background: var(--ref-primary);
    color: #ffffff;
    border-color: var(--ref-primary);
  }

  body.page-home .badge--secondary,
  body.page-resume .badge--secondary,
  body.page-book-project .badge--secondary,
  body.page-search-project .badge--secondary {
    background: var(--ref-secondary);
    color: var(--ref-text);
    border-color: var(--ref-border);
  }

  body.page-home .badge--outline,
  body.page-resume .badge--outline,
  body.page-book-project .badge--outline,
  body.page-search-project .badge--outline {
    background: transparent;
    color: var(--ref-text);
    border-color: var(--ref-border-strong);
  }

  body.page-home .pill,
  body.page-home .stamp,
  body.page-resume .skill-pill,
  body.page-resume .job-type,
  body.page-resume .tech-item,
  body.page-book-project .project-meta span,
  body.page-book-project .tech-badge,
  body.page-search-project .project-meta span,
  body.page-search-project .tech-badge {
    background: var(--ref-accent-surface);
    color: var(--ref-primary);
    border-color: var(--ref-border);
    box-shadow: none;
  }

  body.page-resume .badge.skill-pill,
  body.page-resume .badge.tech-item,
  body.page-book-project .badge.tech-badge,
  body.page-search-project .badge.tech-badge {
    background: var(--ref-secondary);
    color: var(--ref-text);
    border-color: var(--ref-border);
    box-shadow: none;
    transform: none;
  }

  body.page-resume .badge.job-type,
  body.page-book-project .project-meta .badge,
  body.page-search-project .project-meta .badge {
    background: transparent;
    color: var(--ref-text);
    border-color: var(--ref-border-strong);
    box-shadow: none;
    transform: none;
  }

  body.page-resume .badge.skill-pill:hover,
  body.page-resume .badge.tech-item:hover,
  body.page-resume .badge.job-type:hover,
  body.page-book-project .badge.tech-badge:hover,
  body.page-book-project .project-meta .badge:hover,
  body.page-search-project .badge.tech-badge:hover,
  body.page-search-project .project-meta .badge:hover {
    background: var(--ref-secondary);
    color: var(--ref-text);
    border-color: var(--ref-border);
    box-shadow: none;
    transform: none;
  }

  body.page-home .btn-primary:hover,
  body.page-home .project-button:hover,
  body.page-home .nav-cta:hover,
  body.page-resume .btn-action:hover,
  body.page-book-project .btn-primary:hover,
  body.page-book-project .nav-cta-compact:hover,
  body.page-search-project .btn-primary:hover,
  body.page-search-project .nav-cta-compact:hover {
    background: linear-gradient(180deg, #353536 0%, #1b1b1c 100%);
    box-shadow: 0 14px 28px rgba(32, 32, 33, 0.16);
  }

  body.page-home .btn-secondary:hover,
  body.page-resume .shortcut-link:hover,
  body.page-book-project .audio-control:hover,
  body.page-search-project .audio-control:hover {
    color: var(--ref-primary);
    border-color: var(--ref-border-strong);
    box-shadow: 0 10px 22px rgba(32, 32, 33, 0.06);
  }

  body.page-resume .audio-control.playing,
  body.page-book-project .audio-control.playing,
  body.page-search-project .audio-control.playing {
    background: var(--ref-secondary);
    color: var(--ref-accent-ink);
    border-color: rgba(16, 151, 144, 0.18);
    box-shadow: 0 10px 22px rgba(16, 151, 144, 0.08);
  }

  body.page-home .hero-grid,
  body.page-home .about-grid,
  body.page-home .contact-grid,
  body.page-home .skills-grid,
  body.page-home .projects-grid,
  body.page-book-project .project-layout,
  body.page-search-project .project-layout {
    gap: var(--ref-gap-lg);
  }

  body.page-home .project-card,
  body.page-home .skill-card,
  body.page-home .hero-panel,
  body.page-home .card,
  body.page-home .contact-card,
  body.page-book-project .project-copy,
  body.page-search-project .project-copy {
    gap: var(--ref-gap);
  }

  body.page-home .card,
  body.page-home .project-card,
  body.page-home .contact-card,
  body.page-home .hero-panel,
  body.page-resume .main-section,
  body.page-book-project .case-card,
  body.page-book-project .sidebar-card,
  body.page-search-project .case-card,
  body.page-search-project .sidebar-card {
    padding: 1.5rem;
  }

  body.page-home .footer-links a,
  body.page-resume .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home .pill,
  body.page-home .btn-primary,
  body.page-home .btn-secondary,
  body.page-home .project-button,
  body.page-home .nav-cta,
  body.page-home input,
  body.page-home textarea,
  body.page-resume .shortcut-link,
  body.page-resume .skill-pill,
  body.page-resume .job-type,
  body.page-resume .tech-item,
  body.page-book-project .project-meta span,
  body.page-book-project .tech-badge,
  body.page-book-project .btn-primary,
  body.page-search-project .project-meta span,
  body.page-search-project .tech-badge,
  body.page-search-project .btn-primary {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  body.page-home .footer-shell,
  body.page-home .hero-actions,
  body.page-home .badge-row,
  body.page-home .pill-row,
  body.page-home .contact-links,
  body.page-resume .profile-shortcuts,
  body.page-resume .skill-cloud,
  body.page-resume .tech-row,
  body.page-book-project .project-meta,
  body.page-book-project .tech-stack,
  body.page-search-project .project-meta,
  body.page-search-project .tech-stack {
    gap: var(--ref-gap);
  }

  body.page-resume .resume-container,
  body.page-book-project .case-card,
  body.page-book-project .sidebar-card,
  body.page-search-project .case-card,
  body.page-search-project .sidebar-card,
  body.page-home .nav-shell,
  body.page-home .card,
  body.page-home .project-card,
  body.page-home .hero-panel,
  body.page-home .contact-card {
    border-color: var(--ref-border);
  }

  body.page-resume .main-title,
  body.page-book-project .case-card + .case-card,
  body.page-search-project .case-card + .case-card {
    border-color: var(--ref-border) !important;
  }

  body.page-resume .job-item::before {
    background: var(--ref-border-strong);
  }

  body.page-resume .job-item::after {
    background: var(--ref-accent-ink);
  }

  body.page-resume .profile-header h1,
  body.page-resume .profile-summary,
  body.page-resume .sb-section-title,
  body.page-resume .contact-item,
  body.page-resume .edu-school,
  body.page-resume .edu-date,
  body.page-book-project .logo,
  body.page-book-project .nav-links a,
  body.page-book-project .section-title,
  body.page-book-project .case-card p,
  body.page-book-project .sidebar-card p,
  body.page-book-project .sidebar-list li,
  body.page-search-project .logo,
  body.page-search-project .nav-links a,
  body.page-search-project .section-title,
  body.page-search-project .case-card p,
  body.page-search-project .sidebar-card p,
  body.page-search-project .sidebar-list li {
    color: var(--ref-text);
  }

  body.page-resume .profile-header h2,
  body.page-resume .sb-section-title i,
  body.page-resume .shortcut-link i,
  body.page-resume .contact-item i,
  body.page-resume .edu-degree,
  body.page-resume .main-title i,
  body.page-book-project .text-accent,
  body.page-book-project .section-number,
  body.page-book-project .case-card h3,
  body.page-book-project .sidebar-card h3,
  body.page-search-project .text-accent,
  body.page-search-project .section-number,
  body.page-search-project .case-card h3,
  body.page-search-project .sidebar-card h3 {
    color: var(--ref-accent-ink);
  }

  body.page-book-project .section-title::after,
  body.page-search-project .section-title::after {
    background: var(--ref-accent-ink);
  }

  body.page-resume .scroll-progress {
    background: var(--ref-primary);
  }

  body.page-book-project .nav-links,
  body.page-search-project .nav-links {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--ref-radius);
  }
}

@media screen and (max-width: 900px) {
  body.page-book-project.menu-open,
  body.page-search-project.menu-open {
    overflow: hidden;
  }

  body.page-book-project .hamburger,
  body.page-search-project .hamburger {
    display: inline-flex;
  }

  body.page-book-project .nav-links,
  body.page-search-project .nav-links {
    position: fixed;
    top: 5.75rem;
    left: 50%;
    right: auto;
    width: min(1100px, calc(100% - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(32, 32, 33, 0.12);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(32, 32, 33, 0.08);
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    height: auto;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  body.page-book-project .nav-links.active,
  body.page-search-project .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  body.page-book-project .nav-links li,
  body.page-book-project .nav-links a,
  body.page-book-project .nav-cta-compact,
  body.page-search-project .nav-links li,
  body.page-search-project .nav-links a,
  body.page-search-project .nav-cta-compact {
    width: 100%;
  }

  body.page-book-project .nav-links a,
  body.page-book-project .nav-cta-compact,
  body.page-search-project .nav-links a,
  body.page-search-project .nav-cta-compact {
    justify-content: center;
  }
}

@media screen and (max-width: 820px) {
  body.page-home .hamburger {
    display: inline-flex;
  }
}

/* resume.html template refresh */
body.page-resume .cv-page {
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
}

body.page-resume .cv-sheet {
  width: min(1120px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(18, 18, 18, 0.08);
}

body.page-resume .cv-back {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 14px 28px rgba(18, 18, 18, 0.08);
  z-index: 20;
}

body.page-resume .cv-banner {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem 2.4rem;
  background: linear-gradient(135deg, #2a3140 0%, #109790 130%);
  color: #ffffff;
}

body.page-resume .cv-avatar-wrap {
  display: flex;
  justify-content: center;
  align-self: end;
  transform: translateY(45%);
}

body.page-resume .cv-avatar-photo {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  border: 6px solid #ffffff;
  box-shadow: 0 16px 32px rgba(18, 18, 18, 0.18);
}

body.page-resume .cv-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

body.page-resume .cv-banner-copy {
  display: grid;
  gap: 0.4rem;
  padding-left: 0.5rem;
}

body.page-resume .cv-banner-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

body.page-resume .cv-banner-copy h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

body.page-resume .cv-banner-role {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

body.page-resume .cv-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
}

body.page-resume .cv-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

body.page-resume .cv-sidebar {
  background: #f1f2f4;
  padding: 6.6rem 2rem 2.2rem;
  border-right: 1px solid rgba(18, 18, 18, 0.08);
  display: grid;
  align-content: start;
  gap: 2rem;
}

body.page-resume .cv-main {
  padding: 2.2rem 2.4rem 2.6rem;
  display: grid;
  gap: 2rem;
  background: #ffffff;
}

body.page-resume .cv-side-section,
body.page-resume .cv-section,
body.page-resume .cv-education-item,
body.page-resume .cv-entry {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.72s ease-out both;
}

body.page-resume .cv-side-title,
body.page-resume .cv-section-head h2 {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a3140;
}

body.page-resume .cv-side-title {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(42, 49, 64, 0.24);
  margin-bottom: 1rem;
}

body.page-resume .cv-contact-list,
body.page-resume .cv-bullet-list,
body.page-resume .cv-entry-list {
  list-style: none;
  display: grid;
}

body.page-resume .cv-contact-list {
  gap: 0.8rem;
}

body.page-resume .cv-contact-list li a,
body.page-resume .cv-contact-list li span {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(18, 18, 18, 0.72);
  text-decoration: none;
}

body.page-resume .cv-contact-list i {
  color: #109790;
  font-size: 1rem;
  margin-top: 0.1rem;
}

body.page-resume .cv-bullet-list {
  gap: 0.7rem;
}

body.page-resume .cv-bullet-list li,
body.page-resume .cv-entry-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(18, 18, 18, 0.76);
  font-size: 0.95rem;
  line-height: 1.6;
}

body.page-resume .cv-bullet-list li::before,
body.page-resume .cv-entry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #109790;
}

body.page-resume .cv-section {
  display: grid;
  gap: 1rem;
}

body.page-resume .cv-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

body.page-resume .cv-section-head h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.page-resume .cv-section-head h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(42, 49, 64, 0.2);
}

body.page-resume .cv-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a3140;
  color: #ffffff;
  font-size: 1rem;
}

body.page-resume .cv-summary {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(18, 18, 18, 0.72);
}

body.page-resume .cv-timeline {
  position: relative;
  display: grid;
  gap: 1.75rem;
}

body.page-resume .cv-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: rgba(42, 49, 64, 0.18);
}

body.page-resume .cv-entry {
  position: relative;
  padding-left: 2rem;
}

body.page-resume .cv-entry::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #109790;
}

body.page-resume .cv-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

body.page-resume .cv-entry-head h3,
body.page-resume .cv-education-item h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 800;
  color: #1b1d23;
}

body.page-resume .cv-entry-subtitle,
body.page-resume .cv-education-item p {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: rgba(18, 18, 18, 0.62);
}

body.page-resume .cv-entry-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 151, 144, 0.12);
  color: #0a6560;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body.page-resume .cv-entry-list {
  gap: 0.55rem;
}

body.page-resume .cv-education-item span,
body.page-resume .cv-entry-list li {
  color: rgba(18, 18, 18, 0.66);
}

body.page-resume .cv-education-item span {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

body.page-resume .cv-education-list {
  display: grid;
  gap: 1rem;
}

body.page-resume .cv-education-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(42, 49, 64, 0.04);
  border: 1px solid rgba(42, 49, 64, 0.08);
}

body.page-resume .cv-education-item strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.62);
  white-space: nowrap;
}

body.page-resume .cv-banner-link:hover,
body.page-resume .cv-back:hover {
  transform: translateY(-2px);
}

@media (max-width: 940px) {
  body.page-resume .cv-banner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-bottom: 5.5rem;
  }

  body.page-resume .cv-avatar-wrap {
    position: absolute;
    left: 2rem;
    bottom: 0;
    transform: translateY(50%);
  }

  body.page-resume .cv-banner-link {
    margin-top: 0.5rem;
  }

  body.page-resume .cv-layout {
    grid-template-columns: 1fr;
  }

  body.page-resume .cv-sidebar {
    padding-top: 6.8rem;
    border-right: none;
    border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  }
}

@media (max-width: 640px) {
  body.page-resume .cv-page {
    padding: 0;
  }

  body.page-resume .cv-sheet {
    border-radius: 0;
    border: none;
  }

  body.page-resume .cv-back {
    top: 0.9rem;
    left: 0.9rem;
  }

  body.page-resume .cv-banner {
    padding: 4.2rem 1.25rem 5.25rem;
  }

  body.page-resume .cv-avatar-wrap {
    left: 1.25rem;
  }

  body.page-resume .cv-avatar-photo {
    width: 138px;
    height: 138px;
  }

  body.page-resume .cv-banner-copy {
    padding-left: 0;
  }

  body.page-resume .cv-banner-copy h1 {
    font-size: 2.35rem;
  }

  body.page-resume .cv-banner-role {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  body.page-resume .cv-sidebar,
  body.page-resume .cv-main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  body.page-resume .cv-entry-head,
  body.page-resume .cv-education-item {
    flex-direction: column;
  }

  body.page-resume .cv-entry-tag,
  body.page-resume .cv-education-item strong {
    white-space: normal;
  }
}

@media print {
  body.page-resume .cv-back {
    display: none;
  }

  body.page-resume .cv-page {
    padding: 0;
  }

  body.page-resume .cv-sheet {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Final cascade: flat Valorant-inspired white and rose-red theme. */
body.page-home.game-shell {
  --bg: #ece8e1;
  --bg-deep: #d9d2c7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #0f1923;
  --muted: #52606a;
  --accent: #ff4655;
  --accent-strong: #d92f3d;
  --accent-soft: rgba(255, 70, 85, 0.1);
  --warning: #0f1923;
  --cyan: #0f1923;
  --line: rgba(15, 25, 35, 0.14);
  --line-strong: rgba(15, 25, 35, 0.32);
  --shadow-soft: 10px 10px 0 rgba(15, 25, 35, 0.08);
  --shadow-strong: 14px 14px 0 rgba(15, 25, 35, 0.12);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --font-body: "Inter", sans-serif;
  --font-display: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  background:
    linear-gradient(90deg, rgba(15, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(15, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(
      135deg,
      transparent 0 64%,
      rgba(255, 70, 85, 0.08) 64% 68%,
      transparent 68%
    ),
    #ece8e1;
  background-size:
    42px 42px,
    42px 42px,
    100% 760px,
    auto,
    auto;
}

body.page-home.game-shell::before {
  background:
    linear-gradient(
      115deg,
      transparent 0 52%,
      rgba(255, 70, 85, 0.09) 52% 56%,
      transparent 56%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 52%);
  opacity: 1;
}

body.page-home.game-shell .nav-shell,
body.page-home.game-shell .card,
body.page-home.game-shell .project-card,
body.page-home.game-shell .contact-card,
body.page-home.game-shell .hero-panel,
body.page-home.game-shell .contact-link-card,
body.page-home.game-shell .project-detail,
body.page-home.game-shell .metric-card,
body.page-home.game-shell .player-card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

body.page-home.game-shell .nav-shell {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

body.page-home.game-shell .logo,
body.page-home.game-shell .section-title,
body.page-home.game-shell .hero-title,
body.page-home.game-shell .card-title,
body.page-home.game-shell .project-title,
body.page-home.game-shell .contact-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

body.page-home.game-shell .eyebrow,
body.page-home.game-shell .section-number,
body.page-home.game-shell .mini-label,
body.page-home.game-shell .project-type,
body.page-home.game-shell .status-pill,
body.page-home.game-shell .badge,
body.page-home.game-shell .btn-primary,
body.page-home.game-shell .btn-secondary,
body.page-home.game-shell .project-button,
body.page-home.game-shell .nav-cta {
  font-family: var(--font-mono);
}

body.page-home.game-shell .logo {
  color: var(--text);
  font-size: 1.4rem;
}

body.page-home.game-shell .hero-title {
  display: block;
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 800;
  line-height: 0.94;
}

body.page-home.game-shell .hero-subtitle,
body.page-home.game-shell .section-copy,
body.page-home.game-shell .skill-card p,
body.page-home.game-shell .project-card p,
body.page-home.game-shell .mini-list li,
body.page-home.game-shell .project-detail span,
body.page-home.game-shell .contact-card p,
body.page-home.game-shell .contact-link-card span,
body.page-home.game-shell .stack-item span,
body.page-home.game-shell .metric-card span {
  color: var(--muted);
}

body.page-home.game-shell .badge,
body.page-home.game-shell .status-pill,
body.page-home.game-shell .btn-primary,
body.page-home.game-shell .btn-secondary,
body.page-home.game-shell .project-button,
body.page-home.game-shell .nav-cta {
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.page-home.game-shell .badge {
  background: rgba(10, 16, 14, 0.8);
  border-color: var(--line-strong);
  color: var(--text);
}

body.page-home.game-shell .badge--soft,
body.page-home.game-shell .status-pill--live {
  background: rgba(60, 255, 157, 0.13);
  border-color: rgba(60, 255, 157, 0.35);
  color: var(--accent);
}

body.page-home.game-shell .status-pill--building {
  background: rgba(255, 209, 92, 0.12);
  border-color: rgba(255, 209, 92, 0.34);
  color: var(--warning);
}

body.page-home.game-shell .btn-primary,
body.page-home.game-shell .project-button,
body.page-home.game-shell .nav-cta {
  border: 1px solid rgba(60, 255, 157, 0.45);
  background: linear-gradient(180deg, #19e886, #0b8f55);
  color: #04110b;
  box-shadow: 0 0 28px rgba(60, 255, 157, 0.18);
  font-weight: 800;
}

body.page-home.game-shell .btn-secondary {
  border-color: rgba(89, 215, 255, 0.34);
  background: rgba(89, 215, 255, 0.08);
  color: var(--cyan);
}

body.page-home.game-shell .hero-panel.game-card {
  min-height: auto;
  padding: 1.2rem;
}

body.page-home.game-shell .player-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 10, 0.54);
}

body.page-home.game-shell .avatar-frame {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(60, 255, 157, 0.55);
  border-radius: 8px;
  background: #202824;
}

body.page-home.game-shell .avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-home.game-shell .player-card h2 {
  margin-top: 0.2rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

body.page-home.game-shell .player-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

body.page-home.game-shell .metric-card {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 10, 0.62);
}

body.page-home.game-shell .metric-card strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 5vw, 2.7rem);
}

body.page-home.game-shell .project-card--featured {
  grid-column: span 6;
}

body.page-home.game-shell .project-card--small {
  grid-column: span 4;
}

body.page-home.game-shell .footer-shell {
  border-color: var(--line-strong);
}

body.page-home.game-shell .footer-links a {
  border-radius: 6px;
  border-color: var(--line-strong);
  background: rgba(25, 36, 32, 0.82);
}

body.page-resume,
body.page-book-project,
body.page-search-project {
  --bg-main: #0b100e;
  --bg-surface: rgba(20, 30, 26, 0.96);
  --bg-elevated: #111714;
  --primary: #3cff9d;
  --primary-deep: #11d97c;
  --primary-glow: #59d7ff;
  --text-main: #f2f7ef;
  --text-muted: rgba(198, 213, 202, 0.76);
  --glass-border: rgba(186, 255, 213, 0.16);
  --glass-strong: rgba(186, 255, 213, 0.26);
  --glass-bg: rgba(16, 24, 21, 0.94);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 28px 82px rgba(0, 0, 0, 0.42);
}

body.page-resume .cv-sheet,
body.page-book-project .case-card,
body.page-search-project .case-card,
body.page-book-project .sidebar-card,
body.page-search-project .sidebar-card,
body.page-book-project .navbar,
body.page-search-project .navbar {
  border-radius: 8px;
  border-color: var(--glass-border);
  background:
    linear-gradient(135deg, rgba(60, 255, 157, 0.08), transparent 34%),
    rgba(16, 24, 21, 0.94);
}

@media (max-width: 1040px) {
  body.page-home.game-shell .project-card--featured,
  body.page-home.game-shell .project-card--small {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  body.page-home.game-shell .player-card {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ADDITIONAL MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .v-project:nth-child(1),
  .v-project:nth-child(2) {
    grid-column: span 2;
  }

  .v-project:nth-child(3),
  .v-project:nth-child(4),
  .v-project:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-project {
    grid-column: span 1 !important;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .contact-layout,
  .github-layout,
  .cert-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .v-menu-toggle {
    display: flex !important;
  }

  .v-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 15, 17, 0.98);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-top: 1px solid rgba(225, 29, 72, 0.3);
    z-index: 2499;
    padding: 0;
  }

  .v-links.is-open {
    display: flex;
  }

  .v-links a {
    padding: 1rem;
    border-bottom: 1px solid rgba(225, 29, 72, 0.1);
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    min-height: 100px;
    padding: 0.8rem;
  }

  .tech-card i {
    font-size: 1.4rem;
  }

  .tech-card span {
    font-size: 0.85rem;
  }

  .v-hero {
    padding-top: 5rem;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .v-project {
    min-height: auto;
  }

  .v-project h3 {
    font-size: 1.35rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .v-container {
    width: min(100%, calc(100% - 1rem));
  }

  .v-nav {
    width: min(100%, calc(100% - 1rem));
    inset: 0.5rem 0.5rem auto;
    padding: 0.65rem 0.8rem;
    gap: 0.5rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .profile-row {
    grid-template-columns: 80px 1fr;
    gap: 0.8rem;
  }

  .profile-frame {
    width: 80px;
  }

  .hero-stats,
  .github-stats {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .hero-stats div,
  .github-stats div {
    padding: 0.8rem;
  }

  .contact-card a {
    padding: 0.8rem 1rem;
  }

  .terminal {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .terminal pre {
    padding: 0.8rem;
  }

  .about-panel,
  .cert-card,
  .contact-card,
  .timeline-item {
    padding: 1.2rem;
  }

  .timeline-item {
    margin-left: 1.5rem;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .v-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Ancient professional data engineer portfolio theme. */
:root {
  --a-parchment: #f4ead7;
  --a-paper: #fffaf0;
  --a-ink: #201811;
  --a-umber: #6f4c2e;
  --a-bronze: #a76f2b;
  --a-gold: #c5933b;
  --a-wine: #7f1d1d;
  --a-muted: #6e6253;
  --a-line: rgba(55, 38, 21, 0.22);
  --a-line-strong: rgba(55, 38, 21, 0.42);
  --a-shadow: 0 26px 70px rgba(43, 28, 12, 0.14);
  --a-display: "Cinzel", serif;
  --a-serif: "Cormorant Garamond", serif;
  --a-script: "IM Fell English", serif;
  --a-sans: "Inter", sans-serif;
}

body.ancient-portfolio,
body.ancient-portfolio * {
  box-sizing: border-box;
}

body.ancient-portfolio {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--a-ink);
  font-family: var(--a-sans);
  background:
    radial-gradient(circle at 12% 8%, rgba(167, 111, 43, 0.2), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(127, 29, 29, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(72, 45, 20, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(72, 45, 20, 0.04) 1px, transparent 1px),
    var(--a-parchment);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  -webkit-font-smoothing: antialiased;
}

body.ancient-portfolio::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.32;
  background:
    repeating-radial-gradient(circle at 18% 24%, rgba(37, 25, 13, 0.13) 0 1px, transparent 1px 5px),
    linear-gradient(115deg, transparent 0 48%, rgba(127, 29, 29, 0.08) 48% 51%, transparent 51%);
  mix-blend-mode: multiply;
}

body.ancient-portfolio a {
  color: inherit;
}

body.ancient-portfolio .loader {
  background:
    radial-gradient(circle, rgba(197, 147, 59, 0.16), transparent 24rem),
    #17100a;
}

body.ancient-portfolio .loader-mark {
  border-color: var(--a-gold);
  color: var(--a-gold);
  font-family: var(--a-display);
  clip-path: none;
}

body.ancient-portfolio .loader-track {
  background: rgba(244, 234, 215, 0.14);
}

body.ancient-portfolio .loader-track span,
body.ancient-portfolio .scroll-progress {
  background: linear-gradient(90deg, var(--a-wine), var(--a-gold));
}

body.ancient-portfolio .loader p {
  font-family: var(--a-display);
  color: #eadac0;
}

body.ancient-portfolio .mouse-light {
  width: 420px;
  height: 420px;
  opacity: 0.34;
  background: radial-gradient(circle, rgba(197, 147, 59, 0.22), transparent 64%);
}

body.ancient-portfolio .v-container {
  width: min(1160px, calc(100% - 2rem));
}

body.ancient-portfolio .section-panel {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

body.ancient-portfolio .v-nav {
  inset: 1rem 1rem auto;
  border: 1px solid rgba(244, 234, 215, 0.3);
  border-radius: 999px;
  background: rgba(32, 24, 17, 0.82);
  color: var(--a-paper);
  box-shadow: 0 18px 60px rgba(32, 24, 17, 0.24);
  clip-path: none;
}

body.ancient-portfolio .v-logo,
body.ancient-portfolio .v-links a,
body.ancient-portfolio .v-nav-cta,
body.ancient-portfolio .kicker,
body.ancient-portfolio .section-code,
body.ancient-portfolio .hero-card-top,
body.ancient-portfolio .project-meta {
  font-family: var(--a-display);
}

body.ancient-portfolio .v-logo span,
body.ancient-portfolio .v-links a:hover,
body.ancient-portfolio .kicker,
body.ancient-portfolio .section-code,
body.ancient-portfolio .project-meta strong,
body.ancient-portfolio .hero-card-top strong,
body.ancient-portfolio .tech-card i,
body.ancient-portfolio .cert-card i,
body.ancient-portfolio .contact-card i {
  color: var(--a-gold);
}

body.ancient-portfolio .v-links a {
  color: #e8dcc8;
  letter-spacing: 0.08em;
}

body.ancient-portfolio .v-nav-cta {
  border-radius: 999px;
  background: var(--a-wine);
  color: #fffaf0 !important;
  clip-path: none;
}

body.ancient-portfolio .v-hero {
  min-height: 100vh;
  color: var(--a-paper);
  background:
    linear-gradient(90deg, rgba(23, 16, 10, 0.96) 0 48%, rgba(23, 16, 10, 0.72) 48% 100%),
    radial-gradient(circle at 72% 22%, rgba(197, 147, 59, 0.22), transparent 25rem),
    url("./gray_pfp.png"),
    #17100a;
  background-size: auto, auto, min(620px, 48vw), auto;
  background-position: center, center, right 8% bottom 0, center;
  background-repeat: no-repeat;
}

body.ancient-portfolio .grid-layer {
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(244, 234, 215, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(244, 234, 215, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
}

body.ancient-portfolio .grid-layer::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(197, 147, 59, 0.34);
  pointer-events: none;
}

body.ancient-portfolio .particle-field span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--a-gold);
  box-shadow: 0 0 26px rgba(197, 147, 59, 0.9);
}

body.ancient-portfolio .hero-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  align-items: end;
}

body.ancient-portfolio .hero-copy {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

body.ancient-portfolio .hero-copy::before {
  content: "";
  position: absolute;
  top: -1.4rem;
  left: 0;
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--a-gold), transparent);
}

body.ancient-portfolio .hero-copy h1,
body.ancient-portfolio .section-heading h2 {
  font-family: var(--a-display);
  text-transform: none;
  letter-spacing: -0.02em;
}

body.ancient-portfolio .hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7.6vw, 7.4rem);
  line-height: 0.92;
}

body.ancient-portfolio .hero-subtitle {
  color: #e8dcc8;
  font-family: var(--a-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

body.ancient-portfolio .typing-line {
  color: #f7ead5;
  font-family: var(--a-script);
  font-size: 1.25rem;
}

body.ancient-portfolio .typing-caret {
  background: var(--a-gold);
}

body.ancient-portfolio .v-btn,
body.ancient-portfolio .project-actions a {
  border-radius: 999px;
  clip-path: none;
  font-family: var(--a-display);
  letter-spacing: 0.08em;
}

body.ancient-portfolio .v-btn-primary,
body.ancient-portfolio .project-actions a:first-child {
  background: var(--a-wine);
  box-shadow: 0 0 30px rgba(127, 29, 29, 0.22);
}

body.ancient-portfolio .v-btn-ghost,
body.ancient-portfolio .project-actions a:last-child {
  border-color: rgba(244, 234, 215, 0.38);
  background: rgba(244, 234, 215, 0.08);
  color: var(--a-paper);
}

body.ancient-portfolio .hero-card,
body.ancient-portfolio .about-panel,
body.ancient-portfolio .v-project,
body.ancient-portfolio .cert-card,
body.ancient-portfolio .contact-card,
body.ancient-portfolio .terminal,
body.ancient-portfolio .timeline-item {
  border: 1px solid var(--a-line);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(197, 147, 59, 0.1), transparent 34%),
    rgba(255, 250, 240, 0.86);
  box-shadow: var(--a-shadow);
  backdrop-filter: blur(16px);
  clip-path: none;
}

body.ancient-portfolio .hero-card {
  color: var(--a-ink);
  transform: rotate(1.2deg);
}

body.ancient-portfolio .hero-card::before,
body.ancient-portfolio .v-project::before,
body.ancient-portfolio .cert-card::before,
body.ancient-portfolio .timeline-item::before,
body.ancient-portfolio .contact-card::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--a-gold), transparent);
}

body.ancient-portfolio .hero-card::after,
body.ancient-portfolio .about-panel::after,
body.ancient-portfolio .v-project::after,
body.ancient-portfolio .cert-card::after,
body.ancient-portfolio .contact-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(111, 76, 46, 0.14);
  pointer-events: none;
}

body.ancient-portfolio .profile-row h2,
body.ancient-portfolio .v-project h3,
body.ancient-portfolio .cert-card h3,
body.ancient-portfolio .timeline-item h3 {
  font-family: var(--a-display);
  text-transform: none;
}

body.ancient-portfolio .hero-stats div,
body.ancient-portfolio .github-stats div,
body.ancient-portfolio .about-grid span,
body.ancient-portfolio .tag-row span,
body.ancient-portfolio .project-metrics span {
  border-color: var(--a-line);
  background: rgba(111, 76, 46, 0.06);
}

body.ancient-portfolio .hero-stats strong,
body.ancient-portfolio .github-stats strong,
body.ancient-portfolio .timeline-item span {
  color: var(--a-wine);
  font-family: var(--a-display);
}

body.ancient-portfolio .data-flow span {
  background: linear-gradient(90deg, transparent, var(--a-gold), transparent);
}

body.ancient-portfolio .split-layout {
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
}

body.ancient-portfolio .section-heading h2 {
  color: var(--a-ink);
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  line-height: 0.96;
}

body.ancient-portfolio .section-heading p:not(.section-code),
body.ancient-portfolio .about-panel p,
body.ancient-portfolio .v-project p,
body.ancient-portfolio .cert-card p,
body.ancient-portfolio .timeline-item p {
  color: var(--a-muted);
  font-family: var(--a-serif);
  font-size: 1.15rem;
  line-height: 1.75;
}

body.ancient-portfolio .dark-band {
  color: var(--a-paper);
  background:
    radial-gradient(circle at 12% 0%, rgba(197, 147, 59, 0.16), transparent 28rem),
    linear-gradient(120deg, rgba(127, 29, 29, 0.2), transparent 44%),
    #17100a;
}

body.ancient-portfolio .dark-band .section-heading h2,
body.ancient-portfolio .timeline-item h3 {
  color: var(--a-paper);
}

body.ancient-portfolio .dark-band .section-heading p:not(.section-code),
body.ancient-portfolio .timeline-item p {
  color: #d8c7ad;
}

body.ancient-portfolio .stack-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.ancient-portfolio .tech-card {
  border-color: rgba(244, 234, 215, 0.18);
  border-radius: 999px 999px 8px 8px;
  background:
    linear-gradient(180deg, rgba(244, 234, 215, 0.12), rgba(244, 234, 215, 0.04));
  clip-path: none;
}

body.ancient-portfolio .tech-card span,
body.ancient-portfolio .about-grid span,
body.ancient-portfolio .tag-row span,
body.ancient-portfolio .project-metrics span {
  font-family: var(--a-display);
  text-transform: none;
}

body.ancient-portfolio .project-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.ancient-portfolio .v-project {
  grid-column: span 4;
  min-height: 390px;
}

body.ancient-portfolio .v-project:nth-child(1),
body.ancient-portfolio .v-project:nth-child(2) {
  grid-column: span 6;
}

body.ancient-portfolio .v-project:nth-child(3),
body.ancient-portfolio .v-project:nth-child(4),
body.ancient-portfolio .v-project:nth-child(5) {
  grid-column: span 4;
}

body.ancient-portfolio .project-actions a:last-child {
  color: var(--a-ink);
  border-color: var(--a-line-strong);
}

body.ancient-portfolio .timeline::before {
  background: linear-gradient(var(--a-gold), transparent);
}

body.ancient-portfolio .timeline-item {
  background: rgba(244, 234, 215, 0.08);
  border-color: rgba(244, 234, 215, 0.22);
}

body.ancient-portfolio .cert-grid {
  align-items: stretch;
}

body.ancient-portfolio .terminal {
  background: rgba(23, 16, 10, 0.88);
  border-color: rgba(197, 147, 59, 0.34);
  box-shadow: 0 0 50px rgba(197, 147, 59, 0.14);
}

body.ancient-portfolio .terminal-top span {
  border-radius: 999px;
  background: var(--a-gold);
}

body.ancient-portfolio .terminal pre {
  color: #d8c7ad;
}

body.ancient-portfolio .contact-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(167, 111, 43, 0.18), transparent 24rem),
    var(--a-paper);
}

body.ancient-portfolio .contact-card a {
  border-color: var(--a-line);
  font-family: var(--a-display);
}

body.ancient-portfolio .contact-card a:hover {
  border-color: var(--a-gold);
  box-shadow: 0 0 26px rgba(197, 147, 59, 0.18);
}

body.ancient-portfolio .v-footer {
  background: #17100a;
  color: #d8c7ad;
  font-family: var(--a-serif);
}

body.ancient-portfolio .reveal {
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.ancient-portfolio .reveal.is-visible {
  transform: translateY(0) scale(1);
}

body.ancient-portfolio .tech-card:hover,
body.ancient-portfolio .v-btn:hover,
body.ancient-portfolio .project-actions a:hover {
  box-shadow: 0 0 34px rgba(197, 147, 59, 0.22);
}

@media (max-width: 1040px) {
  body.ancient-portfolio .hero-layout,
  body.ancient-portfolio .split-layout,
  body.ancient-portfolio .contact-layout,
  body.ancient-portfolio .github-layout,
  body.ancient-portfolio .cert-layout {
    grid-template-columns: 1fr;
  }

  body.ancient-portfolio .v-project,
  body.ancient-portfolio .v-project:nth-child(1),
  body.ancient-portfolio .v-project:nth-child(2),
  body.ancient-portfolio .v-project:nth-child(3),
  body.ancient-portfolio .v-project:nth-child(4),
  body.ancient-portfolio .v-project:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  body.ancient-portfolio .v-nav {
    border-radius: 18px;
  }

  body.ancient-portfolio .v-links {
    background: rgba(32, 24, 17, 0.98);
  }

  body.ancient-portfolio .hero-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  body.ancient-portfolio .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ancient-portfolio .v-project,
  body.ancient-portfolio .v-project:nth-child(1),
  body.ancient-portfolio .v-project:nth-child(2),
  body.ancient-portfolio .v-project:nth-child(3),
  body.ancient-portfolio .v-project:nth-child(4),
  body.ancient-portfolio .v-project:nth-child(5) {
    grid-column: span 12;
  }
}

/* Recruiter-focused ancient bento layout. */
body.bento-portfolio {
  --b-paper: #f8eedc;
  --b-card: rgba(255, 250, 240, 0.9);
  --b-ink: #201811;
  --b-muted: #6e6253;
  --b-line: rgba(80, 55, 30, 0.2);
  --b-line-strong: rgba(80, 55, 30, 0.38);
  --b-gold: #b98535;
  --b-wine: #7f1d1d;
  --b-moss: #596342;
  background:
    radial-gradient(circle at 10% 4%, rgba(185, 133, 53, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(127, 29, 29, 0.1), transparent 24rem),
    linear-gradient(90deg, rgba(80, 55, 30, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(80, 55, 30, 0.04) 1px, transparent 1px),
    var(--b-paper);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

body.bento-portfolio .loader p,
body.bento-portfolio .v-links a,
body.bento-portfolio .v-nav-cta,
body.bento-portfolio .soft-label,
body.bento-portfolio .compact-stack span,
body.bento-portfolio .switch-btn {
  text-transform: none;
}

body.bento-portfolio .v-nav {
  border-radius: 22px;
  background: rgba(32, 24, 17, 0.88);
}

body.bento-portfolio .v-logo {
  letter-spacing: 0.02em;
}

body.bento-portfolio .v-links a {
  letter-spacing: 0.03em;
}

body.bento-portfolio .bento-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 7.2rem 0 4rem;
}

body.bento-portfolio .bento-grid,
body.bento-portfolio .project-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

body.bento-portfolio .bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(185, 133, 53, 0.12), transparent 34%),
    var(--b-card);
  box-shadow: 0 24px 70px rgba(43, 28, 12, 0.12);
  backdrop-filter: blur(18px);
}

body.bento-portfolio .bento-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(80, 55, 30, 0.1);
  border-radius: 18px;
  pointer-events: none;
}

body.bento-portfolio .bento-intro {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  color: #fdf5e8;
  background:
    linear-gradient(120deg, rgba(23, 16, 10, 0.92), rgba(23, 16, 10, 0.76)),
    radial-gradient(circle at 82% 16%, rgba(185, 133, 53, 0.28), transparent 18rem),
    #17100a;
}

body.bento-portfolio .bento-intro h1 {
  max-width: 11ch;
  margin: 0.8rem 0 0;
  font-family: var(--a-display);
  font-size: clamp(3.1rem, 6.7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

body.bento-portfolio .bento-intro p:not(.soft-label):not(.typing-line) {
  max-width: 55ch;
  color: #e8dcc8;
  font-family: var(--a-serif);
  font-size: 1.22rem;
  line-height: 1.65;
}

body.bento-portfolio .soft-label {
  margin: 0;
  color: var(--b-gold);
  font-family: var(--a-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.bento-portfolio .typing-line {
  min-height: 1.7rem;
  color: #f7ead5;
  font-family: var(--a-serif);
  font-size: 1.1rem;
}

body.bento-portfolio .hero-actions {
  margin-top: 1.35rem;
}

body.bento-portfolio .v-btn {
  border-radius: 999px;
  clip-path: none;
  font-family: var(--a-display);
  letter-spacing: 0.02em;
}

body.bento-portfolio .v-btn-primary {
  background: var(--b-wine);
}

body.bento-portfolio .v-btn-ghost {
  color: #fdf5e8;
}

body.bento-portfolio .bento-profile {
  grid-column: span 5;
  min-height: 250px;
  padding: 1.4rem;
}

body.bento-portfolio .profile-row {
  height: 100%;
}

body.bento-portfolio .profile-row h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

body.bento-portfolio .metric-card-mini {
  grid-column: span 2;
  min-height: 150px;
  display: grid;
  align-content: end;
  padding: 1.2rem;
}

body.bento-portfolio .metric-card-mini strong {
  display: block;
  color: var(--b-wine);
  font-family: var(--a-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

body.bento-portfolio .metric-card-mini span {
  color: var(--b-muted);
}

body.bento-portfolio .bento-fit {
  grid-column: span 3;
  min-height: 310px;
  padding: 1.25rem;
}

body.bento-portfolio .bento-fit h2,
body.bento-portfolio .bento-section-head h2 {
  margin: 0.65rem 0 0;
  font-family: var(--a-display);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

body.bento-portfolio .bento-fit ul,
body.bento-portfolio .switch-panel ul {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--b-muted);
}

body.bento-portfolio .bento-stack {
  grid-column: span 5;
  min-height: 150px;
  padding: 1.25rem;
}

body.bento-portfolio .compact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

body.bento-portfolio .compact-stack span {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--b-line);
  border-radius: 999px;
  background: rgba(89, 99, 66, 0.08);
  color: var(--b-ink);
  font-family: var(--a-serif);
  font-size: 1rem;
  font-weight: 700;
}

body.bento-portfolio .bento-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

body.bento-portfolio .bento-section-head {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

body.bento-portfolio .project-tile {
  grid-column: span 3;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

body.bento-portfolio .project-tile-large {
  grid-column: span 6;
}

body.bento-portfolio .project-tile > span {
  color: var(--b-gold);
  font-family: var(--a-display);
  font-size: 0.86rem;
}

body.bento-portfolio .project-tile h3,
body.bento-portfolio .switch-panel h3 {
  margin: 0.6rem 0 0;
  font-family: var(--a-display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

body.bento-portfolio .project-tile p,
body.bento-portfolio .switch-panel p {
  color: var(--b-muted);
  font-family: var(--a-serif);
  font-size: 1.1rem;
  line-height: 1.65;
}

body.bento-portfolio .tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

body.bento-portfolio .tile-actions a {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--b-line-strong);
  border-radius: 999px;
  color: var(--b-ink);
  text-decoration: none;
  font-family: var(--a-serif);
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.bento-portfolio .tile-actions a:hover {
  transform: translateY(-2px);
  border-color: var(--b-gold);
  box-shadow: 0 0 24px rgba(185, 133, 53, 0.16);
}

body.bento-portfolio .view-switch {
  border: 1px solid var(--b-line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 24px 70px rgba(43, 28, 12, 0.12);
  overflow: hidden;
}

body.bento-portfolio .switch-buttons {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--b-line);
}

body.bento-portfolio .switch-btn {
  flex: 1;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--b-muted);
  font: 700 1rem var(--a-serif);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

body.bento-portfolio .switch-btn.is-active {
  border-color: var(--b-line-strong);
  background: var(--b-wine);
  color: #fffaf0;
}

body.bento-portfolio .switch-window {
  overflow: hidden;
}

body.bento-portfolio .switch-track {
  display: flex;
  width: 300%;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.bento-portfolio .switch-panel {
  width: 33.3333%;
  min-height: 280px;
  padding: clamp(1.25rem, 4vw, 2.2rem);
}

body.bento-portfolio .contact-list-simple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

body.bento-portfolio .contact-list-simple a {
  padding: 0.9rem;
  border: 1px solid var(--b-line);
  border-radius: 18px;
  color: var(--b-ink);
  text-decoration: none;
  font-family: var(--a-serif);
  font-weight: 700;
}

body.bento-portfolio .v-footer {
  background: #17100a;
  color: #d8c7ad;
}

@media (max-width: 1060px) {
  body.bento-portfolio .bento-intro,
  body.bento-portfolio .bento-profile,
  body.bento-portfolio .bento-fit,
  body.bento-portfolio .bento-stack,
  body.bento-portfolio .project-tile,
  body.bento-portfolio .project-tile-large {
    grid-column: span 12;
  }

  body.bento-portfolio .metric-card-mini {
    grid-column: span 6;
  }

  body.bento-portfolio .bento-intro {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  body.bento-portfolio .bento-hero {
    padding-top: 6.2rem;
  }

  body.bento-portfolio .bento-grid,
  body.bento-portfolio .project-bento {
    gap: 0.8rem;
  }

  body.bento-portfolio .bento-intro {
    min-height: auto;
  }

  body.bento-portfolio .bento-intro h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  body.bento-portfolio .metric-card-mini {
    grid-column: span 12;
  }

  body.bento-portfolio .profile-row {
    grid-template-columns: 80px 1fr;
  }

  body.bento-portfolio .profile-frame {
    width: 80px;
  }

  body.bento-portfolio .switch-buttons {
    flex-direction: column;
  }

  body.bento-portfolio .contact-list-simple {
    grid-template-columns: 1fr;
  }
}
