/* ==========================================================================
   AI ON TRACK — site stylesheet
   Design tokens are sampled from the source artwork. See BRAND.md.
   Strict CSP: no inline styles anywhere. All CSS lives here.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Brand palette — slide 4, pixel-sampled */
  --white:  #FFFFFF;
  --black:  #000000;
  --purple: #4E30A0;
  --orchid: #AD4FE0;
  --cyan:   #00B9F2;

  /* Gradient field — sampled from the campaign creative */
  --grad-1: #AC4DDF;
  --grad-2: #6435B3;
  --grad-3: #5634B5;
  --grad-4: #2A257B;
  --grad-5: #1A1E57;
  --grad-6: #181F39;
  --grad-7: #0B1C29;

  /* Derived surfaces */
  --ink:        #0B1020;
  --surface:    #14103A;
  --surface-2:  #1B1550;
  --hairline:   rgba(255, 255, 255, .14);
  --hairline-2: rgba(255, 255, 255, .07);

  /* Text — every value below clears 4.5:1 on its intended ground */
  --text:       #FFFFFF;
  --text-muted: #C3C6E4;   /* 9.4:1 on --ink */
  --text-dim:   #9AA0CC;   /* 5.6:1 on --ink */

  /* Cyan is 2.4:1 on white — decoration and large display only.
     This lighter cut exists for small text on the dark ground. */
  --cyan-text:  #5CD4FA;

  /* Type — Rubik only, at the client's instruction. The old stack led with
     "Blender Pro": anyone with the brand font installed saw Latin and digits
     in Blender and Hebrew in the fallback, i.e. two typefaces in one line. */
  --font: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;

  /* Raised one step at the client's request (2026-09-29): body text reads
     ~20px on a desktop instead of ~18px, and the small tier (badges, chips,
     captions, notes) rises with it so nothing is left behind. */
  --step--1: clamp(.95rem, .91rem + .18vw, 1.0625rem);
  --step-0:  clamp(1.125rem, 1.08rem + .22vw, 1.25rem);
  --step-1:  clamp(1.3rem, 1.2rem + .5vw, 1.6rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);

  /* Rhythm */
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

/* The `hidden` attribute is only `display: none` in the UA stylesheet, so any
   author `display` rule silently defeats it. `.film-card { display: flex }`
   did exactly that and the video filters appeared to do nothing. Never remove
   this without checking every element that gets toggled with `.hidden`. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* Sticky header must not cover anchored section headings */
  scroll-padding-block-start: 6.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0;
  /* Headings never break mid-phrase with one orphaned word. */
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--cyan-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--white); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-block-start: -100%; inset-inline-start: 1rem;
  z-index: 200; padding: .75rem 1.25rem;
  background: var(--cyan); color: var(--black);
  font-weight: 800; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { inset-block-start: 0; color: var(--black); }

/* RTL bidi guard.
   `09:00–14:00` and `11–12.5.2027` render REVERSED inside an RTL line without this.
   Keep every range inside ONE .num element — splitting it across two spans
   reintroduces the bug. Same for Latin names inside Hebrew copy. */
.num, .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
/* Hyphenated words (Eco-System, דו-גלגלי, טכנולוגי-אומנותי) are wrapped in
   this by setText() in js/sections.js, so a line never breaks at the hyphen. */
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--hairline-2);
  transition: block-size .3s var(--ease);
}
.header-row {
  display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem);
  min-block-size: 4.75rem;
}
/* Wider than the content column: nine nav items and three logos share it. */
.site-header .wrap { width: min(1480px, 100%); }
.header-logo { flex: none; }
.header-logo img { block-size: 3rem; inline-size: auto; }

/* Organiser lockup, sitting beside the event mark with a hairline rule —
   the same relationship the campaign creative uses. */
.header-orgs {
  flex: none;
  display: flex; align-items: center;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
  padding-inline-start: clamp(.6rem, 1.4vw, 1.1rem);
  border-inline-start: 1px solid var(--hairline);
}
.org-logo {
  display: block; line-height: 0;
  /* content-box so the flex gap and any padding cannot squash the artwork */
  box-sizing: content-box;
  opacity: .92;
  transition: opacity .2s var(--ease);
}
.org-logo:hover { opacity: 1; }
.header-orgs .org-logo img { block-size: 3.2rem; inline-size: auto; }

.site-nav { margin-inline-start: auto; }
.site-nav ul {
  display: flex; align-items: center; gap: clamp(.7rem, 1.1vw, 1.35rem);
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1.0625rem; font-weight: 500;
  padding: .4rem .1rem; white-space: nowrap;
  border-block-end: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="true"] {
  color: var(--white); border-block-end-color: var(--cyan);
}

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--hairline);
  color: var(--white); border-radius: 10px;
  padding: .55rem .7rem; cursor: pointer;
}

