:root {
  --ink: #111111;
  --muted: #939599;
  --paper: #FAFAFA;
  --paper-soft: #F2F2F3;
  --line: #CDCDCF;
  --navy: #111111;
  --navy-2: #2C2D30;
  --cyan: #2BCFCE;
  --orange: #EC4D25;
  --gold: #2BCFCE;
  --green: #2BCFCE;
  --shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
  --round: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: var(--paper-soft);
}

a {
  color: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 36px;
  background: rgba(250, 250, 250, 0.96);
  border-bottom: 2px solid rgba(147, 149, 153, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--paper);
  font-weight: 800;
  background: var(--paper);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.logo-mark {
  background-image: url("assets/qcas-logo.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 82%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.1;
}

.brand small {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.top-links a {
  text-decoration: none;
}

.submit-link {
  padding: 9px 14px;
  color: var(--paper);
  background: var(--orange);
  border-radius: 14px;
}

.sub-nav {
  position: sticky;
  top: 74px;
  z-index: 45;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.tab-link,
.mobile-link,
.menu-toggle {
  font: inherit;
}

.tab-link {
  min-width: 112px;
  min-height: 40px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.tab-link:hover,
.tab-link.active {
  color: var(--ink);
  background: var(--cyan);
}

.menu-toggle,
.mobile-panel {
  display: none;
}

.hero {
  min-height: clamp(560px, 68vh, 660px);
  color: var(--paper);
  background-image: url("assets/qcas-hero.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 2px solid rgba(147, 149, 153, 0.42);
}

.hero-overlay {
  min-height: inherit;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.54) 0%, rgba(5, 15, 26, 0.34) 44%, rgba(5, 15, 26, 0.06) 84%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.00), rgba(4, 10, 18, 0.18)),
    radial-gradient(circle at 13% 86%, rgba(236, 77, 37, 0.22), transparent 30%);
}

.hero-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 52px;
}

.eyebrow,
.section-kicker,
.role,
.status {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: none;
  margin: 16px 0 0;
  font-size: clamp(3rem, 7.2vw, 5.1rem);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.50);
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.1rem, 2vw, 1.58rem);
  font-weight: 720;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 840px;
  margin-top: 18px;
}

.hero-meta span,
.hero-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.hero-meta a:hover {
  background: rgba(236, 77, 37, 0.34);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 760;
  text-decoration: none;
  border-radius: 14px;
}

.button.primary {
  color: var(--paper);
  background: var(--orange);
}

.button.secondary {
  color: var(--paper);
  border: 1px solid rgba(43, 207, 206, 0.62);
}

.button.secondary.accent {
  color: var(--paper);
  background: rgba(236, 77, 37, 0.88);
  border-color: rgba(236, 77, 37, 0.92);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: -36px auto 56px;
}

.content-section {
  display: none;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: var(--shadow);
}

.content-section.active {
  display: block;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 26px;
}

.section-kicker {
  color: var(--cyan);
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.intro-main p,
.two-column p {
  margin-top: 0;
  font-size: 1.03rem;
}

.fact-panel,
.important-dates,
.callout,
.sponsor-panel,
.contact-strip,
.program-note {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.fact-panel {
  display: grid;
  gap: 1px;
  padding: 7px;
  background: var(--line);
  border-radius: 18px;
}

.fact-panel div {
  padding: 16px;
  background: var(--paper);
}

.fact-panel span,
.important-dates span,
.contact-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.fact-panel strong,
.important-dates strong,
.contact-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.callout {
  margin-top: 30px;
  padding: 24px;
  border-left: 5px solid var(--orange);
  border-radius: 18px;
}

.callout.compact {
  margin-top: 34px;
}

.callout h3,
.sponsor-panel h3 {
  margin-top: 0;
}

.text-link {
  color: var(--orange);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-list {
  margin: 0;
  padding-left: 20px;
}

.news-list li + li {
  margin-top: 8px;
}

.track-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.track-preview article,
.track-block,
.person-card,
.speaker-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.track-preview article {
  min-height: 214px;
  padding: 18px;
}

.track-preview span {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.track-preview h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.24;
}

.track-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.important-dates {
  padding: 22px;
}

.important-dates h3 {
  margin: 0 0 12px;
}

.important-dates ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.important-dates li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.important-dates li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.subheading {
  margin: 36px 0 16px;
  color: var(--navy-2);
  font-size: 1.35rem;
}

.track-list {
  display: grid;
  gap: 16px;
}

.track-block {
  padding: 22px;
}

.track-block h4 {
  margin: 0 0 10px;
  color: var(--navy-2);
  font-size: 1.08rem;
}

.track-block ul {
  margin: 0;
  padding-left: 20px;
}

.track-block li + li {
  margin-top: 6px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.person-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  min-height: 178px;
  padding: 18px;
}

.avatar,
.speaker-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--paper);
  font-weight: 800;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.20), transparent 30%),
    linear-gradient(135deg, var(--navy-2), var(--cyan) 54%, var(--orange));
  border-radius: 16px;
}

.avatar {
  width: 72px;
  height: 72px;
}

.role {
  color: var(--green);
}

.person-card h3,
.speaker-card h3 {
  margin: 4px 0 2px;
  line-height: 1.2;
}

.person-card p,
.speaker-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

details {
  margin-top: 12px;
}

summary {
  width: fit-content;
  color: var(--cyan);
  font-weight: 760;
  cursor: pointer;
}

