/* ============================================
   TEDxSelwynHouseSchool Youth — Stylesheet
   Style: Motion-Driven × Swiss Modernism × TED
   Colors: Red #e62b1e · Black #000 · White #fff
   Font: Helvetica · Base unit: 8px
   ============================================ */

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

:root {
  --ted-red:        #e62b1e;
  --ted-red-dark:   #c41e13;
  --ted-red-light:  rgba(230, 43, 30, 0.08);
  --ted-red-mid:    rgba(230, 43, 30, 0.15);
  --black:          #000000;
  --dark:           #111111;
  --gray-800:       #222222;
  --gray-700:       #444444;
  --gray-500:       #777777;
  --gray-400:       #999999;
  --gray-300:       #bbbbbb;
  --gray-200:       #e0e0e0;
  --gray-100:       #f5f5f5;
  --gray-50:        #fafafa;
  --white:          #ffffff;
  --font:           'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* 8px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;

  /* Motion tokens */
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in:     cubic-bezier(0.4, 0.0, 1, 1);
  --ease-std:    cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    150ms;
  --dur-std:     300ms;
  --dur-slow:    500ms;
  --dur-reveal:  800ms;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Accessibility: prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .slide-left, .slide-right, .scale-in, .text-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .marquee-track { animation: none !important; }
}

a { text-decoration: none; color: inherit; transition: color var(--dur-std) var(--ease-std); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

a, button { min-height: 44px; min-width: 44px; }
a { display: inline-flex; align-items: center; }
nav a, .footer-nav a, .footer-brand a, .cta-link { display: inline-flex; }
a, button, [role="button"], label[for], select { cursor: pointer; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ted-red);
  outline-offset: 3px;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--s4); }

/* --- Utility --- */
.text-red   { color: var(--ted-red); }
.text-white { color: var(--white); }
.text-gray  { color: var(--gray-400); }
.bg-white   { background: var(--white); }
.bg-light   { background: var(--gray-50); }
.bg-black   { background: var(--black); color: var(--white); }
.link-red   { color: var(--ted-red); text-decoration: underline; text-underline-offset: 3px; }
.link-red:hover { color: var(--ted-red-dark); }
.content-narrow { max-width: 780px; margin: 0 auto; }

/* ============================================
   ANIMATION SYSTEM — GPU-accelerated
   ============================================ */

/* Fade up (default) */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Slide from left */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-spring);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Text reveal — clip-path wipe */
.text-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 100ms);
}
.text-reveal.visible { clip-path: inset(0 0% 0 0); }

/* Line draw — accent lines that animate width */
.line-draw {
  width: 0;
  transition: width 1s var(--ease-out);
}
.line-draw.visible { width: 100%; }

/* Legacy delay classes */
.delay-1 { --stagger: 1; }
.delay-2 { --stagger: 2; }
.delay-3 { --stagger: 3; }

/* ============================================
   MARQUEE TICKER
   ============================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--ted-red);
  padding: var(--s1) 0;
}

.marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
  will-change: transform;
}

.marquee-track span {
  display: inline-block;
  padding: 0 var(--s6);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: var(--s2) 0;
  transition: background var(--dur-std) var(--ease-std),
              padding var(--dur-std) var(--ease-std),
              box-shadow var(--dur-std) var(--ease-std),
              transform var(--dur-std) var(--ease-std);
}

.header.scrolled,
.header.scrolled-always {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* Transparent header that blends into the dark hero and
   stays one consistent colour (no shift to white on scroll). */
