:root {
  color-scheme: dark;
  --bg: #0b0808;
  --bg-2: #171110;
  --bg-3: #261b19;
  --ink: #fffaf5;
  --ink-soft: #d7ccc4;
  --ink-mute: #8f8078;
  --accent: #12a9e0;
  --accent-2: #087fae;
  --accent-soft: #7ee5ff;
  --logo-brown: #231815;
  --glass: rgba(255, 250, 245, 0.065);
  --glass-strong: rgba(255, 250, 245, 0.12);
  --glass-cyan: rgba(18, 169, 224, 0.14);
  --rule: rgba(255, 250, 245, 0.12);
  --rule-strong: rgba(255, 250, 245, 0.28);
  --shadow-glass: 0 18px 54px rgba(0, 0, 0, 0.28);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP",
    "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-display: var(--font-sans);
  --font-latin: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "Helvetica", "Arial", sans-serif;
  --ls-normal: 0;
  --ls-relaxed: 0.04em;
  --ls-cta: 0.08em;
  --ls-wide: 0.12em;
  --ls-wider: 0.2em;
  --ls-widest: 0.24em;
  --type-display-size: clamp(46px, 7.2vw, 88px);
  --type-display-lh: 0.98;
  --type-h1-size: clamp(36px, 4.4vw, 64px);
  --type-h1-lh: 1.08;
  --type-h2-size: clamp(28px, 3vw, 44px);
  --type-h2-lh: 1.14;
  --type-h3-size: clamp(22px, 1.9vw, 30px);
  --type-h3-lh: 1.24;
  --type-h4-size: clamp(18px, 1.2vw, 22px);
  --type-h4-lh: 1.34;
  --fs-body: clamp(15px, 0.25vw + 14px, 17px);
  --fs-body-lg: clamp(17px, 0.8vw + 15px, 22px);
  --fs-caption: 13px;
  --fs-micro: 0.75rem;
  --fs-eyebrow: 12px;
  /* Line-heights — Japanese needs more vertical breathing than Latin.
     Canonical named scale synced from the Kinmei master design system. */
  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-normal: 1.7;
  --lh-relaxed: 1.78;
  --lh-loose: 2;
  /* Legacy role names mapped onto the canonical scale. */
  --lh-body: var(--lh-relaxed);
  --lh-body-tight: var(--lh-normal);
  --lh-caption: 1.45;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;
  --space-9: 80px;
  --section-pad-y: clamp(72px, 8vw, 112px);
  --section-pad-x: clamp(22px, 4vw, 56px);
  --nav-h: 104px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --btn-min-height: 52px;
  --btn-min-width: 200px;
  --btn-pad-x: 28px;
  --btn-radius: var(--radius-pill);
  --focus-ring: 0 0 0 3px rgba(126, 229, 255, 0.6);
  --focus-outline: 2px solid var(--accent-soft);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --bg-3: #e8e8ed;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --accent: #0071e3;
  --accent-2: #005bb5;
  --accent-soft: #0a84ff;
  --logo-brown: #ffffff;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(0, 0, 0, 0.055);
  --glass-cyan: rgba(0, 113, 227, 0.08);
  --rule: rgba(0, 0, 0, 0.1);
  --rule-strong: rgba(0, 0, 0, 0.16);
  --shadow-glass: 0 18px 54px rgba(0, 0, 0, 0.12);
  --focus-ring: 0 0 0 3px rgba(0, 113, 227, 0.24);
  --focus-outline: 2px solid var(--accent);
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(900px 620px at 10% 4%, rgba(18, 169, 224, 0.1), transparent 62%),
    radial-gradient(900px 540px at 90% 12%, rgba(126, 229, 255, 0.055), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  /* Keep 0 at the body level. Tightening < 0 cramps Japanese punctuation
     and is only valid for pure-Latin display contexts. */
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Proportional-alternate metrics tighten Japanese punctuation spacing. */
  font-feature-settings: "palt" 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 250, 245, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 245, 0.016) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(900px 620px at 12% 0%, rgba(0, 113, 227, 0.08), transparent 58%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 46%, #ffffff 100%);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 72%);
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Offset in-page anchor jumps so section headings clear the fixed glass nav. */
section[id],
[id] {
  scroll-margin-top: var(--nav-h);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-lh);
}

h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-lh);
}

