/* ============================================================
   CUSTOM PROPERTIES
============================================================ */
:root {
  --font:        'Rubik', sans-serif;
  --white:       #ffffff;
  --bg-from:     #000000;
  --bg-to:       #160a29;
  --pad:         2.5rem;      /* 40px */
  --header-h:    3.25rem;     /* 52px */
}

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

/* ============================================================
   BASE
============================================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  padding: calc(var(--header-h) + var(--pad)) var(--pad) var(--pad);
  background-image:      linear-gradient(135deg, var(--bg-from) 0%, var(--bg-to) 100%);
  background-attachment: fixed;
  background-size:       cover;
}

/* ============================================================
   NOISE OVERLAY
============================================================ */
.noise-overlay {
  position:              fixed;
  inset:                 0;
  pointer-events:        none;
  z-index:               2;
  opacity:               1;
  -webkit-mask-image:    radial-gradient(circle 0px at -999px -999px, black 0%, transparent 100%);
  mask-image:            radial-gradient(circle 0px at -999px -999px, black 0%, transparent 100%);
}

/* ============================================================
   BASE NOISE — always on at 10% opacity
============================================================ */
.noise-base {
  position:       fixed;
  inset:          0;
  pointer-events: none;
  z-index:        2;
  opacity:        0.30;
}

/* ============================================================
   NOISE OVERLAY — orb-masked, 80% opacity at peak
============================================================ */
.aura {
  position:       fixed;
  border-radius:  50%;
  pointer-events: none;
  z-index:        4;
  transform:      translate(-50%, -50%);
  background:     transparent;
}

.aura--1 { width: 1600px; height: 1600px; }
.aura--2 { width: 1400px; height: 1400px; }

/* ============================================================
   BACKGROUND GRADIENT CIRCLE
============================================================ */
.bg-circle {
  position:       fixed;
  top:            50%;
  right:          5vw;
  transform:      translateY(-50%);
  width:          auto;
  height:         65vh;
  aspect-ratio:   1;
  border-radius:  50%;
  background:     linear-gradient(135deg, #101c41 0%, #12439c 30%, #704b96 65%, #8b3fa8 100%);
  filter:         blur(90px);
  opacity:        0.70;
  pointer-events: none;
  z-index:        4;
}

/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
  position:    fixed;
  top:         0;
  left:        0;
  right:       0;
  height:      var(--header-h);
  background:  rgba(0, 0, 0, 0);
  display:     flex;
  align-items: center;
  padding:     0 var(--pad);
  z-index:     100;
  transition:  opacity 0.4s ease, transform 0.4s ease;
}