.header--blend {
  background: transparent;
  box-shadow: none;
}
.header--blend.scrolled,
.header--blend.scrolled-always {
  background: #000;
  box-shadow: none;
}
@media (min-width: 769px) {
  .header--blend .nav-links li > a { color: rgba(255,255,255,0.82); }
  .header--blend .nav-links li > a:hover,
  .header--blend .nav-links li > a.active { color: var(--ted-red); }
}
.header--blend .hamburger span { background: #fff; }

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: inline-flex; align-items: center;
  min-height: unset; text-decoration: none;
  transition: transform var(--dur-std) var(--ease-spring);
}
.logo:hover { transform: scale(1.03); }
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-ted {
  font-family: var(--font); font-size: 1.5rem; font-weight: 900;
  color: var(--ted-red); line-height: 1; letter-spacing: -0.02em;
}
.logo-ted sup { font-size: 0.55em; vertical-align: super; color: var(--ted-red); font-weight: 900; }
.logo-school { font-size: 0.72rem; line-height: 1.25; color: var(--dark); font-weight: 400; display: block; min-height: unset; }
.logo-youth  { font-size: 0.72rem; font-weight: 700; color: var(--dark); line-height: 1.25; display: block; min-height: unset; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: var(--s3); }

.nav-links li > a {
  font-size: 0.82rem; font-weight: 500; color: var(--gray-700);
  letter-spacing: 0.01em; position: relative; padding-bottom: 2px;
  min-height: unset;
  transition: color var(--dur-std) var(--ease-std);
}

.nav-links li > a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--ted-red);
  transition: width var(--dur-std) var(--ease-out);
}

.nav-links li > a:hover, .nav-links li > a.active { color: var(--ted-red); }
.nav-links li > a.active::after, .nav-links li > a:hover::after { width: 100%; }

.nav-btn {
  background: var(--ted-red) !important; color: var(--white) !important;
  padding: 0.5rem 1.25rem !important; border-radius: 0 !important;
  font-weight: 700 !important; font-size: 0.78rem !important;
  letter-spacing: 0.05em !important; text-transform: uppercase !important;
  transition: background var(--dur-std) var(--ease-std), transform var(--dur-fast) var(--ease-spring) !important;
  min-height: 44px !important;
}
.nav-btn::after { display: none !important; }
.nav-btn:hover { background: var(--ted-red-dark) !important; transform: translateY(-2px) scale(1.02); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: var(--s1);
  z-index: 1001; min-height: unset;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: transform var(--dur-std) var(--ease-std), opacity var(--dur-std) var(--ease-std); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS — with micro-interactions
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.85rem 1.75rem; border-radius: 0;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font); min-height: 44px;
  border: none; cursor: pointer; position: relative; overflow: hidden;
  transition: all var(--dur-std) var(--ease-std);
}

/* Animated shine sweep on hover */
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left var(--dur-slow) var(--ease-out);
}
.btn:hover::before { left: 100%; }

.btn-red { background: var(--ted-red); color: var(--white); }
.btn-red:hover {
  background: var(--ted-red-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(230, 43, 30, 0.35);
}

.btn-red-outline { background: transparent; color: var(--ted-red); border: 2px solid var(--ted-red); }
.btn-red-outline:hover { background: var(--ted-red); color: var(--white); transform: translateY(-3px); }

.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); transform: translateY(-3px); }

.btn-full { width: 100%; justify-content: center; }

/* ============================================
   HERO — Parallax + Kinetic Type
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  overflow: hidden;
}

/* Parallax geometric layers */
.hero-bg-layer {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; will-change: transform;
}

.hero-bg-layer--1 {
  background: var(--gray-50);
  clip-path: polygon(55% 0%, 100% 0%, 100% 100%, 35% 100%);
}

.hero-bg-layer--2 {
  opacity: 0.5;
}

.hero-bg-layer--2::before {
  content: ''; position: absolute;
  top: 10%; right: 5%;
  width: 3px; height: 160px;
  background: var(--ted-red);
}

.hero-bg-layer--2::after {
  content: ''; position: absolute;
  bottom: 15%; left: 8%;
  width: 80px; height: 3px;
  background: var(--ted-red);
}

