/* COZMUN'26 — v2: resmi, koyu tasarım ("Make Solutions") */

:root {
  color-scheme: dark; /* single dark look: native controls and scrollbars follow it */
  --bg: #060b1d;
  --bg-2: #081128;
  --bg-3: #040816;
  --panel: #0b1531;
  --panel-2: #0f1c3f;
  --line: rgba(236, 228, 211, 0.12);
  --line-2: rgba(236, 228, 211, 0.24);

  --ivory: #f2ece0;
  --text: #c9cedd;
  --muted: #8b93ac;
  --coral: #ef6a52;
  --crimson: #c6363d;
  --crimson-2: #9b1d30;
  --navy-logo: #081947;

  --grad: linear-gradient(100deg, #f07a5f 0%, #d6453f 55%, #b02a36 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ivory);
  font-variant-numeric: lining-nums;
}

h1 em,
h2 em,
.motto em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

::selection {
  background: rgba(198, 54, 61, 0.45);
  color: #fff;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.container.narrow {
  width: min(860px, 100% - 48px);
}

/* 4-point star taken from the "O" of the COZMUN wordmark */
.star {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--coral);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 0.76rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn svg,
.link-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.7rem;
}

.btn-crimson {
  background: linear-gradient(180deg, #cf3d42, #a8242f);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(198, 54, 61, 0.8);
}

.btn-crimson:hover {
  background: linear-gradient(180deg, #db4a49, #b52b35);
}

.btn-line {
  border-color: var(--line-2);
  color: var(--ivory);
}

.btn-line:hover {
  border-color: var(--ivory);
  background: rgba(242, 236, 224, 0.05);
}

.btn.is-disabled {
  pointer-events: none;
  color: var(--muted);
  border-color: var(--line);
}

.is-muted {
  filter: saturate(0.35);
  opacity: 0.85;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  transition: gap 0.25s var(--ease), color 0.25s;
}

.link-arrow:hover {
  gap: 12px;
  color: var(--coral);
}

/* ---------- Seal (ivory emblem framed by thin rings, no light fill) ---------- */
.seal {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 68, 160, 0.22), transparent 70%);
  box-shadow:
    0 0 0 1px rgba(242, 236, 224, 0.18),
    0 0 0 7px rgba(242, 236, 224, 0.03),
    0 0 0 8px rgba(242, 236, 224, 0.08);
}

.seal-sm {
  width: 92px;
  height: 92px;
}

.seal-sm img {
  width: 76px;
  height: 76px;
}

/* ---------- Hero mark: ivory logo, two slow orbits and a breathing glow ----------
   Only transform and opacity animate, and only on HTML elements (an animation on an <svg>
   runs on the main thread), so the GPU drives it and it never waits for page scripts.
   .is-idle (set when the hero is scrolled away) pauses everything. */
.hero-mark {
  position: relative;
  width: clamp(190px, 21vw, 260px);
  aspect-ratio: 560 / 586;
  animation: mark-in 1.1s var(--ease) both;
}

/* cozmun-logo-hero.webp is the 560x586 logo with its drop shadow drawn in
   (0 18px 30px at 260px wide), so no filter is recomputed while it floats.
   The logo sits at 104,72 inside the 758x804 image. */
.mark-logo {
  position: absolute;
  z-index: 2;
  left: calc(100% * -104 / 560);
  top: calc(100% * -72 / 586);
  width: calc(100% * 758 / 560);
  max-width: none;
  height: auto;
  animation: mark-float 7s ease-in-out infinite;
  will-change: transform;
}

.mark-glow {
  position: absolute;
  inset: -18%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 96, 196, 0.42) 0%, rgba(198, 54, 61, 0.14) 42%, transparent 68%);
  animation: mark-glow 6s ease-in-out infinite;
  will-change: opacity;
}

/* Centred on (50%, 47%) with margins (percent margins follow the width), leaving transform to the spin */
.mark-orbit {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 1;
  width: 158%;
  aspect-ratio: 1;
  margin: -79% 0 0 -79%;
  will-change: transform;
}

.mark-orbit svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-a {
  animation: orbit-tilted 26s linear infinite;
}

.orbit-b {
  width: 128%;
  margin: -64% 0 0 -64%;
  animation: orbit-spin 70s linear infinite reverse;
}

@keyframes mark-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes mark-float {
  50% { transform: translateY(-8px); }
}

