/* ============================================
   David Blackwell Tribute Page
   Mobile-First Responsive Stylesheet
   ============================================ */

/* ============================================
   Custom Font: NVIDIA Sans
   ============================================ */
@font-face {
  font-family: 'NVIDIA Sans';
  src: url('fonts/NVIDIA Sans Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NVIDIA Sans';
  src: url('fonts/NVIDIA Sans Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NVIDIA Sans';
  src: url('fonts/NVIDIA Sans Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'NVIDIA Sans';
  src: url('fonts/NVIDIA Sans Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NVIDIA Sans';
  src: url('fonts/NVIDIA Sans Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
  /* Colors */
  --color-black: #000;
  --color-white: #fff;
  --color-gray-dark: #222;
  --color-gray-light: #eee;
  --color-gray-muted: #ccc;
  --color-gray-bg: #f7f7f7;
  --color-page-overflow: var(--color-white); /* Color shown when viewport exceeds max page width */
  
  /* Surface colors */
  --surface-default: var(--color-black);
  --surface-alt: var(--color-gray-bg);
  
  /* Page max width (for ultra-wide screens) */
  --page-max-width: 160rem; /* 2560px */
  
  /* Section background colors (configurable) */
  --bg-hero: var(--color-white);
  --bg-intro: var(--color-white);
  --bg-bio-early-life: var(--color-white);
  --bg-bio-education: var(--color-white);
  --bg-career: var(--color-white);
  --bg-inspired: transparent; /* Uses gradient background */
  --bg-nvidia: var(--color-black);
  --bg-contributions: var(--color-white);
  --bg-gallery: var(--color-white);
  --bg-film: var(--color-white);
  --bg-cta: var(--color-gray-bg);
  --bg-footer: var(--color-black);
  
  /* Text colors */
  --text-heading: var(--color-black);
  --text-body: var(--color-gray-dark);
  --text-light: var(--color-gray-light);
  --text-muted: var(--color-gray-muted);
  
  /* Typography - Phone (base) */
  --font-family: 'NVIDIA Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-small: 0.6875rem;    /* 11px */
  --font-size-medium: 0.9375rem;   /* 15px */
  --font-size-large: 1.125rem;     /* 18px */
  --font-size-title-small: 1.25rem;  /* 20px */
  --font-size-title-medium: 1.5rem;  /* 24px */
  --font-size-heading-huge: 2.25rem; /* 36px */
  
  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.667;
  --line-height-loose: 1.75;
  
  /* Spacing - Phone (base) */
  --spacing-xs: 0.3125rem;   /* 5px */
  --spacing-sm: 0.625rem;    /* 10px */
  --spacing-md: 0.9375rem;   /* 15px */
  --spacing-lg: 1.25rem;     /* 20px */
  --spacing-xl: 1.875rem;    /* 30px */
  --spacing-section: 1.875rem; /* 30px - phone section padding */
  
  /* Container widths */
  --container-padding: 0.9375rem; /* 15px */
  --content-max-width: 100%;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-page-overflow);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-relaxed);
  color: var(--text-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover,
a:focus {
  text-decoration: none;
}

a:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--text-heading);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-hero);
  overflow: hidden;
}

.hero__background {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--content-max-width) + (var(--container-padding) * 2));
  margin: 0 auto;
  padding: var(--spacing-section) var(--container-padding);
}

.hero__content {
  max-width: var(--content-max-width);
}

.hero__title {
  font-size: var(--font-size-heading-huge);
  margin-bottom: var(--spacing-lg);
  color: var(--text-heading);
}

.hero__dates {
  font-size: var(--font-size-title-small);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--text-heading);
}

.hero__subtitle {
  font-size: var(--font-size-large);
  color: var(--text-body);
  margin-bottom: 0;
}

/* ============================================
   Introduction / Quote Section
   ============================================ */
.intro {
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--bg-intro);
}

.intro__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: left;
}

.intro__text {
  margin-bottom: var(--spacing-xl);
}

.intro__quote {
  margin-top: var(--spacing-xl);
}

.intro__quote-text {
  font-size: var(--font-size-large);
  line-height: var(--line-height-loose);
  margin-bottom: var(--spacing-md);
}

.intro__quote-author {
  font-style: normal;
  font-size: var(--font-size-medium);
}

/* ============================================
   Biography Sections (Early Life, Education)
   ============================================ */
.bio {
  padding: var(--spacing-section) var(--container-padding);
}

.bio--early-life {
  background-color: var(--bg-bio-early-life);
}

.bio--education {
  background-color: var(--bg-bio-education);
}