.site-header.is-hidden {
  opacity:   0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Header text — exclusion blend */
.header-left,
.header-center,
.header-meta {
  color:          var(--white);
  mix-blend-mode: exclusion;
}

/* Left */
.header-left {
  flex:           1;
  font-size:      0.6875rem;   /* 11px */
  font-weight:    400;
  line-height:    1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Center */
.header-center {
  flex:           1;
  font-family:    'Rubik', sans-serif;
  font-size:      1.25rem;   /* 20px */
  font-weight:    600;
  text-align:     center;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  mix-blend-mode: exclusion;
  color:          var(--white);
}

/* Right group */
.header-right {
  flex:            1;
  display:         flex;
  align-items:     center;
  justify-content: flex-end;
  gap:             1rem;
}

.header-meta {
  font-size:      0.6875rem;   /* 11px */
  font-weight:    400;
  line-height:    1.1;
  letter-spacing: -0.01em;
  text-align:     center;
  text-transform: uppercase;
}

.header-meta--left {
  text-align: left;
}

.header-divider {
  width:          1px;
  height:         1.75rem;
  background:     var(--white);
  flex-shrink:    0;
  mix-blend-mode: exclusion;
}

/* ============================================================
   HAMBURGER  —  28px wide lines, 6px gap
============================================================ */
.hamburger {
  background:     none;
  border:         none;
  cursor:         pointer;
  display:        flex;
  flex-direction: column;
  gap:            0.375rem;  /* 6px */
  padding:        0.4rem 0.25rem;
  margin-left:    0.75rem;
  flex-shrink:    0;
}

.hamburger-line {
  display:          block;
  width:            1.75rem;   /* 28px */
  height:           0.0625rem; /* 1px  */
  background:       var(--white);
  border-radius:    1px;
  transform-origin: center;
  transition:       transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(0.25rem) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  transform: translateY(-0.25rem) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position:        relative;
  height:          100vh;
  width:           auto;
  display:         flex;
  align-items:     flex-start;
  justify-content: center;
}

.hero-content {
  position:        fixed;
  top:             0;
  bottom:          0;
  left:            0;
  right:           0;
  z-index:         11;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  width:           100%;
  padding:         0 var(--pad);
  transition:      opacity 0.1s linear;
}

/* Row 1: hello world | I'm Huy | tagline */
.hero-row-one {
  display:               grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:           center;
  width:                 100vw;
  margin-left:           calc(-1 * var(--pad));
}

.hero-tag--left {
  justify-self: end;
  padding-right: 1.5rem;
}

.hero-name {
  position:        relative;
  font-family:     'Rubik 80s Fade', sans-serif;
  justify-self:    center;
  width:           max-content;
  font-size:       16vw;
  font-weight:     400;
  line-height:     0.88;
  letter-spacing:  -0.06em;
  white-space:     nowrap;
  text-transform:  uppercase;
  mix-blend-mode:  exclusion;
  color:           #FF0073;
  text-shadow:     0 0 60px rgba(0, 210, 255, 0.3),
                   0 0 120px rgba(0, 210, 255, 0.2),
                   0 0 200px rgba(0, 210, 255, 0.15);
}

.hero-name::after {
  content:         "I'm Huy";
  position:        absolute;
  top:             -9px;
  left:            0;
  color:           #00FFC8;
  mix-blend-mode:  exclusion;
  opacity:         0.6;
  pointer-events:  none;
}

.hero-name::before {
  content:         "I'm Huy";
  position:        absolute;
  top:             -9px;
  left:            0;
  color:           #00AAD2;
  mix-blend-mode:  exclusion;
  opacity:         0.5;
  pointer-events:  none;
}

.hero-tag {
  font-size:      1rem;       /* 16px */
  font-weight:    600;
  color:          #00FFC8;
  white-space:    normal;
  flex-shrink:    0;
  max-width:      10rem;
  line-height:    1.1;
  letter-spacing: -0.03em;
  mix-blend-mode: exclusion;
}

.hero-tag--right {
  justify-self:  start;
  padding-left:  1.5rem;
  text-align:    left;
  line-height:   0.9;
}

.hero-headline {
  font-size:      2rem;
  font-weight:    400;
  line-height:    1.1;
  letter-spacing: -0.04em;
  margin-top:     0.5rem;
  text-transform: uppercase;
  text-shadow:    0 0 40px rgba(0, 255, 200, 0.14),
                  0 0 80px rgba(0, 255, 200, 0.14),
                  0 0 120px rgba(0, 255, 200, 0.14);
}

/* ============================================================
   HERO PORTRAIT
============================================================ */
.hero-portrait {
  position:       fixed;
  bottom:         0;
  left:           0;
  width:          auto;
  height:         20vh;
  opacity:        1;
  pointer-events: none;
  z-index:        3;
  transition:     opacity 0.1s linear;
}

.hero-portrait img {
  height:  100%;
  width:   auto;
  display: block;
}



/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {
  :root {
    --pad:      2rem;
    --header-h: 3.5rem;
  }

  .hero-content {
    padding-top: 0;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  :root {
    --pad:      1.25rem;
    --header-h: 3.25rem;
  }

  .hero-content {
    padding-top: 0;
  }

  .header-left {
    display: none;
  }

  .header-center {
    font-size:  1rem;
    text-align: left;
  }

  .hero-row-one {
    gap:       0.75rem;
    flex-wrap: wrap;
  }

  .hero-name::before,
  .hero-name::after {
    top: -4px;
  }

  .hero-tag {
    font-size:  0.75rem;
    max-width:  none;
  }

  .hero-name {
    font-size: 18vw;
  }

  .hero-portrait {
    height:  20vh;
    opacity: 0.77;
  }
}

/* ============================================================
   RESPONSIVE — Small mobile (≤ 480px)
============================================================ */
@media (max-width: 480px) {
  .header-meta,
  .header-divider {
    display: none;
  }

  .hero-name {
    white-space: normal;
  }
}

/* ============================================================
   WORK SECTION
============================================================ */
.work-section {
  position: relative;
  z-index:  15;
  /* Height set by JS: number of blocks × 100vh */
}

.work-block {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  height:          100vh;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  padding:         var(--pad);
  padding-top:     calc(var(--header-h) + var(--pad));
  opacity:         0;
  pointer-events:  none;
  z-index:         15;
  overflow-y:      auto;           /* scroll content on short viewports */
  scrollbar-width: none;           /* Firefox — hide scrollbar */
  -ms-overflow-style: none;        /* IE/Edge — hide scrollbar */
}

/* Hide WebKit scrollbar inside panels */
.work-block::-webkit-scrollbar { display: none; }

/* ── Header labels ── */
.work-block__header {
  display:         flex;
  justify-content: space-between;
  align-items:     flex-start;
  width:           100%;
  flex-shrink:     0;
  margin-bottom:   0.2rem;
}

.work-block__label {
  font-size:      1.5rem;      /* 24px */
  font-weight:    500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color:          var(--white);
  line-height:    1.1;
  mix-blend-mode: exclusion;
}

.work-block__label--right {
  font-size:   1rem;           /* 16px */
  font-weight: 400;
}

.work-block__slash {
  opacity:      0.5;
  margin-right: 0.15em;
}

/* ── Preview image ── */
.work-block__preview {
  flex:        1;
  display:     flex;
  align-items: flex-start;
  padding:     0 0 0.75rem;
  min-height:  0;
}

.work-block__preview img {
  width:      100%;
  height:     100%;
  max-width:  1213px;
  object-fit: contain;
  display:    block;
  margin:     0 auto;
}

/* ── Body text ── */
.work-block__body {
  flex-shrink:    0;
  text-align:     center;
  padding-bottom: 0.5rem;
}

.work-block__tagline {
  font-size:      1.5rem;      /* 24px */
  font-weight:    300;
  color:          #00FFC8;
  letter-spacing: 0.01em;
  margin-bottom:  0.75rem;
}

.work-block__headline {
  font-size:      3rem;        /* 48px */
  font-weight:    400;
  color:          var(--white);
  line-height:    1.1;
  letter-spacing: -0.02em;
  max-width:      52rem;
  margin:         0 auto 0.75rem;
}

.work-block__cta {
  font-size:      1rem;        /* 16px */
  font-weight:    400;
  color:          rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .work-block__header {
    margin-bottom: 0;
  }

  .work-block__preview {
    padding: 0 0 0.25rem;
  }

  .work-block__headline {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .work-block__tagline {
    font-size:     1rem;
    margin-bottom: 0.4rem;
  }

  .work-block__body {
    padding-bottom: 0.25rem;
  }
}
/* ============================================================
   ABOUT SECTION — fixed panel (like work blocks)
============================================================ */
.about-scroll-space {
  position: relative;
  z-index:  15;
  /* height set by JS */
}

.about-section {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  bottom:          0;
  height:          100vh;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  padding:         var(--pad);
  padding-top:     calc(var(--header-h) + var(--pad));
  z-index:         15;
  opacity:         0;
  pointer-events:  none;
  overflow-y:      auto;           /* scroll content on short viewports */
  scrollbar-width: none;           /* Firefox — hide scrollbar */
  -ms-overflow-style: none;        /* IE/Edge — hide scrollbar */
}

/* Hide WebKit scrollbar inside about panel */
.about-section::-webkit-scrollbar { display: none; }

/* ABOUT HUY — sits at top */
.about-label {
  font-size:      1rem;
  font-weight:    700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align:     center;
  color:          var(--white);
  flex-shrink:    0;
  position:       relative;
  z-index:        2;
}

/* PRODUCT DESIGNER — absolutely centered */
.about-bg-title {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  opacity:         0.35;
  z-index:         0;
  pointer-events:  none;
}

.about-title {
  position:       relative;
  display:        block;
  width:          100%;
  font-family:    'Rubik 80s Fade', sans-serif;
  font-size:      clamp(3rem, 15vw, 18rem);
  font-weight:    400;
  line-height:    0.72;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-align:     center;
  mix-blend-mode: exclusion;
  color:          #FF0073;
}

.about-title--designer { margin-top: -0.1em; }

.about-title--product::before { content: "PRODUCT"; }
.about-title--designer::before { content: "DESIGNER"; }
.about-title--product::after  { content: "PRODUCT"; }
.about-title--designer::after  { content: "DESIGNER"; }

.about-title::before,
.about-title::after {
  position:       absolute;
  top:            -9px;
  left:           0;
  width:          100%;
  text-align:     center;
  mix-blend-mode: exclusion;
  pointer-events: none;
}

.about-title::before { color: #00AAD2; opacity: 0.5; }
.about-title::after  { color: #00FFC8; opacity: 0.6; }

/* Main 3-column grid — middle */
.about-grid {
  position:              relative;
  z-index:               2;
  display:               grid;
  grid-template-columns: minmax(0, 280px) auto 1fr;
  gap:                   6rem;
  align-items:           center;
  flex:                  1;
  max-width:             1440px;
  width:                 100%;
  margin:                0 auto;
  margin-top:            15vh;
}

/* Left: Bio */
.about-col--bio {
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
  margin-top:     8vh;
}

.about-bio__headline {
  font-size:      1.5rem;
  font-weight:    700;
  line-height:    1.25;
  text-transform: uppercase;
  color:          var(--white);
}

.about-bio__sub {
  font-size:      clamp(0.75rem, 1.25vw, 1rem);
  font-weight:    700;
  text-transform: uppercase;
  color:          var(--white);
  line-height:    1.2;
}

.about-bio__body {
  font-size:   1rem;
  font-weight: 400;
  color:       var(--white);
  line-height: 1.6;
}

/* Center: Photo */
.about-col--photo {
  margin-top:      8vh;
  display:         flex;
  justify-content: center;
}


/* Right: Resume + Trusted by */
.about-col--right {
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
  margin-top:     8vh;
}

.about-resume-btn {
  align-self:      flex-start;
  background:      rgba(0, 255, 200, 0.18);
  border:          1px solid rgba(0, 255, 200, 0.4);
  box-shadow:      0 20px 40px rgba(0, 0, 0, 0.3),
                   inset -1px 1px 0 rgba(0, 255, 200, 0.5),
                   inset 1px -1px 0 rgba(0, 0, 0, 0.15);
  color:           #00FFC8;
  font-family:     var(--font);
  font-size:       0.875rem;
  font-weight:     700;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  padding:         0.65rem 2rem;
  border-radius:   999px;
  cursor:          pointer;
  backdrop-filter: blur(32px) saturate(150%) brightness(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(150%) brightness(1.1);
  transition:      background 0.3s ease, box-shadow 0.3s ease;
  white-space:     nowrap;
}

.about-resume-btn:hover {
  background: rgba(0, 255, 200, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              inset -1px 1px 0 rgba(0, 255, 200, 0.7),
              inset 1px -1px 0 rgba(0, 0, 0, 0.2);
}

.about-trusted__heading {
  font-size:      0.75rem;
  font-weight:    600;
  color:          rgba(255, 255, 255, 0.5);
  margin-bottom:  0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-trusted__list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
}

.about-trusted__list li {
  font-size:      1rem;
  font-weight:    700;
  color:          var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height:    1.2;
}

/* Footer — bottom of viewport */
.site-footer-bar {
  position:        relative;
  z-index:         2;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-shrink:     0;
}

.footer-contact {
  font-size:      1.125rem;
  font-weight:    700;
  color:          var(--white);
  letter-spacing: -0.01em;
}

.footer-email {
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-linkedin {
  display:     flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap:                   2rem;
    overflow-y:            auto;
  }

  .about-col--bio,
  .about-col--photo,
  .about-col--right {
    width: 100%;
  }

  .about-col--photo { order: -1; }

  .about-photo {
    width:  clamp(140px, 45vw, 200px);
    margin: 0 auto;
  }

  .about-resume-btn { align-self: center; }
}


.about-label {
  font-size:      1rem;
  font-weight:    700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align:     center;
  color:          var(--white);
  margin-bottom:  5rem;
  position:       relative;
  z-index:        2;
}

/* ── Background watermark title ── */
.about-bg-title {
  position:   absolute;
  inset:      0;
  display:    flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity:    0.35;
  z-index:    0;
  pointer-events: none;
}

.about-title {
  position:       relative;
  display:        block;
  width:          100%;
  font-family:    'Rubik 80s Fade', sans-serif;
  font-size:      clamp(3rem, 15vw, 18rem);
  font-weight:    400;
  line-height:    0.72;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-align:     center;
  mix-blend-mode: exclusion;
  color:          #FF0073;
}

.about-title--designer {
  margin-top: -0.1em;
}

.about-title--product::before { content: "PRODUCT"; }
.about-title--designer::before { content: "DESIGNER"; }
.about-title--product::after  { content: "PRODUCT"; }
.about-title--designer::after  { content: "DESIGNER"; }

.about-title::before,
.about-title::after {
  position:       absolute;
  top:            -9px;
  left:           0;
  width:          100%;
  text-align:     center;
  mix-blend-mode: exclusion;
  pointer-events: none;
}

.about-title::before {
  color:   #00AAD2;
  opacity: 0.5;
}

.about-title::after {
  color:   #00FFC8;
  opacity: 0.6;
}

/* ── Main 3-column grid ── */
.about-grid {
  position:              relative;
  z-index:               2;
  display:               grid;
  grid-template-columns: 1fr auto 1fr;
  gap:                   6rem;
  align-items:           start;
  max-width:             1440px;
  margin:                0 auto;
}

/* ── Left: Bio ── */
.about-col--bio {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
}

.about-bio__headline {
  font-size:      clamp(0.875rem, 1.75vw, 1.25rem);
  font-weight:    700;
  line-height:    1.25;
  text-transform: uppercase;
  color:          var(--white);
}

.about-bio__sub {
  font-size:      clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight:    700;
  text-transform: uppercase;
  color:          var(--white);
  line-height:    1.2;
}

.about-bio__body {
  font-size:   1rem;
  font-weight: 400;
  color:       var(--white);
  line-height: 1.6;
}

/* ── Center: Photo ── */
.about-col--photo {
  margin-top:      8vh;
  display:         flex;
  justify-content: center;
}

.about-photo {
  position:      relative;
  width:         clamp(180px, 18vw, 280px);
  aspect-ratio:  3 / 4;
  border-radius: 999px;
  flex-shrink:   0;
  box-shadow:    0 0 60px rgba(154, 210, 198, 0.7),
                 0 0 120px rgba(154, 210, 198, 0.5),
                 0 0 200px rgba(154, 210, 198, 0.3);
}

.about-photo::after {
  content:       '';
  position:      absolute;
  inset:         0;
  border-radius: 999px;
  border:        1px solid rgba(0, 255, 200, 0.5);
  pointer-events: none;
  z-index:       1;
}

.about-photo img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center 15%;
  filter:          grayscale(100%);
  border-radius:   999px;
  display:         block;
}

/* ── Right: Resume + Trusted by ── */
.about-col--right {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
}

.about-resume-btn {
  align-self:      flex-start;
  background:      rgba(0, 255, 200, 0.18);
  border:          1px solid rgba(0, 255, 200, 0.4);
  box-shadow:      0 20px 40px rgba(0, 0, 0, 0.3),
                   inset -1px 1px 0 rgba(0, 255, 200, 0.5),
                   inset 1px -1px 0 rgba(0, 0, 0, 0.15);
  color:           #00FFC8;
  font-family:     var(--font);
  font-size:       0.875rem;
  font-weight:     700;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  padding:         0.65rem 2rem;
  border-radius:   999px;
  cursor:          pointer;
  backdrop-filter: blur(32px) saturate(150%) brightness(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(150%) brightness(1.1);
  transition:      background 0.3s ease, box-shadow 0.3s ease;
  white-space:     nowrap;
}

.about-resume-btn:hover {
  background: rgba(0, 255, 200, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              inset -1px 1px 0 rgba(0, 255, 200, 0.7),
              inset 1px -1px 0 rgba(0, 0, 0, 0.2);
}

/* ── Trusted by ── */
.about-trusted__heading {
  font-size:     0.75rem;
  font-weight:   600;
  color:         rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-trusted__list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            0.6rem;
}

.about-trusted__list li {
  font-size:      1rem;
  font-weight:    700;
  color:          var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height:    1.2;
}


/* ============================================================
   NAV OVERLAY
============================================================ */
.nav-overlay {
  position:        fixed;
  inset:           0;
  z-index:         300;
  background:      transparent;
  display:         flex;
  align-items:     flex-start;
  justify-content: flex-end;
  padding:         var(--pad);
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 0.4s ease;
}

.nav-overlay.is-open {
  opacity:        1;
  pointer-events: auto;
}

.nav-close {
  position:   absolute;
  top:        var(--pad);
  right:      var(--pad);
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    0.25rem;
  display:    flex;
}

.nav-inner {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  padding-top:    5rem;
  padding-right:  2vw;
  gap:            3rem;
}

.nav-links {
  list-style: none;
  display:    flex;
  flex-direction: column;
  gap:        0.25rem;
}

.nav-link {
  display:        block;
  font-size:      clamp(1.5rem, 2.5vw, 3rem);
  font-weight:    500;
  color:          var(--white);
  text-decoration: none;
  letter-spacing: -0.04em;
  line-height:    1.1;
  transition:     opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.5;
}

.nav-contact {
  display:        flex;
  flex-direction: column;
  gap:            0.4rem;
}

.nav-contact__item {
  font-size:   1rem;
  font-weight: 400;
  color:       var(--white);
}

.nav-contact__email {
  text-decoration: none;
}

.nav-contact__email:hover {
  text-decoration: underline;
}

.nav-contact__linkedin {
  display:    inline-block;
  margin-top: 0.5rem;
}

/* Fade out content when nav is open, keep background visible */
body.nav-is-open main,
body.nav-is-open .site-header .header-left,
body.nav-is-open .site-header .header-center,
body.nav-is-open .site-header .header-right > :not(.hamburger) {
  opacity:    0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hide hamburger when nav is open */
body.nav-is-open .hamburger {
  opacity: 0;
  pointer-events: none;
}

a.about-resume-btn {
  display:         inline-block;
  text-decoration: none;
}

/* ── About grid: full-width columns on mobile ── */
@media (max-width: 768px) {
  .about-section,
  .about-scroll-space,
  .work-block,
  .work-section {
    overflow:             visible !important;
    overflow-y:           visible !important;
    scrollbar-width:      none    !important;
    -ms-overflow-style:   none    !important;
    height:               auto    !important;
  }

  .about-section::-webkit-scrollbar,
  .work-block::-webkit-scrollbar { display: none !important; }

  .about-grid {
    grid-template-columns: 1fr;
    gap:                   2rem;
  }

  .about-col--bio,
  .about-col--photo,
  .about-col--right {
    width:      100%;
    margin-top: 0;
  }

  .about-col--photo { order: -1; }

  .about-photo {
    width:  clamp(140px, 50vw, 220px);
    margin: 0 auto;
  }

  .about-resume-btn { align-self: center; }
}