@keyframes mark-glow {
  50% { opacity: 0.55; }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-tilted {
  from { transform: rotate(-14deg); }
  to { transform: rotate(346deg); }
}

.hero.is-idle .hero-mark,
.hero.is-idle .hero-mark * {
  animation-play-state: paused;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px); /* clear a phone's status bar */
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}

.site-header.is-solid,
.menu-open .site-header {
  background: rgba(6, 11, 29, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  width: min(1280px, 100% - 48px);
  height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.brand-seal img {
  width: 44px;
  height: 44px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text b {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ivory);
}

.brand-text small {
  margin-top: 5px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--ivory);
}

.nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Pages & motion ---------- */
.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: fade 0.5s ease both;
}

.page.is-active [data-reveal] {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 100ms);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.page-top {
  padding-top: 170px;
  min-height: 80vh;
}

.page-head {
  max-width: 780px;
  margin: 0 auto 72px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.page-head p {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.ornament span {
  width: 56px;
  height: 1px;
  background: var(--line-2);
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Status ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
}

.status .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf7a;
}

.status .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #3ecf7a;
  animation: pulse 2s ease-out infinite;
}

.status[data-phase="soon"] .dot { background: #e0a43a; }
.status[data-phase="soon"] .dot::after { border-color: #e0a43a; }
.status[data-phase="live"] .dot { background: var(--coral); }
.status[data-phase="live"] .dot::after { border-color: var(--coral); }

.status[data-phase="closed"] .dot,
.status[data-phase="ended"] .dot {
  background: var(--muted);
}

.status[data-phase="closed"] .dot::after,
.status[data-phase="ended"] .dot::after {
  display: none;
}

@keyframes pulse {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(1.8); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 50% 34%, rgba(31, 68, 160, 0.32), transparent 72%),
    radial-gradient(45% 35% at 50% 105%, rgba(198, 54, 61, 0.26), transparent 70%),
    var(--bg);
}

.globe-lines {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(980px, 150vw);
  transform: translate(-50%, -50%);
  stroke: rgba(242, 236, 224, 0.07);
  stroke-width: 1;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}

.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 0 64px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 40px 0 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.motto {
  font-size: clamp(3.6rem, 10vw, 7.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.motto .stop {
  color: var(--coral);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0 38px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-meta span {
  padding: 0 18px;
}

.hero-meta span + span {
  border-left: 1px solid var(--line-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* No backdrop blur: the hero behind it is a smooth gradient, so it changed no pixels
   but had to be recomputed on every frame of the pulsing status dot. */
.hero-band {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 22, 0.55);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.countdown-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cd-caption {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown {
  display: flex;
}

.cd-unit {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 20px;
}

.cd-unit + .cd-unit {
  border-left: 1px solid var(--line);
}

.cd-unit:last-child {
  padding-right: 0;
}

.cd-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums lining-nums;
}

.cd-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-msg {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ivory);
}

/* ---------- Motto + facts ---------- */
.motto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 72px;
}

.h-display {
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.98;
}

.lead-serif {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: #e4dfd4;
}

.sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--coral);
}

.sign::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--coral);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  border-block: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 16px;
  text-align: center;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: lining-nums;
}

.fact-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Agenda list ---------- */
.agenda-list {
  border-top: 1px solid var(--line-2);
}

.agenda-row {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 140px 1fr 190px 28px;
  align-items: center;
  gap: 24px;
  padding: 30px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.agenda-row:hover,
.agenda-row:focus-visible {
  background: linear-gradient(90deg, rgba(198, 54, 61, 0.1), transparent 70%);
}

.agenda-row .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
}

.agenda-row .code {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ivory);
  transition: color 0.3s;
}

.agenda-row:hover .code {
  color: var(--coral);
}

.agenda-row .what b {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.agenda-row .what em {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ivory);
}

.agenda-row .type {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.agenda-row .go svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ivory);
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease), stroke 0.3s;
}

.agenda-row:hover .go svg {
  transform: translateX(4px);
  stroke: var(--coral);
}

/* ---------- Panels (venue + applications) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

.panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.panel-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 36px 36px;
}

.panel-body h3 {
  font-size: 2.1rem;
}

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

.panel-body .link-arrow {
  margin-top: 22px;
}

.venue-map {
  height: 240px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.venue-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.92) contrast(0.95);
}

/* Map placeholder for previews that cannot embed Google Maps: a survey grid with the campus pin */
.venue-map-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(198, 54, 61, 0.22), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(242, 236, 224, 0.06) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(242, 236, 224, 0.06) 31px 32px),
    var(--panel-2);
}

