/* ==========================================================================
   NAV — fixed top pill
   ========================================================================== */

.pill-nav {
  position: fixed;
  top: 0;
  left: 50%;
  --nav-top-gap: clamp(20px, 4vw, 36px);
  transform: translate(-50%, var(--nav-top-gap));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 20px 5px 5px;
  background: var(--c-neon);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(195, 255, 0, 0.5);
  transition: box-shadow 0.3s var(--ease-soft);
  will-change: transform;
}

.pill-nav:hover,
.pill-nav:focus-within {
  box-shadow: 0 0 22px rgba(195, 255, 0, 0.85);
}

.pill-nav__home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
  background: transparent;
  transition: transform 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}

.pill-nav__home[aria-current="true"]:hover {
  transform: scale(1.06);
}

.pill-nav__home[aria-current="true"] {
  background: var(--c-white);
}

.pill-nav__home img {
  width: 20px;
  height: auto;
}

.pill-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: var(--c-black);
  padding: 8px 14px;
  border-radius: var(--radius-circle);
  white-space: nowrap;
}

.pill-nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-circle);
  background: var(--c-white);
  opacity: 0;
  transition: opacity 0.25s var(--ease-soft);
  z-index: -1;
}

.pill-nav__link:hover::before {
  opacity: 0.5;
}

.pill-nav__link[aria-current="true"]::before {
  opacity: 1;
}

@media (max-width: 560px) {
  .pill-nav { gap: 8px; padding: 5px 12px 5px 5px; }
  .pill-nav__link { padding: 8px 9px; font-size: 14px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  height: 90vh;
  background: var(--c-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__d-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 480px);
  transform: translate(-50%, -50%);
  cursor: default;
  user-select: none;
}

@media (max-width: 720px) {
  .hero__d-mark {
    width: clamp(200px, 72vw, 360px);
  }
}

.hero__d-mark img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.09s linear;
}

.hero__d-mark img.is-active {
  opacity: 1;
  position: relative;
}

.hero__headline {
  position: relative;
  max-width: 1000px;
  width: 90%;
  text-align: center;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -1.8px;
  padding-bottom: 0.08em; /* breathing room so descenders never clip */
}

/* Smooth reveal: fades up out of a soft blur, no hard-edged wipe */
.hero__headline-text {
  display: block;
  text-shadow: 0 0 20px var(--c-offwhite);
  opacity: 0;
  filter: blur(18px);
  transform: translateY(22px);
  animation: heroReveal 1.1s var(--ease) 0.15s forwards;
}

.hero__meta {
  position: absolute;
  bottom: clamp(20px, 4vw, 36px);
  font-size: 12px;
  line-height: 14px;
}

.hero__meta--location { left: var(--gutter); }
.hero__meta--byline { right: var(--gutter); text-align: right; }

@media (max-width: 720px) {
  .hero__meta--byline { display: none; }
}

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

.intro {
  position: relative;
  z-index: 2;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: -1px;
  min-height: 580px;
  --intro-max: 1280px;
  --intro-portrait-w: clamp(220px, 24vw, 380px);
  --intro-side: max(var(--gutter), calc((100% - var(--intro-max)) / 2));
}

.intro__portrait {
  position: absolute;
  top: 0;
  left: var(--intro-side);
  bottom: 0;
  width: var(--intro-portrait-w);
  overflow: hidden;
  border-radius: var(--radius-panel);
}

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

.intro__body {
  position: relative;
  margin-left: calc(var(--intro-side) + var(--intro-portrait-w) + clamp(32px, 4vw, 64px));
  margin-right: var(--intro-side);
  padding: clamp(40px, 6vw, 90px) 0;
}

.intro__eyebrow {
  color: var(--c-neon);
  font-size: 10px;
  margin-bottom: 16px;
  display: block;
}

.intro__paragraph {
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 50px);
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
}

.intro__paragraph .word {
  display: inline-block;
  opacity: 0.1;
  will-change: opacity, filter;
}

.intro__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.6px;
  color: var(--c-white);
  transition: color 0.25s var(--ease-soft);
}

.intro__link-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-soft);
}

.intro__link:hover {
  color: var(--c-neon);
}

.intro__link:hover .intro__link-arrow {
  transform: translate(4px, 2px);
}

@media (max-width: 860px) {
  .intro {
    min-height: 0;
  }
  .intro__portrait {
    position: static;
    width: 100%;
    height: auto;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  }
  .intro__portrait img {
    height: auto;
    object-fit: initial;
  }
  .intro__body {
    margin-left: 0;
    margin-right: 0;
    padding: clamp(32px, 8vw, 60px) var(--gutter);
  }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about {
  background: var(--c-black);
  color: var(--c-white);
  display: grid;
  grid-template-columns: clamp(260px, 28vw, 460px) 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(90px, 10vw, 140px) var(--gutter) clamp(70px, 8vw, 110px);
}

/* Make the full page black on the about page, not just the content block */
.about-page {
  background: var(--c-black);
}

.about__portrait {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.about__portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.about__col {
  min-width: 0;
}

.about__eyebrow {
  display: block;
  color: var(--c-neon);
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.about__bio {
  font-weight: 500;
  font-size: clamp(22px, 3.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -1.02px;
  margin-bottom: 20px;
}

/* Scroll-scrub word reveal — same mechanics as the homepage intro */
.about__bio .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  will-change: opacity, filter;
  transition: opacity 0.35s var(--ease-soft), filter 0.35s var(--ease-soft);
}

.about__bio.is-revealed .word {
  opacity: 1;
  filter: blur(0);
}

.about__bio a {
  color: #F0FFBE;
  transition: color 0.2s var(--ease-soft);
}

.about__bio a:hover {
  color: var(--c-neon);
}

.about__secondary {
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 18px);
  letter-spacing: -0.54px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.about__secondary .word {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  will-change: opacity, filter;
  transition: opacity 0.3s var(--ease-soft), filter 0.3s var(--ease-soft);
}

.about__secondary.is-revealed .word {
  opacity: 1;
  filter: blur(0);
}

.about__secondary--first {
  margin-top: 32px;
}

.about__secondary--break {
  margin-top: 20px;
}

.about__timeline {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
}

.about__entry {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about__entry:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about__entry-year {
  display: block;
  color: #6e6e6e;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about__entry-role {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}

.about__entry-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #000c12;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.about__entry-company {
  font-weight: 700;
  color: var(--c-white);
  transition: color 0.2s var(--ease-soft);
}

.about__entry-company-link {
  font-weight: 700;
  color: var(--c-white);
  transition: color 0.2s var(--ease-soft);
}

.about__entry-company-link:hover {
  color: var(--c-neon);
}

/* About page footer has no preceding section gap — remove the top radius
   so it sits flush in the all-black page flow. */
.about-page .footer {
  border-radius: 0;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    padding-top: clamp(70px, 12vw, 100px);
  }
  .about__portrait {
    position: static;
  }
  .about__timeline {
    margin-top: 28px;
  }
}