.bio__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.bio__image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bio__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-gray-bg);
}

.bio__content {
  flex: 1;
}

.bio__title {
  font-size: var(--font-size-title-medium);
  margin-bottom: var(--spacing-md);
}

.bio__text p {
  margin-bottom: 1em;
}

.bio__text a {
  text-decoration: underline;
}

/* Education section: image on top for mobile */
.bio--education .bio__image-wrapper {
  order: -1;
}

/* ============================================
   Career Section (3-Column)
   ============================================ */
.career {
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--bg-career);
}

.career__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.career__card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.career__image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.career__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-gray-bg);
}

.career__title {
  font-size: var(--font-size-title-small);
}

.career__text p {
  margin-bottom: 1em;
}

.career__text a {
  text-decoration: underline;
}

/* ============================================
   Inspired by His Work Section
   ============================================ */
.inspired {
  position: relative;
  padding: 5.625rem var(--container-padding); /* 90px */
  min-height: 580px;
  display: flex;
  align-items: flex-start;
  background-color: #000;
  /* Break out of body max-width to extend black background full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.inspired__background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-max-width);
  z-index: 0;
  overflow: hidden;
  background-color: #000;
}

.inspired__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.inspired__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.inspired__container {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.inspired__title {
  font-size: var(--font-size-title-medium);
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.inspired__content {
  color: var(--text-light);
}

.inspired__text {
  margin-bottom: var(--spacing-lg);
}

.inspired__quote {
  margin-top: var(--spacing-lg);
}

.inspired__quote p {
  font-size: 1.375rem; /* 22px */
  line-height: var(--line-height-loose);
  margin-bottom: var(--spacing-lg);
}

/* Foreground image for tablet/phone - shown by default, hidden on laptop+ */
.inspired__image-wrapper {
  margin-top: var(--spacing-xl);
  width: 100%;
}

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

/* Hide background image on tablet/phone (below 1024px) */
.inspired__background {
  display: none;
}

/* ============================================
   NVIDIA Connection Section
   ============================================ */
.nvidia {
  position: relative;
  padding: 5.625rem var(--container-padding); /* 90px */
  background-color: #000000;
  /* Break out of body max-width to extend black background full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.nvidia__background {
  position: absolute;
  inset: 0;
  background-color: #000000;
  z-index: 0;
}

.nvidia__container {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.nvidia__title {
  font-size: var(--font-size-title-medium);
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.nvidia__content {
  color: var(--text-light);
}

.nvidia__text {
  margin-bottom: 0;
}

.nvidia__text a {
  color: var(--text-light);
}

.nvidia__image-wrapper {
  margin: var(--spacing-xl) auto 0;
  max-width: var(--content-max-width); /* Full content width: 1290px */
  width: 100%;
}

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

/* ============================================
   AI Contributions Section
   ============================================ */
.contributions {
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--bg-contributions);
}

.contributions__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.contributions__title {
  font-size: var(--font-size-title-medium);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.contributions__content p {
  margin-bottom: 1em;
}

/* ============================================
   Photo Gallery Section
   ============================================ */
.gallery {
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--bg-gallery);
}

.gallery__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.gallery__item {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery__button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery__button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

.gallery__button:hover::after,
.gallery__button:focus::after {
  background: rgba(0, 0, 0, 0.1);
}

.gallery__button:focus {
  outline: 3px solid var(--color-nvidia-green);
  outline-offset: 2px;
}

.gallery__button:focus:not(:focus-visible) {
  outline: none;
}

.gallery__button:focus-visible {
  outline: 3px solid var(--color-nvidia-green);
  outline-offset: 2px;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-gray-bg);
  transition: transform 0.3s ease;
}

.gallery__button:hover .gallery__image {
  transform: scale(1.05);
}

/* ============================================
   Lightbox Modal
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.lightbox__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  padding: 3.5rem 1rem;
}

.lightbox__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 80vh;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox--loading .lightbox__image {
  opacity: 0.5;
}

.lightbox__caption {
  margin-top: var(--spacing-md);
  padding: 0 var(--spacing-lg);
  font-size: var(--font-size-small);
  color: var(--color-white);
  text-align: center;
  max-width: 600px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.lightbox__close:hover,
.lightbox__close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox__close:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}

.lightbox__nav:hover:not(:disabled),
.lightbox__nav:focus:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.lightbox__nav:disabled {
  cursor: not-allowed;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
}

/* Lightbox responsive adjustments */
@media (min-width: 640px) {
  .lightbox__container {
    padding: 4rem 2rem;
  }

  .lightbox__image {
    max-height: 75vh;
  }

  .lightbox__nav {
    width: 56px;
    height: 56px;
  }

  .lightbox__nav--prev {
    left: 1.5rem;
  }

  .lightbox__nav--next {
    right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lightbox__container {
    padding: 5rem 3rem;
  }

  .lightbox__content {
    max-width: 85vw;
    max-height: 85vh;
  }

  .lightbox__image {
    max-height: 80vh;
  }

  .lightbox__nav--prev {
    left: 2rem;
  }

  .lightbox__nav--next {
    right: 2rem;
  }
}

/* ============================================
   Film Preview Section
   ============================================ */
.film {
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--bg-film);
}