h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-lh);
}

h4 {
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-lh);
}

p {
  line-height: var(--lh-body);
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 32px;
  right: 32px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  color: var(--ink);
  background: rgba(23, 17, 16, 0.72);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

:root[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  width: auto;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

:root[data-theme="light"] .brand-logo {
  filter: none;
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--glass-strong);
  border-color: var(--rule-strong);
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-moon {
  fill: currentColor;
  stroke: none;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: var(--ls-cta);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--logo-brown);
}

.button-primary:active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--ink);
}

.hero,
.section,
.event-shell {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(var(--space-7), 7vw, 120px);
  align-items: center;
  min-height: 92vh;
  padding-top: clamp(132px, 14vw, 188px);
  padding-bottom: clamp(64px, 8vw, 108px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 8, 8, 0.88) 0%, rgba(11, 8, 8, 0.62) 52%, rgba(11, 8, 8, 0.82) 100%),
    url("./assets/event-room.jpg") center / cover no-repeat;
  box-shadow: inset 0 -180px 140px rgba(11, 8, 8, 0.88);
}

:root[data-theme="light"] .home-hero {
  background:
    linear-gradient(90deg, rgba(232, 232, 237, 0.88) 0%, rgba(210, 210, 215, 0.72) 54%, rgba(245, 245, 247, 0.7) 100%),
    url("./assets/event-room.jpg") center / cover no-repeat;
  box-shadow: inset 0 -120px 100px rgba(232, 232, 237, 0.9);
}

.hero-copy,
.body-stack,
.section-head,
.latest-event-copy,
.detail-block {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.hero-copy > *,
.body-stack > *,
.section-head > *,
.latest-event-copy > *,
.detail-block > * {
  min-width: 0;
}

.section-head {
  max-width: 980px;
  margin-bottom: clamp(var(--space-6), 5vw, var(--space-8));
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-latin);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: var(--type-display-size);
  line-height: var(--type-display-lh);
}

.hero-lead {
  max-width: 720px;
  color: var(--ink);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  line-height: var(--lh-body-tight);
}

.hero-text,
.body-stack p,
.section-head p:not(.eyebrow),
.latest-event p,
.event-card p,
.newsletter-section p,
.detail-block p,
.checkout-note,
.organizer-card p {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.hero-text,
.body-stack p,
.section-head p:not(.eyebrow),
.newsletter-section p,
.detail-block p {
  max-width: 46em;
  overflow-wrap: anywhere;
}

.detail-block h2 {
  max-width: 14em;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.16;
}

.event-zoom-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.event-zoom-link:hover,
.event-zoom-link:focus-visible {
  color: var(--accent-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--btn-min-width);
  min-height: var(--btn-min-height);
  padding: 0 var(--btn-pad-x);
  border: 1px solid var(--rule-strong);
  border-radius: var(--btn-radius);
  font-weight: 700;
  letter-spacing: var(--ls-cta);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--logo-brown);
}

.button:not(.button-primary):hover,
.button:not(.button-primary):focus-visible {
  background: var(--glass-strong);
  border-color: var(--rule-strong);
  color: var(--ink);
}

