/* ==========================================================================
   GTA Global Summit 2026 Istanbul
   Shared stylesheet — index / programme / speakers / travel

   Identity per GTA-Summit_Istanbul_BrandGuide.pdf:
     TTA Red #FF3633 · Deep Red #540000 · Black · White
     Skyline graphic: full opacity in red at the foot of a visual, OR
     zoomed below 10% opacity as a background. Both used here, via CSS mask.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --red: #ff3633;
  --red-dark: #e02e2b;
  --red-deep: #540000;
  --red-deeper: #3a0000;

  /* Ground */
  --black: #0a0a0a;
  --ink: #0d0c0c;
  --ink-2: #131111;
  --ink-3: #1a1717;

  /* Type colour */
  --paper: #fbf7f5;
  --paper-dim: #cfc6c2;
  --paper-mute: #8e8480;

  /* Lines */
  --rule: rgba(255, 247, 245, 0.11);
  --rule-soft: rgba(255, 247, 245, 0.06);
  --rule-red: rgba(255, 54, 51, 0.32);

  /* Type families */
  --display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --editorial: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  /* Fluid type scale */
  --t-micro: 0.6875rem;   /* 11px — eyebrows, labels */
  --t-small: 0.8125rem;   /* 13px */
  --t-body: 1.0625rem;    /* 17px */
  --t-lead: clamp(1.125rem, 0.95rem + 0.7vw, 1.375rem);
  --t-h4: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-h3: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --t-h2: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);
  --t-h1: clamp(2.75rem, 1.5rem + 5.6vw, 6.5rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --shell: 1240px;
  --band: clamp(4.5rem, 9vw, 9rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--display);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--paper);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection {
  background: var(--red);
  color: #fff;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 300;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Texture
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4. The skyline device
   The brand graphic, masked so it takes any colour. Two sanctioned uses.
   -------------------------------------------------------------------------- */
.skyline {
  --skyline-color: var(--red);
  background-color: var(--skyline-color);
  -webkit-mask: url('skyline.svg') repeat-x bottom / auto 100%;
  mask: url('skyline.svg') repeat-x bottom / auto 100%;
  pointer-events: none;
}

/* Use 2 — zoomed, under 10% opacity, as atmosphere */
.skyline--ghost {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 70%;
  opacity: 0.055;
  --skyline-color: var(--paper);
  -webkit-mask-size: auto 210%;
  mask-size: auto 210%;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  position: relative;
  padding-block: var(--band);
  isolation: isolate;
}

.band > .shell { position: relative; z-index: 1; }

.band--ink { background: var(--ink); }
.band--ink2 { background: var(--ink-2); }
.band--deep { background: var(--red-deep); }

.band--hairline { border-top: 1px solid var(--rule-soft); }

/* --------------------------------------------------------------------------
   6. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
  flex: none;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.12; }
.h4 { font-size: var(--t-h4); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }

.hl { color: var(--red); }

/* Editorial serif — long-form and pull-quotes only */
.prose {
  font-family: var(--editorial);
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--paper-dim);
  max-width: var(--measure);
  font-weight: 380;
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose--center { margin-inline: auto; }

.pullquote {
  font-family: var(--editorial);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  font-style: italic;
  font-weight: 380;
  line-height: 1.32;
  color: var(--paper);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 2px solid var(--red);
  text-wrap: pretty;
}

.lede {
  font-family: var(--editorial);
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 56ch;
  font-weight: 380;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--display);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.125rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--paper-dim);
  background: rgba(255, 247, 245, 0.04);
}

.btn--block { width: 100%; }