.film__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.film__title {
  font-size: var(--font-size-title-medium);
  margin-bottom: var(--spacing-lg);
}

.film__text {
  margin-bottom: var(--spacing-md);
}

.film__video-wrapper {
  margin-top: var(--spacing-lg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.film__video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-gray-bg);
}

/* ============================================
   Call to Action Section
   ============================================ */
.cta {
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--bg-cta);
  /* Extend CTA background to full viewport width on ultra-wide screens */
  box-shadow: 0 0 0 100vmax var(--bg-cta);
  clip-path: inset(0 -100vmax);
}

.cta__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: var(--font-size-title-medium);
  margin-bottom: var(--spacing-lg);
}

.cta__text {
  font-size: var(--font-size-large);
  line-height: var(--line-height-loose);
}

.cta__link {
  text-decoration: underline;
  word-break: break-word;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--bg-footer);
  padding: var(--spacing-sm) var(--container-padding);
  /* Extend footer background to full viewport width on ultra-wide screens */
  box-shadow: 0 0 0 100vmax var(--bg-footer);
  clip-path: inset(0 -100vmax);
}

.footer__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.footer__text {
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: var(--line-height-normal);
  margin-bottom: 0;
}

/* ============================================
   TABLET BREAKPOINT (min-width: 640px)
   Corresponds to Figma Tablet frame (1024px width)
   ============================================ */