.hero-ticket,
.glass-card,
.checkout-card,
.organizer-card {
  background: rgba(255, 250, 245, 0.045);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

:root[data-theme="light"] .hero-ticket,
:root[data-theme="light"] .glass-card,
:root[data-theme="light"] .checkout-card,
:root[data-theme="light"] .organizer-card {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.hero-ticket {
  display: grid;
  grid-template-rows: clamp(200px, 26vh, 280px) auto;
  gap: 0;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: end;
  align-self: center;
  overflow: clip;
  padding: 0;
}

.ticket-kicker,
.ticket-place,
.ticket-stats dt,
.event-meta,
.section-label,
.focus-card h3 + p,
.session-list span,
.checkout-card dt,
.organizer-card span {
  font-family: var(--font-latin);
}

.hero-ticket-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ticket-copy {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: clamp(22px, 2.5vw, 32px);
}

.hero-ticket-copy h2 {
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.28;
}

.hero-ticket .event-meta {
  gap: var(--space-1) var(--space-2);
  font-size: 0.72rem;
  line-height: 1.55;
}

.hero-ticket-copy .button {
  justify-self: start;
  min-width: min(100%, 210px);
  min-height: 48px;
  margin-top: var(--space-2);
  padding-inline: 24px;
}

.ticket-kicker {
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.ticket-date {
  font-family: var(--font-latin);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  line-height: 0.95;
}

.ticket-place {
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.ticket-divider {
  height: 1px;
  background: var(--rule);
}

.ticket-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--rule);
}

.ticket-stats div {
  padding: 14px;
  background: rgba(11, 8, 8, 0.68);
}

:root[data-theme="light"] .ticket-stats div {
  background: rgba(255, 255, 255, 0.92);
}

.ticket-stats dt {
  color: var(--ink-mute);
  font-size: 0.7rem;
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.ticket-stats dd {
  margin: 4px 0 0;
  color: var(--accent-soft);
  font-size: 1.6rem;
  font-weight: 700;
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.report-band {
  border-top: 1px solid var(--rule);
}

.report-layout,
.split-section,
.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-7), 6vw, var(--space-9));
}

.report-layout > p,
.newsletter-section > p {
  align-self: end;
}

.focus-grid,
.event-grid,
.session-list,
.ticket-list {
  display: grid;
  gap: var(--space-5);
}

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

.focus-card {
  overflow: hidden;
}

.focus-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.focus-card div {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.focus-card h3 {
  color: var(--ink);
  font-size: clamp(21px, 1.6vw, 28px);
  line-height: var(--type-h3-lh);
}

.events-section .section-head {
  margin-bottom: var(--space-7);
}

.latest-event {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--space-6);
  overflow: hidden;
  margin-bottom: var(--space-8);
  padding: var(--space-4);
}

.latest-event > img {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 28vw, 460px);
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
}

.latest-event-copy {
  align-content: center;
  gap: var(--space-4);
  padding: clamp(20px, 3vw, 40px) clamp(20px, 3.5vw, 48px);
}

.latest-event-copy h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.26;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  color: var(--ink-mute);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.event-tags li {
  padding: 5px 10px;
  border: 1px solid rgba(18, 169, 224, 0.34);
  border-radius: var(--radius-pill);
  background: var(--glass-cyan);
  color: var(--accent-soft);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: var(--lh-caption);
}

:root[data-theme="light"] .event-tags li {
  color: var(--accent);
}

.archive-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-row button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-row button[aria-pressed="true"],
.filter-row button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--logo-brown);
}

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

.event-card {
  overflow: hidden;
}

.empty-state {
  grid-column: 1 / -1;
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 245, 0.035);
  color: var(--ink-soft);
}

