@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0c2d52;
  --navy-deep: #08213d;
  --blue: #1468c0;
  --blue-soft: #7098c8;
  --green: #4fd1a0;
  --ink: #0d1220;
  --muted: #535c6b;
  --line: #dde5ef;
  --tint: #eef3f9;
  --tint-2: #dce7f4;
  --on-navy: #c9d8ec;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #1058a0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(20, 104, 192, 0.55), transparent 62%),
    radial-gradient(700px 480px at 4% 108%, rgba(79, 209, 160, 0.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero .rings {
  position: absolute; right: -180px; top: -120px; width: 900px; height: 900px;
  pointer-events: none; opacity: 0.55;
}
.hero .dots {
  position: absolute; left: -40px; bottom: -40px; width: 360px; height: 240px;
  pointer-events: none; opacity: 0.5;
}
.sitebar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50; color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.sitebar.is-stuck {
  background: rgba(8, 33, 61, 0.92); box-shadow: 0 6px 24px rgba(3, 16, 32, 0.28);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 112px; transition: height 0.25s ease;
}
.sitebar.is-stuck .topbar { height: 72px; }
.sitebar.is-stuck .brand { font-size: 24px; padding: 7px 17px 8px; }
html { scroll-padding-top: 88px; }
.brand {
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.025em;
  padding: 10px 22px 11px; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease, font-size 0.25s ease, padding 0.25s ease;
}
.brand:hover { color: #fff; border-color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); }
.nav a {
  color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 500; margin-left: 28px;
}
.nav a:hover { color: #fff; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px; align-items: center;
  padding: 156px 0 96px;
}
.hero h1 {
  margin: 0 0 22px; font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
}
.hero h1 span { color: var(--green); }
.hero .lead {
  margin: 0 0 30px; max-width: 590px;
  font-size: clamp(17px, 1.8vw, 20px); color: var(--on-navy);
}
.organiser-pill {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 999px; padding: 13px 28px 13px 26px;
  text-decoration: none; color: var(--navy); font-size: 18px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(3, 16, 32, 0.35);
}
.organiser-pill img { height: 27px; width: auto; }
.organiser-pill:hover { color: var(--navy); transform: translateY(-1px); }
.next {
  margin-top: 34px; max-width: 590px;
  border-top: 1px solid rgba(169, 196, 230, 0.35);
  padding-top: 22px;
}
.next p { margin: 0 0 18px; color: #fff; font-size: 17px; }
.next p strong { color: var(--green); font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--green); color: var(--navy); }
.btn.solid:hover { color: var(--navy); background: #63dbae; }
.btn.outline { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn.outline:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { color: #fff; background: #123d6b; }

.orbit { position: relative; width: 100%; height: 560px; align-self: center; }
.orbit-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(169, 196, 230, 0.22);
}
.orbit-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 104, 192, 0.55), rgba(20, 104, 192, 0.18) 55%, transparent 72%);
}
.orbit-item {
  position: absolute; left: 0; top: 0; width: var(--s, 280px); height: var(--s, 280px); max-width: none;
  transform-origin: 50% 50%; will-change: transform, opacity; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 16px 22px rgba(3, 16, 32, 0.38));
}
.orbit-label {
  position: absolute; z-index: 200; transform: translate(-50%, -50%); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
  padding: 7px 15px 8px; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  background: rgba(8, 33, 61, 0.45); color: #fff; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -0.01em;
}
.orbit:not(.is-live) .orbit-item { display: none; }
.orbit:not(.is-live) .orbit-item:first-of-type { display: block; position: relative; width: 70%; height: auto; margin: 60px auto 0; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 30px 28px 30px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact b { display: block; margin-bottom: 4px; font-size: 30px; line-height: 1.1; color: var(--navy); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 88px 0; }
section.tint { background: var(--tint); }
h2.sec { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h2.sec span { color: var(--blue); }
.intro { max-width: 740px; color: var(--muted); margin: 0 0 18px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.formats { display: grid; gap: 0; margin: 26px 0 0; }
.formats div { border-top: 1px solid #c9d3e0; padding: 14px 0; }
.formats h3 { margin: 0 0 2px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.formats p { margin: 0; font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 999px; background: var(--tint); }
figure { margin: 0; }
figure img { border-radius: 16px; width: 100%; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.wide-photo { margin-top: 48px; }

/* Editions */
.edition {
  background: #fff; border-radius: 20px; padding: 36px; margin-top: 28px;
  box-shadow: 0 1px 0 rgba(12, 45, 82, 0.04), 0 12px 40px rgba(12, 45, 82, 0.07);
}
.ed-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.ed-head .year { font-size: 46px; font-weight: 700; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.ed-head h3 { margin: 0; font-size: 26px; font-weight: 700; }
.ed-head .when { color: var(--muted); font-size: 16px; margin-left: auto; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ed-media { display: grid; gap: 14px; }
.ed-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-media img { border-radius: 14px; width: 100%; object-fit: cover; }
.ed-media .pair img { aspect-ratio: 4 / 3; }
.credit { margin: -4px 0 0; font-size: 13px; color: var(--muted); }

.artwork {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 2 / 1;
  display: flex; flex-direction: column; justify-content: flex-start; padding: 26px 28px;
}
.artwork .a-date { font-size: clamp(14px, 1.6vw, 18px); font-weight: 500; }
.artwork .a-title { font-size: clamp(19px, 2.5vw, 28px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin-top: 6px; }
.artwork .a-sub { font-size: clamp(13px, 1.4vw, 15px); margin-top: 8px; max-width: 80%; }
.artwork.delft { background: linear-gradient(180deg, #e7f4fa 0%, #ffffff 70%); color: var(--navy); }
.artwork.delft .a-date { color: #1b8fbf; }
.artwork.delft img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; height: auto; }
.ed-body h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--navy); }
.ed-body p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.people { list-style: none; margin: 0 0 20px; padding: 0; }
.people li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; }
.people li:last-child { border-bottom: 1px solid var(--line); }
.people small { color: var(--muted); font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

details.programme { margin-top: 26px; border-top: 1px solid var(--line); }
details.programme summary {
  cursor: pointer; list-style: none; padding: 18px 0 4px; font-weight: 700; font-size: 17px; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
}
details.programme summary::-webkit-details-marker { display: none; }
details.programme summary::after {
  content: "+"; font-size: 24px; font-weight: 500; color: var(--blue); line-height: 1;
}
details.programme[open] summary::after { content: "\2212"; }
.prog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; padding: 10px 0 6px; }
.prog.single { grid-template-columns: minmax(0, 1fr); }
.prog h5 { margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.prog ul { list-style: none; margin: 0; padding: 0; }
.prog li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.prog li b { font-weight: 600; }
.prog li span { color: var(--muted); }
.prog li time { display: inline-block; min-width: 52px; color: var(--blue-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.prog .break { color: var(--muted); }

/* Organiser */
.org-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.org-card {
  background: var(--tint); border-radius: 20px; padding: 48px 36px; display: grid; place-items: center;
}
.org-card img { width: 100%; max-width: 300px; }

/* Contact */
.contact {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(20, 104, 192, 0.5), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.contact h2 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 36px); }
.contact p { margin: 0 0 28px; color: var(--on-navy); max-width: 620px; }
.contact p.note { margin: 28px 0 0; font-size: 15px; }
.contact p.note a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.contact p.note a:hover { color: var(--green); }
.contact .rings { position: absolute; right: -260px; bottom: -420px; width: 800px; height: 800px; opacity: 0.4; pointer-events: none; }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 64px; align-items: center; }
.hero-figure { position: relative; justify-self: end; width: 100%; max-width: 250px; margin: 0 22px 22px 0; }
.hero-figure::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), var(--green)); opacity: 0.85;
}
.hero-figure img {
  position: relative; width: 100%; height: auto; aspect-ratio: 10 / 11; object-fit: cover;
  border-radius: 24px; box-shadow: 0 24px 60px rgba(3, 16, 32, 0.45);
}

footer { padding: 26px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 112px 0 72px; gap: 44px; }
  .topbar { height: 84px; }
  .sitebar.is-stuck .topbar { height: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { justify-self: start; max-width: 200px; }
  .orbit { height: auto; aspect-ratio: 1 / 1.08; max-width: 460px; }
  .orbit-label { font-size: 12px; padding: 6px 11px 7px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .about-grid, .ed-grid, .org-grid, .prog { grid-template-columns: 1fr; }
  .edition { padding: 24px 20px; }
  .ed-head .when { margin-left: 0; width: 100%; }
  section { padding: 64px 0; }
  .org-card { padding: 36px 28px; }
}
#edition-2024 .ed-media .pair img { aspect-ratio: 5 / 3; }
@media (max-width: 900px) { .brand { font-size: 28px; padding: 9px 20px 10px; } }
@media (max-width: 420px) { .brand { font-size: 25px; padding: 8px 18px 9px; } }
