/* Decentralised MSW Treatment for BWGs — Conference 2026
   Design system: colour-coded waste streams (green / blue / rust) on a deep compost green,
   with the organiser's gold as the single call-to-action colour.
   Type: Barlow Condensed (signage-style headings) + Literata (reading text). Both self-hosted. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 200 900; font-style: normal; font-display: swap; src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2"); }

:root {
  --compost: #0e3a2c;
  --compost-2: #14493a;
  --green: #1e7a4c;
  --green-lid: #155c39;
  --blue: #1f5fae;
  --blue-lid: #174a8a;
  --rust: #b8402b;
  --rust-lid: #8f311f;
  --gold: #d6a93a;
  --gold-soft: #f1e1b0;
  --ink: #16221c;
  --ink-2: #38463f;
  --muted: #56645c;
  --paper: #f5f7f3;
  --white: #ffffff;
  --rule: #d3dbd2;

  --head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--rust); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--compost); padding: 0.6rem 1rem;
  font-family: var(--head); font-weight: 600; font-size: 1.1rem; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.45rem 1.4rem;
  font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.05;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); color: var(--compost); border-color: var(--gold); }
.btn-gold:hover { background: #e4ba50; border-color: #e4ba50; color: var(--compost); }
.btn-ink { background: var(--compost); color: var(--white); border-color: var(--compost); }
.btn-ink:hover { background: var(--compost-2); border-color: var(--compost-2); color: var(--white); }
.btn-line { background: transparent; color: var(--compost); border-color: var(--compost); }
.btn-line:hover { background: var(--compost); color: var(--white); }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-line-light:hover { background: var(--white); color: var(--compost); border-color: var(--white); }
.btn-sm { min-height: 2.5rem; padding: 0.3rem 1.05rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header { background: var(--compost); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand img { width: 3.1rem; height: auto; }
.brand-name { font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.02; color: var(--white); }
.brand-name span { display: block; font-weight: 500; font-size: 1.05rem; color: var(--gold); }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.primary-nav a {
  font-family: var(--head); font-weight: 600; font-size: 1.15rem; line-height: 1;
  color: #e2ece6; text-decoration: none; padding: 0.7rem 0.7rem 0.6rem;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.4); }
.primary-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.primary-nav a.btn-gold, .primary-nav a.btn-gold:hover { color: var(--compost); }
.primary-nav .btn { margin-left: 0.6rem; border-bottom: 2px solid var(--gold); padding: 0.4rem 1.05rem; }
.primary-nav .btn:hover { border-bottom-color: #e4ba50; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius);
  font-family: var(--head); font-weight: 600; font-size: 1.15rem; padding: 0.35rem 0.9rem; cursor: pointer;
}

/* three-stream stripe: the site's signature */
.streams { display: flex; height: 5px; }
.streams i { flex: 1; }
.streams i:nth-child(1) { background: var(--green); }
.streams i:nth-child(2) { background: var(--blue); }
.streams i:nth-child(3) { background: var(--rust); }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 5.75rem); }
.section-paper { background: var(--paper); }
.section-compost { background: var(--compost); color: #d5e3db; }
.section-green { background: var(--green); color: #f0f7f3; }
.section-compost h2, .section-compost h3, .section-green h2, .section-green h3 { color: var(--white); }

.h-display { font-size: clamp(2.5rem, 4.8vw, 4.2rem); line-height: 0.95; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.prose p { max-width: 62ch; }
.prose-wide p { max-width: 70ch; }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(2.75rem, 6.5vw, 5rem) clamp(2.25rem, 5vw, 3.75rem); }
.page-head h1 { font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: 0.88; margin: 0; letter-spacing: -0.005em; }
.page-head .lead { margin: 0; max-width: 42ch; }
.ph-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.ph-paper { background: var(--paper); border-bottom: 1px solid var(--rule); }
.ph-paper .lead { color: var(--ink-2); }
.ph-compost { background: var(--compost); color: #d5e3db; }
.ph-green { background: #176a41; color: #eef7f2; }
.ph-blue { background: #1a54a0; color: #eaf1fb; }
.ph-rust { background: #a83826; color: #fbeeea; }
.ph-gold { background: var(--gold); color: var(--compost); }
.ph-ink { background: #101915; color: #d5e3db; }
.ph-compost h1, .ph-green h1, .ph-blue h1, .ph-rust h1, .ph-ink h1, .ph-compost .lead, .ph-green .lead, .ph-blue .lead, .ph-rust .lead, .ph-ink .lead { color: var(--white); }
.ph-gold h1, .ph-gold .lead { color: var(--compost); }

/* ---------- Home: hero ---------- */
.hero { background: var(--compost); color: #d5e3db; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: end;
  padding-top: clamp(2.5rem, 6vw, 4.75rem);
}
.hero-copy { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 { margin: 0; color: var(--white); }
.hero-pre { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--gold); margin-bottom: 0.7rem; }
.hero-title { display: block; font-size: clamp(3.1rem, 6.3vw, 5.7rem); line-height: 0.88; letter-spacing: -0.005em; color: var(--white); }
.hero-sub { display: block; margin-top: 1.25rem; font-family: var(--text); font-weight: 400; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.35; color: var(--gold-soft); }
.facts { display: flex; flex-wrap: wrap; margin: 2rem 0; border-block: 1px solid rgba(255, 255, 255, 0.22); }
.facts div { padding: 0.9rem 1.5rem 0.9rem 0; margin-right: 1.5rem; border-right: 1px solid rgba(255, 255, 255, 0.22); }
.facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts dt { font-size: 0.85rem; line-height: 1.2; color: var(--gold); margin-bottom: 0.2rem; }
.facts dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.6rem; line-height: 1.05; color: var(--white); }

@media (min-width: 901px) { .hero-title span { display: block; } }

/* three bins standing on the hero's bottom edge */
.bins { display: flex; align-items: flex-end; justify-content: center; gap: 0.9rem; height: clamp(300px, 33vw, 430px); padding-top: 28px; }
.bin { position: relative; flex: 1 1 0; max-width: 152px; height: 100%; }
.bin-body {
  position: absolute; inset: 0; background: var(--c);
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  display: flex; align-items: flex-end; justify-content: center; padding: 1.1rem 0.4rem 1.5rem;
}
.bin-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.9rem); line-height: 1; color: var(--white);
}
.bin-lid {
  position: absolute; left: -7px; right: -7px; top: -14px; height: 14px;
  background: var(--c-lid); border-radius: 4px 4px 0 0; transform-origin: 0 100%;
  animation: lid-open 1.3s ease-in-out both;
}
.bin:nth-child(1) { --c: var(--green); --c-lid: var(--green-lid); }
.bin:nth-child(2) { --c: var(--blue); --c-lid: var(--blue-lid); }
.bin:nth-child(3) { --c: var(--rust); --c-lid: var(--rust-lid); }
.bin:nth-child(1) .bin-lid { animation-delay: 0.5s; }
.bin:nth-child(2) .bin-lid { animation-delay: 1.1s; }
.bin:nth-child(3) .bin-lid { animation-delay: 1.7s; }
@keyframes lid-open {
  0%, 100% { transform: rotate(0); }
  35%, 65% { transform: rotate(-16deg) translateY(-3px); }
}

/* ---------- Home: sections ---------- */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; margin-top: 2.5rem; }
.spec-item { border-top: 3px solid var(--ink); padding: 1rem 0 1.75rem; }
.spec-item h3 { font-size: 1.65rem; margin: 0 0 0.35rem; }
.spec-item p { margin: 0; font-size: 0.98rem; line-height: 1.55; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.pillar { border-top: 10px solid var(--c); padding-top: 1.25rem; }
.pillar h3 { font-size: 2.3rem; margin-bottom: 0.4rem; }
.pillar p { margin: 0; }
.pillar-green { --c: #3fae76; }
.pillar-blue { --c: #5b96e0; }
.pillar-rust { --c: #e0715b; }

.explore { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 6vw, 5rem); margin-top: 2rem; }
.explore a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule); text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; color: var(--ink);
}
.explore a:nth-last-child(-n + 2) { border-bottom: 1px solid var(--rule); }
.explore a span { font-family: var(--text); font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.explore a:hover { color: var(--blue); background: var(--paper); }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.toc { position: sticky; top: 6.5rem; align-self: start; }
.toc p { font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--muted); margin: 0 0 0.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--rule); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -3px; border-left: 3px solid transparent; font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.1; color: var(--ink); text-decoration: none; }
.toc a:hover { border-left-color: var(--gold); color: var(--blue); }
.about-body > section { padding-bottom: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: clamp(2.5rem, 5vw, 3.75rem); border-bottom: 1px solid var(--rule); }
.about-body > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.about-body h2 { font-size: clamp(2.3rem, 3.8vw, 3.4rem); line-height: 0.96; }
.about-body h3 { font-size: 1.9rem; margin-top: 1.75rem; }
.pillar-rows { margin-top: 1.5rem; }
.pillar-row { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; border-left: 10px solid var(--c); padding: 0.85rem 0 0.85rem 1.5rem; margin-bottom: 1rem; background: var(--paper); }
.pillar-row h3 { margin: 0; font-size: 2rem; }
.pillar-row p { margin: 0; }
.pillar-row-green { --c: var(--green); }
.pillar-row-blue { --c: var(--blue); }
.pillar-row-rust { --c: var(--rust); }
.obj-list { list-style: none; margin: 1.75rem 0 0; padding: 0; columns: 2; column-gap: 3rem; }
.obj-list li { break-inside: avoid; padding: 0.9rem 0 1rem; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.55; }
.org { background: var(--compost); color: #d5e3db; padding: clamp(1.75rem, 4vw, 3rem); }
.org h2, .org h3 { color: var(--white); }
.org a { color: var(--gold); }
.org img { width: 6.5rem; margin-bottom: 1.25rem; }
.org ul { margin-bottom: 1.25rem; }

/* ---------- Theme ---------- */
.theme-statement { font-family: var(--head); font-weight: 700; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.92; color: var(--white); margin: 0 0 1.9rem; max-width: 16ch; }
.theme-lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; color: var(--white); max-width: 40ch; margin: 0; }
.flow { list-style: none; display: flex; margin: clamp(2.25rem, 5vw, 3.75rem) 0 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 0.55rem; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.45); }
.flow li { flex: 1; position: relative; padding-top: 2rem; font-family: var(--head); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1; color: var(--white); }
.flow li::before { content: ""; position: absolute; top: 0; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold); }
.flow li:last-child::before { background: var(--white); }
.pillar5 { border-top: 3px solid var(--ink); margin-top: 2rem; }
.pillar5 > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.pillar5 h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 0; }
.pillar5 p { margin: 0; }
.topics { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.topics li { break-inside: avoid; padding: 0.85rem 0 0.95rem; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.sticky-col { position: sticky; top: 6.5rem; }

/* ---------- Agenda ---------- */
.note { background: var(--gold-soft); border-left: 6px solid var(--gold); padding: 1rem 1.25rem; color: var(--ink); margin: 0 0 2.5rem; font-size: 1rem; }
.sched { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue); margin-left: 0.5rem; }
.slot { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.3rem 0 1.4rem 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.slot::before { content: ""; position: absolute; left: -0.6rem; top: 1.85rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
.slot-time { font-family: var(--head); font-weight: 700; font-size: 1.9rem; line-height: 1.05; color: var(--blue); }
.slot h3 { font-size: 1.85rem; margin: 0 0 0.25rem; }
.slot p { margin: 0; max-width: 60ch; }
.slot-break { padding-block: 0.8rem; background: var(--paper); }
.slot-break::before { top: 1.2rem; border-color: var(--rule); background: var(--paper); }
.slot-break .slot-time { font-size: 1.3rem; color: var(--muted); font-weight: 600; }
.slot-break h3 { font-size: 1.3rem; font-weight: 600; color: var(--muted); margin: 0; }
.slot-end .slot-time { color: var(--ink); }
.sched-note { margin-top: 1.75rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- Attend ---------- */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); border-left: 1px solid var(--rule); margin-top: 2rem; }
.roster > div { padding: 1.25rem 1.2rem 1.4rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.roster h3 { font-size: 1.55rem; margin: 0 0 0.3rem; }
.roster p { margin: 0; font-size: 0.93rem; line-height: 1.5; }
.bwg-list { list-style: none; margin: 1.75rem 0 0; padding: 0; columns: 3; column-gap: 2.5rem; }
.bwg-list li { break-inside: avoid; font-family: var(--head); font-weight: 600; font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.12; color: var(--white); padding: 0.85rem 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.sponsor-fit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.check { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.check li { position: relative; padding: 0.45rem 0 0.45rem 2rem; }
.check li::before { content: ""; position: absolute; left: 0.25rem; top: 0.72rem; width: 0.55rem; height: 0.95rem; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(40deg); }
.media-stack { display: grid; gap: 1rem; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption, .stall-pair figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.45rem; line-height: 1.35; }
.stall-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
.stall-pair figure { margin: 0; }
.stall-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* home: photo band */
.pb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.pb-head h2 { margin: 0; max-width: 18ch; }
.photo-band { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; height: clamp(320px, 40vw, 560px); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band .pb-main { grid-row: 1 / 3; }

/* ---------- Papers ---------- */
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 0.5rem; }
.milestones::before { content: ""; position: absolute; top: 0.6rem; left: 0; right: 0; height: 3px; background: var(--rust); }
.milestone { position: relative; padding-top: 2.1rem; padding-right: 1rem; }
.milestone::before { content: ""; position: absolute; top: 0; left: 0; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--white); border: 4px solid var(--rust); }
.milestone:last-child::before { background: var(--rust); }
.milestone strong { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: var(--ink); }
.milestone span { display: block; margin-top: 0.3rem; font-size: 0.98rem; line-height: 1.4; }
.papers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.square-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.square-list li { position: relative; padding: 0.7rem 0 0.75rem 1.6rem; border-top: 1px solid var(--rule); line-height: 1.5; }
.square-list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.6rem; height: 0.6rem; background: var(--rust); }
.cta-panel { background: var(--compost); color: #d5e3db; padding: clamp(1.75rem, 4vw, 2.75rem); margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-panel h2 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 0.2rem; }
.cta-panel p { margin: 0; }

/* ---------- Sponsors ---------- */
.tiers { display: flex; flex-direction: column; gap: 0.6rem; }
.tier { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding: 1.15rem 1.5rem 1.25rem; width: var(--w); }
.tier h3 { font-size: 2.2rem; margin: 0; }
.tier p { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.tier-1 { --w: 100%; background: var(--compost); color: #d5e3db; }
.tier-1 h3 { color: var(--gold); }
.tier-2 { --w: 92%; background: var(--green); color: #eef7f2; }
.tier-2 h3 { color: var(--white); }
.tier-3 { --w: 84%; background: #dfe5ea; }
.tier-4 { --w: 76%; background: var(--gold-soft); }
.tier-5 { --w: 68%; background: #ebeef0; }
.tier-6 { --w: 60%; background: var(--paper); border: 1px solid var(--rule); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; }
.chips li { border: 2px solid var(--compost); border-radius: var(--radius); padding: 0.3rem 0.85rem 0.35rem; font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.1; color: var(--compost); }
.why { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.fineprint { font-size: 0.9rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Gallery ---------- */
.gallery-page { background: #101915; padding-bottom: clamp(3rem, 6vw, 5rem); }
.masonry { columns: 3 300px; column-gap: 0.75rem; }
.masonry a { display: block; margin-bottom: 0.75rem; break-inside: avoid; background: #1b2a23; }
.masonry img { width: 100%; height: auto; transition: opacity 0.15s; }
.masonry a:hover img { opacity: 0.82; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 11, 0.94); display: none; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-btn { position: absolute; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius); font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1; padding: 0.55rem 0.9rem; cursor: pointer; }
.lb-btn:hover { background: var(--white); color: var(--compost); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Register ---------- */
.reg-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.ticket { background: var(--compost); color: #d5e3db; border-radius: 6px; position: sticky; top: 6.5rem; }
.ticket-top { padding: 1.9rem 1.9rem 1.75rem; }
.ticket-top .kicker { font-family: var(--head); font-weight: 600; font-size: 1.2rem; color: var(--gold); margin: 0 0 0.4rem; }
.ticket-top h2 { color: var(--white); font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 0.95; margin: 0 0 1.1rem; }
.ticket-top dl { margin: 0; display: grid; gap: 0.6rem; }
.ticket-top dt { font-size: 0.85rem; color: var(--gold); line-height: 1.2; }
.ticket-top dd { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--white); }
.ticket-cut { position: relative; border-top: 2px dashed rgba(255, 255, 255, 0.35); }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); }
.ticket-cut::before { left: -13px; }
.ticket-cut::after { right: -13px; }
.ticket-bottom { padding: 1.6rem 1.9rem 1.9rem; font-size: 0.98rem; line-height: 1.55; }
.ticket-bottom p { margin: 0 0 1.4rem; }
.ticket-actions { display: grid; gap: 0.6rem; }
.cat-list { list-style: none; margin: 1.25rem 0 2.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.cat-list li { padding: 0.7rem 0 0.75rem; border-top: 1px solid var(--rule); line-height: 1.4; }
.reg-main h2 { font-size: clamp(2.1rem, 3.4vw, 2.8rem); margin-bottom: 0.2rem; }
details.terms { border: 1px solid var(--rule); background: var(--white); margin-top: 0.5rem; }
details.terms summary { cursor: pointer; padding: 1rem 1.25rem; font-family: var(--head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
details.terms ul { margin: 0; padding: 0 1.25rem 1.1rem 2.5rem; }
details.terms li { padding: 0.3rem 0; }


/* ---------- Register: jump bar, fees, form, terms, payment ---------- */
.jump { background: var(--white); border-bottom: 1px solid var(--rule); }
.jump .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; padding-block: 0.85rem; }
.jump a { font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; padding-bottom: 0.1rem; }
.jump a:hover { border-bottom-color: var(--gold); color: var(--ink); }

.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin: 2.25rem 0 2rem; }
.fee-grid > div { min-width: 0; }
.fee-grid h3 { font-size: 2.1rem; margin: 0 0 0.1rem; }
.fee-when { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; }
.fee-table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 1rem; }
.fee-table th, .fee-table td { padding: 0.8rem 0.9rem; text-align: right; border-bottom: 1px solid var(--rule); }
.fee-table thead th { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.1; color: var(--ink); border-bottom: 3px solid var(--ink); white-space: nowrap; }
.fee-table tbody th { font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.1; color: var(--ink); }
.fee-table th:first-child { text-align: left; padding-left: 0; }
.fee-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fee-table td.total { font-weight: 700; color: var(--ink); }

.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.1; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); background: var(--white); border: 2px solid #8fa398; border-radius: var(--radius); padding: 0.7rem 0.85rem; width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--muted); }
.form-status { margin: 0; padding: 0.85rem 1rem; border-left: 6px solid var(--green); background: #e4f2ea; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.form-status.err { border-left-color: var(--rust); background: #f8e6e1; }

.terms-body h3 { font-size: 1.9rem; margin: 1.75rem 0 0.4rem; }
.terms-body h3:first-child { margin-top: 0; }
.terms-body ul { padding-left: 1.2em; }
.terms-body li { padding: 0.25rem 0; max-width: 62ch; }

.section-compost .lead { color: var(--white); }
.pay { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.pay > div { padding: 1.25rem 0 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.pay h3 { font-size: 1.9rem; color: var(--white); margin: 0 0 0.45rem; }
.pay p { margin: 0; }
.pay-dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.4rem 1rem; margin: 0; }
.pay-dl dt { color: var(--gold-soft); }
.pay-dl dd { margin: 0; color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.qr-tile { display: inline-block; background: var(--white); padding: 0.5rem; border-radius: var(--radius); }
.qr-tile img { width: 13rem; height: auto; }


/* ---------- Stall details ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.25rem; }
.plan { border-top: 3px solid var(--ink); padding-top: 1.25rem; min-width: 0; }
.plan h3 { font-size: 2.1rem; margin: 0.5rem 0 0.6rem; }
.plan-svg { display: block; width: 100%; max-width: 26rem; height: auto; }
.foot { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 2; }
.wall { stroke: var(--ink); stroke-width: 8; }
.open { stroke: var(--green); stroke-width: 8; }
.dim { stroke: var(--muted); stroke-width: 1.5; }
.dim-t { font-family: var(--head); font-weight: 700; font-size: 22px; fill: var(--ink); }
.in-t { font-family: var(--head); font-weight: 600; font-size: 17px; fill: var(--ink-2); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.spec-list strong { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.open-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.open-sides figure { margin: 0; }
.open-svg { display: block; width: 100%; max-width: 9rem; height: auto; }
.open-sides figcaption { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.4; }
.flow-large li { font-size: clamp(1.9rem, 4vw, 3rem); }
.flow li small { display: block; margin-top: 0.4rem; font-family: var(--text); font-weight: 400; font-size: 1rem; line-height: 1.4; color: #cfe0d6; }

/* ---------- 404 ---------- */
.err-code { display: flex; gap: 0.05em; margin: 0 0 1.25rem; font-family: var(--head); font-weight: 700; font-size: clamp(6rem, 22vw, 13rem); line-height: 0.8; }
.err-code span:nth-child(1) { color: #3fae76; }
.err-code span:nth-child(2) { color: #5b96e0; }
.err-code span:nth-child(3) { color: #e0715b; }

/* ---------- Contact ---------- */
.mail-big { display: inline-block; font-family: var(--head); font-weight: 700; font-size: clamp(2.1rem, 6.6vw, 5.4rem); line-height: 1; color: var(--gold); text-decoration: none; border-bottom: 4px solid var(--gold); padding-bottom: 0.15rem; word-break: break-word; }
.mail-big:hover { color: var(--white); border-bottom-color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.routes { margin: 0; border-top: 3px solid var(--ink); }
.routes > div { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
.routes dt { font-family: var(--head); font-weight: 700; font-size: 1.7rem; line-height: 1.05; color: var(--ink); margin-bottom: 0.15rem; }
.routes dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--compost); color: #b9cdc2; padding: clamp(2.75rem, 6vw, 4rem) 0 1.5rem; font-size: 0.98rem; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-brand img { width: 4.5rem; margin-bottom: 1rem; }
.footer-brand p { margin: 0 0 0.6rem; max-width: 34ch; }
.site-footer h2 { font-size: 1.4rem; color: var(--gold); margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: #e2ece6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer a.credit { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .brand-name span { display: none; }
  .primary-nav a { padding-inline: 0.5rem; font-size: 1.1rem; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 5px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
    flex-direction: column; align-items: stretch; gap: 0; background: var(--compost);
    padding: 0.5rem var(--gutter) 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { font-size: 1.4rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .primary-nav .btn { margin: 1rem 0 0; justify-content: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .brand-name span { display: block; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0.5rem; }
  .bins { height: 250px; max-width: 460px; margin-inline: auto; width: 100%; }
  .split, .why, .sponsor-fit, .papers-grid, .reg-layout, .contact-grid { grid-template-columns: 1fr; }
  .ph-row { grid-template-columns: 1fr; align-items: start; }
  .pillars { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; border-left: 0; gap: 0.25rem 1.25rem; }
  .toc a { padding: 0.2rem 0; border-left: 0; margin-left: 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.25em; }
  .sticky-col, .ticket { position: static; }
  .fee-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tier { width: 100%; grid-template-columns: 1fr; gap: 0.3rem; }
  .bwg-list { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 1.03rem; }
  .spec, .explore { grid-template-columns: 1fr; }
  .explore a:nth-last-child(-n + 2) { border-bottom: 0; }
  .explore a:last-child { border-bottom: 1px solid var(--rule); }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .obj-list, .topics, .bwg-list { columns: 1; }
  .pillar-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .pillar5 > div { grid-template-columns: 1fr; gap: 0.5rem; }
  .slot { grid-template-columns: 1fr; gap: 0.35rem; padding-left: 1.5rem; }
  .milestones { grid-template-columns: 1fr; gap: 1.25rem; }
  .milestones::before { top: 0; bottom: 0; left: 0.55rem; right: auto; width: 3px; height: auto; }
  .milestone { padding: 0 0 0 2.2rem; }
  .milestone::before { top: 0.2rem; }
  .cat-list { grid-template-columns: 1fr; }
  .pay-dl { grid-template-columns: 1fr; gap: 0; }
  .pay-dl dd { margin-bottom: 0.6rem; }
  .photo-band { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .photo-band img, .photo-band .pb-main { grid-row: auto; height: auto; aspect-ratio: 3 / 2; }
  .flow { flex-direction: column; gap: 1.25rem; }
  .flow::before { top: 0; bottom: 0; left: 0.5rem; right: auto; width: 2px; height: auto; }
  .flow li { padding: 0 0 0 2.1rem; }
  .flow li::before { top: 0.1rem; }
  .facts { flex-direction: column; }
  .facts div { border-right: 0; margin-right: 0; padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
  .facts div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 4rem 0.75rem; }
  .brand-name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bin-lid { animation: none; }
  * { transition: none !important; }
}