details p {
  margin-top: 8px !important;
  color: var(--ink) !important;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.speaker-grid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speaker-card {
  overflow: hidden;
  background: var(--paper);
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.speaker-body {
  padding: 18px;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
}

.status.confirmed {
  color: var(--ink);
  background: rgba(43, 207, 206, 0.22);
}

.status.pending {
  color: var(--paper);
  background: var(--orange);
}

.status.potential {
  color: var(--ink);
  background: var(--line);
}

.program-note {
  margin-bottom: 18px;
  padding: 16px 18px;
}

.program-note p {
  margin: 0;
  font-weight: 800;
}

.agenda-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.agenda-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
}

.agenda-table th,
.agenda-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.agenda-table th {
  color: var(--paper);
  background: var(--navy-2);
}

.agenda-table tbody tr:last-child td {
  border-bottom: 0;
}

.agenda-table td:first-child {
  width: 170px;
  color: var(--navy-2);
  font-weight: 760;
  white-space: nowrap;
}

.agenda-table td:last-child {
  width: 170px;
  color: var(--muted);
}

.agenda-table .session-row td {
  color: var(--navy);
  font-weight: 760;
  background: rgba(43, 207, 206, 0.20);
}

.sponsor-panel {
  padding: clamp(24px, 4vw, 42px);
}

.sponsor-panel p {
  max-width: 760px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 22px;
}

.series-page {
  background: var(--paper);
}

.series-hero {
  min-height: clamp(460px, 58vh, 620px);
  color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(3, 10, 18, 0.58) 0%, rgba(5, 15, 26, 0.36) 44%, rgba(5, 15, 26, 0.08) 84%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.00), rgba(4, 10, 18, 0.18)),
    url("assets/qcas-hero.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 2px solid rgba(147, 149, 153, 0.42);
}

.series-hero-inner {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 78px;
}

.series-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.50);
}

.series-subtitle {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 720;
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.series-copy {
  max-width: 690px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.04rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.series-main {
  width: min(1120px, calc(100% - 40px));
  margin: -54px auto 56px;
}

.series-section {
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: var(--shadow);
}

.edition-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.edition-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.edition-card.current {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(44, 45, 48, 0.90)),
    radial-gradient(circle at 85% 16%, rgba(236, 77, 37, 0.32), transparent 28%);
  border-color: rgba(205, 205, 207, 0.48);
}

.edition-year {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--orange);
  border-radius: 12px;
}

.edition-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.edition-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.edition-card.current p {
  color: rgba(255, 255, 255, 0.76);
}

.edition-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.edition-card dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.edition-card dd {
  margin: 0;
  color: var(--paper);
  font-weight: 700;
}

.edition-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 22px;
  padding: 10px 14px;
  color: var(--paper);
  font-weight: 760;
  text-decoration: none;
  background: var(--orange);
  border-radius: 14px;
}

.edition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edition-link.secondary {
  color: var(--ink);
  background: var(--cyan);
}

.edition-card:not(.current) .edition-link {
  color: var(--paper);
  background: var(--navy-2);
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 36px;
}

.split-section h2,
.news-strip h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.04;
}

.split-section p {
  margin-top: 0;
}

.site-footer {
  padding: 30px 20px 42px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  background: var(--navy);
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 250, 250, 0.18);
}

.footer-contact strong {
  color: var(--paper);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-contact p {
  margin: 0;
}

@media (max-width: 920px) {
  .top-nav {
    padding: 0 18px;
  }

  .brand small,
  .top-links {
    display: none;
  }

  .sub-nav {
    display: none;
  }

  .menu-toggle {
    position: sticky;
    top: 74px;
    z-index: 45;
    display: block;
    width: 100%;
    min-height: 46px;
    color: var(--paper);
    font-weight: 760;
    background: var(--navy);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-panel {
    position: sticky;
    top: 120px;
    z-index: 44;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    background: var(--navy);
  }

  .mobile-panel.open {
    display: grid;
  }

  .mobile-link {
    min-height: 40px;
    color: var(--paper);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.10);
    border: 0;
    border-radius: 14px;
  }

  .mobile-link.active {
    color: var(--ink);
    background: var(--cyan);
  }

  .hero {
    min-height: 520px;
    background-position: center center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 10, 18, 0.60), rgba(3, 10, 18, 0.30)),
      linear-gradient(180deg, rgba(4, 10, 18, 0.00), rgba(4, 10, 18, 0.22));
  }

  main {
    width: min(100% - 24px, 1120px);
    margin-top: -28px;
  }

  .intro-grid,
  .two-column,
  .track-preview,
  .people-grid,
  .speaker-grid,
  .speaker-grid.small,
  .edition-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .series-hero {
    min-height: 520px;
  }

  .series-main {
    width: min(100% - 24px, 1120px);
    margin-top: -34px;
  }
}

@media (max-width: 560px) {
  .top-nav {
    min-height: 66px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    top: 66px;
  }

  .mobile-panel {
    top: 112px;
  }

  .hero {
    min-height: 500px;
    background-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-top: 24px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  .hero-copy {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .hero-meta {
    gap: 8px;
    margin-top: 12px;
  }

  .hero-meta span,
  .hero-meta a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.76rem;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .button {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
    padding: 10px;
    text-align: center;
    font-size: 0.84rem;
  }

  .content-section {
    padding: 24px 18px;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .agenda-table th,
  .agenda-table td {
    padding: 11px 12px;
  }

  .series-hero {
    min-height: 480px;
  }

  .series-hero-inner {
    width: calc(100% - 28px);
    padding: 44px 0 62px;
  }

  .series-hero h1 {
    font-size: clamp(3.3rem, 18vw, 4.8rem);
  }

  .series-copy {
    font-size: 0.96rem;
  }

  .edition-card {
    min-height: 0;
  }
}
