/* ===================================
   Dyotanya Editorial Sketchbook
   Design System for 曹诺一 / Nuoyi Cao
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-warm-paper: #f5f5f3;
  --color-ink-black: #000000;
  --color-charcoal: #333333;
  --color-pure-white: #ffffff;
  --color-dusty-sky: #81aed9;
  --color-cobalt-wash: #55a1ea;
  --color-coral-link: #ff8562;

  /* Typography — Font Families */
  --font-simeiz: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-manrope: 'Manrope', 'Inter', 'DM Sans', system-ui, sans-serif;

  /* Typography — Scale */
  --text-caption: 12px;
  --leading-caption: 1.2;
  --text-body-sm: 14px;
  --leading-body-sm: 1.2;
  --text-body: 16px;
  --leading-body: 1.56;
  --text-body-lg: 18px;
  --leading-body-lg: 1.55;
  --text-subheading: 24px;
  --leading-subheading: 1.35;
  --text-heading-sm: 30px;
  --leading-heading-sm: 1.33;
  --text-heading: 48px;
  --leading-heading: 1;
  --text-display: 80px;
  --leading-display: 1;

  /* Typography — Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --spacing-5: 5px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-15: 15px;
  --spacing-20: 20px;
  --spacing-22: 22px;
  --spacing-48: 48px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 80px;
  --card-padding: 48px;

  /* Border Radius */
  --radius-body: 1.5px;
  --radius-cards: 30px;
  --radius-pills: 3000px;
  --radius-images: 120px;
  --radius-inputs: 30px;
  --radius-buttons: 30px;

  /* Shadows — hard offset only */
  --shadow-card: 5px -5px 0px 0px var(--color-charcoal);
  --shadow-button: 4px -4px 0px 0px var(--color-charcoal);

  /* Surfaces */
  --surface-paper: #f5f5f3;
  --surface-card: #ffffff;
  --surface-inverted: #333333;

  /* Transition */
  --ease-out: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-manrope);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: -0.036em;
  background-color: var(--color-warm-paper);
  color: var(--color-ink-black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Utility ── */
h1, h2, h3, h4 {
  font-family: var(--font-simeiz);
  font-weight: var(--font-weight-light);
  letter-spacing: normal;
}

a {
  color: var(--color-coral-link);
  text-decoration: none;
  transition: opacity 0.25s var(--ease-out);
}

a:hover {
  opacity: 0.75;
}

ul {
  list-style: none;
}

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

/* ── Container ── */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ══════════════════════════════
   NAVIGATION
   ══════════════════════════════ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

/* Hamburger trigger */
.hamburger {
  pointer-events: all;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-ink-black);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-button);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  z-index: 1002;
  position: relative;
}

.hamburger:hover {
  transform: translate(-2px, 2px);
  box-shadow: 2px -2px 0px 0px var(--color-charcoal);
}

.hamburger .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-ink-black);
  transition: all 0.35s var(--ease-out);
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Fullscreen nav overlay */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-warm-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  z-index: 1001;
}

nav.active {
  opacity: 1;
  pointer-events: all;
}

nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

nav ul li {
  overflow: hidden;
}

nav .nav-link {
  font-family: var(--font-simeiz);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-heading);
  color: var(--color-ink-black);
  text-decoration: none;
  display: block;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out), color 0.3s var(--ease-out);
  position: relative;
}

nav.active .nav-link {
  transform: translateY(0);
}

nav ul li:nth-child(1) .nav-link { transition-delay: 0.1s; }
nav ul li:nth-child(2) .nav-link { transition-delay: 0.18s; }
nav ul li:nth-child(3) .nav-link { transition-delay: 0.26s; }
nav ul li:nth-child(4) .nav-link { transition-delay: 0.34s; }

nav .nav-link:hover,
nav .nav-link.active {
  color: var(--color-dusty-sky);
}

nav .nav-link.active::after {
  content: '·';
  margin-left: 12px;
  color: var(--color-coral-link);
}

/* Language switch */
.language-switch {
  position: fixed;
  top: 20px;
  right: 96px;
  z-index: 1003;
}

.lang-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-ink-black);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-button);
  cursor: pointer;
  font-family: var(--font-manrope);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-ink-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.lang-btn:hover {
  transform: translate(-2px, 2px);
  box-shadow: 2px -2px 0px 0px var(--color-charcoal);
}

.lang-btn .zh,
.lang-btn .en {
  font-size: 11px;
  transition: opacity 0.2s;
}

/* ══════════════════════════════
   HERO — Editorial Serif Statement
   ══════════════════════════════ */

.hero,
.project-hero,
.clubs-hero,
.music-festival-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-warm-paper);
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: var(--page-max-width);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero .name,
.project-title,
.clubs-hero .section-title,
.music-festival-hero .section-title {
  font-family: var(--font-simeiz);
  font-size: var(--text-display);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-display);
  color: var(--color-ink-black);
  margin-bottom: 24px;
}