.venue-map-link .pin {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--coral);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(239, 106, 82, 0.18);
}

.venue-map-link .coords {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.venue-map-link:hover .link-arrow {
  gap: 12px;
  color: var(--coral);
}

.apply-panel {
  display: flex;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(198, 54, 61, 0.22), transparent 70%),
    var(--panel);
}

.apply-panel .panel-body {
  justify-content: center;
  width: 100%;
}

.progress {
  width: 100%;
  height: 3px;
  margin-top: 28px;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--grad);
}

.progress-dates {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 30px;
}

.panel-actions .link-arrow {
  margin-top: 0;
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 70% at 50% 100%, rgba(198, 54, 61, 0.22), transparent 70%), var(--bg);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing h2 {
  margin-top: 36px;
  font-size: clamp(3rem, 7vw, 5.2rem);
}

.closing p {
  max-width: 520px;
  margin: 18px 0 34px;
  color: var(--muted);
}

/* ---------- Team ---------- */
.team-group + .team-group {
  margin-top: 96px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  font-size: 2rem;
}

.group-title::before,
.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Flex instead of grid so a short last row (or a one-person group) stays centred */
.team-grid {
  --cols: 4;
  --gap: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px var(--gap);
}

.person {
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  text-align: center;
}

.person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #12204a, #0a1430);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.person-photo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(242, 236, 224, 0.08);
  pointer-events: none;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25);
  transition: filter 0.4s, transform 0.6s var(--ease);
}

.person:hover .person-photo img {
  filter: none;
  transform: scale(1.03);
}

.photo-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.photo-ph svg {
  width: 40%;
  fill: rgba(242, 236, 224, 0.07);
}

.person h3 {
  font-size: 1.45rem;
}

.person h3.is-tba {
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}

.person .role {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- Committees ---------- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.committee {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 32px 32px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.committee:nth-child(-n + 2) {
  grid-column: span 3;
}

.committee::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(242, 236, 224, 0.06);
  box-shadow: 0 0 0 40px rgba(242, 236, 224, 0.015), 0 0 0 41px rgba(242, 236, 224, 0.05);
  pointer-events: none;
}

.committee:hover,
.committee:focus-visible {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.committee-body {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Committees with artwork: the image fills the card and the text sits on a dark fade */
.committee.has-art {
  isolation: isolate;
  min-height: 540px;
  border-color: rgba(236, 228, 211, 0.16);
  background: var(--bg-3);
}

.committee.has-art::after {
  display: none;
}

.committee.has-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      rgba(4, 8, 22, 0.72) 0%,
      rgba(4, 8, 22, 0.1) 18%,
      rgba(4, 8, 22, 0.32) 34%,
      rgba(4, 8, 22, 0.9) 52%,
      rgba(4, 8, 22, 0.97) 100%);
}

.committee-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.committee.has-art:hover .committee-art,
.committee.has-art:focus-visible .committee-art {
  transform: scale(1.05);
  filter: saturate(1) brightness(0.92);
}

.committee.has-art .committee-top {
  color: rgba(242, 236, 224, 0.82);
}

.committee.has-art .committee-body {
  justify-content: flex-end;
}

.committee.has-art .committee-code {
  font-size: clamp(3rem, 5vw, 4.2rem);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.committee.has-art .committee-name {
  border-bottom-color: rgba(242, 236, 224, 0.22);
}

.committee.has-art .committee-name,
.committee.has-art .committee-agenda {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}

.committee.has-art .committee-agenda {
  flex: 0 0 auto;
}

.committee-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.committee-top span:first-child {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.committee-code {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--ivory);
}

.committee-name {
  margin-top: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.committee-agenda {
  flex: 1;
  margin: 20px 0 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #e4dfd4;
}

.committee:hover .link-arrow {
  gap: 12px;
  color: var(--coral);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
}

.modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(198, 54, 61, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}

.modal.is-open .modal-backdrop,
.modal.is-open .modal-dialog {
  opacity: 1;
  transform: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(6, 11, 29, 0.6);
  cursor: pointer;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ivory);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.modal-media {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.modal-media[hidden] {
  display: none;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* With a poster: poster on the left, text on the right (the artwork strip is for small screens) */
.modal-dialog.has-poster {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
}

.modal-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-right: 1px solid var(--line);
}

.modal-poster[hidden] {
  display: none;
}

.modal-poster img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - 50px);
  object-fit: contain;
}

.has-poster .modal-media {
  display: none;
}

.has-poster .modal-body {
  align-self: center;
}

.modal-body {
  padding: 40px 40px 40px;
}

.modal-kicker {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}

.modal-code {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--ivory);
}

.modal-body h3 {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.modal-agenda {
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ivory);
}

.modal-desc {
  margin: 16px 0 0;
  color: var(--text);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Apply ---------- */
.window-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 72px;
  padding: 34px 40px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(198, 54, 61, 0.2), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.window-panel h2 {
  margin-top: 14px;
  font-size: 2.2rem;
}

.window-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.window-progress .progress {
  margin-top: 0;
}

.roles {
  border-top: 1px solid var(--line-2);
}

.roles-head,
.role-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 120px 150px;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
}

.roles-head {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.role-row {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.role-row:hover {
  background: rgba(242, 236, 224, 0.025);
}

.role-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
}

.role-sub {
  font-size: 0.92rem;
  color: var(--muted);
}

.role-fee {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.role-act {
  justify-self: end;
}

.role-row.is-featured {
  background: linear-gradient(90deg, rgba(198, 54, 61, 0.14), transparent 75%);
  box-shadow: inset 2px 0 0 var(--crimson);
}

.articles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 96px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.articles li {
  padding: 36px 32px 8px;
}

.articles li + li {
  border-left: 1px solid var(--line);
}

.articles span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--coral);
}

.articles h3 {
  margin: 14px 0 8px;
  font-size: 1.6rem;
}

.articles p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Schedule ---------- */
.day-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.day-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 32px 18px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  cursor: pointer;
  transition: color 0.25s;
}