.hero-bg-layer--3::before {
  content: ''; position: absolute;
  top: 20%; left: 15%;
  width: 200px; height: 200px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  opacity: 0.3;
}

.hero-bg-layer--3::after {
  content: ''; position: absolute;
  bottom: 25%; right: 12%;
  width: 120px; height: 120px;
  border: 1px solid var(--ted-red-mid);
  opacity: 0.4;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px;
  padding: var(--s12) var(--s4) var(--s4);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ted-red);
  margin-bottom: var(--s3);
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--ted-red);
  border-radius: 0;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--ted-red); border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(4.2rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: var(--s3);
}

/* Animated underline on the red text */
.hero-title .text-red {
  position: relative;
  display: inline-block;
}
.hero-title .text-red::after {
  content: ''; position: absolute;
  bottom: 0.05em; left: 0;
  width: 0; height: 4px;
  background: var(--ted-red);
  transition: width 1.2s var(--ease-out);
  transition-delay: 0.6s;
}
.hero-title.visible .text-red::after { width: 100%; }

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gray-500); max-width: 520px;
  margin: 0 auto var(--s5); line-height: 1.75; font-weight: 400;
}

.hero-cta { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute; bottom: var(--s4);
  left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--ted-red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ============================================
   STATS BAR — with counter animation
   ============================================ */
.stats-bar {
  background: var(--black); color: var(--white);
  padding: var(--s3) 0;
  border-top: 3px solid var(--ted-red);
  position: relative; overflow: hidden;
}

.stats-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}

.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s2) var(--s8);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--dur-std) var(--ease-spring);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { transform: scale(1.08); }

.stat-number {
  font-size: 2.7rem; font-weight: 900;
  color: var(--ted-red); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-400); margin-top: 4px;
}

/* ============================================
   PAGE HERO — with animated accent bar
   ============================================ */
.page-hero {
  padding: calc(var(--s12) + var(--s6)) 0 var(--s10);
  background: var(--black); color: var(--white);
  text-align: left; position: relative; overflow: hidden;
}

/* Grayscale facade backdrop — ties inner pages to the landing */
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('images/selwyn-facade.jpg') center 35% / cover no-repeat;
  filter: grayscale(100%) brightness(0.32) contrast(1.05);
  z-index: 0;
}

/* Red + dark veil over the facade */
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(230,43,30,0.22) 0%, transparent 48%),
    linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.7) 100%);
}

/* Bottom accent line — draws on page load */
.page-hero .container::after {
  content: ''; position: absolute;
  bottom: calc(var(--s10) * -1 + 6px); left: var(--s4); right: var(--s4);
  height: 2px;
  background: var(--ted-red);
  transform-origin: left;
  animation: draw-line 1s var(--ease-out) forwards;
}

@keyframes draw-line {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.96;
  margin-bottom: var(--s3);
}

.page-hero-desc {
  font-size: 1.02rem; color: rgba(255,255,255,0.72);
  max-width: 520px; margin-top: var(--s3); line-height: 1.7;
  padding-left: var(--s4); border-left: 2px solid var(--ted-red);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--s12) 0; }

/* Animated section divider */
.section + .section { position: relative; }

.section-header { text-align: center; margin-bottom: var(--s8); }

.section-header h2 {
  font-family: var(--font);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  margin-bottom: var(--s2); color: var(--black);
}
.bg-black .section-header h2 { color: var(--white); }

.section-desc {
  color: var(--gray-500); font-size: 1.1rem;
  max-width: 480px; margin: 0 auto; line-height: 1.7;
}

/* Label tag — with animated accent line */
.label-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ted-red); margin-bottom: var(--s3);
  position: relative; padding-left: var(--s4);
}
.label-tag::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 2px;
  background: var(--ted-red);
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.two-col { display: grid; grid-template-columns: 260px 1fr; gap: var(--s10); align-items: start; }
.col-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--s3); color: var(--black); }
.col-content p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.85; margin-bottom: var(--s2); }