.lang-switch {
  flex: none; font-size: var(--step--1); font-weight: 700;
  color: var(--text-muted); text-decoration: none;
  padding: .35rem .7rem; border: 1px solid var(--hairline); border-radius: 999px;
}
.lang-switch:hover { color: var(--white); border-color: var(--cyan); }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.9rem;
  font-family: inherit; font-size: var(--step-0); font-weight: 800;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan); color: #04121C;
  box-shadow: 0 8px 30px -8px rgba(0, 185, 242, .7);
}
.btn-primary:hover { background: #3FCCFF; color: #04121C; box-shadow: 0 14px 38px -10px rgba(0, 185, 242, .85); }

.btn-ghost { border-color: var(--hairline); color: var(--white); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--white); background: rgba(0,185,242,.1); }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-block-size: min(94svh, 60rem);
  padding-block: clamp(3rem, 9vw, 6rem) clamp(4rem, 11vw, 8rem);
  overflow: hidden;
  /* The signature ground: magenta bloom falling to near-black navy */
  background:
    radial-gradient(120% 90% at 8% 4%, var(--grad-1) 0%, transparent 55%),
    radial-gradient(90% 80% at 92% 18%, var(--grad-4) 0%, transparent 60%),
    linear-gradient(160deg,
      var(--grad-2) 0%, var(--grad-3) 22%, var(--grad-4) 45%,
      var(--grad-5) 66%, var(--grad-6) 84%, var(--grad-7) 100%);
}

/* Light-trail roadway + circuit traces, drawn in SVG, pinned behind content */
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
}
.hero-art svg { inline-size: 100%; block-size: 100%; }
.hero-roads { position: absolute; inset-block-end: -2%; inset-inline: 0; block-size: 62%; opacity: .85; }

/* Vignette so white type always clears contrast over the bloom */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(6,8,25,.42) 0%, rgba(6,8,25,0) 38%, rgba(6,8,25,.55) 100%);
}

.hero-inner { position: relative; text-align: center; }

.hero-logo {
  inline-size: min(100%, 46rem);
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
}

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: .6rem clamp(1rem, 3vw, 2.25rem);
  margin-block-end: clamp(1.5rem, 4vw, 2.25rem);
  font-size: var(--step-1); font-weight: 700;
}
/* A hairline between date and venue — the cyan bullet that sat here was one
   of the stray dots the client asked to remove. */
.hero-meta .sep {
  inline-size: 1px; block-size: 1.2em;
  background: var(--hairline);
}
.hero-meta .venue { font-weight: 500; color: var(--text-muted); }
.hero-meta .date-group { display: inline-flex; align-items: center; gap: .55rem; }

.hero-date-flag {
  display: inline-block;
  padding: .1rem .6rem; border-radius: 999px;
  border: 1px solid var(--cyan); color: var(--cyan-text);
  font-size: var(--step--1); font-weight: 700; vertical-align: middle;
}

/* The P.AI Games line: present in the hero, but never louder than the date. */
.hero-partof {
  max-inline-size: 40rem;
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  padding-block-start: clamp(.75rem, 2vw, 1rem);
  border-block-start: 1px solid var(--hairline);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.partof-name { color: var(--cyan-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.partof-name:hover { color: var(--white); text-decoration: underline; }
.partof-long {
  margin-block-start: 1.5rem; padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--hairline-2);
  color: var(--text-muted);
}

.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem;
  margin-block-end: clamp(2rem, 6vw, 3.5rem);
}

/* -------------------------------------------------------------- countdown */
.countdown {
  display: flex; justify-content: center; gap: clamp(.5rem, 2.5vw, 1.75rem);
  margin: 0; padding: 0; list-style: none;
}
.countdown li {
  min-inline-size: clamp(4rem, 14vw, 6.25rem);
  padding: .85rem .5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(6, 10, 32, .38);
  backdrop-filter: blur(6px);
}
.countdown .n {
  display: block; font-size: var(--step-2); font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--white);
}
.countdown .u {
  display: block; margin-block-start: .35rem;
  font-size: var(--step--1); font-weight: 600;
  color: var(--text-dim); letter-spacing: .04em;
}

