:root {
  --bg: #fffaf0;
  --paper: rgba(255, 255, 255, 0.88);
  --text: #203042;
  --muted: #587084;
  --navy: #15314b;
  --teal: #1f8a8a;
  --sun: #ffc94a;
  --coral: #f97b63;
  --sky: #7fd6ff;
  --mint: #c3f0ca;
  --line: rgba(32, 48, 66, 0.12);
  --shadow: 0 24px 60px rgba(21, 49, 75, 0.14);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 201, 74, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(127, 214, 255, 0.35), transparent 25%),
    linear-gradient(180deg, #fffaf0 0%, #f9fcff 52%, #fef7f0 100%);
}

body.is-locked {
  overflow: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; line-height: 1.7; }

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(255, 201, 74, 0.28), transparent 25%),
    radial-gradient(circle at bottom right, rgba(127, 214, 255, 0.3), transparent 28%),
    rgba(255, 250, 240, 0.96);
  backdrop-filter: blur(10px);
}

.password-gate-card {
  width: min(100%, 30rem);
  padding: 2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.password-gate-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-gate-card h1 {
  margin-bottom: 0.75rem;
}

.password-gate-card p {
  color: var(--muted);
}

.password-gate-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.password-gate-label {
  font-weight: 800;
  color: var(--navy);
}

.password-gate-input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  color: var(--navy);
  background: white;
}

.password-gate-input:focus {
  outline: 2px solid rgba(31, 138, 138, 0.28);
  outline-offset: 2px;
}

.password-gate-button {
  width: 100%;
}

.password-gate-error {
  min-height: 1.4rem;
  margin: 0;
  color: #b33434;
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem auto 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(21, 49, 75, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-family: "Baloo 2", cursive;
  font-size: 1.2rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--sun), #ffe8a2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a,
.menu-toggle {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
}

.site-nav a:hover,
.site-nav a.is-current,
.menu-toggle:hover,
.filter-button:hover,
.filter-button.is-active {
  background: rgba(31, 138, 138, 0.12);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.hero, .page-hero, .section, .site-footer {
  animation: rise 0.6s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.85rem;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  line-height: 1.05;
  color: var(--navy);
}

h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.hero-intro,
.page-hero p:last-child {
  margin-top: 1.2rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.button-row, .section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(21, 49, 75, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, var(--coral), #ff9f70);
  color: white;
}

.button-secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-points, .check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li, .check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
}

.hero-points li::before, .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--coral));
}

.hero-visual {
  position: relative;
  min-height: 32rem;
}

.portrait-frame {
  position: absolute;
  inset: 1rem 3.15rem 1.5rem 0.25rem;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffd86a, #7fd6ff 55%, #f97b63);
  transform: rotate(3deg);
  box-shadow: 0 20px 40px rgba(21, 49, 75, 0.16);
}

.portrait-card,
.card,
.accent-card,
.stat-card,
.project-preview,
.story-card,
.timeline-card,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: absolute;
  inset: 0 2rem 3rem 1rem;
  overflow: hidden;
  border-radius: 30px;
  transform: rotate(-2deg);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-doodle {
  position: absolute;
  top: -3.25rem;
  left: -5.25rem;
  width: clamp(6rem, 12vw, 9rem);
  transform: rotate(90deg);
  z-index: 1;
}

.hero-doodle img {
  width: 100%;
  filter: drop-shadow(0 12px 18px rgba(21, 49, 75, 0.14));
}

.section { margin-top: 2.5rem; }
.section-heading { max-width: 48rem; margin-bottom: 1.5rem; }

.section-heading p + h2 {
  margin-top: 0.15rem;
}

.split-grid,
.stats-grid,
.project-preview-grid,
.story-grid,
.pill-grid,
.gallery,
.footer-links {
  display: grid;
  gap: 1.2rem;
}

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

.card,
.accent-card,
.stat-card,
.project-preview,
.story-card,
.timeline-card,
.site-footer {
  padding: 1.4rem;
  border-radius: 30px;
}

.card h3,
.accent-card h3,
.story-copy h2,
.computer-pane-copy h3,
.project-preview h3 {
  margin-bottom: 0.55rem;
}

.card p + p,
.story-copy p + p,
.computer-pane-copy p + p {
  margin-top: 0.85rem;
}

.accent-card {
  background: linear-gradient(180deg, rgba(195, 240, 202, 0.86), rgba(255, 255, 255, 0.92));
}

.band {
  padding: 2rem;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 201, 74, 0.14), rgba(127, 214, 255, 0.12));
}

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

.stat-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.75rem;
  font-family: "Baloo 2", cursive;
  color: var(--navy);
}