/* ============================================
   INFO CARDS — with hover lift + glow
   ============================================ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }

.info-card {
  padding: var(--s6) var(--s4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--ted-red);
  border-radius: 0; text-align: center;
  cursor: default; position: relative;
  transition: transform var(--dur-std) var(--ease-spring),
              box-shadow var(--dur-std) var(--ease-out),
              border-color var(--dur-std) var(--ease-std);
}

.info-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(230, 43, 30, 0.1), 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--ted-red);
}

.info-icon { width: 36px; height: 36px; margin: 0 auto var(--s3); color: var(--ted-red); transition: transform var(--dur-std) var(--ease-spring); }
.info-card:hover .info-icon { transform: scale(1.15) rotate(-5deg); }

.info-card h3 {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: var(--s1); color: var(--gray-500);
}
.info-card p { font-size: 0.95rem; color: var(--dark); line-height: 1.6; font-weight: 500; }

/* ============================================
   CTA GRID
   ============================================ */
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); max-width: 700px; margin: 0 auto; }

.cta-card {
  padding: var(--s5) var(--s4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0; position: relative; overflow: hidden;
  cursor: default;
  transition: all var(--dur-std) var(--ease-std);
}

/* Animated left border that grows on hover */
.cta-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--ted-red);
  transition: height var(--dur-slow) var(--ease-out);
}
.cta-card:hover::before { height: 100%; }

/* Subtle glow on hover */
.cta-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at top left, rgba(230,43,30,0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-std) var(--ease-std);
  pointer-events: none;
}
.cta-card:hover::after { opacity: 1; }

.cta-card:hover {
  border-color: rgba(230, 43, 30, 0.25);
  transform: translateY(-4px);
}

.cta-card h3 { font-size: 1.45rem; font-weight: 900; margin-bottom: var(--s1); color: var(--white); letter-spacing: -0.02em; }
.cta-card p { font-size: 0.88rem; color: var(--gray-400); line-height: 1.65; margin-bottom: var(--s3); }

.cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ted-red); min-height: unset;
  transition: gap var(--dur-std) var(--ease-out), color var(--dur-std) var(--ease-std);
}
.cta-link:hover { gap: 12px; }

/* ============================================
   SPEAKERS PREVIEW
   ============================================ */
.speakers-coming-soon {
  text-align: center; padding: var(--s10) var(--s4);
  border: 2px solid var(--gray-200); border-radius: 0;
  position: relative;
  transition: border-color var(--dur-std) var(--ease-std);
}
.speakers-coming-soon:hover { border-color: var(--ted-red); }

.speakers-coming-soon::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--ted-red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out);
}
.speakers-coming-soon:hover::before { transform: scaleX(1); }

.speakers-coming-soon p { font-size: 1rem; color: var(--gray-500); margin-bottom: var(--s3); }

/* ============================================
   SPEAKERS PAGE
   ============================================ */
.speakers-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin-bottom: var(--s8); }

.speaker-card-full {
  display: flex; gap: var(--s3); padding: var(--s4);
  border: 1px solid var(--gray-200); border-radius: 0;
  border-left: 3px solid transparent;
  cursor: default; position: relative; overflow: hidden;
  transition: border-color var(--dur-std) var(--ease-std),
              transform var(--dur-std) var(--ease-spring),
              box-shadow var(--dur-std) var(--ease-out);
}

.speaker-card-full:hover {
  border-left-color: var(--ted-red);
  transform: translateY(-4px) translateX(4px);
  box-shadow: -8px 12px 40px rgba(0,0,0,0.08);
}