/* -------------------------------------------------------------- sections -- */
.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: linear-gradient(180deg, var(--ink) 0%, #101534 50%, var(--ink) 100%); }

.section-head { max-inline-size: 50rem; margin-block-end: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: var(--step-1); color: var(--text-muted); font-weight: 400; }
.lede-lead { display: block; margin-block-end: .35rem; color: var(--white); font-weight: 600; }

/* ONE heading per section, in cyan (the client's doc). The small cyan kicker
   that used to sit above a differently-worded h2 is gone everywhere.
   --cyan-text is the AA-safe cut (11:1 on --ink); never --cyan for text. */
.section-title { color: var(--cyan-text); font-size: var(--step-3); font-weight: 800; margin: 0; }
.section-head .lede { margin-block-start: 1rem; }

/* Second level: a sub-heading inside a section. White, so the section title
   stays the only cyan heading and the hierarchy reads at a glance. */
.subhead { font-size: var(--step-2); color: var(--white); margin-block-end: .75em; }
.subhead.center, .sub-head.center { text-align: center; }
.sub-head { max-inline-size: 46rem; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); }
.sub-head .subhead { margin-block-end: .5em; }

/* Sub-blocks of one section (אודות has three). Spacing plus a hairline, so
   they read as parts of a whole rather than as separate sections. */
.sub-block + .sub-block {
  margin-block-start: clamp(3rem, 7vw, 4.5rem);
  padding-block-start: clamp(3rem, 7vw, 4.5rem);
  border-block-start: 1px solid var(--hairline-2);
}
.about-intro .subhead { text-align: center; }
/* Running text in a centred column, and centred itself: the client's standing
   rule (HANDOFF section 7, which also lists the two exceptions). */
.prose { max-inline-size: 46rem; margin: 0 auto clamp(2rem, 5vw, 3rem); color: var(--text-muted); text-align: center; }
.prose strong { color: var(--white); }

/* ----------------------------------------------------------------- stats -- */
.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 0; padding: 0;
  border: 1px solid var(--hairline-2); border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats > div {
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  text-align: center;
  background: rgba(255, 255, 255, .025);
  outline: 1px solid var(--hairline-2);
}
.stats dt { font-size: var(--step-3); font-weight: 800; line-height: 1; color: var(--cyan-text); }
.stats dd { margin: .6rem 0 0; font-size: var(--step--1); color: var(--text-muted); letter-spacing: .02em; }

/* ---------------------------------------------------------------- tracks -- */
.track-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.track-card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(78, 48, 160, .28), rgba(11, 28, 41, .5));
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.track-card:hover { transform: translateY(-4px); border-color: var(--cyan); }

/* Accent rail on the RTL start edge; flips automatically in LTR */
.track-card::before {
  content: ""; position: absolute;
  inset-block: 0; inset-inline-start: 0; inline-size: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--orchid));
}
.track-card.is-gala { background: linear-gradient(165deg, rgba(173, 79, 224, .32), rgba(11, 28, 41, .55)); }

/* Weekday + date. Body size, not a tiny uppercase label: it is information
   the visitor needs, not decoration. */
/* Date and day name are one centred block: they name the same thing. */
.track-when {
  margin-block-end: .4rem; text-align: center;
  font-size: var(--step-1); font-weight: 700; line-height: 1.3;
  color: var(--cyan-text);
}
.track-card.is-gala .track-when { color: #E4A8FF; }
.track-hours { display: block; }
.track-title { font-size: var(--step-2); margin-block-end: .5rem; text-align: center; }
.track-tagline {
  margin-block-end: 1.25rem; padding-block-end: 1.25rem;
  border-block-end: 1px solid var(--hairline-2);
  text-align: center; font-weight: 600; color: var(--white);
}
/* Centred at the client's request (2026-09-29), copy included. */
.track-body { margin-block-end: 1.5rem; text-align: center; }
.track-body p { color: var(--text-muted); }
.track-body p:last-child { margin-block-end: 0; }
.track-card .btn { align-self: end; inline-size: 100%; }
/* The three cards share one row track per part, so date, name, tagline and
   button sit on the same line across all three however long the copy runs.
   Without subgrid each card keeps its own flow and the parts stagger. */
@supports (grid-template-rows: subgrid) {
  .track-grid { grid-template-rows: auto auto auto 1fr auto; }
  .track-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  /* A one-line date centres itself in a row sized by the three-line one. */
  .track-when { align-self: center; }
}


/* ---------------------------------------------------------------- footer -- */
.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-block-start: 1px solid var(--hairline-2);
  background: var(--grad-7);
  font-size: var(--step--1);
  color: var(--text-dim);
}
.footer-orgs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-block-end: 2rem; margin-block-end: 2rem;
  border-block-end: 1px solid var(--hairline-2);
}
.footer-orgs .org-logo img { block-size: 3.4rem; inline-size: auto; }
/* Centred as a set. The trailing address line is centred with them, because a
   left-aligned line under two centred rows reads as a mistake, not a choice. */
