:root {
  color-scheme: light;
  --ink: #111315;
  --ink-soft: #32373b;
  --paper: #f7f4ed;
  --paper-strong: #fffdf8;
  --line: #d9d1c2;
  --line-strong: #bfae96;
  --red: #9f2f24;
  --red-strong: #7f2119;
  --teal: #1e6f78;
  --teal-soft: #dbecea;
  --gold: #b58a43;
  --green: #547552;
  --blue: #314972;
  --shadow: 0 18px 45px rgba(24, 22, 18, 0.12);
  --max: 1180px;
  --radius: 8px;
  --header-h: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 19, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0.82rem 0.9rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 111, 120, 0.16);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-weight: 650;
}

code {
  border: 1px solid rgba(159, 47, 36, 0.18);
  border-radius: 5px;
  background: rgba(159, 47, 36, 0.08);
  padding: 0.15rem 0.35rem;
  color: var(--red-strong);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.9);
  border-bottom: 1px solid rgba(17, 19, 21, 0.08);
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  box-shadow: 0 10px 28px rgba(24, 22, 18, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  object-fit: contain;
  height: auto;
  display: block;
  flex: 0 1 auto;
}

.brand-logo-aims {
  width: 210px;
  max-height: 48px;
}

.brand-logo-afriqa {
  width: 122px;
  max-height: 48px;
}

.brand-divider {
  width: 1px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--line-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  border-radius: 6px;
  padding: 0.62rem 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(159, 47, 36, 0.08);
  color: var(--red-strong);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  place-items: center;
  gap: 4px;
  padding: 0.55rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.hero {
  position: relative;
  max-width: none;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  padding: 0;
  background:
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #101113 0%, #171917 42%, #2b211d 100%);
  color: white;
}

#quantum-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.74;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.18), rgba(16, 17, 19, 0.76)),
    linear-gradient(0deg, rgba(16, 17, 19, 0.72), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b79e;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 0.98;
  font-weight: 600;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  max-width: 690px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.78rem 1rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button:disabled:hover,
.button:disabled:focus-visible,
.button[aria-disabled="true"]:hover,
.button[aria-disabled="true"]:focus-visible {
  transform: none;
}

.button.primary {
  background: var(--red);
  color: white;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-strong);
}

.button.secondary {
  border-color: rgba(159, 47, 36, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--red-strong);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.2rem 0 0;
}

.event-facts div {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 1rem;
}

.event-facts dt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0.15rem 0 0;
  color: white;
  font-weight: 850;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(17, 19, 21, 0.42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  padding: 1.1rem;
}

.bloch-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px),
    rgba(255, 255, 255, 0.04);
}

.sphere,
.axis,
.state-vector,
.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.sphere {
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 36px rgba(181, 138, 67, 0.16);
}

.axis {
  width: 1px;
  height: 76%;
  background: rgba(255, 255, 255, 0.38);
}

.axis-z {
  transform: translate(-50%, -50%) rotate(0deg);
}

.axis-x {
  transform: translate(-50%, -50%) rotate(70deg);
}

.state-vector {
  width: 2px;
  height: 34%;
  background: #f0b79e;
  transform: translate(-50%, -100%) rotate(38deg);
}

.state-vector::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0b79e;
}

.orbit {
  width: 68%;
  height: 28%;
  border: 1px solid rgba(111, 188, 184, 0.54);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
}

.orbit-b {
  width: 54%;
  height: 24%;
  border-color: rgba(245, 205, 138, 0.48);
  transform: translate(-50%, -50%) rotate(-46deg);
}

.panel-kicker {
  margin: 1rem 0 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

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

.countdown span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.8rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
}

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

.countdown strong {
  font-size: 1.75rem;
  line-height: 1;
}

.countdown small {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.circuit-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.circuit-strip span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.36rem 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.circuit-strip i {
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.stats-band {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--paper-strong);
}

.stat {
  min-height: 136px;
  padding: 1.5rem;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
}

.stat span {
  max-width: 180px;
  color: var(--ink-soft);
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
}

.section-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2.2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

.theme-grid,
.speaker-grid,
.committee-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.theme-card,
.speaker-card,
.committee-grid article,
.info-grid article,
.deadline-panel,
.portal-panels,
.portal-sidebar,
.contact-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.theme-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  padding: 1.1rem;
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(30, 111, 120, 0.08) 18px 19px),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(159, 47, 36, 0.05));
  opacity: 0.9;
  pointer-events: none;
}

.theme-card > * {
  position: relative;
}

