* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --paper: #f5f2ea;
  --ink: #111;
  --white: #fff;
  --rule: 1px solid var(--ink);
  --nav-w: 190px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  /* Global extra scroll distance: 0 = no hold, 1 = original, larger = stickier. */
  --section-stickiness: 0.35;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
}

h1,
h2,
h3,
.floating-nav a,
.faq-question,
.eyebrow {
  font-family: "Montserrat Alternates", sans-serif;
}

section,
footer {
  border-top: var(--rule);
}

.floating-nav {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 80;
  width: var(--nav-w);
  padding: 0.95rem 1rem;
  background: var(--white);
  border: var(--rule);
}

.floating-nav h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.floating-nav a {
  display: block;
  margin: 0.2rem 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
}

.news-ticker {
  position: fixed;
  right: -30px;
  bottom: 250px;
  z-index: 0;
  display: block;
  width: min(470px, calc(100vw - 36px));
  overflow: hidden;
  border: var(--rule);
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(0.78rem, 2.7vw, 0.92rem);
  line-height: 1;
  text-decoration: none;
  transform: rotate(-45deg);
  transform-origin: right bottom;
}

.news-ticker-window {
  display: block;
  overflow: hidden;
  padding: 0.7rem 0;
  white-space: nowrap;
}

.news-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-duration, 10s) linear infinite;
}

.news-ticker-group {
  display: flex;
  flex: none;
  width: max-content;
}

.news-ticker-item {
  display: block;
  flex: none;
  padding-right: 0rem;
}

.news-ticker-item::after {
  content: "\00a0 \00a0 \00a0 \00a0 ◆ \00a0 \00a0 \00a0 ";
}

.news-ticker:hover .news-ticker-track,
.news-ticker:focus-visible .news-ticker-track {
  animation-play-state: paused;
}

.news-ticker:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

.intro,
.outro {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem var(--gutter);
  text-align: center;
}

.intro-inner {
  width: 100%;
  max-width: 960px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 8vw, 6.4rem);
  line-height: 0.94;
}

.intro-copy {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.3;
}

.story-section {
  position: relative;
  min-height: calc(100vh + 120vh * var(--section-stickiness));
}

.sticky-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.section-warm .sticky-stage {
  background: linear-gradient(180deg, #f2eadf, #e8dfcf);
}

.section-cool .sticky-stage {
  background: linear-gradient(180deg, #e4eaf0, #d7dde5);
}

.section-neutral .sticky-stage {
  background: linear-gradient(180deg, #ece8df, #dfd9cf);
}

.text-block,
.image-block,
.media-cluster {
  position: absolute;
  top: 50%;
  will-change: transform;
}

.text-block {
  left: 8%;
  width: min(55vw, 890px);
  background: var(--white);
  border: var(--rule);
  padding: 2rem;
  z-index: 3;
}

.text-block h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  line-height: 0.98;
}

.text-block p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.42;
}

.text-block p + p { 
  margin-top: 0.45em; 
}

.text-block h3 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1.45rem;
  line-height: 1.05;
}

.image-block {
  right: 8%;
  width: min(37vw, 560px);
  min-height: 42vh;
  z-index: 2;
}

.media-cluster {
  right: 4%;
  width: min(44vw, 720px);
  height: 56vh;
  z-index: 2;
}

.about-cluster,
.organizers-cluster {
  width: min(46vw, 760px);
  height: 60vh;
  right: 3%;
}

.keynote-cluster {
  width: min(40vw, 620px);
  height: 54vh;
  right: 5%;
}

.wforum-cluster {
  width: min(39vw, 600px);
  height: 50vh;
  right: 5%;
}

.floating-card {
  position: absolute;
  margin: 0;
  background: var(--white);
  border: var(--rule);
  overflow: hidden;
}

.floating-card img {
  display: block;
  width: 100%;
  height: auto;
}

.card-lg {
  width: 76%;
  right: 0;
  top: 10%;
}

.card-sm {
  width: 44%;
  left: 0;
}

.card-xs {
  width: 30%;
  left: 31%;
}

.offset-top {
  top: -4%;
}

.offset-bottom {
  bottom: 0;
}

.portrait-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  overflow: visible;
}

.portrait-card img,
.portrait-card figcaption {
  border: var(--rule);
  background: var(--white);
}

.portrait-card img {
  width: 100%;
  height: auto;
  display: block;
}

.portrait-card figcaption {
  margin: 0;
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  line-height: 1.2;
  border-top: none;
}

.portrait-large {
  width: 46%;
  top: 8%;
  right: 19%;
  z-index: 2;
}

.portrait-medium {
  width: 36%;
  right: -2%;
  bottom: 2%;
  z-index: 3;
}

.program-section {
  padding: 6rem 1.5rem;
  overflow: clip;
  position: relative;
}

.program-layout {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.program-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.program-intro h2 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0 0 1rem;
}

.program-intro p {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0;
}

.program-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.program-day {
  position: relative;
  background: #fff;
  border: 1px solid #111;
  padding: 1.4rem 1.2rem;
  will-change: transform;
  overflow: hidden;
}

.program-day h3 {
  margin: 0 0 0.3rem;
  font-size: 1.6rem;
}

.program-day-subtitle {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.program-day ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 1.15rem;
}

.program-day li + li {
  margin-top: 0.4rem;
}