.site-footer .wrap { text-align: center; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none;
}
/* 21px tall previously. Padding lifts the hit area past 24px without
   changing the visual rhythm. */
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  display: inline-block; padding-block: .2rem;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* ------------------------------------------------------------- responsive */
/* Must match NAV_QUERY in js/site.js. The drawer rules skip .doc-nav: the
   accessibility statement's nav is one back link with no toggle and no script,
   so as a drawer it sat pinned over the content. It keeps the desktop layout.
   The drawer's items are centred, like the rest of the site (HANDOFF section 7). */
@media (max-width: 1239px) {
  .nav-toggle { display: block; }
  .site-nav:not(.doc-nav) {
    position: fixed; inset: 4.75rem 0 auto;
    background: var(--ink); border-block-end: 1px solid var(--hairline);
    padding: 1rem var(--gutter) 1.5rem;
    margin-inline-start: 0;
  }
  .site-nav:not(.doc-nav)[hidden] { display: none; }
  .site-nav:not(.doc-nav) ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav:not(.doc-nav) a { display: block; padding: .8rem 0; border-block-end: 1px solid var(--hairline-2); font-size: var(--step-0); text-align: center; }
  .site-nav:not(.doc-nav) a:hover, .site-nav:not(.doc-nav) a[aria-current="true"] { border-block-end-color: var(--hairline-2); }
}

@media (max-width: 1100px) {
  .header-orgs .org-logo img { block-size: 2.7rem; }
}

@media (max-width: 560px) {
  .header-logo img { block-size: 2.3rem; }
  .header-orgs { padding-inline-start: .55rem; gap: .55rem; }
  .header-orgs .org-logo img { block-size: 2.2rem; }
  .hero-meta { font-size: var(--step-0); flex-direction: column; gap: .2rem; }
  .hero-meta .sep { display: none; }
  .hero-actions .btn { inline-size: 100%; }
}

/* Registration CTA before its monday.com form URL exists. Better an honest
   "opening soon" than a live-looking button that goes nowhere. */
.btn[data-pending] {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--hairline);
  box-shadow: none;
  cursor: default;
}
.btn[data-pending]:hover { transform: none; background: transparent; color: var(--text-dim); }

/* ==========================================================================
   Sections sourced from the Exhibitors deck
   ========================================================================== */

.section-note {
  margin-block-start: 1.5rem;
  font-size: var(--step--1);
  color: var(--text-dim);
  text-align: center;
}

/* ---------------------------------------------------------------- agenda -- */
.tablist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-block-end: clamp(1.5rem, 4vw, 2.5rem);
}
.tab {
  font-family: inherit; font-size: var(--step-0); font-weight: 700;
  padding: .7rem 1.5rem; border-radius: 999px; cursor: pointer;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--hairline);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--white); border-color: var(--cyan); }
.tab[aria-selected="true"] {
  color: #04121C; background: var(--cyan); border-color: var(--cyan);
}
.tab .tab-day { display: block; font-size: var(--step--1); font-weight: 500; }

.booth-hours {
  text-align: center;
  margin-block-end: 1.75rem; padding: .8rem 1.25rem;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: rgba(0, 185, 242, .06);
  color: var(--text-muted);
}
.booth-hours b { color: var(--white); font-weight: 600; }

/* The agenda is a definition list: time then session. A table would imply a
   grid relationship that is not there, and reads badly on a phone. */
.agenda-list { margin: 0; padding: 0; }
.agenda-row {
  /* The schedule keeps its two columns: times in one, sessions in the other.
     Centring the rows was tried and reverted at the client's request - the
     rest of the site is centred, this stays a table. */
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 0 clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding-block: 1rem;
  border-block-start: 1px solid var(--hairline-2);
}
.agenda-row:first-child { border-block-start: 0; }

.agenda-time {
  margin: 0;
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--cyan-text);
  /* Time ranges reverse under RTL without this. One element per range. */
  direction: ltr; unicode-bidi: isolate; text-align: start;
}
.agenda-title { margin: 0; font-size: var(--step-0); }

.agenda-row[data-type="gala"] .agenda-time { color: #E4A8FF; }
.agenda-row[data-highlight] .agenda-title { font-weight: 700; }
.agenda-row[data-gala-start] {
  margin-block-start: .75rem;
  border-block-start: 2px solid var(--orchid);
}
.agenda-row[data-gala-start] .agenda-title { font-size: var(--step-1); font-weight: 700; }
/* The rule above the gala separates it from the daytime programme. On a day
   that is only the gala (19.5), there is nothing above it to separate. */
.agenda-row[data-gala-start]:first-child { margin-block-start: 0; border-block-start: 0; }

.agenda-gala-note {
  margin-block: 1.25rem 0; padding: .75rem 1.1rem;
  border-inline-start: 3px solid var(--orchid);
  background: rgba(173, 79, 224, .1);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1); color: var(--text-muted); text-align: center;
}