/* Text link with an animated rule */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.35s var(--ease-out);
}
.tlink:hover { background-size: 0% 1px; }

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  padding-block: 1.125rem;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease),
              border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding-block: 0.75rem;
  border-bottom-color: var(--rule-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 42px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
  margin-left: auto;
}
.nav__links a {
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  text-decoration: none;
  position: relative;
  padding-block: 4px;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after,
.nav__links a[aria-current='page']::after { transform: scaleX(1); }
.nav__links a[aria-current='page'] { color: var(--paper); }

.nav__cta { flex: none; padding: 0.75rem 1.25rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex: none;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.drawer[hidden] { display: none !important; }
.drawer a {
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--paper);
  padding-block: 0.35rem;
}
.drawer a:last-of-type { color: var(--red); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(7rem, 14vh, 9rem);
  padding-bottom: clamp(8rem, 16vw, 12rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg video,
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.88) 55%, rgba(10,10,10,0.97) 100%),
    linear-gradient(to bottom, rgba(84,0,0,0.25), transparent 40%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--rule-red);
  background: rgba(255, 54, 51, 0.07);
  padding: 0.6rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__logo {
  width: min(560px, 88vw);
  height: auto;
  margin-bottom: 1.75rem;
}

.hero__tagline {
  font-family: var(--editorial);
  font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.5rem);
  font-style: italic;
  font-weight: 380;
  line-height: 1.45;
  color: var(--paper-dim);
  max-width: 34ch;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-bottom: 2.75rem;
  width: min(720px, 100%);
}
.hero__meta-item { text-align: center; }
.hero__meta-label {
  display: block;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.4rem;
}
.hero__meta-value {
  display: block;
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: var(--t-small);
  color: var(--paper-mute);
}

/* --------------------------------------------------------------------------
   10. Partner bar
   -------------------------------------------------------------------------- */
.hero__partners {
  width: min(1200px, 100%);
  margin-bottom: 2.5rem;
  padding-block: 0 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
}

.hero__partners-label {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 1.25rem;
}

.hero__partners-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 1.25rem);
}
.hero__partners-grid .partner { min-width: 0; flex: 0 1 auto; padding: 0.4rem 0.1rem; }

.hero__partners-grid .partner {
  min-height: 0;
  padding: 0.5rem 0.25rem;
  background: none;
  gap: 0.3rem;
}
.hero__partners-grid .partner:hover { background: none; }
.hero__partners-grid .partner__mark { height: clamp(34px, 3.3vw, 46px); }
.hero__partners-grid .partner__logo { height: calc(clamp(22px, 2.2vw, 31px) * var(--logo-scale, 1)); max-width: 124px; }
.hero__partners-grid .partner__wordmark strong { font-size: 0.875rem; }
.hero__partners-grid .partner__wordmark small { display: none; }
.hero__partners-grid .partner__role { font-size: 0.5625rem; letter-spacing: 0.14em; }

.partners {
  border-block: 1px solid var(--rule-soft);
  background: var(--ink);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  position: relative;
  z-index: 3;
}

.partners__label {
  text-align: center;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 2rem;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 116px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  text-align: center;
  background: var(--ink);
  transition: background 0.3s var(--ease);
}
.partner:hover { background: var(--ink-3); }

/* Supplied logos are 600x160 transparent PNGs, so a fixed box lines every
   mark up on the same optical baseline regardless of its shape. */
/* Supplied logos are normalised to 160px tall with transparent backgrounds.
   brightness(0) invert(1) renders every mark as a uniform white silhouette,
   so logos of different colours read as one set on the dark ground. */
/* Fixed-height mark box: keeps every role label on the same baseline no
   matter how tall or wide the individual logo is. */
.partner__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
}

.partner__logo {
  height: calc(46px * var(--logo-scale, 1));
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity 0.3s var(--ease);
}
.partner:hover .partner__logo { opacity: 1; }

.partner__wordmark { display: block; }
.partner__wordmark strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--paper);
}
.partner__wordmark small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--editorial);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--paper-mute);
}

