/* =========================================================
   Davos AI & Robotics Summit — Davos Premier
   ========================================================= */

:root {
  --c-ink: #11110f;
  --c-cream: #efe8dc;
  --c-gold: #dca647;
  --c-gold-deep: #966a1d;
  --c-white: #ffffff;
  --c-line-dark: rgba(17, 17, 15, 0.5);
  --c-line-light: rgba(255, 255, 255, 0.5);

  --f-sans: "Roboto", system-ui, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, monospace;
  --f-serif: "Arsenal", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 100px);
  --header-h: 80px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, .h-display, .focus__quote { text-wrap: balance; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }

::selection { background: var(--c-gold); color: var(--c-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--light { background: var(--c-cream); color: var(--c-ink); }
.section--dark { background: var(--c-ink); color: var(--c-white); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.h-display {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---------- Link underline hover ---------- */
.link-u {
  position: relative;
  display: inline-block;
  padding-block: 4px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}
.link-u:hover::after,
.link-u:focus-visible::after,
.link-u.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.btn {
  --btn-bg: var(--c-gold);
  --btn-fill: var(--c-white);
  --btn-fg: var(--c-white);
  --btn-fg-hover: var(--c-ink);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 253px;
  height: 52px;
  padding: 0 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1.05;
  white-space: nowrap;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover,
.btn:focus-visible { color: var(--btn-fg-hover); }
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }

.btn__icon {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { transform: translateX(3px) rotate(45deg); }

.btn--gold {
  /* 3-layer gold fill from Figma */
  background: var(--c-gold) url("../assets/btn-gold-bg.svg") center / 100% 100% no-repeat;
}

.btn--dark {
  --btn-bg: var(--c-ink);
  --btn-fill: var(--c-gold);
  --btn-fg-hover: var(--c-white);
}
.btn--outline {
  --btn-bg: var(--c-ink);
  --btn-fill: var(--c-gold);
  --btn-fg-hover: var(--c-white);
  min-width: 255px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--outline:hover { border-color: var(--c-gold); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--c-white);
  transition: transform 0.6s var(--ease-out);
}
/* Solid/blur background lives on a pseudo-element: a filter on the header
   itself would make it the containing block of the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(17, 17, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before,
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo__mark img {
  position: absolute;
  left: 3.25px;
  top: 3.25px;
  width: 29.45px;
  height: 29.45px;
  transition: transform 0.9s var(--ease-out);
}
.logo__dot {
  position: absolute;
  width: 6.66px;
  height: 6.66px;
  border-radius: 50%;
  background: var(--c-gold);
  transition: transform 0.9s var(--ease-out);
}
.logo__dot--l { left: 2.66px; top: 13.32px; }
.logo__dot--r { left: 26.63px; top: 14.65px; }
.logo:hover .logo__mark img { transform: rotate(180deg); }
.logo:hover .logo__dot--l { transform: translate(-2px, 0); }
.logo:hover .logo__dot--r { transform: translate(2px, 0); }
.logo__word { width: 135.4px; height: auto; }

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c-white);
  transition: color 0.3s ease;
}
.nav__link:hover { color: var(--c-gold); }

/* Burger */
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -8px;
}
.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}
/* Background: photo + tone + shades (from bg.html) */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg-media {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  will-change: transform;
}
.hero__bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 30%;
}
.hero__tone {
  position: absolute;
  inset: 0;
  background: rgb(146, 114, 65);
  opacity: 0.2;
  mix-blend-mode: color;
}
.hero__shade { position: absolute; inset: 0; }
.hero__shade--left {
  background: linear-gradient(90deg, var(--c-ink) 0%, rgba(17, 17, 15, 0) 100%);
}
.hero__shade--top {
  background: linear-gradient(180deg, var(--c-ink) 0%, rgba(17, 17, 15, 0) 11.27%);
  opacity: 0.4;
}

/* intro: slow zoom-out of the photo */
.js .hero__bg-media img {
  transform: scale(1.12);
  opacity: 0;
  transition: transform 2.4s var(--ease-out), opacity 1.2s ease;
}
.js.is-ready .hero__bg-media img { transform: none; opacity: 1; }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  min-height: clamp(640px, 100svh, 960px);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__title {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 100px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero__rule {
  display: block;
  width: min(563px, 70%);
  height: 2px;
  margin-top: -9px;
  background: var(--c-gold);
  transform-origin: left center;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero__venue {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hero__date {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Split line reveal */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.split-line > span { display: inline-block; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  height: 80px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__row {
  display: flex;
  flex-shrink: 0;
  gap: 0.5em;
  padding-right: 0.5em;
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-white);
}
.ticker__row .is-gold { color: var(--c-gold); }

/* =========================================================
   About
   ========================================================= */
.about__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1068px;
}
.about__lead {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
  color: var(--c-gold);
}

.about__media {
  position: relative;
  z-index: 2; /* the stage overlaps the content below while expanded */
  margin-top: 55px;
  aspect-ratio: 1480 / 600;
}
.about__media-stage {
  /* JS animates left/right/height from full-screen down to the frame box */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  background: #d9d0c1;
}
.about__media-inner {
  /* full-height original image; JS slides it vertically inside the frame */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1663 / 1246;
  min-height: 140%;
  will-change: transform;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text {
  max-width: 771px;
  margin-top: 30px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.stats { margin-top: 55px; }
.stats__rule {
  display: block;
  height: 4px;
  background: var(--c-gold);
  transform-origin: left center;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.stat__num {
  font-family: var(--f-serif);
  font-size: clamp(56px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--c-gold-deep);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* =========================================================
   Focus (The time is now)
   ========================================================= */
.focus { padding-top: 0; }
.focus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: var(--section-y);
}
.focus__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 74px;
}
.focus__left .eyebrow { margin-bottom: 6px; }
.focus__btns { margin-top: 42px; }
.focus__quote {
  max-width: 473px;
  font-family: var(--f-mono);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c-gold);
}

.focus__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.pillars { border-top: 1px solid var(--c-line-dark); }
.pillar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 44px;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--c-line-dark);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  cursor: default;
  isolation: isolate;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-ink);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.5s var(--ease-out);
}
.pillar__num {
  width: 33px;
  flex-shrink: 0;
  color: var(--c-gold);
}
.pillar__name {
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.pillar:hover::before { transform: scaleY(1); transform-origin: top center; }
.pillar:hover .pillar__name { color: var(--c-white); transform: translateX(10px); }

.focus__note {
  max-width: 477px;
  padding: 0 28px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* =========================================================
   Agenda
   ========================================================= */
.agenda__head .eyebrow { margin-bottom: 6px; }
.agenda__lead {
  margin-top: 30px;
  font-family: var(--f-mono);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
}

.tabs { margin-top: 80px; }
.tabs__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tab {
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.35s ease;
}
.tab:hover,
.tab.is-active { color: var(--c-white); }
.tab__label { padding-right: 16px; }
.tab__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  background: var(--c-line-light);
  overflow: hidden;
}
.tab__bar i {
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease-out);
}
.tab:hover .tab__bar i { transform: scaleX(0.18); transform-origin: left center; }
.tab.is-active .tab__bar i { transform: scaleX(1); transform-origin: left center; }

.tabs__panels {
  position: relative;
  min-height: 457px;
  display: flex;
  align-items: center;
}
.panel {
  display: flex;
  flex-direction: column;
  padding-block: 32px;
}
.panel[hidden] { display: none; }
.panel__kicker { margin-bottom: 6px; }
.panel__title { max-width: 900px; }
.panel__desc {
  margin-top: 32px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* panel enter animation */
.panel.is-entering .panel__kicker,
.panel.is-entering .panel__title,
.panel.is-entering .panel__desc,
.panel.is-entering .chip {
  animation: panelIn 0.8s var(--ease-out) both;
}
.panel.is-entering .panel__title { animation-delay: 0.06s; }
.panel.is-entering .panel__desc { animation-delay: 0.12s; }
.panel.is-entering .chip:nth-child(1) { animation-delay: 0.18s; }
.panel.is-entering .chip:nth-child(2) { animation-delay: 0.23s; }
.panel.is-entering .chip:nth-child(3) { animation-delay: 0.28s; }
.panel.is-entering .chip:nth-child(4) { animation-delay: 0.33s; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.chips {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 51px;
  padding: 0 20px;
  border: 1px solid var(--c-line-light);
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1.05;
  transition: border-color 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}
.chip:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.agenda__btns { margin-top: 40px; }

/* =========================================================
   Shared section head
   ========================================================= */
.section-head { display: flex; flex-direction: column; gap: 6px; }

/* =========================================================
   Speakers
   ========================================================= */
.speakers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 40px;
}
.speaker {
  display: flex;
  flex-direction: column;
  background: var(--c-ink);
}
.speaker__photo {
  aspect-ratio: 728 / 667;
  overflow: hidden;
  background: var(--c-ink);
}
.speaker__info { flex: 1; }

/* extra speakers revealed by "View all speakers" */
.speaker--extra {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.speaker--extra.is-shown { opacity: 1; transform: none; }
.speaker[hidden] { display: none; }
.speaker__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}
.speaker__info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 154px;
  padding: 20px 20px 20px 20px;
  background: var(--c-ink);
  overflow: hidden;
}
.speaker__info::after {
  /* gold rule that draws in on hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.speaker__name {
  max-width: 200px;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f9f5ef;
}
.speaker__role {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--c-gold);
}
.speaker:hover .speaker__photo img { transform: scale(1.06); filter: grayscale(0); }
.speaker:hover .speaker__info::after { transform: scaleX(1); }

.speakers__btn { margin-top: 40px; min-width: 264px; }
.btn[hidden] { display: none; }

/* =========================================================
   Partners
   ========================================================= */
.partners__lead {
  max-width: 1068px;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin-top: 40px;
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 134px;
  padding: 8px 32px;
}
.partner img {
  width: var(--w, 200px);
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out), filter 0.4s ease;
}
/* hovering one logo dims the rest */
@media (hover: hover) {
  .partners__grid:hover .partner img { opacity: 0.35; filter: grayscale(1); }
  .partners__grid .partner:hover img { opacity: 1; filter: none; transform: scale(1.05); }
}
.partners__btn { margin-top: 40px; min-width: 264px; }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-bottom: 0; }
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field__label {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.field__input {
  width: 100%;
  height: 51px;
  padding: 0 20px;
  border: 1px solid var(--c-white);
  border-radius: 0;
  /* 2px gold line along the bottom edge, collapsed to the left until focus */
  background-color: transparent;
  background-image: linear-gradient(var(--c-gold), var(--c-gold));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 2px;
  background-origin: border-box;
  background-clip: border-box;
  color: var(--c-white);
  font-family: var(--f-mono);
  font-size: 18px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    background-size 0.6s var(--ease-out);
}
.field__input--area {
  height: 123px;
  padding: 15px 20px;
  resize: vertical;
  line-height: 1.4;
}
.field__input:hover { background-color: rgba(255, 255, 255, 0.04); }
.field__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}
/* active: frame dims to 40% white, gold 2px line grows in from the left */
.field__input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  border-bottom-color: transparent; /* the gold line shows through the border */
  background-color: transparent;
  background-size: 100% 2px;
}
.field__input.is-invalid { border-color: #e0705a; }

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 27px;
  align-self: flex-start;
  cursor: pointer;
}
.check__input {
  position: absolute;
  opacity: 0;
  width: 30px;
  height: 30px;
  margin: 0;
  cursor: pointer;
}
.check__box {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-white);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.check__box::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 8px;
  height: 14px;
  border: solid var(--c-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease-out);
}
.check__input:checked + .check__box { background: var(--c-gold); border-color: var(--c-gold); }
.check__input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check__input:focus-visible + .check__box { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: #e0705a; }
.check__label {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.check__label .link-u { padding-block: 0; }

.form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.form__submit { min-width: 143px; }
.form__status {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--c-gold);
}
.form__status.is-error { color: #e0705a; }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding-block: 100px; }
.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.footer__legal,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
}
.footer__legal a { align-self: flex-start; padding-block: 2px; }
.footer__social { gap: 20px; align-items: flex-end; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.social-link img { transition: transform 0.5s var(--ease-out); }
.social-link .link-u { padding-block: 2px; }
.social-link:hover { color: var(--c-gold); }
.social-link:hover img { transform: rotate(-12deg) scale(1.1); }
.social-link:hover .link-u::after,
.social-link:focus-visible .link-u::after { transform: scaleX(1); transform-origin: left center; }

/* =========================================================
   Modal
   ========================================================= */
.modal {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(84vh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  overflow: hidden;
}
.modal[open] { display: flex; animation: modalIn 0.6s var(--ease-out) both; }
.modal.is-closing { animation: modalOut 0.35s ease both; }
.modal::backdrop {
  background: rgba(17, 17, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.4s ease both;
}
.modal.is-closing::backdrop { animation: fadeOut 0.35s ease both; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes modalOut {
  to { opacity: 0; transform: translateY(16px) scale(0.98); }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.modal__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 24px;
  border-bottom: 4px solid var(--c-gold);
}
.modal__head .eyebrow { margin-bottom: 6px; }
.modal__title {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
}
.modal__close {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -6px -10px 0 0;
  transition: transform 0.5s var(--ease-out);
}
.modal__close span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 21px;
  height: 1.5px;
  background: currentColor;
}
.modal__close span:first-child { transform: rotate(45deg); }
.modal__close span:last-child { transform: rotate(-45deg); }
.modal__close:hover { transform: rotate(90deg); color: var(--c-gold-deep); }

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 40px 40px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
}
.modal__body > * + * { margin-top: 14px; }
.modal__body h3 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.modal__body ul { padding-left: 20px; list-style: disc; }
.modal__body li + li { margin-top: 6px; }
.modal__meta {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-gold-deep);
}

/* Form popups (Become a speaker / sponsor) */
.modal--form { width: min(600px, calc(100% - 32px)); max-height: min(92vh, 760px); }
.modal--form .modal__panel { position: relative; }
.modal--form .modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  margin: 0;
}
.modal__scroll {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 50px 40px;
}
.modal__heading {
  max-width: calc(100% - 40px);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(28px, 6.5vw, 42px);
  line-height: 1.1;
  text-transform: uppercase;
}
.modal-form { gap: 24px; margin-top: 0; }
.modal-form .field__input {
  height: 60px;
  padding: 0 15px;
  border-color: var(--c-ink);
  background-color: rgba(247, 241, 230, 0.5);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 20px;
  letter-spacing: -0.012em;
}
.modal-form .field__input--area { height: 120px; padding: 16px 15px; }
.modal-form .field__input::placeholder { color: rgba(17, 17, 15, 0.7); }
.modal-form .field__input:hover { background-color: rgba(247, 241, 230, 0.8); }
.modal-form .field__input:focus {
  border-color: rgba(17, 17, 15, 0.4);
  border-bottom-color: transparent;
  background-color: rgba(247, 241, 230, 0.8);
}
.modal-form .field__input.is-invalid { border-color: #c0432d; }
.modal-form__submit {
  width: 100%;
  height: 60px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 24px;
  text-transform: capitalize;
}
.modal-form .check { gap: 18px; }
.modal-form .check__box { width: 22px; height: 22px; border-color: var(--c-ink); }
.modal-form .check__box::after { left: 7px; top: 2px; width: 6px; height: 11px; }
.modal-form .check__label { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.modal-form .form__status { color: var(--c-gold-deep); }
.modal-form .form__status:empty { display: none; }
.modal-form .form__status.is-error { color: #c0432d; }

/* =========================================================
   Reveal animations
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }

.js [data-reveal-rule] {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-in-out);
}
.js [data-reveal-rule].is-in { transform: scaleX(1); }

/* Hero intro */
.js [data-hero] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .split-line > [data-hero] {
  opacity: 1;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-out);
}
.js .hero__rule[data-hero] {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-in-out);
}
.js .site-header { transform: translateY(-100%); }

.js.is-ready [data-hero] { opacity: 1; transform: none; }
.js.is-ready .site-header:not(.is-hidden) { transform: none; transition-delay: 0s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__list { gap: 28px; }
  .nav__link { font-size: 15px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--c-ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  }
  .menu-open .nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition-delay: 0s;
  }
  /* a transform on the header would trap the fixed overlay */
  .menu-open .site-header,
  .js.is-ready.menu-open .site-header {
    transform: none;
    transition: none;
  }
  .menu-open .site-header::before,
  .menu-open .site-header::after { opacity: 0; }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .nav__list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
  }
  .menu-open .nav__list li { opacity: 1; transform: none; }
  .menu-open .nav__list li:nth-child(1) { transition-delay: 0.2s; }
  .menu-open .nav__list li:nth-child(2) { transition-delay: 0.25s; }
  .menu-open .nav__list li:nth-child(3) { transition-delay: 0.3s; }
  .menu-open .nav__list li:nth-child(4) { transition-delay: 0.35s; }
  .menu-open .nav__list li:nth-child(5) { transition-delay: 0.4s; }
  .nav__link { font-size: clamp(28px, 7vw, 40px); }

  .focus__grid { grid-template-columns: 1fr; gap: 56px; }

  .speakers__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
  .partner { height: 110px; padding: 8px 20px; }
  .focus__left { gap: 48px; }

  .tabs { margin-top: 56px; }
  .tabs__list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-width: 200px; }
  .tabs__panels { min-height: 0; }
}