.speaker-photo {
  flex-shrink: 0; width: 160px; height: 160px; border-radius: 0;
  overflow: hidden; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
  transition: transform var(--dur-std) var(--ease-spring);
}
.speaker-card-full:hover .speaker-photo { transform: scale(1.05); }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.speaker-details { display: flex; flex-direction: column; justify-content: center; }
.speaker-details h3 { font-size: 1.25rem; font-weight: 800; color: var(--black); margin-bottom: 4px; letter-spacing: -0.02em; }
.speaker-title { font-size: 0.75rem; font-weight: 700; color: var(--ted-red); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--s1); }
.speaker-desc { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

.center-cta { text-align: center; padding-top: var(--s4); }
.center-cta p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: var(--s2); }

/* ============================================
   TEAM PAGE
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }

.team-card {
  text-align: center; padding: var(--s5) var(--s3);
  border: 1px solid var(--gray-200); border-radius: 0;
  border-bottom: 3px solid transparent;
  cursor: default; position: relative; overflow: hidden;
  transition: border-color var(--dur-std) var(--ease-std),
              transform var(--dur-std) var(--ease-spring),
              box-shadow var(--dur-std) var(--ease-out);
}

.team-card:hover {
  border-bottom-color: var(--ted-red);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.team-avatar { margin-bottom: var(--s3); }

.team-avatar img {
  width: 120px; height: 120px; margin: 0 auto;
  object-fit: cover; object-position: top center;
  display: block; border-radius: 0;
  border: 1px solid var(--gray-200);
  transition: transform var(--dur-std) var(--ease-spring);
}
.team-card:hover .team-avatar img { transform: scale(1.06); }

.avatar-placeholder {
  width: 80px; height: 80px; margin: 0 auto;
  color: var(--gray-300); background: var(--gray-100); border-radius: 0;
  display: flex; align-items: center; justify-content: center; padding: 12px;
  transition: transform var(--dur-std) var(--ease-spring), background var(--dur-std) var(--ease-std);
}
.team-card:hover .avatar-placeholder { transform: scale(1.08) rotate(-3deg); background: var(--ted-red-light); }

.team-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--black); margin-bottom: 4px; letter-spacing: -0.01em; }
.team-role { font-size: 0.65rem; color: var(--ted-red); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.team-bio { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; margin-top: var(--s1); }

/* ============================================
   SCHEDULE
   ============================================ */
.schedule-notice {
  padding: var(--s3) var(--s4);
  background: var(--ted-red-light); border-left: 4px solid var(--ted-red);
  border-radius: 0; margin-bottom: var(--s6);
}
.schedule-notice p { color: var(--gray-700); font-size: 0.9rem; line-height: 1.6; }

.schedule-timeline { position: relative; margin-bottom: var(--s6); }
.schedule-timeline::before {
  content: ''; position: absolute; left: 88px; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}

.schedule-item { display: flex; gap: var(--s4); padding: var(--s3) 0; position: relative; }

/* Square dot with pulse animation on hover */
.schedule-item::before {
  content: ''; position: absolute; left: 82px; top: var(--s3);
  width: 14px; height: 14px;
  background: var(--white); border: 3px solid var(--ted-red); border-radius: 0;
  z-index: 1;
  transition: background var(--dur-std) var(--ease-std), transform var(--dur-std) var(--ease-spring);
}
.schedule-item:hover::before { background: var(--ted-red); transform: scale(1.3) rotate(45deg); }

.schedule-time {
  flex-shrink: 0; width: 72px;
  font-size: 0.78rem; font-weight: 800; color: var(--ted-red);
  text-align: right; padding-top: 0.2rem; letter-spacing: 0.02em;
}

.schedule-content { padding-left: var(--s3); }
.schedule-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--black); margin-bottom: 4px; letter-spacing: -0.02em; }
.schedule-content p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

.schedule-tag {
  display: inline-flex; align-items: center; margin-top: var(--s1);
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ted-red); background: var(--ted-red-light);
  padding: 3px 10px; border-radius: 0;
}
.schedule-tag--break {
  color: var(--gray-500); background: var(--gray-100);
}
.speaker-talk-title {
  font-size: 0.92rem; color: var(--gray-700);
  line-height: 1.5; font-style: italic; margin-top: 2px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); max-width: 640px; margin: 0 auto; }