.partner__role {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   11. Stat rail
   -------------------------------------------------------------------------- */

/* Countdown */
.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}
.countdown__unit { text-align: center; }
.countdown__value {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 0.5rem;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.countdown__sep {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 200;
  line-height: 1;
  color: var(--rule-red);
}

/* --------------------------------------------------------------------------
   12. Section heads
   -------------------------------------------------------------------------- */
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head--center { text-align: center; }
.head--center .prose,
.head--center .lede { margin-inline: auto; }
.head__title { margin-bottom: 1.25rem; }

.head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

/* --------------------------------------------------------------------------
   13. Speaker grid
   -------------------------------------------------------------------------- */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.speaker {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.speaker:hover {
  border-color: var(--rule-red);
  transform: translateY(-4px);
}

.speaker__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--red-deeper);
}

.speaker__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.speaker:hover .speaker__photo {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* Monogram fallback — designed, not a placeholder */
.speaker__media--mono {
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(255,54,51,0.14), transparent 70%),
    var(--red-deeper);
}
.speaker__media--mono::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 28px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--red);
}
.speaker__mono {
  font-size: clamp(2.25rem, 4vw, 2.875rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 247, 245, 0.88);
  transform: translateY(-8%);
}

.speaker__body { position: relative; padding: 1.25rem 1.25rem 1.5rem; }

/* Flags straddle the seam between photo and card body. */
.speaker__flags {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  top: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}
.speaker__flag {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--ink-2), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.speaker__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.speaker__role {
  font-family: var(--editorial);
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 380;
  line-height: 1.4;
  color: var(--paper-dim);
  text-wrap: pretty;
}

.speaker__org {
  margin-top: 0.5rem;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-mute);
}


/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.filter {
  font-family: var(--display);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-mute);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.625rem 1.125rem;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
}
.filter:hover { color: var(--paper); border-color: var(--paper-mute); }
.filter[aria-pressed='true'] {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* --------------------------------------------------------------------------
   Roll-call — the chapters travelling to Istanbul, named rather than counted
   -------------------------------------------------------------------------- */
.rollcall {
  padding-block: clamp(4rem, 7.5vw, 6.5rem);
  text-align: center;
  overflow: hidden;
}

.rollcall__names {
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.75rem, 0.85rem + 3.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-wrap: balance;
}

.rollcall__item { display: inline-block; white-space: nowrap; }
.rollcall__item.is-line-end .rollcall__sep { display: none; }

.rollcall__sep {
  display: inline-block;
  margin-inline: 0.3em 0.05em;
  color: var(--red);
  font-weight: 400;
}

.rollcall__anchor {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.rollcall__anchor strong {
  margin-right: 0.2em;
  font-size: 1.55em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red);
  vertical-align: -0.08em;
}
.rollcall__stat { white-space: nowrap; }

/* One line doesn't fit on a phone, and a wrapped line would strand a dot at
   an edge — so stack the three stats instead. */
@media (max-width: 640px) {
  .rollcall__anchor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55em;
  }
  .rollcall__dot { display: none; }
}
.rollcall__dot { margin-inline: 0.9em; color: var(--rule-red); }

/* Names arrive one after another as the band scrolls into view. Hidden state
   only applies with JS running; reduced-motion users get them at once. */