@media (max-width: 640px) {
  .btn-group { gap: 12px; }
  .btn { min-width: 0; width: 100%; justify-content: space-between; font-size: 16px; }
  .btn-group { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__foot .btn-group,
  .focus__btns,
  .agenda__btns { width: 100%; }

  .about__media { aspect-ratio: 4 / 3; }

  .hero__shade--left {
    background: linear-gradient(0deg, var(--c-ink) 0%, rgba(17, 17, 15, 0.75) 45%, rgba(17, 17, 15, 0.2) 100%);
  }

  .stats__list { grid-template-columns: 1fr; gap: 32px; }

  .speakers__grid { gap: 16px 8px; }
  .speaker__info { min-height: 0; gap: 20px; padding: 16px; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .partner { height: 96px; padding: 8px 14px; }
  .form__row { grid-template-columns: 1fr; gap: 20px; }
  .check { gap: 16px; }
  .footer { padding-block: 64px; }
  .modal__scroll { padding: 40px 20px 28px; gap: 24px; }
  .modal-form { gap: 16px; }
  .modal__head { padding: 24px 20px 18px; }
  .modal__body { padding: 20px 20px 28px; font-size: 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__social { align-items: flex-start; }
  .stat { gap: 12px; }

  .pillar { gap: 20px; padding: 16px 12px; }
  .focus__note { padding: 0 12px; font-size: 18px; }

  .panel__desc { margin-top: 20px; }
  .chips { margin-top: 32px; gap: 10px; }
  .chip { height: 44px; padding: 0 14px; font-size: 15px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
