/* ============================================================
   MULTISCALE MOBILITIES — EPFL URBES colloquium
   ============================================================ */

:root {
  --bg: #000000;
  --ink: #0b1a20;        /* duotone shadow, used for cards */
  --fg: #f3f5f1;         /* warm off-white (cream) */
  --muted: #8b9aa3;      /* muted grey-teal */
  --pop: #45d9e8;        /* cyan pop — ties to the canvas */
  --pop-dim: rgba(69, 217, 232, 0.35);
  --line: rgba(255, 255, 255, 0.10);
  --maxw: 820px;
  --font-display: 'Arial Black', 'Arial Bold', Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  width: 100vw;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pop); color: #00171c; }

/* ---------------- HERO ---------------- */
.container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.text-section {
  width: 50%;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6vh 6vw;
}

.hero-copy { max-width: 560px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 28px;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(58px, 8.2vw, 132px);
  font-weight: 900;
  color: #fff;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  /* optical alignment: cancel Arial Black's large left side-bearing so the
     headline's left edge lines up with the eyebrow / tag / meta text */
  margin-left: -0.061em;
}

.hero-tag {
  margin-top: 32px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  color: var(--fg);
  max-width: 30ch;
  line-height: 1.4;
}

.hero-meta {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.canvas-section {
  width: 50%;
  min-height: 100vh;
  background: #0a0a0f;
  position: relative;
}

#canvas { display: block; width: 100%; height: 100%; }

/* ---------------- CONTENT BANDS ---------------- */
.band {
  width: 100%;
  padding: 14vh 6vw;
  border-top: 1px solid var(--line);
}

.band-inner { max-width: var(--maxw); margin: 0 auto; }
.band-inner.wide { max-width: 1100px; }

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 34px;
}

.band p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: rgba(243, 245, 241, 0.82);
  margin-bottom: 20px;
  max-width: 62ch;
}

.band p.lead {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.5;
  color: #fff;
}

.band p.note {
  margin-top: 30px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.band a { color: var(--pop); text-decoration: none; border-bottom: 1px solid var(--pop-dim); }
.band a:hover { border-bottom-color: var(--pop); }

/* keyword tags */
.tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 4px;
}
.tags li {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------------- PROGRAMME ---------------- */
.prog-where {
  font-size: 14px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 34px !important;
}

.programme { list-style: none; counter-reset: none; }
.programme li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.programme li:last-child { border-bottom: 1px solid var(--line); }

.programme .time {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--pop);
  letter-spacing: 0.02em;
}
.programme .slot {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: #fff;
}
.programme .slot b { font-weight: 800; }
.programme .talk {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  color: rgba(243, 245, 241, 0.6);
}
.programme li.brk .slot {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
}

/* ---------------- SPEAKERS GRID ---------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.person {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  border: none !important;
  color: inherit;
}

.portrait {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
  filter: saturate(0.92) contrast(1.02);
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--pop);
  transition: box-shadow 0.35s ease;
  pointer-events: none;
}
.person:hover .portrait img { transform: scale(1.06); filter: saturate(1.15) contrast(1.06) brightness(1.05); }
.person:hover .portrait::after { box-shadow: inset 0 0 0 3px var(--pop); }

.p-name {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  margin-top: 14px;
}
.p-aff {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.p-talk {
  font-size: 13px;
  color: var(--pop);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.person:hover .p-talk { opacity: 1; transform: translateY(0); }

/* ---------------- ORGANISERS ---------------- */
.org-list { list-style: none; margin-top: 6px; }
.org-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.org-list li:last-child { border-bottom: 1px solid var(--line); }
.org-list .org-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
}
.org-list span { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------------- HOST ---------------- */
.host-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 4px;
}
.host-portrait {
  flex: 0 0 auto;
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: none !important;
  background: var(--ink);
}
.host-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); }
.host-copy h2 { margin-bottom: 16px; }
.host-copy p { margin-bottom: 0; }

/* ---------------- FOOTER ---------------- */
.footer {
  width: 100%;
  padding: 12vh 6vw;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer p { color: var(--muted); font-size: 14px; margin: 0 auto 8px; max-width: none; }
.foot-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px) !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff !important;
  margin-bottom: 18px !important;
}
.foot-credit a { color: var(--pop); text-decoration: none; }
.foot-funding {
  font-size: 12px !important;
  line-height: 1.6;
  max-width: 56ch !important;
  margin: 24px auto 0 !important;
  opacity: 0.72;
}

/* ---------------- SCROLL REVEAL ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 880px) {
  .container { flex-direction: column; }
  .text-section {
    width: 100%;
    min-height: auto;
    padding: 14vh 7vw 8vh;
    order: 2;
  }
  .canvas-section {
    width: 100%;
    height: 56vh;
    min-height: 0;
    order: 1;
  }
  .band { padding: 11vh 7vw; }
  .programme li { grid-template-columns: 64px 1fr; gap: 16px; }
  .host-row { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 460px) {
  .title { font-size: clamp(50px, 16vw, 80px); }
  .people-grid { grid-template-columns: 1fr 1fr; }
}
