:root {
  color-scheme: light;
  --ink: #172329;
  --muted: #5c686a;
  --paper: #fffdf7;
  --paper-soft: #f4f8f3;
  --line: rgba(23, 35, 41, 0.14);
  --night: #101a1d;
  --night-2: #1b302f;
  --teal: #087978;
  --mint: #74b99a;
  --coral: #c95c47;
  --gold: #cf9b20;
  --plum: #654674;
  --blue: #2d6f9f;
  --shadow: 0 24px 60px rgba(18, 32, 33, 0.16);
  --radius: 8px;
  --max: 1180px;
  --heading: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfdf8 0%, #eef5f0 45%, #fffdf7 100%);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--teal);
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 900px;
  font-family: var(--heading);
  font-size: clamp(2.55rem, 4vw, 4.15rem);
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
  font-weight: 760;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  color: #f9fbf8;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 253, 247, 0.95);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(19, 39, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 121, 120, 0.95), rgba(201, 92, 71, 0.9)),
    var(--teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-mark span {
  width: 20px;
  height: 20px;
  border: 2px solid #fffdf7;
  border-top-color: transparent;
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand-kicker {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.brand-name {
  overflow: hidden;
  font-weight: 780;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.8vw, 1.2rem);
  font-size: 0.94rem;
  font-weight: 720;
}

.primary-nav a {
  position: relative;
  padding: 0.45rem 0.1rem;
  opacity: 0.86;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  color: #fbfff7;
  background:
    linear-gradient(135deg, rgba(16, 26, 29, 0.94), rgba(19, 60, 56, 0.87) 52%, rgba(75, 52, 79, 0.84)),
    var(--night);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

.prediction-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  max-width: var(--max);
  min-height: 80vh;
  margin: 0 auto;
  padding: 7.8rem clamp(1rem, 4vw, 2rem) 3.2rem;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
  max-width: 830px;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c46f;
}

.hero-lead {
  max-width: 760px;
  color: rgba(251, 255, 247, 0.86);
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.62;
}

.mobile-event-line {
  display: none;
  color: #f7c96d;
  font-weight: 780;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  font-weight: 780;
  line-height: 1.1;
}

.button-primary {
  background: #f7c96d;
  color: #1a2423;
  border-color: #f7c96d;
}

.button-primary:hover {
  color: #1a2423;
  background: #ffd98b;
}

.button-secondary {
  color: #fbfff7;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  color: #fbfff7;
  background: rgba(255, 255, 255, 0.16);
}

.event-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 25, 25, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.event-panel div {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.event-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-label {
  display: block;
  margin-bottom: 0.22rem;
  color: #9bd7c4;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  scroll-margin-top: 88px;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.section-copy {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  line-height: 1.5;
}

.overview-note {
  margin-top: clamp(2.2rem, 5vw, 4rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.overview-note p {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.58;
}

.question-section {
  color: #f8fbf5;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px),
    linear-gradient(110deg, #132021, #18443f 54%, #5d465f);
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.question-layout p:last-child {
  color: rgba(248, 251, 245, 0.86);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.topics-section {
  background: #fffdf7;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.topic-card,
.person-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(30, 50, 45, 0.06);
}

.topic-card {
  display: grid;
  gap: 1rem;
  min-height: 280px;
  padding: 1.25rem;
}

.topic-card-wide {
  grid-column: span 2;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(8, 121, 120, 0.08), rgba(201, 92, 71, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.topic-index {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.topic-card p,
.person-card p,
.program-intro p,
.impact-layout > div > p {
  color: var(--muted);
}

.program-section {
  background:
    linear-gradient(180deg, #eef5f0, #fbfdf8);
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.program-intro {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}

.schedule {
  display: grid;
  gap: 0.85rem;
}

.session-label {
  margin-top: 0.5rem;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper);
}

.schedule-row time {
  color: var(--teal);
  font-weight: 850;
  white-space: nowrap;
}

.schedule-row p {
  color: var(--muted);
}

.break-row {
  border-left-color: var(--gold);
}

.panel-row {
  border-left-color: var(--coral);
  background:
    linear-gradient(135deg, rgba(201, 92, 71, 0.09), rgba(207, 155, 32, 0.09)),
    var(--paper);
}

.speakers-section {
  padding: clamp(3.4rem, 6vw, 5.6rem) 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.9), rgba(244, 248, 243, 0.92)),
    #f8fbf6;
}

.speakers-section .section-heading,
.organizers-section .section-heading {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.speakers-section .section-heading h2,
.organizers-section .section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.15rem);
}

.speakers-grid,
.organizer-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.speakers-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}

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

.person-card {
  display: grid;
  position: relative;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 0.82rem 0.95rem;
  align-items: start;
  height: 100%;
  padding: 1.05rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 248, 0.96)),
    var(--paper);
  box-shadow: 0 16px 34px rgba(30, 50, 45, 0.07);
}

.speaker-card {
  grid-column: span 2;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 272px;
  padding: 1.12rem;
}

.speaker-card:nth-last-child(2):nth-child(4) {
  grid-column: 2 / span 2;
}

.speaker-card:last-child {
  grid-column: 4 / span 2;
}

.organizer-card {
  min-height: 235px;
}

.person-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  content: "";
  background: var(--teal);
  opacity: 0.78;
}

.person-photo {
  position: relative;
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 82px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  place-items: center;
  border: 1px solid rgba(23, 35, 41, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 121, 120, 0.95), rgba(45, 111, 159, 0.95)),
    #183437;
  box-shadow: 0 8px 18px rgba(23, 35, 41, 0.1);
}

.speaker-card .person-photo {
  width: 96px;
}

.person-photo::before {
  position: relative;
  z-index: 0;
  content: attr(data-initials);
  color: rgba(255, 253, 247, 0.92);
  font-family: var(--heading);
  font-size: 1.65rem;
  font-weight: 700;
}

.person-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-crop-ozay img {
  width: 200%;
  height: 200%;
  object-position: center top;
  transform: translateX(-50%);
}

.photo-zoom-adam img {
  object-position: center top;
  transform: scale(1.14);
  transform-origin: center top;
}

.person-photo.is-fallback img {
  display: none;
}

.person-photo-small {
  width: 82px;
  aspect-ratio: 1 / 1;
}

.person-main {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 0.22rem;
  min-height: 0;
}

.organizer-card .person-main {
  min-height: 0;
}

.person-main h3 {
  font-family: var(--heading);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.05;
}

.person-main p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.talk-title {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  color: var(--ink) !important;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.4;
}

.person-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 3;
  gap: 0.65rem;
  align-self: end;
  margin-top: 0.25rem;
}

.detail-panel {
  border: 1px solid rgba(23, 35, 41, 0.13);
  border-radius: var(--radius);
  background: #fbfdf8;
}

.detail-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.66rem 0.76rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  list-style: none;
}

.detail-panel summary::-webkit-details-marker {
  display: none;
}

.detail-panel summary:focus-visible {
  outline: 2px solid rgba(8, 121, 120, 0.65);
  outline-offset: 2px;
}

.detail-panel summary::after {
  flex: 0 0 auto;
  width: 1.22rem;
  height: 1.22rem;
  display: grid;
  place-items: center;
  content: "+";
  border: 1px solid rgba(23, 35, 41, 0.18);
  border-radius: 50%;
  color: var(--teal);
  font-size: 1rem;
  line-height: 1;
}

.detail-panel[open] summary::after {
  content: "-";
  color: var(--coral);
}

.detail-panel p {
  padding: 0 0.82rem 0.82rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.organizers-section {
  padding: clamp(3.4rem, 6vw, 5.6rem) 0;
  background:
    linear-gradient(180deg, #edf5ef, #e8f1ec),
    #eef5f0;
}

.organizer-card > .detail-panel {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
}

.person-link {
  grid-column: 1 / -1;
  grid-row: 4;
  width: fit-content;
  padding: 0 0 0.12rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  line-height: 1.25;
  text-align: left;
}

.person-link:hover {
  color: var(--coral);
}

.person-link:focus-visible {
  outline: 2px solid rgba(8, 121, 120, 0.65);
  outline-offset: 4px;
}

.person-link.is-revealed {
  word-break: break-word;
}

.impact-section {
  color: #f9fbf7;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #101a1d, #173b39 50%, #4b4158);
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.impact-layout h2 {
  margin: 0.75rem 0 1rem;
}

.impact-layout > div > p {
  color: rgba(249, 251, 247, 0.78);
}

.impact-list {
  display: grid;
  gap: 1rem;
}

.impact-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.impact-list span {
  color: #f7c96d;
  font-weight: 850;
}

.impact-list p {
  color: rgba(249, 251, 247, 0.84);
}

.site-footer {
  padding: 1.5rem 0;
  color: rgba(249, 251, 247, 0.78);
  background: #0d1517;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-weight: 780;
}

@media (max-width: 1180px) {
  .speakers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaker-card,
  .speaker-card:nth-last-child(2):nth-child(4),
  .speaker-card:last-child {
    grid-column: auto;
  }

  .speaker-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 0.55rem));
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.is-open .primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 0.7rem 0.5rem;
  }

  .hero-grid,
  .two-column,
  .question-layout,
  .program-layout,
  .impact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-content: end;
    min-height: 90vh;
    padding-top: 7.5rem;
  }

  .event-panel {
    max-width: 520px;
  }

  .program-intro {
    position: static;
  }

  .topics-grid,
  .speakers-grid,
  .organizer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(2.1rem, 9.4vw, 3rem);
    line-height: 1.04;
  }

  .brand-name {
    max-width: 170px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-grid {
    min-height: 82svh;
    padding-top: 6rem;
    padding-bottom: 1.75rem;
  }

  .hero-copy {
    gap: 1rem;
  }

  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.52;
  }

  .mobile-event-line {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .event-panel {
    display: none;
  }

  .footer-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .topics-grid,
  .speakers-grid,
  .organizer-grid {
    grid-template-columns: 1fr;
  }

  .topic-card,
  .topic-card-wide {
    grid-column: auto;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .speaker-card,
  .speaker-card:last-child:nth-child(odd),
  .organizer-card {
    width: 100%;
    min-height: auto;
  }

  .person-main,
  .organizer-card .person-main,
  .talk-title {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