/* -------------------------------------------------------------- audience -- */
/* Flex rather than grid, deliberately. There are five cards, and no column
   count divides five — on a four-across row grid strands the fifth against the
   edge. Flex wrapping centres a short trailing row on its own, so the odd card
   reads as intentional at every width. The bottom margin is gone with the
   panel that used to sit under this grid. */
.audience-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0; padding: 0; list-style: none;
}
.audience-grid li {
  flex: 0 1 20rem;
  display: flex; flex-direction: column; gap: .6rem; align-items: center;
  text-align: center;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  color: var(--text-muted);
}
.audience-icon { flex: none; inline-size: 1.75rem; block-size: 1.75rem; color: var(--cyan); }


/* --------------------------------------------------------------- gallery -- */
.gallery-grid {
  display: grid; gap: clamp(.5rem, 1.5vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 0; padding: 0; list-style: none;
}
/* Uniform tiles. Six equal cells divide cleanly into 3, 2 and 1 columns;
   mixing in a span-2 hero tile left a ragged half-empty final row at every
   breakpoint. Revisit when the full photo library arrives. */

.gallery-btn {
  display: block; inline-size: 100%; padding: 0; cursor: zoom-in;
  border: 1px solid var(--hairline-2); border-radius: var(--radius);
  background: none; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.gallery-btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.gallery-btn img {
  inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .35s var(--ease);
}
.gallery-btn:hover img { transform: scale(1.04); }

.lightbox {
  border: 0; padding: 0; max-inline-size: 100vw; max-block-size: 100vh;
  inline-size: min(96vw, 78rem); background: transparent; color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 6, 18, .93); }
.lightbox figure { margin: 0; }
.lightbox img {
  inline-size: 100%; max-block-size: 82vh; object-fit: contain;
  border-radius: var(--radius);
}
.lightbox figcaption {
  margin-block-start: .9rem; text-align: center;
  font-size: var(--step--1); color: var(--text-muted);
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  inline-size: 2.9rem; block-size: 2.9rem;
  font-family: inherit; font-size: 1.75rem; line-height: 1;
  color: var(--white); cursor: pointer;
  background: rgba(11, 16, 32, .8); border: 1px solid var(--hairline);
  border-radius: 50%;
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--cyan); background: rgba(0, 185, 242, .2); }
.lightbox-close { inset-block-start: -1.2rem; inset-inline-end: -1.2rem; font-size: 1.9rem; }
.lightbox-nav { inset-block-start: calc(50% - 1.45rem); }
/* RTL: "next" sits on the LEFT, "previous" on the right. Logical properties
   flip these automatically in the English mirror. */
.lightbox-prev { inset-inline-start: -1.2rem; }
.lightbox-next { inset-inline-end: -1.2rem; }
@media (max-width: 640px) {
  .lightbox-close { inset-block-start: -.6rem; inset-inline-end: -.4rem; }
  .lightbox-prev { inset-inline-start: -.4rem; }
  .lightbox-next { inset-inline-end: -.4rem; }
}

/* ------------------------------------------------------------ exhibitors -- */
.section-exhibit {
  position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(11,16,32,.94) 0%, rgba(11,16,32,.84) 45%, rgba(11,16,32,.97) 100%),
    url("../assets/key-visuals/smart-city-micromobility.png") center / cover no-repeat;
}

.why-now { margin-block: clamp(2.5rem, 6vw, 3.75rem) clamp(2.5rem, 6vw, 4rem); }

