/* Devoxx Belgium 2027 — site styles */
/* Dark is the default theme for every visitor. Light applies when they pick Light (data-theme="light"),
   or pick System (data-theme="system") on a device set to light. */
:root {
  --bg: #0f0e12;
  --surface: #18161d;
  --surface-2: #211e27;
  --ink: #f3f0ea;
  --ink-2: #b4aebd;
  --line: #2e2a35;
  --accent: #f28c18;          /* Devoxx orange */
  --accent-ink: #1a1206;
  --accent-soft: #3a2610;
  --link: #ffb257;
  --radius: 14px;
  /* one left/right margin for header, content and footer; on wide screens it grows so the
     content stays within a 1600px column while photo backgrounds still run edge to edge */
  --gutter: max(clamp(16px, 3vw, 48px), calc((100% - 1600px) / 2));
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f2efe8; --ink: #16141a; --ink-2: #4a4652;
  --line: #e2ddd2; --accent-soft: #fde9cf; --link: #b35a00; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f2efe8; --ink: #16141a; --ink-2: #4a4652;
    --line: #e2ddd2; --accent-soft: #fde9cf; --link: #b35a00; color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.eyebrow { font: 600 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--link); margin-bottom: 1rem; display: block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font: 700 1.2rem/1 var(--display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo img { height: 28px; width: auto; }
.footer-logo img { height: auto; width: min(320px, 80vw); }

/* Logo variants: white on the dark theme (default), ink on the light theme */
.on-light { display: none; }
:root[data-theme="light"] .on-light { display: block; }
:root[data-theme="light"] .on-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .on-light { display: block; }
  :root[data-theme="system"] .on-dark { display: none; }
}
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; max-height: calc(100vh - 64px); overflow-y: auto; clip-path: inset(0 0 100% 0); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: clip-path .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear .35s; }
  .nav.open { clip-path: inset(0 0 0 0); transform: none; opacity: 1; visibility: visible; transition: clip-path .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav-toggle span { transition: none !important; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.page-hero { padding: 72px 0 40px; }
.page-hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }

/* Home hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); z-index: -1; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; margin: 1.2rem 0; }
.hero .meta span::before { content: "●"; color: var(--accent); margin-right: 8px; font-size: .7em; vertical-align: middle; }
.hero .lede { font-size: 1.25rem; color: var(--ink-2); max-width: 620px; }

/* Countdown */
.countdown { max-width: 1100px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.countdown .label { font-weight: 600; flex: 1 1 220px; }
.cd-units { display: flex; gap: 12px; }
.cd-unit { text-align: center; min-width: 64px; }
.cd-unit b { display: block; font: 700 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.cd-unit small { color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

/* Grids & cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* three cards (or six) in a row of three on every iPad, one column on phones */
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--accent-soft); color: var(--link); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
/* Sponsor packages: benefit lists, the note under the tiers and the full-width Activations card */
.package-list { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.package-list li { position: relative; padding: 8px 0 8px 24px; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.package-list li:last-child { border-bottom: 0; }
.package-list li::before { content: "\2713"; position: absolute; left: 0; top: 8px; color: var(--accent); font-weight: 700; }
.packages-note { margin: 20px 0; font-size: .95rem; }
.card.activations { margin-top: 20px; }
.stat b { display: block; font: 700 2.4rem/1 var(--display); color: var(--link); margin-bottom: 6px; }

/* Passes */
.pass { display: flex; flex-direction: column; }
.pass.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pass .price { font: 700 2rem/1 var(--display); margin: 8px 0 4px; }
.pass ul { padding-left: 1.1em; margin: 16px 0 24px; color: var(--ink-2); }
.pass .btn { margin-top: auto; text-align: center; }

/* Tabs (agenda) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 600; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--link); }
.timeline.dates li { grid-template-columns: 230px 1fr; }
@media (max-width: 520px) { .timeline li, .timeline.dates li { grid-template-columns: 1fr; gap: 2px; } }

/* Email template */
.email { background: var(--surface-2); border-radius: var(--radius); padding: 24px; white-space: pre-wrap; font: .95rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* Speakers */
.speakers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.speaker { text-decoration: none; color: inherit; }
.speaker img, .speaker .ph { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.speaker .ph { display: grid; place-items: center; font: 700 clamp(2.2rem, 6vw, 3.4rem)/1 var(--display); letter-spacing: .02em; color: var(--accent); background: radial-gradient(circle at 30% 25%, var(--accent-soft), transparent 70%), var(--surface-2); border: 1px solid var(--line); }
.speaker strong { display: block; margin-top: 10px; line-height: 1.3; }
.speaker span { font-size: .88rem; color: var(--ink-2); }
.search { width: 100%; max-width: 420px; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); margin-bottom: 28px; }

/* Schedule */
.slot { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.slot .when { font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.slot .title { font-weight: 600; color: var(--ink); text-decoration: none; }
.slot .title:hover { text-decoration: underline; }
.slot .sub { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 520px) { .slot { grid-template-columns: 1fr; gap: 2px; } }
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; font-size: .95rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--link); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose li { margin-bottom: .4em; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery .tile { aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); display: block; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery .tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery .tile img { transition: none; } }

/* Gallery paging (home): arrows on the sides of the grid, under it on phones; JS adds .ready */
.gallery-carousel { position: relative; }
.gallery { transition: opacity .25s ease, transform .25s ease; }
.gallery.leaving-next { opacity: 0; transform: translateX(-24px); }
.gallery.leaving-prev { opacity: 0; transform: translateX(24px); }
.gallery.entering-next { opacity: 0; transform: translateX(24px); transition: none; }
.gallery.entering-prev { opacity: 0; transform: translateX(-24px); transition: none; }
.gallery-nav { display: none; position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; place-items: center; color: #fff; background: rgba(15, 14, 18, .6); backdrop-filter: blur(6px); box-shadow: 0 6px 24px rgba(0,0,0,.35); cursor: pointer; transition: background .2s ease, transform .2s ease; }
@media (hover: hover) { .gallery-nav:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); } }
.gallery-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery-nav.prev { left: -12px; }
.gallery-nav.next { right: -12px; }
.gallery-carousel.ready .gallery-nav { display: grid; }
@media (max-width: 600px) {
  .gallery-carousel.ready { display: grid; grid-template-columns: 1fr 48px 48px 1fr; align-items: center; gap: 16px 12px; }
  .gallery-carousel.ready .gallery { grid-column: 1 / -1; }
  .gallery-carousel.ready .gallery-nav { position: static; margin: 0; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: none; }
  .gallery-carousel.ready .gallery-nav:active { background: var(--accent); color: var(--accent-ink); }
  .gallery-carousel.ready .gallery-nav.prev { grid-column: 2; grid-row: 2; }
  .gallery-carousel.ready .gallery-nav.next { grid-column: 3; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .gallery, .gallery-nav { transition: none; } }

/* CTA band */
.band { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 48px 32px; text-align: center; }
.band p { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.band .btn.ghost { color: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bg) 40%, var(--ink)); }
.band .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 40px; font-size: .92rem; color: var(--ink-2); }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-tagline { font: 600 .9rem/1.4 var(--display); text-transform: uppercase; letter-spacing: .18em; color: var(--ink); margin: 6px 0 0; }
.site-footer .footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 24px 0; margin: 24px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-footer .cols h4 { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.site-footer .cols li a::before { content: "/ "; color: var(--accent); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
/* Theme switch: dark (default) / light / system */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-switch button { font-size: .85rem; line-height: 1; color: var(--ink-2); background: none; border: 0; border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.theme-switch button:focus-visible, .btn:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .theme-switch { margin: 8px 0 0; align-self: flex-start; } }

/* Pages imported from devoxx.be */
.imported img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; background: #fff; }
.imported h2 { margin-top: 1.8em; }
.imported h3, .imported h4 { margin-top: 1.4em; }
.imported table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.imported td, .imported th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.imported ul ul { margin-top: 6px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.faq details .answer { color: var(--ink-2); margin-top: 12px; }
.faq details .answer p { margin: 0 0 .8em; color: inherit; }
.faq details .answer > :last-child { margin-bottom: 0; }
.imported iframe { display: block; width: 100%; min-height: 260px; border: 0; border-radius: var(--radius); background: #fff; margin: 16px 0; }
.newsletter-history { list-style: none; padding: 0; }
.newsletter-history li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.newsletter-history .muted { white-space: nowrap; }
/* Newsletter archive: one tab per year, kept on a single row on phones */
@media (max-width: 600px) {
  .newsletter-years .tabs { flex-wrap: nowrap; gap: 4px; }
  .newsletter-years .tabs button { flex: 1 1 0; padding: 8px 4px; font-size: .9rem; }
}

/* Logos page: centred brand blocks, like devoxx.be/logos */
.brand-block { text-align: center; padding: 56px 0; }
.brand-block + .brand-block { padding-top: 24px; border-top: 0; }
.brand-block h2 { margin: 0; }
.brand-block h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin: 16px auto 28px; }
.brand-block .eyebrow { margin-bottom: .6rem; }
.brand-intro { border-bottom: 1px solid var(--line); }
.brand-intro + .brand-block { padding-top: 56px; }
.brand-intro p { color: var(--ink-2); }
.logo-tile { margin: 0 auto; max-width: 560px; padding: 32px 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.logo-tile.dark { background: #0f0e12; border-color: #2e2a35; }
.logo-tile img { display: block; margin: 0 auto; max-width: 100%; max-height: 160px; height: auto; }
.logo-caption { margin-top: 12px; font-size: .85rem; color: var(--ink-2); }
.download-list { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; display: grid; gap: 8px; text-align: left; }
.download-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.download-list a:hover { border-color: var(--accent); }
.download-list a span:first-of-type { flex: 1; }
.download-list .ver { font-size: .8rem; letter-spacing: .08em; color: var(--ink-2); }
.download-list i { color: var(--ink-2); }
.download-list a:hover .fa-download, .download-list a:hover .fa-arrow-up-right-from-square { color: var(--accent); }

/* FAQ search (inserted by site.js) */
.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; }
.faq-search { position: relative; margin-bottom: 28px; }
.faq-search > i { position: absolute; left: 18px; top: 17px; color: var(--ink-2); pointer-events: none; }
.faq-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 13px 18px 13px 46px; }
.faq-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.faq-status { margin: 10px 0 0 18px; font-size: .9rem; color: var(--ink-2); min-height: 1.2em; }
.faq-empty { margin: 16px 0 0; }
mark.faq-hit { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.faq-toc[hidden], .faq h2[hidden], .faq details[hidden] { display: none; }

/* Photo heroes: random crowd shot from the 2026 edition (build.py + inline script) */
.has-photo { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0f0e12; padding: clamp(96px, 14vw, 160px) 0 clamp(48px, 7vw, 80px); min-height: clamp(340px, 48vh, 520px); display: flex; align-items: flex-end; }
.has-photo > .wrap { width: 100%; }
.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) var(--hero-pos, center) / cover no-repeat; }
.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; width: auto; height: auto; border-radius: 0;
  background: linear-gradient(90deg, rgba(12,10,16,.86) 0%, rgba(12,10,16,.62) 45%, rgba(12,10,16,.22) 100%),
              linear-gradient(0deg, rgba(12,10,16,.6) 0%, transparent 55%); }
.has-photo h1, .has-photo .meta { color: #fff; }
.has-photo p, .has-photo .lede { color: rgba(255,255,255,.88); }
.has-photo .muted { color: rgba(255,255,255,.72); }
.has-photo .eyebrow { color: var(--accent); }
.has-photo a:not(.btn):not(.hero-credit) { color: #ffb257; }
.has-photo .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: .75rem; color: rgba(255,255,255,.75); text-decoration: none; background: rgba(12,10,16,.45); padding: 4px 10px; border-radius: 999px; }
.hero-credit:hover { color: #fff; }
@media (max-width: 700px) {
  .has-photo::before { background-image: var(--hero-sm, var(--hero)); }
  .has-photo::after { background: linear-gradient(0deg, rgba(12,10,16,.9) 0%, rgba(12,10,16,.65) 60%, rgba(12,10,16,.45) 100%); }
}
.has-photo .countdown { background: rgba(12,10,16,.55); border-color: rgba(255,255,255,.16); backdrop-filter: blur(8px); color: #fff; }

/* Atmosphere video (home): thumbnail facade, YouTube loads on click */
.video-facade { position: relative; display: block; max-width: 960px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0f0e12; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .4s ease; filter: brightness(.82); }
.video-facade:hover img, .video-facade:focus-visible img { transform: scale(1.03); filter: brightness(.95); }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.8rem; box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .2s ease; }
.video-facade .play i { margin-left: 5px; }
.video-facade:hover .play, .video-facade:focus-visible .play { transform: scale(1.08); }
.video-facade:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Two videos side by side on a track; tabs, arrows and swipe slide between them */
.video-carousel { max-width: 960px; margin-inline: auto; }
.video-tabs { display: none; position: relative; width: max-content; max-width: 100%; margin: 0 auto 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.video-tabs button { position: relative; z-index: 1; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: color .3s ease; }
.video-tabs button:hover { color: var(--ink); }
.video-tabs button[aria-selected="true"] { color: var(--accent-ink); }
.video-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.video-tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--accent); transition: transform .5s cubic-bezier(.65, 0, .35, 1), width .5s cubic-bezier(.65, 0, .35, 1); }
.video-viewport { position: relative; }
.video-track { display: grid; gap: 24px; }
.video-carousel.ready .video-tabs { display: flex; }
.video-carousel.ready .video-viewport { overflow: hidden; border-radius: var(--radius); }
.video-carousel.ready .video-track { display: flex; gap: 0; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.video-carousel.ready .video-slide { flex: 0 0 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .7s ease, filter .7s ease; }
.video-carousel.ready .video-slide:not(.active) { transform: scale(.88); opacity: .35; filter: blur(2px); }
.video-nav { display: none; position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; place-items: center; color: #fff; background: rgba(15, 14, 18, .55); backdrop-filter: blur(6px); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.video-nav:hover { background: var(--accent); color: var(--accent-ink); }
.video-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-nav.prev { left: 12px; }
.video-nav.next { right: 12px; }
.video-carousel.ready .video-nav { display: grid; }
@media (max-width: 600px) {
  .video-carousel.ready .video-nav { display: none; }
  .video-tabs button { padding: 8px 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-track, .video-slide, .video-tabs-pill { transition: none !important; }
}

/* About Devoxx (home) */
.about-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.about-text p { font-size: 1.1rem; max-width: 640px; }
.about-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about-stats li { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; }
.about-stats b { font: 700 1.6rem/1.1 var(--display); }
.about-stats span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Intro text (home), two columns like devoxx.be */
.intro-text { columns: 2 380px; column-gap: 48px; }
.intro-text p { margin: 0 0 1em; break-inside: avoid; color: var(--ink-2); }
.intro-text .intro-lead { font-size: 1.25rem; color: var(--ink); column-span: all; max-width: 820px; margin-bottom: 1.4em; }
.intro-text .intro-quote { font: 600 1.15rem/1.4 var(--display); color: var(--ink); border-left: 4px solid var(--accent); padding-left: 16px; }

/* Tracks (home) */
.track-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .track-grid { grid-template-columns: 1fr; } }
.track-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s ease, transform .2s ease; }
.track-grid li:hover { border-color: var(--accent); transform: translateY(-2px); }
.track-grid .track-no { display: block; font: 700 .85rem/1 var(--display); color: var(--accent); letter-spacing: .08em; margin-bottom: 14px; }
.track-grid h3 { font-size: 1.1rem; margin: 0 0 8px; }
.track-grid p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Sponsors (home): 2026 sponsors by tier, logos on white tiles so they read in both themes */
.sponsor-tier + .sponsor-tier { margin-top: 32px; }
.sponsor-tier h3 { font: 600 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.sponsor-tier h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sponsor-logos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(var(--logo-w, 150px), 1fr)); }
.tier-platinum { --logo-w: 220px; }
.tier-gold { --logo-w: 200px; }
.tier-silver { --logo-w: 170px; }
.sponsor-logos a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; aspect-ratio: 16 / 9; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-sizing: border-box; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sponsor-logos a:hover, .sponsor-logos a:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sponsor-logos img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.sponsor-logos span { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b6672; }
.tier-partner { --logo-w: 220px; }
.tier-partner .sponsor-logos a { padding: 10px 12px 12px; }
.tier-partner .sponsor-logos img { flex: 1; max-height: calc(100% - 22px); }
.tier-partner .sponsor-logos span { white-space: nowrap; }

/* Centered layout for the atmosphere video and the sponsor logos */
.atmosphere .section-head, .sponsors-home .section-head { text-align: center; margin-inline: auto; }
.atmosphere .section-head p, .sponsors-home .section-head p { margin-inline: auto; }
.video-facade { margin-inline: auto; width: 100%; }
.atmosphere .actions { justify-content: center; }
.sponsor-tier h3 { justify-content: center; }
.sponsor-tier h3::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; }
.sponsor-logos li { flex: 0 1 var(--logo-w, 150px); }

/* Logos page: 2027 logo */
.brand-2027 + .brand-2027 { border-top: 1px solid var(--line); padding-top: 56px; }
.brand-lead { color: var(--ink-2); max-width: 620px; margin: 0 auto 28px; }
.logo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto 28px; }
.logo-pair figure { margin: 0; }
.logo-pair .logo-tile { max-width: none; padding: 40px 32px; }
.logo-pair .logo-tile img { width: 100%; max-height: none; }
.download-list.two-col { max-width: 1000px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .logo-pair, .download-list.two-col { grid-template-columns: 1fr; } }

/* Full-bleed crowd photo between home sections (build.py add_photo_band) */
.photo-band { position: relative; padding: 0; height: clamp(260px, 42vw, 620px); background: #0f0e12 var(--band) var(--band-pos, center) / cover no-repeat; border-top: 0; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,16,.25) 0%, transparent 25%, transparent 70%, rgba(12,10,16,.45) 100%); pointer-events: none; }
.photo-band + section { border-top: 0; }
@media (max-width: 700px) { .photo-band { background-image: var(--band-sm, var(--band)); } }

/* "Join us in Antwerp" banner above the footer (every page) */
.footer-band { height: auto; min-height: clamp(300px, 34vw, 480px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; isolation: isolate; }
.footer-band::after { background: rgba(12,10,16,.55); z-index: -1; }
.photo-band.footer-band { border-top: 0; }
.footer-band-text { position: relative; padding-block: 64px; }
.footer-band-text .eyebrow { color: var(--accent); }
.footer-band-text h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.footer-band-text h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--accent); margin: 18px auto 0; }
.footer-band-text p { color: rgba(255,255,255,.85); margin: 0; }
.footer-band-text .actions { justify-content: center; }
.footer-band + .site-footer { border-top: 0; }

/* Contact page */
.social-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.social-cards li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.social-cards li > i { font-size: 1.8rem; color: var(--accent); margin-bottom: 14px; }
.social-cards h3 { margin: 0 0 4px; font-size: 1.15rem; }
.social-cards .stat { margin: 0 0 10px; font-weight: 600; color: var(--link); font-size: .95rem; }
.social-cards p { color: var(--ink-2); margin: 0 0 18px; }
.social-cards .btn { margin-top: auto; align-self: flex-start; }
.venue-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: center; }
.venue-grid address { font-style: normal; font-size: 1.1rem; line-height: 1.6; margin: 12px 0 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .social-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .venue-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .social-cards { grid-template-columns: 1fr; } }
.contact-person { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 1.5rem; padding: 14px 16px 14px 14px; background: rgba(12,10,16,.55); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; backdrop-filter: blur(8px); }
.contact-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 .95rem/1 var(--display); }
.contact-person strong { display: block; color: #fff; }
.contact-person div span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* "Why come" (home): the robot photo sits behind the heading and fades into the page above and below */
.why-come { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0; }
.why-photo { position: absolute; inset: 0 0 auto 0; height: clamp(420px, 56vw, 820px); z-index: -1;
  background: #0f0e12 url('/assets/img/robot-band.webp') center 58% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%); }
.why-content .section-head { color: #fff; padding-top: clamp(40px, 9vw, 140px); margin-bottom: clamp(160px, 24vw, 360px); }
.why-content .section-head h2 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.why-content .section-head .eyebrow { color: var(--accent); }
@media (max-width: 700px) { .why-photo { background-image: url('/assets/img/robot-band-sm.webp'); } }

/* Crowd photo under Tracks: fades into the page at the top and the bottom */
.tracks + .photo-band {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%); }
.tracks + .photo-band::after { display: none; }
.tracks + .photo-band .hero-credit { bottom: 30%; }
.why-content .section-head { margin-left: auto; margin-right: 0; text-align: right; }

/* Hero photo fades into the page at the bottom (all pages). The section itself is transparent so
   the fade reveals the page background in both themes; extra bottom padding keeps text off the fade. */
.has-photo { background: transparent; padding-bottom: calc(clamp(48px, 7vw, 80px) + 110px); }
.has-photo::before, .has-photo::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%); }
.has-photo::before { background-color: #0f0e12; }
.has-photo .hero-credit { bottom: 130px; }
/* Phones: the credit sits under the photo, in the faded strip, instead of over it */
@media (max-width: 700px) { .has-photo .hero-credit { bottom: 16px; } }
.has-photo + section { border-top: 0; }

/* Plan your five days (home): centred */
.week .section-head { text-align: center; margin-inline: auto; }
.week .tabs { justify-content: center; }
.week [role="tabpanel"] { max-width: 720px; margin-inline: auto; }

/* Home: centred section headings where it reads well (hero and "Why come" keep their own alignment;
   long body text and card text stay left-aligned for readability) */
.intro .section-head, .tracks .section-head, .whats-on .section-head, .about .section-head, .community .section-head { text-align: center; margin-inline: auto; }
.whats-on .section-head p, .community .section-head p { margin-inline: auto; }
.intro-text .intro-lead { text-align: center; margin-inline: auto; }
.intro-text .intro-quote { text-align: left; }
/* About: centred text with the three figures in a row underneath */
.about-grid { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
.about-text { max-width: 720px; text-align: center; }
.about-text p { max-width: none; }
.about-stats { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; width: 100%; }
.about-stats li { border-left: 1px solid var(--line); border-top: 4px solid var(--accent); text-align: center; align-items: center; }
@media (max-width: 760px) { .about-stats { grid-template-columns: 1fr; max-width: 320px; } }

/* Four-card grids (home, sponsors). Four cards never split 3+1: one column on phones, 2x2 on tablets
   (iPad portrait and landscape, up to the 13" iPad Pro at 1366px), four in a row on desktop. */
.grid.four { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* The five day tabs stay on one row on phones */
@media (max-width: 520px) {
  .week .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .week .tabs button { padding: 8px 4px; font-size: .85rem; white-space: nowrap; }
}
/* Sponsor tiers: at most four logos per row so rows stay balanced (7 = 4+3, 8 = 4+4, never 7+1) */
.sponsor-logos { max-width: calc(4 * var(--logo-w, 150px) + 3 * 14px); margin-inline: auto; }
/* Smaller sponsor tiles on tablets and phones: two per row on a phone, 4+3 on iPad portrait */
@media (max-width: 900px) {
  .tier-platinum, .tier-gold { --logo-w: 160px; }  /* partner tiles keep 220px: their labels do not wrap */
  .tier-silver { --logo-w: 150px; }
}