.js .rollcall .rollcall__item {
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.js .rollcall.is-in .rollcall__item { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rollcall .rollcall__item { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   15. Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.card:hover { border-color: var(--rule-red); transform: translateY(-4px); }

.card__num {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1rem;
}

.card__title {
  font-size: var(--t-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
  text-wrap: balance;
}

.card__text {
  font-family: var(--editorial);
  font-size: 1rem;
  font-weight: 380;
  line-height: 1.58;
  color: var(--paper-dim);
  text-wrap: pretty;
}

.card--link { text-decoration: none; display: block; }

/* Outcome list — "what you'll leave with" */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.outcome {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.outcome__num {
  font-family: var(--editorial);
  font-size: 2.5rem;
  font-weight: 380;
  line-height: 1;
  color: var(--rule-red);
  margin-bottom: 1rem;
}
.outcome__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.625rem;
}
.outcome__text {
  font-family: var(--editorial);
  font-size: 0.9375rem;
  font-weight: 380;
  line-height: 1.55;
  color: var(--paper-dim);
}

/* --------------------------------------------------------------------------
   16. Two-column feature
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.credit {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}
.credit__label {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.75rem;
}
.credit__body {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.credit__body a { color: var(--red); text-decoration: none; }
.credit__body a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Register block
   -------------------------------------------------------------------------- */
.register { position: relative; overflow: hidden; }

.register__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ticket {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 247, 245, 0.14);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.ticket--primary { border-color: var(--red); background: rgba(0, 0, 0, 0.5); }

.ticket__tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.ticket__title {
  font-size: var(--t-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}
.ticket__text {
  font-family: var(--editorial);
  font-size: 0.9375rem;
  font-weight: 380;
  line-height: 1.55;
  color: rgba(255, 247, 245, 0.72);
  margin-bottom: 1.75rem;
  flex: 1;
}
.ticket__foot {
  margin-top: 0.875rem;
  font-size: var(--t-small);
  color: rgba(255, 247, 245, 0.5);
}

.notice {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--rule-red);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--editorial);
  font-size: 0.9375rem;
  font-weight: 380;
  line-height: 1.6;
  color: rgba(255, 247, 245, 0.72);
  max-width: 68ch;
}
.notice strong { font-family: var(--display); font-weight: 700; font-size: 0.875rem; color: var(--paper); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  overflow: hidden;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer__logo img { height: 38px; width: auto; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.footer__links a {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--paper-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--paper); }

.footer__credit {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--editorial);
  font-size: 1rem;
  font-weight: 380;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 62ch;
}
.footer__credit a { color: var(--red); text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }

/* Page-closing skyline: full page width, whole silhouette visible, grey.
   aspect-ratio matches the SVG viewBox (1783.5 x 400) so nothing is cropped. */
.footer__skyline {
  width: 100%;
  aspect-ratio: 1783.5 / 400;
  max-height: 260px;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: -2rem;
  background-color: #4a4543;
  -webkit-mask: url('skyline.svg') no-repeat center bottom / 100% 100%;
  mask: url('skyline.svg') no-repeat center bottom / 100% 100%;
  pointer-events: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-small);
  color: var(--paper-mute);
}

/* --------------------------------------------------------------------------
   19. Page header (interior pages)
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  padding-top: clamp(9rem, 18vh, 12rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--rule-soft);
}
.pagehead__bg { position: absolute; inset: 0; z-index: -2; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10,10,10,0.82), rgba(10,10,10,0.95) 70%, var(--black));
}
.pagehead--plain { background: var(--ink); }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--paper-mute);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s var(--ease);
}
.crumb:hover { color: var(--red); }

.pagehead__title { margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   19b. Programme (programme.html)
   -------------------------------------------------------------------------- */
.dayfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2rem;
}
.dayfacts__label {
  display: block;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.3rem;
}
.dayfacts__value { font-weight: 600; font-size: 0.9375rem; }

.agenda { max-width: 980px; }

.agenda-partners {
  max-width: 980px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.agenda-partners .partners__label { text-align: left; margin-bottom: 1.25rem; }
.agenda-partners .partners__grid { grid-template-columns: repeat(4, 1fr); }

.session {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.session:last-child { border-bottom: 1px solid var(--rule); }

.session__time {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  padding-top: 0.2rem;
}
.session__time span { color: var(--paper-mute); font-weight: 500; }

.session__kicker {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.5rem;
}
.session__title { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.12; }
.session__desc {
  font-family: var(--editorial);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 62ch;
  margin-top: 0.75rem;
  text-wrap: pretty;
}

.session--break { padding-block: 1.25rem; }
.session--break .session__time { color: var(--paper-mute); }
.session--break .session__title {
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--paper-dim);
}

.items {
  list-style: none;
  margin-top: 1.5rem;
  border-left: 1px solid var(--rule-red);
}
.item {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0 1rem;
  padding: 0.85rem 0 0.85rem 1.25rem;
}
.item + .item { border-top: 1px solid var(--rule-soft); }
.item__time {
  font-size: var(--t-small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--paper-mute);
  padding-top: 0.15rem;
}
.item__title { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.item__text {
  font-family: var(--editorial);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--paper-dim);
  margin-top: 0.2rem;
  text-wrap: pretty;
}

.who { margin-top: 0.6rem; display: grid; gap: 0.6rem; }
.who li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.who strong { font-weight: 600; color: var(--paper); }
.who__txt > span { color: var(--paper-mute); }
.session > div > .who { margin-top: 1rem; }

/* Headshot with the flag of the GTA chapter the person represents. */
.who__pic { position: relative; flex: none; width: 44px; height: 44px; }
.who__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 0 0 1px var(--rule);
  transition: filter 0.4s var(--ease);
}
.who li:hover .who__photo { filter: grayscale(0); }
.who__flag {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 18px;
  height: 13.5px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--ink);
}
/* Two flags read left to right in the order they are listed. */
.who__flag:has(+ .who__flag) { right: 16px; }