.why-now ul {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.why-now li {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  background: rgba(11, 16, 32, .55);
  backdrop-filter: blur(4px);
  color: var(--text-muted);
}
.why-now strong { display: block; margin-block-end: .4rem; color: var(--white); font-size: var(--step-1); font-weight: 700; }



/* A three-tier comparison must be 3-up or 1-up. auto-fit dropped to 2+1 on
   mid-width screens, which reads as the third tier being demoted rather than
   just wrapped. Explicit breakpoint instead. */
/* stretch, not start: equal-height cards let `.tier-cost { margin-block-start:
   auto }` pin all three prices to the same baseline, which is the only reason
   a comparison table is worth showing side by side. */
.tier-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 62rem) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
}
.tier-card {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(6px);
}
.tier-card h4 { margin: 0 0 .15rem; font-size: var(--step-1); }
.tier-sub { margin: 0; min-block-size: 1.5em; font-size: var(--step--1); color: var(--text-dim); }
.tier-size {
  margin-block: .75rem 1rem; padding-block-end: 1rem;
  border-block-end: 1px solid var(--hairline-2);
}
.tier-size-label { display: block; font-size: var(--step--1); color: var(--text-dim); }
.tier-size-value { font-size: var(--step-2); font-weight: 700; color: var(--white); }
.tier-feats { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: .75rem; }
.tier-feats li { display: flex; gap: .6rem; justify-content: center; color: var(--text-muted); }
.tier-feats svg { flex: none; inline-size: 1.1rem; block-size: 1.1rem; margin-block-start: .3rem; color: var(--cyan); }
.tier-cost { margin-block-start: auto; padding-block-start: 1rem; border-block-start: 1px solid var(--hairline-2); }
.tier-cost b { display: block; font-size: var(--step-2); font-weight: 700; color: var(--white); }
.tier-cost span { font-size: var(--step--1); color: var(--text-dim); }

.exhibit-cta { margin-block-start: clamp(2rem, 5vw, 3rem); text-align: center; }

/* ==========================================================================
   Media sections — gallery filters, demo loops, press coverage
   ========================================================================== */

/* -------------------------------------------------------------- filters -- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-block-end: 1rem;
}
.filter-btn {
  font-family: inherit; font-size: var(--step--1); font-weight: 700;
  padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--hairline);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { color: var(--white); border-color: var(--cyan); }
.filter-btn[aria-pressed="true"] { color: #04121C; background: var(--cyan); border-color: var(--cyan); }

.filter-count {
  margin-block: 0 1.75rem; text-align: center;
  font-size: var(--step--1); color: var(--text-dim);
}

/* Year badge on every gallery tile. This library is 2024 and must never be
   mistaken for the coming edition. */
.gallery-btn { position: relative; }
.gallery-year {
  position: absolute; inset-block-end: .5rem; inset-inline-end: .5rem;
  padding: .1rem .5rem; border-radius: 999px;
  background: rgba(4, 8, 22, .78); border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .04em;
  direction: ltr; unicode-bidi: isolate;
  pointer-events: none;
}

/* ------------------------------------------- gallery: video tiles -- */
/* A frame of a news anchor reads as a photograph. The badge is what tells
   the viewer the tile plays. */
.gallery-play {
  position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem;
  display: grid; place-items: center;
  inline-size: 2.5rem; block-size: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 185, 242, .92); color: #04121C;
  pointer-events: none;
  transition: transform .2s var(--ease);
}
.gallery-btn:hover .gallery-play { transform: scale(1.1); }
/* Points right in every locale — transport controls are not mirrored in RTL. */
.gallery-play-icon { inline-size: 1.2rem; block-size: 1.2rem; fill: currentColor; stroke: none; }

.gallery-item[data-type="video"] .gallery-btn { cursor: pointer; }

/* --------------------------------------------- lightbox: video ---- */
.lightbox video {
  inline-size: 100%; max-block-size: 82vh;
  border-radius: var(--radius);
  background: #000;
  display: block;
}
/* Broadcast source is 4:3 PAL. Constrain the dialog so a 4:3 clip does not
   sprawl to the full 78rem width of a landscape stills viewer. */
.lightbox[data-aspect="4/3"] { inline-size: min(94vw, 56rem); }

/* YouTube player, created on demand by js/sections.js. */
.lightbox-embed {
  inline-size: 100%; aspect-ratio: 16 / 9; max-block-size: 82vh;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.lightbox-embed iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }
.lightbox[data-aspect="9/16"] .lightbox-embed {
  aspect-ratio: 9 / 16; inline-size: auto; block-size: min(78vh, 44rem);
  max-inline-size: 100%; margin-inline: auto;
}
.lightbox-watch { color: var(--cyan-text); white-space: nowrap; }
.lightbox video[hidden], .lightbox img[hidden] { display: none !important; }

@media (max-width: 345px) {
  /* Only on the very narrowest phones do the event mark and the menu button
     need the whole row. 375px — the commonest phone width — keeps them. */
  .header-orgs { display: none; }
}

/* ==========================================================================
   Document pages (accessibility statement, and future legal pages)
   ========================================================================== */
.doc { padding-block: clamp(2.5rem, 7vw, 5rem); }
.doc .wrap { max-inline-size: 52rem; }
.doc h1 { font-size: var(--step-3); margin-block-end: .6em; text-align: center; }
.doc h2 {
  font-size: var(--step-1);
  margin-block: clamp(2rem, 5vw, 3rem) .6em;
  color: var(--cyan-text);
  text-align: center;
}
/* The statement's body text stays start-aligned. It is a legal document read
   in long paragraphs, and centred running text is measurably harder to follow
   - which would be a poor joke on the accessibility statement of all pages. */