.hero .name em,
.project-title em,
.hero-content .section-title em {
  font-style: italic;
  font-weight: var(--font-weight-regular);
}

.hero .subtitle,
.project-subtitle,
.clubs-hero .subtitle,
.music-festival-hero .subtitle {
  font-family: var(--font-manrope);
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-regular);
  color: var(--color-charcoal);
  line-height: var(--leading-body-lg);
  margin-bottom: 12px;
}

.hero .description {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-charcoal);
  line-height: var(--leading-body-sm);
  opacity: 0.7;
}

/* Parenthetical caption */
.parenthetical {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-charcoal);
  margin-top: 20px;
}

/* SVG Squiggle decorations */
.squiggle-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.squiggle-decoration path {
  stroke: var(--color-ink-black);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.squiggle-decoration.visible path {
  animation: drawSquiggle 2s var(--ease-out) forwards;
}

@keyframes drawSquiggle {
  to { stroke-dashoffset: 0; }
}

/* ══════════════════════════════
   SECTIONS — General
   ══════════════════════════════ */

section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-simeiz);
  font-size: var(--text-heading);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-heading);
  color: var(--color-ink-black);
  margin-bottom: 48px;
  position: relative;
}

.section-index {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  color: var(--color-charcoal);
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ══════════════════════════════
   CARDS — Client Showcase Style
   ══════════════════════════════ */

.dyotanya-card {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.dyotanya-card:hover {
  transform: translate(-3px, 3px);
  box-shadow: 8px -8px 0px 0px var(--color-charcoal);
}

/* About cards */
.about-card {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.about-card:hover {
  transform: translate(-3px, 3px);
  box-shadow: 8px -8px 0px 0px var(--color-charcoal);
}

.about-card h3 {
  font-family: var(--font-simeiz);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-heading-sm);
  margin-bottom: 16px;
  color: var(--color-ink-black);
}

.about-card p {
  font-family: var(--font-manrope);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  line-height: var(--leading-body);
}

.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card ul li {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.about-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-dusty-sky);
}

/* About grid */
.about {
  padding: var(--section-gap) 0;
}

.about-content {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

/* ══════════════════════════════
   PILL CTA BUTTON
   ══════════════════════════════ */

.pill-btn,
.view-all-btn {
  display: inline-block;
  border-radius: var(--radius-pills);
  border: 1.5px solid var(--color-ink-black);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-button);
  padding: 20px 48px;
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-black);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  text-decoration: none;
  text-align: center;
}

.pill-btn:hover,
.view-all-btn:hover {
  transform: translate(-2px, 2px);
  box-shadow: 6px -6px 0px 0px var(--color-charcoal);
  color: var(--color-ink-black);
}

.pill-btn:active,
.view-all-btn:active {
  transform: translate(2px, -2px);
  box-shadow: 2px -2px 0px 0px var(--color-charcoal);
}

/* ══════════════════════════════
   PORTFOLIO SECTION
   ══════════════════════════════ */

.portfolio-section {
  padding: var(--section-gap) 0;
}

.portfolio-section > .section-title {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.portfolio-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.portfolio-column {
  position: relative;
}

.column-title {
  font-family: var(--font-simeiz);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-heading-sm);
  margin-bottom: 24px;
  color: var(--color-ink-black);
}

/* Carousel */
.carousel-container {
  position: relative;
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
}