.day-tab b {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}

.day-tab small {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.day-tab::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.day-tab.active {
  color: var(--ivory);
}

.day-tab.active::after {
  transform: scaleX(1);
}

.proceedings {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.proceedings.active {
  display: block;
}

.proc {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
}

.proc time {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.proc .sess {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory);
}

.proc .kind {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.k-ceremony {
  background: linear-gradient(90deg, rgba(198, 54, 61, 0.16), transparent 80%);
  box-shadow: inset 2px 0 0 var(--crimson);
}

.k-ceremony time,
.k-ceremony .kind {
  color: var(--coral);
}

.k-break {
  padding-block: 14px;
}

.k-break .sess {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}

.k-session .kind {
  color: var(--text);
}

.k-social {
  background: linear-gradient(90deg, rgba(58, 96, 196, 0.18), transparent 80%);
  box-shadow: inset 2px 0 0 var(--ivory);
}

.k-social .kind {
  color: var(--ivory);
}

/* ---------- Suggest ---------- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.food {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.food:not(.is-soon):hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.food-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #13224d, #0a1430);
  border-bottom: 1px solid var(--line);
}

.food-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food.is-soon .food-cover {
  background: repeating-linear-gradient(-45deg, #0b1531 0 14px, #0d1838 14px 28px);
}

.food-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: rgba(242, 236, 224, 0.28);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deal {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 2px;
  background: var(--crimson);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.food-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 28px 30px;
}

.food-body .eyebrow {
  margin-bottom: 10px;
}

.food-body h3 {
  font-size: 1.7rem;
}

.food-body p {
  margin: 8px 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.food-body .link-arrow {
  margin-top: 18px;
}

.food.is-soon h3 {
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 80px;
}

.faq-aside {
  position: sticky;
  top: 130px;
}

.faq-aside h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.help-panel {
  margin-top: 40px;
  padding: 30px 32px;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(198, 54, 61, 0.2), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.help-panel h3 {
  font-size: 1.6rem;
}

.help-panel p {
  margin: 6px 0 18px;
  font-size: 0.93rem;
  color: var(--muted);
}

.help-panel ul,
.footer-cols ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.help-panel a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.help-panel a:hover {
  border-color: var(--coral);
}

.tba {
  color: var(--muted);
}

.contact-label {
  margin-right: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ivory);
  text-align: left;
  cursor: pointer;
}

.plus {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  margin-left: -6px;
  background: var(--ivory);
}

.plus::after {
  transform: rotate(90deg);
}

.faq-item.open .plus {
  transform: rotate(45deg);
  border-color: var(--crimson);
  background: var(--crimson);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-a > div {
  overflow: hidden;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a p {
  margin: 0;
  padding: 0 60px 28px 4px;
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 96px 0 32px;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-word {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ivory);
}

.footer-word span {
  color: var(--coral);
}

.footer-motto {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
}

.footer-motto em {
  font-style: italic;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  padding: 48px 0;
  border-block: 1px solid var(--line);
  text-align: center;
}

.footer-cols h4 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
}

.footer-cols li {
  font-size: 0.92rem;
}

.footer-cols a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cols a:hover {
  color: var(--ivory);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a {
    padding: 10px 9px;
    letter-spacing: 0.12em;
  }

  .nav a::after {
    left: 9px;
    right: 9px;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .header-cta {
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    color: var(--coral);
  }

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

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

  .fact:nth-child(3) {
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .agenda-row {
    grid-template-columns: 40px 110px 1fr 24px;
  }

  .agenda-row .type {
    display: none;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    --cols: 3;
  }

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

  .committee,
  .committee:nth-child(-n + 2) {
    grid-column: span 1;
  }

  .committee:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .window-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .window-panel .btn {
    justify-self: start;
  }

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

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-aside {
    position: static;
  }

  .band-inner {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 22px 0;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 88px 0;
  }

  .page-top {
    padding-top: 130px;
  }

  .page-head {
    margin-bottom: 48px;
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
  }

  .agenda-row {
    grid-template-columns: 1fr 24px;
    gap: 6px 16px;
    padding: 24px 4px;
  }

  .agenda-row .num {
    display: none;
  }

  .agenda-row .code {
    grid-column: 1;
    font-size: 1.6rem;
  }

  .agenda-row .what {
    grid-column: 1;
  }

  .agenda-row .go {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .team-grid {
    --cols: 2;
    --gap: 16px;
    row-gap: 32px;
  }

  .person h3 {
    font-size: 1.2rem;
  }

  .person .role {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .committee-grid,
  .food-grid {
    grid-template-columns: 1fr;
  }

  .committee:last-child:nth-child(odd) {
    grid-column: span 1;
  }

  .roles-head {
    display: none;
  }

  .role-row {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 22px 12px;
  }

  .role-name {
    grid-column: 1;
  }

  .role-fee {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .role-sub {
    grid-column: 1 / -1;
  }

  .role-act {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
  }

  .articles {
    grid-template-columns: 1fr;
  }

  .articles li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .articles li {
    padding: 28px 4px 24px;
  }

  .proc {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 18px 12px;
  }

  .proc time {
    grid-column: 1;
  }

  .proc .kind {
    grid-column: 2;
    grid-row: 1;
  }

  .proc .sess {
    grid-column: 1 / -1;
    font-size: 1.35rem;
  }

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .modal {
    padding: 12px;
    align-items: end;
  }

  .modal-dialog.has-poster {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-actions .btn {
    height: auto;
    min-height: 40px;
    padding-block: 10px;
    white-space: normal;
    text-align: left;
  }

  .modal-poster,
  .modal-poster[hidden] {
    display: none;
  }

  .has-poster .modal-media {
    display: block;
  }

  .modal-body {
    padding: 32px 24px 28px;
  }

  .committee.has-art {
    min-height: 460px;
  }

  .modal-code {
    font-size: 2.8rem;
  }

  .faq-q {
    font-size: 1.3rem;
  }

  .faq-a p {
    padding-right: 8px;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow {
    width: calc(100% - 32px);
  }

  .header-inner {
    width: calc(100% - 32px);
    height: 68px;
  }

  .nav {
    left: -16px;
    right: -16px;
    padding-inline: 16px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    padding-top: 112px;
  }

  .kicker {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .hero-meta span + span {
    border-left: 0;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .countdown-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .cd-unit {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
  }

  .cd-unit:last-child {
    padding-right: 14px;
  }

  .cd-num {
    font-size: 1.8rem;
  }

  .cd-label {
    font-size: 0.58rem;
  }

  .facts {
    margin-top: 64px;
  }

  .fact {
    padding: 30px 8px;
  }

  .panel-body {
    padding: 28px 24px 30px;
  }

  .window-panel {
    padding: 28px 24px;
  }

  .day-tab {
    padding-inline: 18px;
  }

  .group-title {
    font-size: 1.6rem;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