.doc p, .doc li { color: var(--text-muted); }
.doc ul { padding-inline-start: 1.2rem; }
.doc li { margin-block-end: .55rem; }
.doc strong { color: var(--white); }

.doc-status {
  padding: 1rem 1.25rem;
  margin-block-end: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--orchid);
  border-radius: var(--radius);
  background: rgba(173, 79, 224, .12);
}

/* Unfinished fields are marked in the markup so they cannot be published by
   accident — they read as obviously incomplete rather than blending in. */
.todo {
  color: #FFD27A;
  background: rgba(255, 210, 122, .1);
  border-inline-start: 3px solid #FFD27A;
  padding: .15rem .5rem;
  border-radius: 0 4px 4px 0;
}

.contact-list { margin: 0; display: grid; gap: .75rem; }
.contact-list > div {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline;
  padding-block-end: .75rem;
  border-block-end: 1px solid var(--hairline-2);
}
.contact-list dt { font-weight: 700; color: var(--white); min-inline-size: 10rem; }
.contact-list dd { margin: 0; color: var(--text-muted); }

.doc-nav { margin-inline-start: auto; }
.doc-back { margin-block-start: clamp(2rem, 5vw, 3rem); }

/* The event mark, the organiser marks and the back link share one row while
   they fit. Whenever they don't - a narrow screen, or a larger default text
   size - the link wraps to a row of its own instead of pushing the page wider
   than the screen. On phones that row is centred, with room above the logos. */
.header-row:has(> .doc-nav) { flex-wrap: wrap; row-gap: 0; }
@media (max-width: 459px) {
  .header-row:has(> .doc-nav) { padding-block-start: .6rem; }
  .doc-nav { flex-basis: 100%; margin-inline-start: 0; padding-block-end: .5rem; }
  .doc-nav ul { justify-content: center; }
}

.gallery-empty {
  margin-block: 0 1.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
}

/* ==========================================================================
   Films — the 2025 video library
   18 of 22 sources are 1080x1920 vertical social cuts, so this section is
   built around a 9:16 card rather than the 16:9 tiles used elsewhere.
   ========================================================================== */

/* 9rem min so a 375px phone still tiles two-up. At 10.5rem it collapsed to a
   single column and eighteen 600px-tall cards became an eleven-thousand-pixel
   scroll. Vertical video wants a reel wall, not a stack. */
.film-grid {
  display: grid;
  gap: clamp(.6rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  margin: 0; padding: 0; list-style: none;
}
/* A block of landscape clips only (the 2024 track footage) gets its own
   three-across grid instead of spanning two narrow portrait columns. */
.film-grid.is-landscape { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.film-grid.is-landscape .film-card { grid-column: auto; }

.film-card { display: flex; flex-direction: column; }

.film-btn {
  position: relative;
  display: block; inline-size: 100%; padding: 0; cursor: pointer;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  background: var(--grad-7);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.film-btn:hover { border-color: var(--cyan); transform: translateY(-3px); }
.film-btn img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  transition: transform .35s var(--ease);
}
.film-btn:hover img { transform: scale(1.04); }

/* Aspect is declared per card so the poster is never letterboxed or cropped. */
.film-card[data-aspect="9/16"] .film-btn { aspect-ratio: 9 / 16; }
.film-card[data-aspect="16/9"] .film-btn { aspect-ratio: 16 / 9; }

/* A landscape card in a portrait grid would otherwise render as a thin
   letterbox sliver. Give it two columns so it reads at a sensible size. */
@media (min-width: 34rem) {
  .film-card[data-aspect="16/9"] { grid-column: span 2; }
}

.film-title {
  margin: .7rem 0 .2rem; text-align: center;
  font-size: var(--step-0);
  line-height: 1.3;
}
.film-body {
  margin: 0; text-align: center;
  font-size: var(--step--1);
  color: var(--text-dim);
}

/* The lightbox already sizes itself from data-aspect; add the vertical case.
   A 9:16 clip must be height-bound, or it overflows a tall viewport. */
.lightbox[data-aspect="9/16"] { inline-size: min(94vw, 26rem); }
.lightbox[data-aspect="9/16"] video { max-block-size: 78vh; inline-size: auto; margin-inline: auto; }

#demo-years, #film-filters, #gallery-filters { margin-block-end: 1.5rem; }

/* Demonstrations are grouped by edition. Seven vertical 2025 clips and five
   landscape 2024 clips cannot share one grid without a hole mid-grid. */
.year-block + .year-block { margin-block-start: clamp(2rem, 5vw, 3rem); }
.year-heading { margin-block-end: 1rem; font-size: var(--step-1); color: var(--white); text-align: center; }
#demo-years .filter-btn { font-weight: 800; }

/* ==========================================================================
   Hero pitch · speakers · companies · venue · FAQ
   ========================================================================== */

.hero-pitch {
  max-inline-size: 44rem;
  text-wrap: balance;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
}
.hero-pitch strong { display: block; margin-block-start: .4rem; color: var(--white); }

/* ---------------------------------------------------------------- speakers */
/* Flex, centred: seven slots. A grid left the seventh stranded at the edge;
   wrapping flex centres a short last row. Four across on desktop, two on a
   phone. */
.speaker-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0; padding: 0; list-style: none;
}
/* No grow: every card the same width, so the short last row matches the
   rows above it instead of stretching. */
.speaker-grid > li { flex: 0 1 15.5rem; }
@media (max-width: 40rem) {
  .speaker-grid > li { flex-basis: calc(50% - .5rem); }
}
.speaker-card {
  padding: clamp(1.25rem, 3vw, 1.6rem);
  text-align: center;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .025);
}
.speaker-photo {
  inline-size: 4.5rem; block-size: 4.5rem;
  margin: 0 auto .9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(0, 185, 242, .08);
  overflow: hidden;
}
.speaker-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.speaker-icon { inline-size: 2rem; block-size: 2rem; color: var(--cyan); }
.speaker-name { margin: 0 0 .25rem; font-size: var(--step-0); }
.speaker-role { margin: 0 0 .35rem; font-size: var(--step-0); line-height: 1.35; }
p.speaker-role { font-weight: 400; color: var(--text-muted); }
/* Unannounced slots read as deliberate, not as a rendering failure. */
.speaker-tba { margin: 0; font-size: var(--step--1); color: var(--text-dim); }