.carousel-item video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-ink-black);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-button);
  cursor: pointer;
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.carousel-btn:hover {
  transform: translateY(-50%) translate(-2px, 2px);
  box-shadow: 2px -2px 0px 0px var(--color-charcoal);
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

.view-all-btn {
  margin-top: 24px;
  width: 100%;
}

/* ══════════════════════════════
   MODAL
   ══════════════════════════════ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.modal-content {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  position: relative;
}

.close-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-pure-white);
  background: transparent;
  color: var(--color-pure-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 0.7;
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.modal-item {
  border-radius: var(--radius-cards);
  overflow: hidden;
}

.modal-item img,
.modal-item video {
  width: 100%;
  border-radius: var(--radius-cards);
  cursor: pointer;
}

/* Fullscreen single image */
.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fullscreen-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.fullscreen-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.close-fullscreen {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-pure-white);
  background: transparent;
  color: var(--color-pure-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */

footer {
  padding: 48px 40px;
  text-align: center;
  background: var(--color-warm-paper);
  border-top: 1.5px solid rgba(0, 0, 0, 0.08);
}

footer .copyright {
  font-family: var(--font-manrope);
  font-size: var(--text-caption);
  color: var(--color-charcoal);
  opacity: 0.6;
}

/* ══════════════════════════════
   MRA PROJECT PAGE
   ══════════════════════════════ */

.project-overview,
.project-features,
.technical-specs,
.market-analysis {
  padding: var(--section-gap) 0;
}

.overview-content {
  max-width: 800px;
}

.overview-text {
  font-family: var(--font-manrope);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  color: var(--color-charcoal);
  margin-bottom: 40px;
}

.version-title {
  font-family: var(--font-simeiz);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  margin: 40px 0 24px;
  color: var(--color-ink-black);
}

/* Project images */
.project-image,
.version-gallery {
  margin-bottom: 32px;
}

.version-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photo-container {
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}

.photo-container:hover {
  transform: scale(1.02);
}

.project-photo,
.team-photo,
.gallery-photo {
  width: 100%;
  border-radius: 20px;
  border: 1.5px solid var(--color-dusty-sky);
  box-shadow: var(--shadow-card);
}

.photo-caption {
  font-family: var(--font-manrope);
  font-size: var(--text-caption);
  color: var(--color-charcoal);
  text-align: center;
  margin-top: 12px;
  opacity: 0.7;
}

/* Features grid */
.features-grid,
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card,
.spec-card,
.market-card {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.feature-card:hover,
.spec-card:hover,
.market-card:hover {
  transform: translate(-3px, 3px);
  box-shadow: 8px -8px 0px 0px var(--color-charcoal);
}

.feature-card i,
.highlight-card i {
  display: none; /* Hide Font Awesome icons — Dyotanya uses typography instead */
}

.feature-card h3,
.spec-card h3,
.market-card h3 {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-subheading);
  margin-bottom: 16px;
  color: var(--color-ink-black);
}

.feature-card p,
.spec-card p,
.market-card p {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: var(--leading-body);
}

.feature-card ul,
.spec-card ul,
.market-card ul {
  list-style: none;
  padding: 0;
}

.feature-card ul li,
.spec-card ul li,
.market-card ul li {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.feature-card ul li::before,
.spec-card ul li::before,
.market-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-dusty-sky);
}

/* Market content */
.market-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ══════════════════════════════
   CLUBS PAGE
   ══════════════════════════════ */

.robotics-club,
.gaming-club,
.talent-hunting {
  padding: var(--section-gap) 0;
}

.club-content {
  position: relative;
}

.club-info h3 {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-subheading);
  margin: 32px 0 16px;
  color: var(--color-ink-black);
}

.club-info h3:first-child {
  margin-top: 0;
}

.club-info p {
  font-family: var(--font-manrope);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  line-height: var(--leading-body);
  max-width: 800px;
}

.club-info ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
}

.club-info ul li {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.club-info ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-dusty-sky);
}

/* Team photos */
.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

/* FTC competition gallery */
.ftc-competition-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.ftc-competition-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  border: 1.5px solid var(--color-dusty-sky);
  box-shadow: 3px -3px 0px 0px var(--color-charcoal);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.ftc-competition-photo:hover {
  transform: translate(-2px, 2px);
  box-shadow: 5px -5px 0px 0px var(--color-charcoal);
}

/* Game demo */
.game-demo {
  margin: 32px 0;
}

.video-container {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 16px;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: none;
}

.demo-video {
  width: 100%;
  border-radius: 20px;
}

.video-caption {
  font-family: var(--font-manrope);
  font-size: var(--text-caption);
  color: var(--color-charcoal);
  text-align: center;
  margin-top: 12px;
  opacity: 0.7;
}

/* Project features nested in clubs */
.gaming-club .project-features {
  padding: 0;
}

/* ══════════════════════════════
   PUBLIC/MEDIA PRESENT PAGE
   ══════════════════════════════ */

.festival-overview,
.speech-highlights,
.speech-photos,
.media-coverage,
.collaboration,
.speech-transcript,
.impact-statement {
  padding: var(--section-gap) 0;
}

/* Highlights grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.highlight-card {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
  counter-increment: highlight;
}

.highlight-card::before {
  content: counter(highlight, decimal-leading-zero);
  font-family: var(--font-simeiz);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  color: var(--color-dusty-sky);
  opacity: 0.4;
  position: absolute;
  top: 20px;
  right: 24px;
}

.highlight-card:hover {
  transform: translate(-3px, 3px);
  box-shadow: 8px -8px 0px 0px var(--color-charcoal);
}

.highlights-grid {
  counter-reset: highlight;
}

.highlight-card h3 {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-subheading);
  margin-bottom: 16px;
  color: var(--color-ink-black);
}

.highlight-card p {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: var(--leading-body);
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Event details */
.event-details {
  margin-top: 24px;
  padding: 24px 32px;
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-card);
}

.event-details p {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: 1.8;
}

