/* =========================================
   PRIZZA — GLOBAL
========================================= */

:root {
  --bg: #001523;
  --surface: #102d42;
  --surface-light: #17394f;
  --primary: #f9fafb;
  --muted: rgba(249, 250, 251, 0.55);
  --blue: #72bbff;
  --blue-dark: #0057a9;
  --border: rgba(135, 184, 215, 0.17);
  --font-heading: Inter, sans-serif;
  --font-body: Manrope, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
}

body.intro-active {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================
   HERO — PERSONAL FLIGHT LOG
========================================= */

.home-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(32px, 5vw, 72px) 24px 36px;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 78% 42%,
      rgba(0, 87, 169, 0.13),
      transparent 38%
    ),
    var(--bg);
}

.home-body {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  max-width: 1120px;
  margin: 0 auto;
}

.hero-topline,
.hero-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-topline {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(249, 250, 251, 0.13);
  color: var(--blue);
}

.hero-bottomline {
  margin-top: 65px;
  padding-top: 18px;
  border-top: 1px solid rgba(249, 250, 251, 0.13);
  color: rgba(249, 250, 251, 0.4);
}

.hero-bottomline a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.hero-bottomline a:hover {
  opacity: 0.65;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(65px, 9vw, 115px) 0 20px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.home-body h1 {
  margin: 0;
  padding: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(62px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -7px;
}

.home-body h1 span {
  display: block;
  color: var(--blue);
}

.hero-identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 42px;
}

.hero-index {
  padding-top: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.hero-identity h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-identity p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.hero-project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.hero-project-link span {
  color: var(--blue);
  font-size: 16px;
}

.hero-project-link:hover {
  gap: 14px;
  color: var(--blue);
}

/* =========================================
   HERO — PROFILE
========================================= */

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(230px, 28vw, 330px);
  aspect-ratio: 1;
  padding: 13px;
  border: 1px solid rgba(114, 187, 255, 0.35);
  border-radius: 50%;
  background: rgba(114, 187, 255, 0.035);
  box-shadow:
    0 0 0 12px rgba(114, 187, 255, 0.025),
    0 0 80px rgba(0, 87, 169, 0.12);
}

.prof-pic {
  display: block;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 1px solid rgba(249, 250, 251, 0.12);
  border-radius: 50%;
  object-fit: cover;
}

.hero-photo-index {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  padding: 7px 13px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(114, 187, 255, 0.35);
  border-radius: 30px;
  background: var(--bg);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.hero-photo-mark {
  position: absolute;
  right: 5px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(114, 187, 255, 0.4);
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
}

.hero-photo-caption {
  display: flex;
  justify-content: space-between;
  width: clamp(230px, 28vw, 330px);
  margin-top: 25px;
  color: rgba(249, 250, 251, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* =========================================
   DECORATIVE ELEMENTS
========================================= */

.plane-det {
  position: absolute;
  top: 110px;
  right: -80px;
  z-index: 0;
  width: min(700px, 65vw);
  height: auto;
  opacity: 0.32;
  pointer-events: none;
}

.tri-det {
  position: absolute;
  bottom: 90px;
  left: 9vw;
  z-index: 0;
  width: 65px;
  height: auto;
  opacity: 0.65;
  pointer-events: none;
}

.hexa-det {
  animation: floatDetail 3s ease-in-out infinite;
}

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

/* =========================================
   NAVIGATION
========================================= */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4vw 12vw;
}

.logo {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 52px;
}

nav ul,
.nav-mob ul {
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
}

ul li {
  list-style: none;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

ul li:hover {
  cursor: pointer;
  box-shadow: 0 2px 0 #6e6e6e;
}

.nav-mob {
  display: none;
}

.soc-icons img {
  width: clamp(16px, 5vw, 32px);
  height: clamp(16px, 5vw, 32px);
}

/* =========================================
   PROJECT GRID
========================================= */

.project-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 342px));
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: clamp(32px, 5vw, 72px) clamp(16px, 7vw, 100px);
  column-gap: clamp(20px, 3vw, 44px);
  row-gap: clamp(24px, 3.5vw, 48px);
}

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  width: 100%;
  max-width: 342px;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(17, 43, 60, 0.94),
    rgba(7, 29, 44, 0.96)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--primary);
  cursor: pointer;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 0%,
    color-mix(in srgb, var(--preview-accent, #72bbff) 17%, transparent),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(135, 190, 226, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 30px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   PROJECT CARD HEADER
========================================= */

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 17px;
  padding: 0 2px;
}

.project-index {
  color: rgba(211, 229, 241, 0.43);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.project-link {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(181, 211, 232, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.project-link img {
  display: block;
  width: 11px;
  height: 11px;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.card:hover .project-link {
  transform: translate(2px, -2px);
  border-color: rgba(181, 211, 232, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

/* =========================================
   ABSTRACT PROJECT PREVIEW
========================================= */

.thumbnail {
  --preview-accent: #72bbff;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(160, 197, 222, 0.12);
  border-radius: 11px;
  background:
    radial-gradient(
      circle at 78% 18%,
      color-mix(in srgb, var(--preview-accent) 16%, transparent),
      transparent 42%
    ),
    linear-gradient(135deg, #102d42, #0b2335 55%, #0a1d2c);
}

.thumbnail::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -48%;
  right: -12%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--preview-accent);
  filter: blur(55px);
  opacity: 0.17;
  animation: previewGlow 8s ease-in-out infinite alternate;
}

.thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.13;
  background-image: radial-gradient(
    rgba(206, 229, 244, 0.55) 0.65px,
    transparent 0.65px
  );
  background-size: 13px 13px;
  mask-image: linear-gradient(135deg, black, transparent 75%);
}

.preview-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 83%;
  height: 82%;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(190, 218, 237, 0.2);
  border-radius: 8px;
  background: rgba(8, 28, 43, 0.78);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
  animation: previewFloat 6s ease-in-out infinite;
}

.preview-window::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -55%;
  width: 35%;
  height: 190%;
  transform: rotate(24deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(221, 240, 252, 0.075),
    transparent
  );
  animation: previewShimmer 7s ease-in-out infinite;
  pointer-events: none;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 9px;
  margin-bottom: 9px;
}

.preview-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(206, 226, 240, 0.35);
}

.preview-toolbar-line {
  width: 27%;
  height: 3px;
  margin-left: auto;
  border-radius: 5px;
  background: rgba(206, 226, 240, 0.17);
}

.preview-layout {
  display: grid;
  grid-template-columns: 19% 1fr;
  gap: 7px;
  height: calc(100% - 18px);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  border: 1px solid rgba(190, 218, 237, 0.07);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.preview-sidebar span {
  display: block;
  width: 75%;
  height: 3px;
  border-radius: 4px;
  background: rgba(195, 220, 237, 0.2);
}

.preview-sidebar span:first-child {
  width: 90%;
  background: color-mix(in srgb, var(--preview-accent) 68%, #d8e9f5);
  opacity: 0.75;
}

.preview-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.preview-heading {
  width: 43%;
  height: 5px;
  margin: 1px 0 2px;
  border-radius: 5px;
  background: rgba(226, 239, 248, 0.7);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.preview-metric {
  height: 22px;
  border: 1px solid rgba(190, 218, 237, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.preview-metric::after {
  content: "";
  display: block;
  width: 45%;
  height: 3px;
  margin: 6px 0 0 5px;
  border-radius: 4px;
  background: var(--preview-accent);
  opacity: 0.7;
}

.preview-chart {
  position: relative;
  flex: 1;
  min-height: 17px;
  overflow: hidden;
  border: 1px solid rgba(190, 218, 237, 0.09);
  border-radius: 4px;
  background:
    linear-gradient(rgba(190, 218, 237, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 218, 237, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 15px 10px;
}

.preview-chart::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 8%;
  bottom: 16%;
  left: 8%;
  transform: skewY(-12deg) rotate(-5deg);
  border-bottom: 1.5px solid var(--preview-accent);
  border-radius: 50% 40% 0 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px var(--preview-accent));
  animation: previewChart 4s ease-in-out infinite alternate;
}

.preview-float {
  position: absolute;
  right: 7%;
  bottom: 12%;
  width: 18%;
  height: 17%;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 45%, transparent);
  border-radius: 5px;
  background: rgba(17, 49, 69, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  animation: previewFloat 5s ease-in-out infinite reverse;
}

/* =========================================
   PROJECT CARD FOOTER
========================================= */

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 0;
}

.project-copy {
  min-width: 0;
}

.project-copy h4 {
  margin: 0;
  color: rgba(249, 250, 251, 0.94);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.project-arrow {
  flex: 0 0 auto;
  color: rgba(188, 215, 234, 0.55);
  font-size: 17px;
  line-height: 1;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.card:hover .project-arrow {
  transform: translate(2px, -2px);
  color: var(--preview-accent, var(--blue));
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px 1px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border: 1px solid rgba(170, 203, 225, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(208, 226, 239, 0.64);
  font-size: 9px;
  font-weight: 650;
}

/* =========================================
   PROJECT PREVIEW ANIMATIONS
========================================= */

@keyframes previewGlow {
  from {
    transform: translate3d(-8%, 0, 0) scale(0.9);
    opacity: 0.12;
  }
  to {
    transform: translate3d(10%, 15%, 0) scale(1.2);
    opacity: 0.23;
  }
}

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

@keyframes previewShimmer {
  0%,
  35% {
    left: -55%;
  }
  75%,
  100% {
    left: 125%;
  }
}

@keyframes previewChart {
  from {
    transform: skewY(-12deg) rotate(-5deg) translateY(2px);
    opacity: 0.55;
  }
  to {
    transform: skewY(-12deg) rotate(2deg) translateY(-2px);
    opacity: 0.95;
  }
}

/* =========================================
   SOUND INTRO
========================================= */

.sound-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.sound-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sound-intro-content {
  width: min(100%, 420px);
  color: var(--primary);
  font-family: var(--font-body);
  text-align: center;
}

.intro-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  opacity: 0.5;
}

.sound-intro-content h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 76px);
  font-weight: 800;
  letter-spacing: -4px;
}

.intro-description {
  margin: 16px 0 30px;
  font-size: 14px;
  opacity: 0.6;
}

.sound-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sound-btn {
  min-width: 125px;
  padding: 12px 20px;
  border: 1px solid rgba(249, 250, 251, 0.25);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.sound-btn:hover {
  transform: translateY(-3px);
}

.sound-btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.sound-btn-secondary {
  background: transparent;
  color: var(--primary);
}

.sound-btn span {
  margin-right: 5px;
}

.intro-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.intro-loading.active {
  display: flex;
}

.intro-loading p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.loading-spinner {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(249, 250, 251, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: introSpin 0.7s linear infinite;
}

@keyframes introSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media screen and (max-width: 1190px) {
  .project-container {
    grid-template-columns: repeat(2, minmax(0, 342px));
    column-gap: clamp(20px, 4vw, 40px);
    row-gap: clamp(24px, 4vw, 40px);
    padding: 48px clamp(24px, 5vw, 64px);
  }
}

@media screen and (max-width: 834px) {
  .home-container {
    padding: 45px 6vw 30px;
  }

  .hero-main {
    grid-template-columns: 1fr 0.75fr;
    gap: 25px;
    padding-top: 85px;
  }

  .home-body h1 {
    font-size: clamp(56px, 8vw, 76px);
    letter-spacing: -4px;
  }

  .hero-photo-frame {
    width: clamp(190px, 28vw, 250px);
  }

  .hero-photo-caption {
    width: clamp(190px, 28vw, 250px);
  }

  .hero-bottomline {
    margin-top: 55px;
  }

  .plane-det {
    width: 65vw;
    right: -100px;
  }

  .project-container {
    grid-template-columns: repeat(2, minmax(0, 342px));
    gap: 28px;
    padding: 40px 24px;
  }

  .sound-intro {
    padding: 32px 24px;
  }

  .sound-intro-content {
    width: min(100%, 380px);
  }

  .sound-intro-content h2 {
    font-size: clamp(48px, 9vw, 68px);
  }

  .intro-description {
    font-size: 13px;
  }
}

/* =========================================
   RESPONSIVE — SMALL TABLET
========================================= */

@media screen and (max-width: 745px) {
  .project-container {
    grid-template-columns: minmax(0, 342px);
    justify-items: center;
    gap: 24px;
    padding: 32px 20px;
  }

  .card {
    width: 100%;
    max-width: 342px;
  }
}

/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media screen and (max-width: 600px) {
  .home-container {
    min-height: 100svh;
    padding: 35px 22px 28px;
  }

  .hero-topline,
  .hero-bottomline {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero-main {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 42px;
    padding: 65px 0 10px;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-photo-frame {
    width: clamp(175px, 48vw, 220px);
  }

  .hero-photo-caption {
    width: clamp(175px, 48vw, 220px);
    font-size: 8px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-kicker {
    margin-bottom: 18px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .home-body h1 {
    font-size: clamp(53px, 12vw, 72px);
    line-height: 0.98;
    letter-spacing: -4px;
    text-align: left;
  }

  .hero-identity {
    gap: 14px;
    margin-top: 30px;
  }

  .hero-identity h2 {
    font-size: 25px;
  }

  .hero-identity p {
    font-size: 12px;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 25px;
  }

  .hero-bottomline {
    margin-top: 55px;
  }

  .hero-bottomline span {
    max-width: 48%;
  }

  .plane-det {
    top: 80px;
    right: -90px;
    width: 220px;
    opacity: 0.22;
  }

  .tri-det {
    right: 15px;
    bottom: 35px;
    left: auto;
    width: 45px;
  }

  .nav-bar {
    padding: 12px 24px;
  }

  .nav-desk {
    display: none;
  }

  .nav-mob {
    display: flex;
  }

  .nav-mob ul {
    gap: 22px;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 8px;
  }

  .nav-mob ul li {
    display: flex;
    justify-content: center;
  }

  .project-container {
    grid-template-columns: minmax(0, 342px);
    justify-content: center;
    justify-items: center;
    gap: 20px;
    padding: 28px 16px;
  }

  .card {
    width: 100%;
    max-width: 342px;
  }

  .hexa-det {
    max-width: 55px;
  }

  .sound-intro {
    padding: 24px 20px;
  }

  .sound-intro-content {
    max-width: 340px;
  }

  .intro-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .sound-intro-content h2 {
    font-size: clamp(46px, 13vw, 60px);
  }

  .intro-description {
    max-width: 260px;
    margin: 14px auto 28px;
    font-size: 12px;
    line-height: 1.7;
  }

  .sound-buttons {
    width: 100%;
    gap: 10px;
  }

  .sound-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
    font-size: 12px;
  }

  .intro-loading {
    margin-top: 26px;
  }
}

/* =========================================
   RESPONSIVE — SMALL MOBILE
========================================= */

@media screen and (max-width: 380px) {
  .home-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-topline {
    font-size: 7px;
  }

  .home-body h1 {
    font-size: 49px;
    letter-spacing: -3px;
  }

  .hero-identity h2 {
    font-size: 22px;
  }

  .hero-actions {
    gap: 15px;
  }

  .hero-project-link {
    font-size: 11px;
  }

  .project-container {
    padding-right: 12px;
    padding-left: 12px;
    gap: 18px;
  }

  .card {
    padding: 12px;
    gap: 11px;
  }

  .thumbnail {
    padding: 10px;
  }

  .title-bar {
    width: 95%;
  }

  .sound-intro-content h2 {
    font-size: 46px;
    letter-spacing: -2px;
  }

  .intro-description {
    font-size: 11px;
  }

  .sound-buttons {
    gap: 8px;
  }

  .sound-btn {
    padding: 11px 8px;
  }
}

/* =========================================
   RESPONSIVE — VERY SMALL SCREENS
========================================= */

@media screen and (max-width: 320px) {
  .home-body h1 {
    font-size: 43px;
  }

  .hero-identity h2 {
    font-size: 20px;
  }

  .project-container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .card {
    padding: 10px;
  }

  .sound-intro {
    padding: 20px 16px;
  }

  .sound-intro-content h2 {
    font-size: 40px;
  }

  .sound-btn {
    font-size: 11px;
  }
}

/* =========================================
   RESPONSIVE — SHORT SCREENS
========================================= */

@media screen and (max-height: 500px) {
  .sound-intro {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .intro-description {
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .sound-intro-content h2 {
    font-size: 42px;
  }

  .intro-loading {
    margin-top: 14px;
  }
}

/* =========================================
   ACCESSIBILITY — REDUCED MOTION
========================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .dl_button:hover,
  .dl_button:active {
    transform: none;
  }
}

/* =========================================
   HERO — MINIMAL STARRY PORTRAIT
========================================= */

.hero-photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(230px, 28vw, 330px);
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

/* Portrait */

.prof-pic {
  width: 86%;
  height: 86%;
  max-width: none;
  border: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 15px 55px rgba(0, 87, 169, 0.13);
}

/* Star accents */

.hero-star {
  position: absolute;
  z-index: 2;
  color: var(--blue);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 12px rgba(114, 187, 255, 0.5);
}

.star-one {
  top: 9%;
  left: 12%;
  font-size: 19px;
  animation: starTwinkle 3s ease-in-out infinite;
}

.star-two {
  top: 25%;
  right: 2%;
  font-size: 25px;
  animation: starTwinkle 4s ease-in-out infinite 0.5s;
}

.star-three {
  bottom: 15%;
  left: 7%;
  font-size: 15px;
  animation: starTwinkle 3.5s ease-in-out infinite 1s;
}

.star-four {
  right: 13%;
  bottom: 8%;
  font-size: 20px;
  animation: starTwinkle 4s ease-in-out infinite 1.5s;
}

.star-five {
  top: 3%;
  right: 30%;
  color: rgba(249, 250, 251, 0.8);
  font-size: 30px;
  animation: starTwinkle 3s ease-in-out infinite 0.8s;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Keep the portrait balanced on smaller screens */

@media screen and (max-width: 834px) {
  .hero-photo-frame {
    width: clamp(190px, 28vw, 250px);
  }
}

@media screen and (max-width: 600px) {
  .hero-photo-frame {
    width: clamp(175px, 48vw, 220px);
  }
}

/* Remove old badge styles if any remain */

.hero-photo-index,
.hero-photo-mark {
  display: none;
}

/* =========================================
   ABOUT — PERSONAL STORY
========================================= */

.about-section {
  position: relative;
  width: 100%;
  padding: clamp(75px, 10vw, 135px) 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 35%, rgba(0, 87, 169, 0.09), transparent 38%),
    #061c2b;
}

.about-inner {
  width: min(1060px, 100%);
  margin: 0 auto;
}

.about-topline,
.about-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: rgba(249, 250, 251, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.about-topline {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(249, 250, 251, 0.12);
}

.about-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.5px;
}

.about-intro {
  max-width: 750px;
  padding: clamp(65px, 9vw, 105px) 0 75px;
}

.about-intro h2 {
  margin: 18px 0 25px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(58px, 9vw, 100px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -6px;
}

.about-intro h2 span {
  color: var(--blue);
}

.about-lead {
  max-width: 540px;
  margin: 0;
  color: rgba(249, 250, 251, 0.65);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
}

/* Personal story */

.about-story {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(35px, 8vw, 110px);
  padding: 30px 0 85px;
}

.about-story-label {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 15px;
  color: rgba(249, 250, 251, 0.45);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

.about-index {
  color: var(--blue);
  font-size: 13px;
}

.about-story-content {
  max-width: 650px;
}

.about-story-content p {
  margin: 0 0 23px;
  color: rgba(249, 250, 251, 0.65);
  font-size: 14px;
  line-height: 2.05;
}

.about-story-content .about-closing {
  margin-top: 35px;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: -0.3px;
}

/* How I build */

.about-divider {
  width: 100%;
  height: 1px;
  background: rgba(249, 250, 251, 0.12);
}

.about-build {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(35px, 8vw, 110px);
  padding: 85px 0;
}

.about-build-heading h3 {
  margin: 18px 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(35px, 5vw, 53px);
  font-weight: 800;
  letter-spacing: -2.5px;
}

.about-build-heading h3 span {
  color: var(--blue);
}

.about-build-heading > p:last-child {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.build-list {
  width: 100%;
}

.build-item {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(249, 250, 251, 0.1);
}

.build-item:first-child {
  padding-top: 0;
}

.build-number {
  padding-top: 3px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.build-copy h4 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.build-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.build-tech {
  padding-top: 4px;
  color: rgba(114, 187, 255, 0.7);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* About footer */

.about-bottomline {
  padding-top: 20px;
  border-top: 1px solid rgba(249, 250, 251, 0.12);
}

.about-bottomline a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.about-bottomline a:hover {
  opacity: 0.65;
}

/* About responsive */

@media screen and (max-width: 745px) {
  .about-section {
    padding: 75px 24px;
  }

  .about-story,
  .about-build {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-story {
    padding-bottom: 65px;
  }

  .about-build {
    padding: 65px 0;
  }

  .about-build-heading > p:last-child {
    max-width: 480px;
  }
}

@media screen and (max-width: 600px) {
  .about-section {
    padding: 65px 22px;
  }

  .about-topline,
  .about-bottomline {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .about-intro {
    padding: 65px 0;
  }

  .about-intro h2 {
    font-size: clamp(53px, 12vw, 72px);
    letter-spacing: -4px;
  }

  .about-lead {
    font-size: 14px;
  }

  .about-story-content p {
    font-size: 13px;
    line-height: 1.95;
  }

  .build-item {
    grid-template-columns: 25px 1fr;
    gap: 12px;
  }

  .build-tech {
    grid-column: 2;
    padding-top: 0;
  }

  .about-bottomline {
    align-items: flex-start;
  }

  .about-bottomline span {
    max-width: 45%;
  }
}

@media screen and (max-width: 380px) {
  .about-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .about-topline,
  .about-bottomline {
    font-size: 7px;
  }

  .about-intro h2 {
    font-size: 48px;
    letter-spacing: -3px;
  }
}

/* About section — consistent page background */
.about-section {
  background: #001523;
  background-image: none;
}

/* ABOUT — MATCH HERO BACKGROUND */
.about-section {
  background:
    radial-gradient(
      ellipse at 78% 42%,
      rgba(0, 87, 169, 0.13),
      transparent 38%
    ),
    var(--bg);
}

/* =========================================
   ABOUT — STAR ACCENTS
========================================= */

.about-intro {
  position: relative;
}

.about-star {
  position: absolute;
  z-index: 2;
  color: var(--blue);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 12px rgba(114, 187, 255, 0.5);
}

.about-star-one {
  top: 5%;
  left: 42%;
  font-size: 19px;
  animation: starTwinkle 3s ease-in-out infinite;
}

.about-star-two {
  top: 25%;
  right: 8%;
  font-size: 25px;
  animation: starTwinkle 4s ease-in-out infinite 0.5s;
}

.about-star-three {
  bottom: 5%;
  left: 30%;
  font-size: 15px;
  animation: starTwinkle 3.5s ease-in-out infinite 1s;
}

.about-star-four {
  top: 0;
  right: 28%;
  color: rgba(249, 250, 251, 0.8);
  font-size: 30px;
  animation: starTwinkle 3s ease-in-out infinite 0.8s;
}