.stat-card span,
.project-preview p,
.story-copy p,
.timeline-copy p,
.card p {
  color: var(--muted);
}

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

.project-preview {
  overflow: hidden;
  padding: 0;
}

.project-preview img {
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
}

.project-preview div { padding: 1.2rem; }

.project-grade {
  margin-bottom: 0.4rem;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.pill-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

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

.strengths-grid > div {
  padding: 1.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.strengths-grid h3 {
  margin-bottom: 0.8rem;
}

.pill-grid span {
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.page-hero {
  padding: 2rem;
  border-radius: 36px;
  margin-bottom: 2rem;
}

.page-hero-projects {
  background:
    radial-gradient(circle at right top, rgba(255, 201, 74, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(250, 255, 252, 0.96));
}

.page-hero-experience {
  background:
    radial-gradient(circle at left top, rgba(127, 214, 255, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 240, 0.96));
}

.page-hero-leadership {
  background:
    radial-gradient(circle at right top, rgba(249, 123, 99, 0.18), transparent 30%),
    radial-gradient(circle at left bottom, rgba(255, 201, 74, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 255, 0.96));
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.filter-button {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.story-grid { grid-template-columns: 1fr; }
.story-card { display: grid; gap: 1.2rem; }

.computer-lab-panel {
  gap: 1.4rem;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 255, 0.92));
}

.computer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.computer-tab {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.computer-tab.is-active {
  background: rgba(31, 138, 138, 0.12);
}

.computer-showcase {
  position: relative;
}

.computer-pane {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: start;
  padding-top: 0.25rem;
}

.computer-pane.is-active {
  display: grid;
}

.computer-pane-copy {
  display: grid;
  gap: 0.8rem;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery img,
.gallery video {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  border-radius: 20px;
  background: #dceef3;
  scroll-snap-align: start;
}

.showcase-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.65rem;
}

.image-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.showcase-media img {
  width: 100%;
  height: auto;
  max-height: 26rem;
  object-fit: contain;
  background: white;
  border-radius: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(14, 24, 36, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  width: min(100%, 72rem);
}

.lightbox-image {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-track > .image-zoom-trigger {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.carousel-track img {
  width: 100%;
  min-height: 18rem;
  object-fit: cover;
  border-radius: 20px;
  background: #dceef3;
  scroll-snap-align: start;
}

.showcase-carousel .carousel-track img {
  min-height: 0;
  height: auto;
  max-height: 26rem;
  object-fit: contain;
  background: white;
  border-radius: 14px;
}

.showcase-carousel .carousel-track {
  grid-auto-columns: 100%;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 49, 75, 0.82);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel:hover .carousel-button,
.carousel:focus-within .carousel-button {
  opacity: 1;
  pointer-events: auto;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.05);
}

.carousel-button-prev {
  left: 0.6rem;
}

.carousel-button-next {
  right: 0.6rem;
}

.timeline-card {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.2rem;
  align-items: start;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), #24577a);
  color: white;
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.footer-art {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.footer-art img {
  width: clamp(7rem, 12vw, 10rem);
  transform: rotate(90deg);
  filter: drop-shadow(0 12px 18px rgba(21, 49, 75, 0.12));
}

.footer-links { align-content: start; }
.footer-links a { font-weight: 800; color: var(--navy); }
.is-hidden { display: none; }

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

@media (max-width: 960px) {
  .hero,
  .split-grid,
  .stats-grid,
  .project-preview-grid,
  .timeline-card,
  .strengths-grid,
  .computer-pane {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 28rem; }
  .portrait-frame { inset: 1rem 2rem 1.75rem 0.25rem; }
  .portrait-card { inset: 0 1rem 3rem 1rem; }

  .gallery,
  .carousel-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  .computer-tabs {
    gap: 0.6rem;
  }
}

@media (max-width: 720px) {
  .site-shell { width: min(calc(100% - 1rem), var(--max-width)); }

  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.5rem;
  }

  .site-nav.is-open { display: grid; }
  .site-nav a { padding-left: 0; }

  .hero { padding-top: 0.5rem; }

  .hero-doodle {
    top: -1.5rem;
    left: -2.5rem;
    width: clamp(4.5rem, 18vw, 6.5rem);
  }

  .page-hero,
  .band,
  .card,
  .accent-card,
  .stat-card,
  .project-preview,
  .story-card,
  .timeline-card,
  .site-footer {
    padding: 1.1rem;
  }

  .computer-lab-panel {
    padding: 1.1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
  }

  .gallery,
  .carousel-track {
    grid-auto-columns: 100%;
  }

  .footer-art {
    order: 3;
    align-self: center;
  }
}