.event-details strong {
  color: var(--color-ink-black);
}

/* Media content */
.media-content {
  max-width: 800px;
}

.video-section h3 {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  margin-bottom: 20px;
}

/* Collaboration */
.collaboration-content {
  max-width: 800px;
}

.collaboration-card {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
}

.collaboration-card h3 {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  margin-bottom: 16px;
}

.collaboration-card p {
  font-family: var(--font-manrope);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  line-height: var(--leading-body);
}

/* Speech transcript */
.transcript-content {
  max-width: 800px;
  margin: 0 auto;
}

.speech-text {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
}

.speech-paragraph {
  font-family: var(--font-manrope);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  line-height: var(--leading-body);
  margin-bottom: 24px;
}

.speech-paragraph:last-child {
  margin-bottom: 0;
}

.speech-paragraph.emphasis {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  font-style: italic;
  color: var(--color-ink-black);
  line-height: var(--leading-subheading);
}

.speech-paragraph.closing {
  font-family: var(--font-simeiz);
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-light);
  font-style: italic;
  color: var(--color-ink-black);
  text-align: center;
  margin-top: 40px;
}

/* Impact quote */
.impact-content {
  max-width: 800px;
  margin: 0 auto;
}

.impact-quote {
  background: var(--surface-card);
  border: 1.5px solid var(--color-dusty-sky);
  border-radius: var(--radius-cards);
  padding: 64px var(--card-padding);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.impact-quote::before {
  content: '"';
  font-family: var(--font-simeiz);
  font-size: 120px;
  font-weight: var(--font-weight-light);
  color: var(--color-dusty-sky);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 32px;
  line-height: 1;
}

.impact-quote p {
  font-family: var(--font-simeiz);
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-light);
  font-style: italic;
  line-height: var(--leading-subheading);
  color: var(--color-ink-black);
  margin-bottom: 20px;
}

.impact-quote cite {
  font-family: var(--font-manrope);
  font-size: var(--text-body-sm);
  font-style: normal;
  color: var(--color-charcoal);
  opacity: 0.7;
}

/* ══════════════════════════════
   SECTION REVEAL ANIMATION
   ══════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   SVG SQUIGGLE CONNECTORS
   ══════════════════════════════ */

.section-squiggle {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 60px;
  margin: 0 auto;
  overflow: visible;
}

.section-squiggle path {
  stroke: var(--color-ink-black);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.section-squiggle.visible path {
  stroke-dashoffset: 0;
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

@media (max-width: 1024px) {
  .hero .name,
  .project-title,
  .clubs-hero .section-title,
  .music-festival-hero .section-title {
    font-size: 56px;
  }

  .section-title {
    font-size: 36px;
  }

  .about-grid,
  .features-grid,
  .specs-grid,
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .ftc-competition-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  nav .nav-link {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .hero .name,
  .project-title,
  .clubs-hero .section-title,
  .music-festival-hero .section-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 30px;
  }

  .container {
    padding: 0 24px;
  }

  .about-content {
    padding: 0 24px;
  }

  .portfolio-container {
    padding: 0 24px;
  }

  .portfolio-section > .section-title {
    padding: 0 24px;
  }

  .about-grid,
  .features-grid,
  .specs-grid,
  .highlights-grid,
  .market-content,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .team-photos {
    grid-template-columns: 1fr;
  }

  .version-gallery {
    grid-template-columns: 1fr;
  }

  .ftc-competition-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-card,
  .feature-card,
  .spec-card,
  .market-card,
  .highlight-card {
    padding: 32px;
  }

  nav .nav-link {
    font-size: 28px;
  }

  .hero,
  .project-hero,
  .clubs-hero,
  .music-festival-hero {
    padding: 100px 24px 60px;
    min-height: 70vh;
  }

  .language-switch {
    right: 80px;
    top: 20px;
  }

  header {
    padding: 20px 24px;
  }

  .impact-quote {
    padding: 40px 24px;
  }

  .speech-text {
    padding: 32px 24px;
  }

  .speech-paragraph.emphasis {
    font-size: var(--text-body-lg);
  }

  .speech-paragraph.closing {
    font-size: var(--text-subheading);
  }
}

@media (max-width: 480px) {
  .hero .name,
  .project-title,
  .clubs-hero .section-title,
  .music-festival-hero .section-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .ftc-competition-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .carousel-container {
    aspect-ratio: 3 / 2;
  }

  .pill-btn,
  .view-all-btn {
    padding: 16px 32px;
    font-size: var(--text-caption);
  }

  .lang-btn {
    width: 40px;
    height: 40px;
  }

  .hamburger {
    width: 40px;
    height: 40px;
  }

  .language-switch {
    right: 70px;
  }

  nav .nav-link {
    font-size: 22px;
  }
}