:root[data-theme="light"] .empty-state {
  background: rgba(255, 255, 255, 0.82);
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-card-body {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.newsletter-section {
  align-items: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-8) var(--section-pad-x) var(--space-6);
  border-top: 1px solid var(--rule);
  color: var(--ink-mute);
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.site-footer div {
  display: grid;
  gap: var(--space-3);
}

.site-footer img {
  width: 260px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

:root[data-theme="light"] .site-footer img {
  filter: none;
  opacity: 1;
}

.site-footer a {
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 0.8rem;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.event-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 82vh;
  padding: clamp(124px, 11vw, 160px) var(--section-pad-x) clamp(72px, 8vw, 104px);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  gap: clamp(var(--space-7), 7vw, 120px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 8, 8, 0.72) 0%, rgba(11, 8, 8, 0.52) 46%, rgba(11, 8, 8, 0.88) 100%),
    url("./assets/event-room.jpg") center / cover no-repeat;
  box-shadow: inset 0 -140px 120px rgba(11, 8, 8, 0.9);
}

:root[data-theme="light"] .event-hero {
  background:
    linear-gradient(90deg, rgba(232, 232, 237, 0.84) 0%, rgba(210, 210, 215, 0.68) 46%, rgba(245, 245, 247, 0.86) 100%),
    url("./assets/event-room.jpg") center / cover no-repeat;
  box-shadow: inset 0 -120px 110px rgba(232, 232, 237, 0.9);
}

.event-hero-media {
  align-self: center;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 520px);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .event-hero-media {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.event-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.event-hero-copy {
  display: grid;
  gap: var(--space-4);
  align-content: center;
  max-width: 880px;
}

.event-hero-copy h1 {
  max-width: 13em;
  font-size: clamp(32px, 3.1vw, 46px);
  line-height: 1.12;
}

.event-hero-copy p:not(.eyebrow) {
  max-width: 46em;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.event-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(var(--space-6), 4vw, var(--space-8));
  align-items: start;
  padding-top: var(--space-8);
}

.event-detail {
  display: grid;
  gap: var(--space-8);
}

.session-list span {
  color: var(--accent);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.session-list,
.ticket-list {
  margin-top: var(--space-2);
}

.session-list article,
.ticket-list article {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
}

.event-timetable {
  padding: 0;
  margin: var(--space-2) 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.event-timetable li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--rule);
}

.event-timetable time {
  color: var(--accent);
  font-family: var(--font-latin);
  font-weight: 700;
  line-height: var(--lh-caption);
}

.event-timetable span {
  color: var(--ink);
  font-weight: 700;
  line-height: var(--lh-body-tight);
}

.ticket-list article {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ticket-list strong {
  color: var(--accent-soft);
  font-family: var(--font-latin);
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-lh);
}

.checkout-panel {
  position: sticky;
  top: 118px;
  display: grid;
  gap: var(--space-4);
}

.checkout-card,
.organizer-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.checkout-card h2 {
  font-family: var(--font-latin);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
}

.checkout-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.checkout-card dl div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.checkout-card dt {
  color: var(--ink-mute);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-caption);
  text-transform: uppercase;
}

.checkout-card dd {
  margin: 0;
  color: var(--ink-soft);
}

.organizer-card img {
  width: 240px;
  filter: brightness(0) invert(1);
}

:root[data-theme="light"] .organizer-card img {
  filter: none;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .home-hero,
  .event-hero,
  .event-shell,
  .report-layout,
  .split-section,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .event-hero {
    gap: var(--space-7);
  }

  .focus-grid,
  .event-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    left: 14px;
    right: 14px;
    top: 12px;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo {
    height: 28px;
    max-width: min(188px, 42vw);
    object-fit: contain;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .nav-cta {
    min-width: auto;
    padding: 0 14px;
  }

  .home-hero,
  .event-hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: var(--space-7);
  }

  .hero-ticket {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 68px);
    line-height: 1;
  }

  .section-head {
    margin-bottom: var(--space-6);
  }

  .section-head h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .event-hero-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 0;
  }

  .focus-grid,
  .event-grid,
  .ticket-stats {
    grid-template-columns: 1fr;
  }

  .latest-event {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .latest-event > img {
    height: clamp(240px, 62vw, 320px);
    min-height: 0;
  }

  .latest-event-copy {
    padding: var(--space-4) var(--space-3) var(--space-5);
  }

  .archive-toolbar,
  .site-footer,
  .ticket-list article {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
    min-width: 0;
  }

  .event-timetable li,
  .checkout-card dl div {
    grid-template-columns: 1fr;
  }
}