.contact-info h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: var(--s2); color: var(--black); letter-spacing: -0.04em; }
.contact-info > p { color: var(--gray-500); line-height: 1.7; margin-bottom: var(--s5); }

.contact-detail {
  display: flex; gap: var(--s2); margin-bottom: var(--s3);
  align-items: flex-start; padding: var(--s3);
  border: 1px solid var(--gray-200); border-left: 3px solid var(--ted-red); border-radius: 0;
  transition: box-shadow var(--dur-std) var(--ease-out), transform var(--dur-std) var(--ease-spring);
}
.contact-detail:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  transform: translateX(4px);
}

.contact-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--ted-red); margin-top: 2px; }
.contact-detail h4 { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--black); margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; }
.contact-detail a:hover { color: var(--ted-red); }

/* ============================================
   CONTENT BLOCKS (About)
   ============================================ */
.content-block {
  margin-bottom: var(--s8); padding-bottom: var(--s8);
  border-bottom: 1px solid var(--gray-200);
}
.content-block:last-child { border-bottom: none; }
.content-block h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--black); margin-bottom: var(--s4); letter-spacing: -0.03em; line-height: 1.08; }
.content-block p { font-size: 1.05rem; color: var(--gray-700); line-height: 1.85; margin-bottom: var(--s2); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black); color: var(--white);
  padding: var(--s10) 0 var(--s5);
  border-top: 3px solid var(--ted-red);
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s8); margin-bottom: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo { margin-bottom: var(--s2); }
.footer-brand .logo img { height: 44px; width: auto; display: block; }

.footer-license { font-size: 0.78rem; color: var(--gray-500); line-height: 1.7; max-width: 300px; }

.footer-nav h4, .footer-event h4 {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: var(--s3); color: var(--white);
}

.footer-nav ul { display: flex; flex-direction: column; gap: var(--s1); }
.footer-nav a {
  font-size: 0.85rem; color: var(--gray-400);
  transition: color var(--dur-std) var(--ease-std), transform var(--dur-fast) var(--ease-spring);
  min-height: unset; padding: 4px 0;
}
.footer-nav a:hover { color: var(--white); transform: translateX(4px); }

.footer-event p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 4px; }

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.72rem; color: var(--gray-500); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr; max-width: 480px; }
  .speakers-grid-full { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .footer-brand { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 300px; height: 100vh;
    background: var(--white); flex-direction: column;
    padding: 5rem var(--s4) var(--s4); gap: var(--s2);
    transition: right var(--dur-slow) var(--ease-out);
    box-shadow: -4px 0 32px rgba(0,0,0,0.08);
    z-index: 1000; align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .two-col { grid-template-columns: 1fr; gap: var(--s5); }
  .info-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; max-width: 100%; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }

  .schedule-timeline::before { left: 10px; }
  .schedule-item { gap: var(--s2); flex-direction: column; padding-left: var(--s4); }
  .schedule-item::before { left: 4px; top: 0.3rem; }
  .schedule-time { width: auto; text-align: left; }
  .schedule-content { padding-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-brand { grid-column: span 1; }

  .section { padding: var(--s10) 0; }
  .page-hero { padding: var(--s10) 0 var(--s6); text-align: center; }
  .page-hero h1 { font-size: clamp(2.4rem, 9vw, 3.8rem); }

  .hero-bg-layer--1 { clip-path: polygon(65% 0%, 100% 0%, 100% 100%, 45% 100%); }

  .stat-item { padding: var(--s1) var(--s3); }
  .stat-number { font-size: 1.6rem; }

  .marquee-track span { font-size: 0.65rem; padding: 0 var(--s4); }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.03em; }
  .container { padding: 0 var(--s2); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; }
  .stat-item:last-child { border-bottom: none; }
}