.program-day p:last-child {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.program-animated {
  position: relative;
  min-height: calc(100vh + 80vh * var(--section-stickiness));
}

.program-animated .program-layout {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.faq-section {
  min-height: 100svh;
}

.faq-stage {
  position: relative;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  display: grid;
  place-items: center;
}

.faq-wrap {
  width: min(980px, 100%);
  padding: 4rem var(--gutter);
}

.faq {
  width: min(780px, 100%);
  margin: 0 auto;
}

.faq h2,
.footer-inner h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 0.98;
}

.faq-item {
  width: min(800px, 100%);
  margin: 0 auto 1rem;
  border: var(--rule);
  background: var(--white);
  text-align: left;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

.faq-icon {
  display: inline-block;
  min-width: 1em;
  text-align: center;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 1rem 1.15rem;
  border-top: var(--rule);
  font-size: 1.2rem;
  line-height: 1.4;
}

.faq-answer p:first-child {
  margin-top: 0;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem var(--gutter) max(1rem, env(safe-area-inset-bottom));
  text-align: center;
  border-bottom: var(--rule);
}

.footer-logos > p {
  margin: 0;
}

.footer-inner {
  width: min(980px, 100%);
  text-align: center;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.logo-box {
  max-width: 100%;
  padding: 1rem 1.4rem;
  border: var(--rule);
  background: var(--white);
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1rem;
}

.logo-box img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(240px, 100%);
  max-height: 110px;
  margin: 0 auto;
}

@media (min-width: 981px) {
  .floating-card {
    width: min(var(--image-width, 100%), 100%);
  }

  #keynotes:not(.flow-section) .text-block {
    left: max(22.5%, calc((100% - 890px) / 2));
  }

  #keynotes:not(.flow-section) .keynote-cluster {
    right: 3%;
    width: 94%;
  }

  #keynotes:not(.flow-section) .portrait-card {
    width: min(var(--image-width), 18vw);
  }

  #keynotes:not(.flow-section) .speaker-one {
    left: 0;
    right: auto;
  }

  #keynotes:not(.flow-section) .speaker-two {
    right: 0;
  }
}

/* The track adds a short hold, then lets even a tall section scroll in full. */
.section-track.has-pause > section,
.section-track.has-pause > footer {
  position: sticky;
  top: 0;
}

/* Responsive layout: content determines height; motion is an enhancement. */
.intro-inner, .program-day, .faq-wrap, .footer-inner { min-width: 0; }
.nav-toggle { display: none; }

.story-section.flow-section { min-height: 100svh; }
.flow-section .sticky-stage {
  position: relative; height: auto; min-height: 100svh; overflow: clip;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; padding: 3rem var(--gutter);
}
.flow-section .text-block {
  position: relative; top: auto; left: auto; right: auto;
  order: 0; width: min(55vw, 890px); max-width: 100%;
}
.flow-section .media-cluster {
  position: relative; top: auto; left: auto; right: auto; order: 1;
  width: min(700px, 100%); height: auto;
  display: flex; flex-wrap: wrap; align-items: start; justify-content: center; gap: 1rem;
}
.flow-section .floating-card {
  position: relative; inset: auto; width: min(var(--image-width, 100%), 100%);
  max-width: 100%;
}
.flow-section .portrait-card { width: min(260px, calc(50% - 0.5rem)); }
.program-animated.flow-program { min-height: 100svh; display: flex; align-items: center; }
.flow-program .program-layout { position: relative; min-height: 0; }

@media (max-width: 980px) {
  .floating-nav { left: 12px; top: 12px; padding: 0; width: 150px; max-width: calc(100% - 24px); }
  .floating-nav a { font-size: 0.84rem; }
  .text-block p, .intro-copy, .faq-answer, .program-intro p,
  .program-day ul, .program-day p:last-child { font-size: 1.15rem; }
  .program-animated .program-layout { position: relative; min-height: auto; display: block; padding: 0; }
  .floating-nav h3 { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: 100%; min-height: 44px; padding: 0.65rem 0.85rem;
    font: 700 0.85rem "Montserrat Alternates", sans-serif;
    color: inherit; border: 0; background: transparent; cursor: pointer;
  }
  .nav-links { display: none; max-height: calc(100svh - 80px); overflow-y: auto; padding: 0 0.85rem 0.5rem; }
  .floating-nav.open .nav-links { display: block; }
  .floating-nav.open .faq-icon { transform: rotate(180deg); }
  .floating-nav a { display: flex; align-items: center; min-height: 44px; margin: 0; }
  .intro { min-height: 100svh; padding: 76px 0 0; grid-template-rows: 1fr auto; gap: 2rem; }
  .intro-inner { padding: 0 var(--gutter); }
  .news-ticker { z-index: 70; position: relative; inset: auto; width: 100%; margin: 0; transform: none; border-inline: 0; border-bottom: 0; text-align: left; }
  .text-block { padding: 1.25rem; }
  .text-block h2 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; }
  .text-block h3 { font-size: 1.35rem; line-height: 1.2; }
  .flow-section .text-block { width: min(620px, 100%); }
  .flow-section .media-cluster { width: min(620px, 100%); }
  .portrait-card figcaption { padding: 0.5rem; overflow-wrap: anywhere; }
  .program-section { padding: 3rem var(--gutter); }
  .program-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-stage { padding: 0; }
  .faq-wrap { padding-block: 3rem; }
  .faq-question { min-height: 44px; padding: 1rem; }
  .faq-answer { padding: 1rem; }
  .faq h2, .footer-inner h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
  .logo-row { gap: 0.75rem; }
  .logo-box { padding: 0.75rem; }
  .logo-box img { max-width: min(130px, 100%); max-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .news-ticker-track { animation: none; }
  .news-ticker-group[aria-hidden="true"] { display: none; }
  .text-block, .media-cluster, .floating-card, .program-day { transform: none !important; }
  .faq-icon { transition: none; }
}