.theme-index {
  display: inline-flex;
  border-bottom: 2px solid var(--red);
  color: var(--red-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.theme-card h3 {
  margin-top: 3rem;
  min-height: 3.1rem;
}

.theme-card p,
.speaker-card p,
.committee-grid p,
.info-grid p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.theme-map-section {
  max-width: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(30, 111, 120, 0.12), transparent 28%),
    radial-gradient(circle at 78% 74%, rgba(181, 138, 67, 0.13), transparent 30%),
    var(--ink);
  color: white;
}

.theme-map-section > .section-heading,
.theme-map {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.theme-map-section .eyebrow {
  color: #f0b79e;
}

.theme-map-section h2 {
  color: white;
}

.theme-map-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.theme-map {
  position: relative;
  min-height: 610px;
  margin-top: 2rem;
  padding: 0 1.25rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  overflow: hidden;
}

.theme-map::before,
.theme-map::after {
  content: "";
  position: absolute;
  inset: 12% 9%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.theme-map::after {
  inset: 20% 18%;
  border-color: rgba(240, 183, 158, 0.18);
  transform: rotate(24deg);
}

.theme-node {
  position: absolute;
  z-index: 1;
  width: min(260px, 40vw);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  padding: 1rem;
}

.theme-node::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f0b79e;
  box-shadow: 0 0 0 5px rgba(240, 183, 158, 0.13);
  left: 1rem;
  top: -7px;
}

.theme-node strong,
.theme-node span {
  display: block;
}

.theme-node strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.theme-node span {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.node-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(159, 47, 36, 0.42);
}

.node-a {
  left: 8%;
  top: 8%;
}

.node-b {
  right: 8%;
  top: 10%;
}

.node-c {
  left: 7%;
  bottom: 13%;
}

.node-d {
  right: 11%;
  bottom: 18%;
}

.node-e {
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
}

.programme-section {
  max-width: none;
  background:
    linear-gradient(90deg, rgba(84, 117, 82, 0.1), transparent 24%, transparent 76%, rgba(181, 138, 67, 0.1)),
    var(--paper-strong);
}

.programme-section > .section-heading,
.programme-layout,
.day-tabs {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.day-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0 1.25rem 1rem;
}

.day-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink-soft);
  padding: 0.7rem 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.day-tab[aria-selected="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.programme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  padding: 0 1.25rem;
}

.timeline-shell {
  border-left: 1px solid var(--line-strong);
  padding-left: 1.4rem;
}

.programme-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.programme-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 1rem;
}

.programme-item::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--paper-strong);
}

.programme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 780;
}

.programme-item h3 {
  font-size: 1.02rem;
}

.programme-item p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.deadline-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.2rem;
}

.deadline-panel ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
  padding-left: 1.1rem;
}

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

.speaker-card {
  padding: 1rem;
}

.speaker-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(17, 19, 21, 0.16);
  background:
    repeating-linear-gradient(45deg, rgba(159, 47, 36, 0.14) 0 4px, transparent 4px 10px),
    var(--teal-soft);
  display: grid;
  place-items: center;
  color: var(--red-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.speaker-card h3 {
  margin-top: 1rem;
}

.speaker-card .role {
  display: inline-flex;
  margin-top: 0.75rem;
  border-radius: 5px;
  background: rgba(30, 111, 120, 0.1);
  color: var(--teal);
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 850;
}

.split-band {
  max-width: none;
  background: var(--ink);
  color: white;
}

.split-band > .section-heading,
.committee-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.split-band .eyebrow {
  color: #f0b79e;
}

.split-band h2 {
  color: white;
}

.committee-grid {
  padding: 0 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.committee-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  padding: 1rem;
}

.committee-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.portal-section {
  max-width: none;
  background:
    repeating-linear-gradient(120deg, rgba(17, 19, 21, 0.035) 0 1px, transparent 1px 24px),
    var(--paper);
}

.portal-section > .section-heading,
.portal-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.portal-notice {
  border: 1px solid rgba(159, 47, 36, 0.22);
  border-radius: 8px;
  background: rgba(159, 47, 36, 0.08);
  color: var(--red-strong);
  padding: 0.9rem 1rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.portal-notice.is-online {
  border-color: rgba(30, 111, 120, 0.22);
  background: rgba(30, 111, 120, 0.1);
  color: var(--teal);
}

.portal-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
  padding: 0 1.25rem;
  min-width: 0;
}

.portal-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  min-width: 0;
}

.portal-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.72rem 0.75rem;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
  min-height: 44px;
}

.portal-tab:hover,
.portal-tab:focus-visible,
.portal-tab.active {
  background: rgba(159, 47, 36, 0.09);
  color: var(--red-strong);
}

.portal-panels {
  min-height: 640px;
  padding: 1.1rem;
  min-width: 0;
}

.portal-panel {
  display: none;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.portal-panel.active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  min-width: 0;
}

.panel-header > * {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 30px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 850;
}

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

.form-grid .full,
.form-actions {
  grid-column: 1 / -1;
}

.field-note {
  margin: -0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.portal-success {
  margin-top: 1rem;
  border: 1px solid rgba(30, 111, 120, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30, 111, 120, 0.12), rgba(159, 47, 36, 0.06)),
    var(--paper-strong);
  padding: 1rem;
  overflow-wrap: anywhere;
}

.portal-success h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.portal-success p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.progress-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 1rem;
}

.progress-grid strong,
.progress-grid span {
  display: block;
}

.progress-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.progress-grid span {
  color: var(--ink-soft);
  font-weight: 800;
}