/* Initials in place of a headshot we don't have yet. */
.who__mono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-deeper);
  box-shadow: 0 0 0 1px var(--rule);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

@media (max-width: 640px) {
  .session { grid-template-columns: 1fr; }
  .session__time { margin-bottom: 0.5rem; }
  .item { grid-template-columns: 1fr; padding-left: 1rem; }
  .item__time { padding-top: 0; margin-bottom: 0.1rem; }
  .agenda-partners .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .agenda-partners .partner { padding-inline: 0.75rem; }
  .agenda-partners .partner__logo { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 2rem; }
.mt-l { margin-top: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.tbc {
  font-family: var(--editorial);
  font-style: italic;
  color: var(--paper-mute);
}

/* --------------------------------------------------------------------------
   21. Reveal on scroll
   Default state is VISIBLE. The hidden state is only applied when JS is
   running (html.js), so the page is fully readable with JS disabled or broken.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Staggered hero entrance */
.js .hero__inner > * {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
}
.js .hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero__inner > *:nth-child(2) { animation-delay: 0.13s; }
.js .hero__inner > *:nth-child(3) { animation-delay: 0.21s; }
.js .hero__inner > *:nth-child(4) { animation-delay: 0.29s; }
.js .hero__inner > *:nth-child(5) { animation-delay: 0.37s; }
.js .hero__inner > *:nth-child(6) { animation-delay: 0.45s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .head--split { grid-template-columns: 1fr; align-items: start; }
  .split .figure { order: -1; }
}

@media (max-width: 860px) {
  /* six marks on one line stop being readable here, so let them wrap */
  .hero__partners-grid { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .hero__partners-grid .partner__mark { height: 46px; }
  .hero__partners-grid .partner__logo { height: calc(30px * var(--logo-scale, 1)); max-width: 120px; }

  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__logo img { height: 36px; }


}

@media (max-width: 560px) {
  .speaker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .speaker__body { padding: 1rem 0.875rem 1.25rem; }
  .speaker__flags { left: 0.875rem; }
  .speaker__flag { width: 20px; height: 15px; }
  .speaker__name { font-size: 0.9375rem; }
  .speaker__role { font-size: 0.8125rem; }
  .hero__meta { gap: 1.25rem 2rem; }
  .countdown__sep { display: none; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   23. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__inner > * { opacity: 1; animation: none; }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .nav, .drawer, .grain, .hero__bg, .skyline { display: none !important; }
  body { background: #fff; color: #000; }
  .band, .card, .speaker, .ticket { background: #fff !important; border-color: #ccc !important; }
  .slot__desc, .prose, .card__text { color: #333; }
  a { text-decoration: underline; }
  .session, .item + .item { border-color: #ccc !important; break-inside: avoid; }
  .session__desc, .item__text, .who__txt > span, .session__time span { color: #444 !important; }
  .who__flag { box-shadow: none; }
  .who strong, .session__title, .item__title { color: #000 !important; }
}