/* --------------------------------------------------------------- companies */
.company-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.company-card {
  display: grid; place-items: center;
  min-block-size: 6rem; padding: 1rem;
  background: rgba(255, 255, 255, .025);
  outline: 1px solid var(--hairline-2);
  text-align: center;
}
.company-link { display: grid; place-items: center; inline-size: 100%; }
.company-link img { max-block-size: 3rem; inline-size: auto; }
.company-name { font-size: var(--step--1); color: var(--text-muted); }
.company-card.is-pending .company-name { color: var(--text-dim); }

/* ------------------------------------------------------------------- venue */
.venue-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.venue-card {
  display: flex; flex-direction: column; gap: .6rem; align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
}
.venue-icon { flex: none; inline-size: 1.9rem; block-size: 1.9rem; color: var(--cyan); }
.venue-text h3 { margin: 0 0 .3rem; font-size: var(--step-1); }
.venue-highlight { margin: 0 0 .5rem; font-weight: 600; color: var(--cyan-text); }
.venue-body { margin: 0; color: var(--text-muted); }
.venue-address strong { display: block; color: var(--white); font-weight: 600; }
@media (max-width: 22.5rem) { .venue-address .nowrap { white-space: normal; } }
.venue-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  margin-block-start: clamp(1.75rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------- faq */
.faq-list {
  max-inline-size: 48rem; margin-inline: auto;
  border-block-start: 1px solid var(--hairline-2);
}
.faq-item { border-block-end: 1px solid var(--hairline-2); }
.faq-q {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  text-align: center;
  padding-block: 1.1rem;
  font-size: var(--step-0); font-weight: 700;
  color: var(--white); cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
/* Chevron drawn in CSS: no icon font, and it mirrors correctly under RTL
   because it is built from logical borders. */
.faq-q::before {
  content: ""; flex: none;
  inline-size: .5rem; block-size: .5rem;
  border-inline-end: 2px solid var(--cyan);
  border-block-end: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq-item[open] .faq-q::before { transform: rotate(-135deg); }
.faq-q:hover { color: var(--cyan-text); }
.faq-a {
  margin: 0; padding-block-end: 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

/* ------------------------------------------------------------ gallery link */
.gallery-more { margin-block-start: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }

/* ------------------------------------------------ gallery page ---------- */
/* Year first, one edition at a time; it governs both blocks below. */
.filters-years { margin-block-end: clamp(2rem, 5vw, 3rem); }
.filters-years .filter-btn { font-size: var(--step-0); padding: .6rem 1.75rem; }

.media-block + .media-block {
  margin-block-start: clamp(3rem, 7vw, 5rem);
  padding-block-start: clamp(2rem, 5vw, 3rem);
  border-block-start: 1px solid var(--hairline-2);
}