.status-timeline {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.status-timeline li {
  border-left: 3px solid var(--line-strong);
  padding: 0.15rem 0 0.15rem 0.8rem;
}

.status-timeline strong {
  display: block;
}

.status-timeline span {
  color: var(--ink-soft);
}

.upload-zone {
  display: grid;
  gap: 1rem;
}

.file-drop {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(30, 111, 120, 0.06);
  padding: 1.2rem;
}

.file-drop input {
  border: 0;
  background: transparent;
  padding: 0;
}

.file-drop span,
.file-drop small {
  display: block;
}

.file-drop span {
  margin-top: 0.6rem;
  color: var(--ink);
}

.file-drop small {
  color: var(--ink-soft);
  font-weight: 600;
}

.uploaded-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.uploaded-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  padding: 0.75rem;
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--paper-strong);
}

caption {
  text-align: left;
  padding: 0.75rem 0.9rem;
  color: var(--ink-soft);
  font-weight: 800;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
}

.table-status {
  display: inline-flex;
  border-radius: 5px;
  background: rgba(181, 138, 67, 0.14);
  color: #77551f;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 850;
}

.table-action {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 0.38rem 0.55rem;
  cursor: pointer;
}

.info-grid-section {
  max-width: none;
  background: var(--paper-strong);
}

.info-grid-section > .section-heading,
.info-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 1.25rem;
}

.info-grid article {
  padding: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 0.9rem 1rem;
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.contact-section p {
  color: var(--ink-soft);
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: white;
  padding: 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-strip img {
  display: block;
  width: min(260px, 34vw);
  max-height: 52px;
  object-fit: contain;
}

.footer-brand-strip span {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.32);
}

.footer-brand-strip img:first-child {
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.footer-brand-strip img:last-child {
  width: 122px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 0.3rem 0.45rem;
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a {
  color: white;
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: min(420px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-grid,
  .two-column,
  .programme-layout,
  .portal-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .deadline-panel,
  .portal-sidebar {
    position: static;
  }

  .portal-sidebar {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .portal-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

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

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

  .header-inner {
    padding: 0 0.9rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-logo-aims {
    width: 136px;
    max-height: 40px;
  }

  .brand-logo-afriqa {
    width: 82px;
    max-height: 38px;
  }

  .brand-divider {
    height: 34px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper-strong);
    padding: 0.7rem;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .portal-section {
    padding-left: 0;
    padding-right: 0;
  }

  .portal-section > .section-heading {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portal-notice {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.95rem;
  }

  .portal-grid {
    gap: 0.85rem;
    padding: 0 0.75rem;
  }

  .portal-sidebar {
    margin: 0 -0.75rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.78);
    padding: 0.45rem 0.75rem;
  }

  .portal-tab {
    padding: 0.68rem 0.75rem;
  }

  .hero-grid {
    min-height: auto;
    padding: 5rem 1rem 3rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .event-facts,
  .stats-band,
  .theme-grid,
  .theme-map,
  .speaker-grid,
  .committee-grid,
  .info-grid,
  .form-grid,
  .progress-grid,
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .theme-map {
    display: grid;
    gap: 0.85rem;
    min-height: 0;
    background-size: 42px 42px;
  }

  .theme-map::before,
  .theme-map::after {
    display: none;
  }

  .theme-node {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .portal-panels {
    min-height: 0;
    padding: 0.85rem 0.25rem;
  }

  .panel-header {
    display: grid;
    gap: 0.55rem;
  }

  .status-pill {
    justify-self: start;
    white-space: normal;
  }

  input,
  textarea,
  select {
    font-size: 1rem;
    padding: 0.78rem 0.8rem;
  }

  .file-drop {
    padding: 0.95rem;
  }

  .table-wrap {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  table {
    min-width: 640px;
  }

  th,
  td {
    padding: 0.65rem 0.7rem;
  }

  .toast {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .footer-brand-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 430px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    gap: 0.55rem;
    padding: 0 0.75rem;
  }

  .brand {
    gap: 0.42rem;
    max-width: calc(100vw - 72px);
  }

  .brand-logo-aims {
    width: 112px;
    max-height: 34px;
  }

  .brand-logo-afriqa {
    width: 70px;
    max-height: 34px;
  }

  .brand-divider {
    height: 30px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-actions,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
    white-space: normal;
  }

  .portal-grid {
    padding: 0 0.6rem;
  }

  .portal-sidebar {
    margin-right: -0.6rem;
    margin-left: -0.6rem;
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  .portal-panels {
    padding: 0.65rem 0;
  }

  .portal-success {
    padding: 0.85rem;
  }

  .progress-grid article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .progress-grid strong {
    font-size: 1.65rem;
  }

  .admin-tools {
    gap: 0.75rem;
  }

  .table-wrap {
    margin-right: -0.6rem;
    margin-left: -0.6rem;
  }

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

@media (max-width: 360px) {
  .brand-logo-aims {
    width: 100px;
  }

  .brand-logo-afriqa {
    width: 62px;
  }

  .brand-divider {
    height: 28px;
  }

  h1 {
    font-size: 2.12rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .section {
    padding-top: 3.3rem;
    padding-bottom: 3.3rem;
  }

  .portal-tab {
    font-size: 0.88rem;
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }
}

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

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

  #quantum-canvas {
    opacity: 0.45;
  }
}