@media (min-width: 640px) {
  :root {
    --spacing-section: 2.8125rem; /* 45px */
    --content-max-width: 39.375rem; /* 630px */
  }
  
  /* Introduction - center align for tablet and up */
  .intro__container {
    text-align: center;
  }
  
  /* Hero - switch to overlay layout */
  .hero {
    flex-direction: row;
    min-height: 440px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .hero__background {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  
  .hero__image {
    object-position: center center; /* Anchor image content to center */
    min-width: 1024px; /* Fixed minimum width - image crops from both sides as viewport shrinks */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero__container {
    padding: 5.625rem var(--container-padding); /* 90px */
  }
  
  .hero__content {
    max-width: 22rem; /* ~355px */
  }
  
  /* Bio sections - still single column but more spacing */
  .bio__container {
    align-items: center;
  }
  
  .bio__image-wrapper {
    max-width: 100%;
  }
  
  /* Career - 3 columns */
  .career__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .career__card {
    flex: 1 1 calc(33.333% - var(--spacing-xl));
    min-width: 11.25rem; /* 180px minimum */
  }
  
  /* Gallery - 4 columns */
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Inspired section */
  .inspired {
    min-height: 770px;
  }
  
  .inspired__container {
    max-width: var(--content-max-width);
  }
  
  /* NVIDIA section */
  .nvidia__container {
    max-width: var(--content-max-width);
  }
}

/* ============================================
   LAPTOP BREAKPOINT (min-width: 1024px)
   Corresponds to Figma Laptop frame (1350px width)
   ============================================ */
@media (min-width: 1024px) {
  :root {
    --font-size-large: 1.25rem;       /* 20px */
    --font-size-title-small: 1.5rem;  /* 24px */
    --font-size-title-medium: 1.75rem; /* 28px */
    --font-size-heading-huge: 3rem;    /* 48px */
    --spacing-section: 5.625rem; /* 90px */
    --content-max-width: 59.625rem; /* 954px */
  }
  
  /* Hero */
  .hero {
    min-height: 580px;
  }
  
  /* Fix background image at minimum width to prevent scaling on resize */
  .hero__image {
    object-position: center center; /* Anchor image content to center */
    min-width: 1350px; /* Fixed minimum width - image crops from both sides as viewport shrinks */
  }
  
  .hero__content {
    max-width: 34rem; /* ~544px */
  }
  
  .hero__dates {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Bio sections - 2 columns */
  .bio__container {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .bio__container--reverse {
    flex-direction: row-reverse;
  }
  
  .bio__image-wrapper {
    flex: 1 1 55%;
    max-width: 34rem; /* ~544px */
    aspect-ratio: 16 / 9;
  }
  
  .bio__content {
    flex: 1 1 40%;
    max-width: 23.75rem; /* ~380px */
  }
  
  /* Reset education image order for desktop */
  .bio--education .bio__image-wrapper {
    order: initial;
  }
  
  /* Career - 3 equal columns */
  .career__card {
    flex: 1 1 calc(33.333% - var(--spacing-xl));
    min-width: 18.625rem; /* ~298px */
  }
  
  /* Inspired section */
  .inspired {
    min-height: 920px;
  }
  
  .inspired__background {
    display: block;
  }
  
  .inspired__image-wrapper {
    display: none;
  }
  
  .inspired__title {
    font-size: var(--font-size-title-medium);
  }
  
  /* NVIDIA section */
  .nvidia__title {
    font-size: var(--font-size-title-medium);
  }
  
  /* Contributions */
  .contributions__container {
    max-width: 49.375rem; /* ~790px */
    margin: 0 auto;
  }
  
  /* Film */
  .film__container {
    max-width: 49.375rem; /* ~790px */
  }
  
  .film__video-wrapper {
    max-width: 100%;
  }
  
  /* CTA */
  .cta__container {
    max-width: 49.375rem; /* ~790px */
  }
}

/* ============================================
   DESKTOP BREAKPOINT (min-width: 1350px)
   Corresponds to Figma Desktop frame (2560px width)
   ============================================ */
@media (min-width: 1350px) {
  :root {
    --font-size-large: 1.375rem;       /* 22px */
    --font-size-title-small: 1.75rem;  /* 28px */
    --font-size-title-medium: 2.25rem; /* 36px */
    --font-size-heading-huge: 3.75rem; /* 60px */
    --content-max-width: 80.625rem;    /* 1290px */
  }
  
  /* Hero - increase min-width for desktop viewport */
  .hero__image {
    object-position: center center; /* Anchor image content to center */
    min-width: 2560px; /* Fixed minimum width for desktop - image crops from both sides as viewport shrinks */
  }
  
  .hero__content {
    max-width: 46.25rem; /* ~740px */
  }
  
  .hero__title {
    margin-bottom: 1.5625rem; /* 25px */
  }
  
  /* Bio sections */
  .bio__image-wrapper {
    max-width: 46.25rem; /* ~740px */
  }
  
  .bio__content {
    max-width: 32.5rem; /* ~520px */
  }
  
  /* Career - 3 columns with more space */
  .career__card {
    flex: 1 1 25.625rem; /* ~410px */
    max-width: 25.625rem;
  }
  
  /* Inspired section */
  .inspired {
    min-height: 1260px;
  }
  
  .inspired__container {
    max-width: 66.875rem; /* ~1070px */
  }
  
  /* NVIDIA section */
  .nvidia__container {
    max-width: 53.125rem; /* ~850px */
  }
  
  /* Contributions */
  .contributions__container {
    max-width: 66.875rem; /* ~1070px */
  }
  
  /* Film */
  .film__video-wrapper {
    max-width: 66.875rem; /* ~1070px */
    margin-left: auto;
    margin-right: auto;
  }
  
  /* CTA */
  .cta__text {
    font-size: var(--font-size-large);
  }
}

/* ============================================
   Scroll Animations
   ============================================ */

/* Base animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Elements waiting to animate - hidden by default */
.animate-on-scroll {
  opacity: 0;
}

/* When element is in view, trigger animation */
.animate-on-scroll.is-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Subtle fade only (no movement) - for images */
.animate-on-scroll--fade.is-visible {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Hero section - special animation (no scroll trigger, plays on load) */
.hero__content {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero__title {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.hero__dates {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  opacity: 0;
}

/* ============================================
   Accessibility Enhancements
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  /* Disable all scroll animations for users who prefer reduced motion */
  .animate-on-scroll {
    opacity: 1;
  }
  
  .animate-on-scroll.is-visible {
    animation: none;
  }
  
  .animate-on-scroll--fade.is-visible {
    animation: none;
  }
  
  /* Disable hero animations */
  .hero__content,
  .hero__title,
  .hero__dates,
  .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible for better keyboard navigation */
:focus-visible {
  outline: 2px solid var(--text-heading);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-gray-dark: #000;
    --color-gray-light: #fff;
    --text-body: #000;
  }
}
