/* Design Forward — one-page festival site, built from the Figma wireframe "Home v5 · logo + colour" + the five v4 drawers.
   Everything is drawn on a 1440 grid and scaled with --s (1 design px). */

:root {
  --s: calc(min(100vw, 1440px) / 1440);
  --white: #ffffff;
  --red: #e31e26;
  --orange: #da680d;
  --teal: #0796b2;
  --deep: #184c4f;
  --charcoal: #2b2a2e;
  --ink: #141414;
  --blue: #0d99ff;           /* construction / selection — UI chrome only */
  --gutter: calc(24 * var(--s));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-bg: var(--white);
  --page-fg: var(--ink);
  --logo: var(--charcoal);
  color: var(--page-fg);
  background: var(--page-bg);
  cursor: url(assets/cursor-black.svg) 0 0, auto;
  transition: background-color .55s var(--ease), color .55s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page-bg); overflow-x: hidden; transition: background-color .55s var(--ease); }

/* our pixel cursor everywhere; text fields keep the I-beam */
*, *::before, *::after { cursor: inherit; }
input[type="email"], input[type="text"] { cursor: text; }
/* over anything you can press: the pixel hand from slide 07 */
a[href], button, select, label[for], .tile, [data-open], .h1-wrap.is-play { cursor: url(assets/cursor-hand.svg) 16 1, pointer; }

/* the page takes the colour of the open drawer */
:root[data-drawer="speakers"]  { --page-bg: var(--charcoal); --page-fg: var(--white); --logo: var(--white); }
:root[data-drawer="agenda"]    { --page-bg: var(--red);      --page-fg: var(--white); --logo: var(--white); }
:root[data-drawer="workshops"] { --page-bg: var(--orange);   --page-fg: var(--white); --logo: var(--white); }
:root[data-drawer="sponsors"]  { --page-bg: var(--teal);     --page-fg: var(--white); --logo: var(--white); }
:root[data-drawer="tickets"]   { --page-bg: var(--deep);     --page-fg: var(--white); --logo: var(--white); }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
mark { background: none; color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- logo (split-D wordmark from slide 18) ---------- */
.logo {
  display: block;
  aspect-ratio: 331.23 / 133.24;
  background: currentColor;
  -webkit-mask: url(assets/logo.svg) no-repeat center / contain;
          mask: url(assets/logo.svg) no-repeat center / contain;
}

/* ---------- header tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: 300fr 200fr 520fr 324fr;
  grid-template-rows: auto auto;
  gap: calc(16 * var(--s));
  padding: var(--gutter) var(--gutter) calc(16 * var(--s));
  max-width: 1440px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
}
.tile--logo { grid-row: 1 / span 2; }
/* sticky logo: fixed at its header position, the grid cell stays as its placeholder */
.tile--logo .logo {
  position: fixed; z-index: 40;
  top: calc(var(--gutter) + 28 * var(--s));
  left: calc(max(0px, (100vw - 1440px) / 2) + var(--gutter) + 24 * var(--s));
  width: calc(252 * var(--s));
  color: var(--white);
  mix-blend-mode: difference;    /* same blend as the hero date: reads on white, colour, video and the footer */
}
.tile--sponsors { grid-column: 2; grid-row: 1 / span 2; }
.tile--agenda   { grid-column: 3; grid-row: 1; }
.tile--workshops{ grid-column: 3; grid-row: 2; }
.tile--speakers { grid-column: 4; grid-row: 1; }
.tile--tickets  { grid-column: 4; grid-row: 2; }
.tile__img { width: 100%; height: auto; }
.tile__img--hover {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
@media (hover: hover) {
  .tile:hover .tile__img--hover { opacity: 1; }
}
.tile:focus-visible .tile__img--hover { opacity: 1; }
/* the tile arrow is its own element so it can turn: the pixel up-arrow at 38.1° (↗, as drawn in Figma),
   rotating clockwise to 180° (↓) while its drawer is open; hover swaps it to the outline arrow, like the Figma hover state */
.tile__arrow {
  position: absolute; z-index: 1;
  left: calc(var(--ax) * 1%); top: calc(var(--ay) * 1%); width: calc(var(--aw) * 1%);
  aspect-ratio: 48 / 52;
  translate: -50% -50%;
  rotate: 38.1deg;
  background: var(--white);
  -webkit-mask: url(assets/arrow-solid.svg) no-repeat center / contain;
          mask: url(assets/arrow-solid.svg) no-repeat center / contain;
  transition: rotate .5s cubic-bezier(.34, 1.36, .64, 1);
  pointer-events: none;
}
@media (hover: hover) {
  .tile:hover .tile__arrow { -webkit-mask-image: url(assets/arrow-outline.svg); mask-image: url(assets/arrow-outline.svg); }
}
.tile[aria-expanded="true"] .tile__arrow { rotate: 180deg; }

/* ---------- drawers ---------- */
.drawer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease), padding-bottom .55s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { grid-template-rows: 1fr; padding-bottom: calc(16 * var(--s)); }
.drawer__inner {
  overflow: hidden;
  min-height: 0;
  position: relative;
  background: var(--bg);
  color: var(--white);
}
.drawer__body {
  position: relative;
  z-index: 1;
  padding: calc(30 * var(--s)) var(--gutter) calc(56 * var(--s));
}
.drawer--speakers  { --bg: var(--charcoal); --band: var(--orange); --guide: var(--teal); }
.drawer--agenda    { --bg: var(--red);      --band: var(--orange); --guide: rgba(255,255,255,.35); }
.drawer--workshops { --bg: var(--orange);   --band: var(--red);    --guide: rgba(255,255,255,.35); }
.drawer--sponsors  { --bg: var(--teal);     --band: var(--deep);   --guide: rgba(255,255,255,.35); }
.drawer--tickets   { --bg: var(--deep);     --band: var(--teal);   --guide: rgba(255,255,255,.35); }

/* pixel band at the bottom of every drawer (dither from the tiles' language) */
.band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(187 * var(--s));
  background: var(--band);
  -webkit-mask: url(assets/dither.svg) repeat-x left bottom / calc(310 * var(--s)) calc(187 * var(--s));
          mask: url(assets/dither.svg) repeat-x left bottom / calc(310 * var(--s)) calc(187 * var(--s));
  pointer-events: none;
}
.band--glitch {
  height: calc(190 * var(--s));
  -webkit-mask: url(assets/glitch.svg) repeat-x left top / calc(526 * var(--s)) calc(683 * var(--s));
          mask: url(assets/glitch.svg) repeat-x left top / calc(526 * var(--s)) calc(683 * var(--s));
}

/* type */
.h2 {
  font-weight: 400;
  font-size: calc(168 * var(--s));
  line-height: .92;
  letter-spacing: -.04em;
  margin-left: calc(-6 * var(--s));
  position: relative;
}
.h2:focus { outline: none; }
.h2--small { font-size: calc(136 * var(--s)); }
.h3 { font-weight: 700; font-size: calc(32 * var(--s)); letter-spacing: -.01em; }

/* cap / cut / baseline guides behind the big headings */
.guides { position: absolute; left: 0; right: 0; top: calc(30 * var(--s)); height: calc(155 * var(--s)); pointer-events: none; }
.guides i {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--guide);
  font: 500 calc(13 * var(--s)) / 1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--guide);
}
.guides i::after { content: attr(data-l); position: absolute; right: var(--gutter); bottom: calc(4 * var(--s)); font-style: normal; }
.guides i:nth-child(1) { top: calc(18 * var(--s)); }
.guides i:nth-child(2) { top: calc(66 * var(--s)); }
.guides i:nth-child(3) { top: calc(134 * var(--s)); }
.guides--small i:nth-child(1) { top: calc(15 * var(--s)); }
.guides--small i:nth-child(2) { top: calc(53 * var(--s)); }
.guides--small i:nth-child(3) { top: calc(108 * var(--s)); }
.drawer .guides i { color: rgba(255,255,255,.75); }
.drawer--speakers .guides i { color: var(--teal); }

/* ---------- selection kit (construction state on hover) ---------- */
[data-sel] { position: relative; }
.sel {
  position: absolute;
  inset: calc(-8 * var(--s));
  border: 1.5px solid var(--blue);
  pointer-events: none;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 3;
}
.sel b {
  position: absolute; width: 8px; height: 8px; background: var(--white); border: 1.5px solid var(--blue);
  margin: -4.75px 0 0 -4.75px;
}
.sel b:nth-child(1){left:0;top:0} .sel b:nth-child(2){left:50%;top:0} .sel b:nth-child(3){left:100%;top:0}
.sel b:nth-child(4){left:0;top:50%} .sel b:nth-child(5){left:100%;top:50%}
.sel b:nth-child(6){left:0;top:100%} .sel b:nth-child(7){left:50%;top:100%} .sel b:nth-child(8){left:100%;top:100%}
@media (hover: hover) {
  [data-sel]:hover > .sel { opacity: 1; transform: none; }
}
[data-sel]:focus-within > .sel, [data-sel-static] > .sel { opacity: 1; transform: none; }

/* ---------- buttons (white bar, pixel arrow; hover = skeleton) ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; gap: calc(40 * var(--s));
  height: calc(96 * var(--s));
  padding: 0 calc(24 * var(--s)) 0 calc(18 * var(--s));
  margin-top: calc(48 * var(--s));
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: calc(64 * var(--s));
  line-height: 1;
  letter-spacing: -.03em;
  z-index: 2;
  transition: box-shadow .3s var(--ease);
}
.btn__label { position: relative; padding: calc(4 * var(--s)) calc(5 * var(--s)); outline: 1.5px solid transparent; transition: outline-color .3s var(--ease); }
.btn__arrow {
  display: block; flex: none;
  width: calc(48 * var(--s)); height: calc(52 * var(--s));
  background: currentColor;
  -webkit-mask: url(assets/arrow-solid.svg) no-repeat center / contain;
          mask: url(assets/arrow-solid.svg) no-repeat center / contain;
  transform: rotate(90deg);
}
.btn__arrow--se { transform: rotate(135deg); width: calc(44 * var(--s)); height: calc(48 * var(--s)); }
.btn::before, .btn::after {          /* 4 corner anchors, shown on hover */
  content: ""; position: absolute; inset: -4px;
  background:
    linear-gradient(var(--blue),var(--blue)) left top / 8px 8px no-repeat,
    linear-gradient(var(--blue),var(--blue)) right top / 8px 8px no-repeat,
    linear-gradient(var(--blue),var(--blue)) left bottom / 8px 8px no-repeat,
    linear-gradient(var(--blue),var(--blue)) right bottom / 8px 8px no-repeat;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.btn::after { inset: 50% 0 auto 0; height: 0; border-top: 1px dashed rgba(43,42,46,.3); background: none; }
@media (hover: hover) {
  .btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
  .btn:hover::before, .btn:hover::after { opacity: 1; }
  .btn:hover .btn__label { outline-color: var(--blue); }
  .btn:hover .btn__arrow { -webkit-mask-image: url(assets/arrow-outline.svg); mask-image: url(assets/arrow-outline.svg); }
}
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark::after { border-top-color: rgba(255,255,255,.35); }

/* ---------- Speakers drawer ---------- */
.speakers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: calc(40 * var(--s)) calc(16 * var(--s));
  margin-top: calc(65 * var(--s));
}
.speaker__media { aspect-ratio: 3 / 4; background: #3a393e; overflow: hidden; }
.speaker__media video { width: 100%; height: 100%; object-fit: cover; }
.speaker__name { font-weight: 700; font-size: calc(32 * var(--s)); letter-spacing: -.01em; margin-top: calc(22 * var(--s)); }
.speaker__role { font-size: calc(22 * var(--s)); margin-top: calc(6 * var(--s)); }
.speaker__session { font-size: calc(18 * var(--s)); line-height: 1.28; opacity: .7; margin-top: calc(12 * var(--s)); }
.speaker__media { overflow: visible; }
.speaker__media video { overflow: hidden; }
.speaker__media .sel { inset: -8px; }
@media (hover: hover) { .speaker:hover .speaker__media > .sel { opacity: 1; transform: none; } }
.speaker:focus-visible .speaker__media > .sel { opacity: 1; transform: none; }
.speaker:focus-visible { outline: none; }

/* ---------- Agenda drawer ---------- */
.agenda { display: grid; grid-template-columns: 1fr 1fr; gap: calc(64 * var(--s)); margin-top: calc(75 * var(--s)); }
.agenda .h3 { margin-bottom: calc(24 * var(--s)); }
.session { border-top: 1px solid rgba(255,255,255,.4); padding: calc(18 * var(--s)) 0 calc(28 * var(--s)); }
.session p { font-size: calc(40 * var(--s)); line-height: 1.12; letter-spacing: -.01em; max-width: calc(600 * var(--s)); }
.session .sel { inset: calc(10 * var(--s)) calc(-8 * var(--s)) auto; height: calc(100% - 90 * var(--s)); }
.cursors { display: flex; gap: calc(36 * var(--s)); margin-top: calc(8 * var(--s)); }
.cursor {
  position: relative;
  display: inline-block;
  margin: calc(28 * var(--s)) 0 0 calc(20 * var(--s));
  padding: calc(4 * var(--s)) calc(10 * var(--s));
  border-radius: calc(13 * var(--s));
  background: var(--charcoal); color: var(--white);
  font-weight: 500; font-size: calc(15 * var(--s)); line-height: 1.2;
  animation: drift 6s ease-in-out infinite;
}
.cursor::before {
  content: ""; position: absolute; left: calc(-20 * var(--s)); top: calc(-31 * var(--s));
  width: calc(22 * var(--s)); height: calc(35 * var(--s));
  background: url(assets/cursor.svg) no-repeat center / contain;
  filter: grayscale(1) brightness(.25);
}
.cursors .cursor:nth-child(2) { animation-delay: -2.5s; }
.agenda__day:nth-child(2) .cursor { animation-delay: -4s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(calc(14 * var(--s)), calc(-3 * var(--s))); }
  65% { transform: translate(calc(5 * var(--s)), calc(4 * var(--s))); }
}

/* ---------- Workshops drawer ---------- */
.rows { margin-top: calc(65 * var(--s)); }
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  border-top: 1px solid rgba(255,255,255,.4);
  padding: calc(14 * var(--s)) 0 calc(22 * var(--s));
}
.row:last-child { border-bottom: 1px solid rgba(255,255,255,.4); }
.row h3 { font-weight: 400; font-size: calc(64 * var(--s)); letter-spacing: -.02em; line-height: 1.05; }
.row p { font-size: calc(40 * var(--s)); letter-spacing: -.01em; }
.row .sel { inset: 0 calc(-8 * var(--s)); }

/* ---------- Sponsors drawer ---------- */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: calc(17 * var(--s));
  margin-top: calc(85 * var(--s));
  padding-bottom: calc(150 * var(--s));
}
.logos li { aspect-ratio: 210 / 150; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.logos img { width: calc(56 * var(--s)); height: calc(56 * var(--s)); filter: brightness(0) invert(1); }
.logos img.logo-wix { width: calc(80 * var(--s)); height: calc(80 * var(--s)); }
.logos .sel { inset: calc(-6 * var(--s)); }
/* hover: the mark turns into its vector skeleton (logo-skeleton.js) */
.logo-box { position: relative; display: block; }
.logo-box img { transition: opacity .25s var(--ease); }
.logo-skel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
@media (hover: hover) {
  .logos li:hover .logo-box img { opacity: 0; }
  .logos li:hover .logo-skel { opacity: 1; }
}

/* ---------- Tickets drawer ---------- */
.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: calc(60 * var(--s)); }
.pass {
  position: relative; overflow: visible;
  height: calc(360 * var(--s));
  background: var(--teal);
  padding: calc(14 * var(--s)) calc(20 * var(--s));
}
.pass__day { font-weight: 400; font-size: calc(72 * var(--s)); letter-spacing: -.03em; line-height: 1.1; }
.pass__date { font-size: calc(32 * var(--s)); margin-top: calc(2 * var(--s)); padding-left: calc(4 * var(--s)); }
.pass__buy { display: flex; align-items: center; justify-content: space-between; margin-top: calc(34 * var(--s)); position: relative; z-index: 1; padding-left: calc(2 * var(--s)); }
.pass__price { font-size: calc(56 * var(--s)); }
.qty { position: relative; display: block; width: calc(176 * var(--s)); height: calc(72 * var(--s)); background: var(--white); color: var(--ink); }
.qty select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent;
  padding: 0 calc(18 * var(--s)); font-size: calc(44 * var(--s));
}
.qty__arrow {
  position: absolute; right: calc(18 * var(--s)); top: 50%;
  width: calc(30 * var(--s)); height: calc(32 * var(--s)); margin-top: calc(-16 * var(--s));
  background: var(--ink);
  -webkit-mask: url(assets/arrow-solid.svg) no-repeat center / contain;
          mask: url(assets/arrow-solid.svg) no-repeat center / contain;
  transform: rotate(180deg); pointer-events: none;
}
.pass__band {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(103 * var(--s));
  background: var(--deep);
  -webkit-mask: url(assets/dither.svg) repeat-x left bottom / calc(170 * var(--s)) calc(103 * var(--s));
          mask: url(assets/dither.svg) repeat-x left bottom / calc(170 * var(--s)) calc(103 * var(--s));
}
.note { font-weight: 500; font-size: calc(13 * var(--s)); opacity: .8; margin-top: calc(18 * var(--s)); }
.status { font-weight: 500; font-size: calc(18 * var(--s)); min-height: 1.4em; margin-top: calc(10 * var(--s)); }
.drawer--tickets .btn { margin-top: calc(70 * var(--s)); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: calc(1392 * var(--s));
  margin: 0 auto;
  margin-inline: var(--gutter);
  aspect-ratio: 1392 / 442;
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
}
@media (min-width: 1441px) { .hero { margin-inline: auto; max-width: 1392px; } }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero { isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.hero__date {
  position: absolute; z-index: 1; left: var(--gutter); bottom: calc(26 * var(--s));
  font-weight: 700; font-size: calc(56 * var(--s)); letter-spacing: -.01em; line-height: 1.2;
  mix-blend-mode: difference;
}

/* ---------- intro (brief sections 1 + 2) ---------- */
.intro { max-width: 1440px; margin: 0 auto; padding: calc(40 * var(--s)) var(--gutter) calc(120 * var(--s)); }
.h1-wrap { display: inline-block; margin-left: calc(-6 * var(--s)); }
.h1-wrap .sel { inset: calc(10 * var(--s)) calc(-4 * var(--s)) calc(-4 * var(--s)); border-color: var(--teal); }
.h1-wrap .sel b { border-color: var(--teal); }
.h1 { font-weight: 400; font-size: calc(168 * var(--s)); line-height: 1.02; letter-spacing: -.04em; max-width: calc(1392 * var(--s)); }
.lead { font-weight: 700; font-size: calc(42 * var(--s)); line-height: 1.12; letter-spacing: -.015em; margin-top: calc(74 * var(--s)); color: var(--white); }
.lead mark { background: var(--orange); color: var(--white); padding: 0 calc(4 * var(--s)); margin-left: calc(-4 * var(--s)); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.caret { display: inline-block; width: 3px; height: 1em; background: currentColor; vertical-align: -.12em; margin-left: 3px; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intro > .btn { margin-top: calc(36 * var(--s)); }

.festival { position: relative; margin-top: calc(120 * var(--s)); }
.festival .guides { top: 0; }
.guides--teal { --guide: var(--teal); }
.festival .h2 { margin-left: calc(-6 * var(--s)); }
.body { font-weight: 700; font-size: calc(42 * var(--s)); line-height: 1.12; letter-spacing: -.015em; margin-top: calc(30 * var(--s)); max-width: calc(1352 * var(--s)); }
.body--sub + .body { font-weight: 400; margin-top: calc(28 * var(--s)); }
/* one sentence per line; key phrases get "selected" as the paragraph comes into view */
.body--lines .line { display: block; }
@media (max-width: 760px) { .br-wide { display: none; } }
.body--lines .line + .line { margin-top: calc(6 * var(--s)); }
.sweep {
  color: inherit;
  padding: 0 calc(4 * var(--s)); margin: 0 calc(-4 * var(--s));
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / 0% 100%;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size .7s var(--ease-out), color .25s var(--ease-out);
  transition-delay: var(--d, 0ms), calc(var(--d, 0ms) + 180ms);
}
.line.in .sweep { background-size: 100% 100%; color: var(--white); }
:root[data-drawer] .line.in .sweep { outline: 1px solid rgba(255,255,255,.5); }

.topics__title { font-weight: 500; font-size: calc(20 * var(--s)); text-align: center; margin-top: calc(90 * var(--s)); }
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(8 * var(--s)) calc(20 * var(--s)); max-width: calc(1160 * var(--s)); margin: calc(28 * var(--s)) auto 0; }
.topic { font-size: calc(56 * var(--s)); letter-spacing: -.015em; line-height: 1.2; padding: calc(4 * var(--s)) calc(12 * var(--s)); color: var(--white); }
.topic--teal { background: var(--teal); } .topic--red { background: var(--red); } .topic--orange { background: var(--orange); }
.topic--charcoal { background: var(--charcoal); } .topic--deep { background: var(--deep); }
.topic .sel { inset: calc(-6 * var(--s)); }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--charcoal); color: var(--white); margin-top: calc(112 * var(--s)); }
.band--footer {
  --band: var(--charcoal);
  top: calc(-111 * var(--s)); bottom: auto; height: calc(112 * var(--s));
  -webkit-mask-size: calc(186 * var(--s)) calc(112 * var(--s));
          mask-size: calc(186 * var(--s)) calc(112 * var(--s));
}
.footer__inner { max-width: 1440px; margin: 0 auto; padding: calc(56 * var(--s)) var(--gutter) var(--gutter); }
.footer__cols { display: grid; grid-template-columns: 456fr 220fr 260fr 460fr; gap: 0; font-size: calc(15 * var(--s)); }
.footer__addr { font-style: normal; font-size: calc(14 * var(--s)); opacity: .65; max-width: calc(300 * var(--s)); line-height: 1.3; }
.footer__nav li, .footer__follow li { margin-bottom: calc(10 * var(--s)); }
.footer__nav a { font-weight: 500; text-decoration: none; }
.footer__follow a { font-size: calc(14 * var(--s)); opacity: .65; text-decoration: none; }
.footer a:hover { text-decoration: underline; opacity: 1; }
.footer__h { font-weight: 700; margin-bottom: calc(12 * var(--s)); }
.footer__h--big { font-size: calc(20 * var(--s)); margin-bottom: calc(8 * var(--s)); }
.footer__sub { font-size: calc(14 * var(--s)); opacity: .65; margin-bottom: calc(26 * var(--s)); }
.news__row { display: flex; gap: calc(10 * var(--s)); }
.news__row input {
  flex: 1; min-width: 0; height: calc(48 * var(--s)); padding: 0 calc(16 * var(--s));
  background: transparent; border: 1px solid var(--white); border-radius: 0; color: var(--white);
  font-size: calc(15 * var(--s));
}
.news__row input::placeholder { color: rgba(255,255,255,.6); }
.news__btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: calc(40 * var(--s));
  height: calc(48 * var(--s)); padding: 0 calc(10 * var(--s)) 0 calc(8 * var(--s));
  background: var(--white); color: var(--ink); border: 0;
  font-weight: 700; font-size: calc(22 * var(--s)); letter-spacing: -.03em;
}
.news__btn .btn__arrow { width: calc(17 * var(--s)); height: calc(19 * var(--s)); }
.news__btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.footer .status { font-size: calc(14 * var(--s)); }
.logo--giant { width: 100%; color: var(--white); margin-top: calc(90 * var(--s)); }

/* ---------- Outline Reveal: the page's skeleton under a bubble that follows the cursor (reveal.js) ---------- */
.skeleton {
  --paper: #f4f2ee; --line: #2b2a2e; --cell: calc(36 * var(--s));
  position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(0,0,0,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.16) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: calc(var(--cell) * 4) calc(var(--cell) * 4), calc(var(--cell) * 4) calc(var(--cell) * 4), var(--cell) var(--cell), var(--cell) var(--cell);
  background-position: calc(max(0px, (100vw - 1440px) / 2) + var(--gutter)) 0;
  -webkit-mask: linear-gradient(transparent, transparent) 0 0 / 100% 100% no-repeat;
          mask: linear-gradient(transparent, transparent) 0 0 / 100% 100% no-repeat;
}
.skeleton__page { position: absolute; top: 0; left: 0; }
.skeleton__page *, .skeleton__page *::before, .skeleton__page *::after {
  background-color: transparent !important;
  color: transparent !important;
  -webkit-text-stroke: .75px var(--line);
  border-color: var(--line) !important;
  box-shadow: none !important;
  text-decoration-color: var(--line) !important;
}
.skeleton__page img, .skeleton__page .hero::after { opacity: 0 !important; }
/* boxes: thin outlines; image boxes get the outline-mode cross */
.skeleton__page :is(.tile, .hero, .drawer__inner, .btn, .news__btn, .news__row input, .speaker__media, .logos li, .pass, .qty, .topic, .footer, .lead mark) { outline: 1px solid var(--line) !important; outline-offset: -1px; }
.skeleton__page :is(.tile:not(.tile--logo), .hero, .speaker__media, .logos li) {
  background-image:
    linear-gradient(to top right, transparent calc(50% - .5px), rgba(43,42,46,.45) calc(50% - .5px), rgba(43,42,46,.45) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(43,42,46,.45) calc(50% - .5px), rgba(43,42,46,.45) calc(50% + .5px), transparent calc(50% + .5px)) !important;
}
/* masked shapes (logo, arrows, dither bands) read as light fills */
.skeleton__page :is(.logo, .btn__arrow, .qty__arrow, .tile__arrow) { background-color: rgba(43,42,46,.22) !important; }
.skeleton__page :is(.band, .pass__band) { background-color: rgba(43,42,46,.1) !important; }
.skeleton__page .guides i { background-color: rgba(43,42,46,.35) !important; }
.skeleton__page .tile--logo .logo { transform: translateY(var(--sy, 0px)); opacity: 1 !important; mix-blend-mode: normal; }
/* every selection kit shows, in ink */
.skeleton__page .sel { opacity: 1 !important; transform: none !important; border: 1px solid var(--line) !important; }
.skeleton__page .sel b { background-color: var(--paper) !important; border: 1px solid var(--line) !important; transform: none !important; }

/* ---------- the H1 is a live layer (h1-play.js): drag to move, handles resize ---------- */
.h1-wrap.is-play { touch-action: none; user-select: none; -webkit-user-select: none; }
.h1-wrap.is-play .sel b { pointer-events: auto; transition: transform .2s var(--ease); }
.h1-wrap.is-play .sel b::after { content: ""; position: absolute; inset: -10px; }      /* bigger hit area */
.h1-wrap.is-play .sel b:hover { transform: scale(1.5); }
.h1-hint {
  position: absolute; right: 0; top: calc(100% + 14px);
  font: 500 calc(18 * var(--s)) / 1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--teal); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), filter .2s var(--ease-out);
}
html.is-ready .h1-wrap:not(.touched) .h1-hint { opacity: 1; transform: none; transition-delay: .9s; }
.h1-wrap.touched .h1-hint { opacity: 0; transform: translateY(-4px); filter: blur(2px); transition-duration: .2s; }
/* the corner handle breathes, and the type nudges once in a while, until the first touch */
.h1-wrap.is-play:not(.touched) .sel b:nth-child(8) { animation: handle-pulse 1.8s var(--ease-in-out) 1.2s infinite; }
html.is-ready .h1-wrap.is-play:not(.touched) .h1 { animation: nudge 4s var(--ease-in-out) 2s infinite; }
@keyframes handle-pulse { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.8); } }
@keyframes nudge { 0%, 80%, 100% { transform: translate(0, 0); } 86% { transform: translate(5px, 2px); } 93% { transform: translate(-1px, 0); } }
.h1-wrap.is-dragging .h1, .h1-wrap.is-resizing .h1 { animation: none; }
.h1-wrap.is-dragging > .sel { border-width: 2px; }
.h1-wrap.is-play .sel b:active { transform: scale(1.3); }
:root[data-drawer] .h1-hint { color: var(--white); }
@media (max-width: 760px) { .h1-hint { font-size: 12px; } }

/* ---------- loader: the cut o (UI el 02) ----------
   turn: four quarter-turns, each one eased like a tool snapping to the next angle
   done: the arc closes into the o, the o swells a touch, then hands the page over   */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center;
  background: var(--white);
  transition: opacity .32s var(--ease-out);
}
.is-loading .loader, .loader.is-done { display: grid; }
.loader svg {
  width: clamp(44px, calc(72 * var(--s)), 72px); height: auto; overflow: visible;
  transition: transform .28s var(--ease-in-out), opacity .32s var(--ease-out), filter .32s var(--ease-out);
}
.loader g { transform-origin: 50px 50px; animation: cut-o 1.2s var(--ease-in-out) infinite; }
@keyframes cut-o {
  0%   { transform: rotate(0deg);   animation-timing-function: var(--ease-in-out); }
  25%  { transform: rotate(90deg);  animation-timing-function: var(--ease-in-out); }
  50%  { transform: rotate(180deg); animation-timing-function: var(--ease-in-out); }
  75%  { transform: rotate(270deg); animation-timing-function: var(--ease-in-out); }
  100% { transform: rotate(360deg); }
}
.loader circle {
  fill: none; stroke: var(--charcoal); stroke-width: 22; stroke-linecap: butt;
  stroke-dasharray: 50 50;                                       /* half a ring: the cut o */
  transition: stroke-dasharray .28s var(--ease-in-out);
}
.loader.is-done g { animation-play-state: paused; }
.loader.is-done circle { stroke-dasharray: 100 0; }               /* closes into the full o */
.loader.is-done svg { transform: scale(1.12); }
.loader.is-gone { opacity: 0; pointer-events: none; }
.loader.is-gone svg { transform: scale(.88); opacity: 0; filter: blur(2px); }

/* page hand-off: the header tiles settle in one after another */
html.is-entering .tiles > * { animation: rise .5s var(--ease-out) both; }
html.is-entering .tiles > *:nth-child(1) { animation-delay: 0ms; }
html.is-entering .tiles > *:nth-child(2) { animation-delay: 40ms; }
html.is-entering .tiles > *:nth-child(3) { animation-delay: 80ms; }
html.is-entering .tiles > *:nth-child(4) { animation-delay: 120ms; }
html.is-entering .tiles > *:nth-child(5) { animation-delay: 160ms; }
html.is-entering .tiles > *:nth-child(6) { animation-delay: 200ms; }
html.is-entering .hero, html.is-entering .intro { animation: rise .6s var(--ease-out) 180ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- micro-interactions ---------- */
/* press feedback on everything you can press */
.tile, .btn, .news__btn, .qty { transition: transform .16s var(--ease-out), box-shadow .3s var(--ease); }
.tile:active { transform: scale(.985); }
.btn:active, .news__btn:active { transform: scale(.97); }
.qty:active { transform: scale(.97); }
.tile__arrow { transition: rotate .5s cubic-bezier(.34, 1.36, .64, 1), translate .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__arrow { translate: calc(-50% + 1px) calc(-50% - 1px); }
  .tile[aria-expanded="true"]:hover .tile__arrow { translate: -50% calc(-50% + 2px); }
}
/* button arrow nudges toward where it goes */
.btn__arrow { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: rotate(90deg) translateY(-3px); }
  .btn:hover .btn__arrow--se { transform: rotate(135deg) translateY(-3px); }
}
/* selection kit: the box settles and its handles pop in, corner first */
.sel b { transform: scale(.4); transition: transform .22s var(--ease-out); }
[data-sel]:hover > .sel b, [data-sel]:focus-within > .sel b, [data-sel-static] > .sel b,
.speaker:hover .speaker__media > .sel b { transform: none; }
.sel b:nth-child(1), .sel b:nth-child(8) { transition-delay: 0ms; }
.sel b:nth-child(3), .sel b:nth-child(6) { transition-delay: 30ms; }
.sel b:nth-child(2), .sel b:nth-child(7) { transition-delay: 60ms; }
.sel b:nth-child(4), .sel b:nth-child(5) { transition-delay: 90ms; }
/* drawer content arrives in a short cascade */
.drawer.is-open .stagger { animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms + 140ms); }
/* status lines (tickets, newsletter) slide in when they change */
.status.is-new { animation: rise .3s var(--ease-out) both; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --s: calc(100vw / 760); --gutter: 16px; }
  .tiles { grid-template-columns: 200fr 324fr; gap: 10px; padding: 16px; }
  .tiles { grid-template-rows: none; }
  .tile--logo { grid-column: 1 / -1; grid-row: 1; height: calc((100vw - 32px) * .46 * 133.24 / 331.23 + 20px); }
  .tile--logo .logo { top: 24px; left: 16px; width: calc((100vw - 32px) * .46); }
  .tile--agenda { grid-column: 1 / -1; grid-row: 2; }
  .tile--workshops { grid-column: 1 / -1; grid-row: 3; }
  .tile--sponsors { grid-column: 1; grid-row: 4 / span 2; }
  .tile--speakers { grid-column: 2; grid-row: 4; }
  .tile--tickets { grid-column: 2; grid-row: 5; }
  .guides { display: none; }
  .hero { aspect-ratio: 4 / 3; }
  .hero__date { font-size: 5.6vw; white-space: nowrap; left: 16px; bottom: 14px; }
  .speakers { grid-template-columns: repeat(2, 1fr); }
  .agenda { grid-template-columns: 1fr; gap: 40px; }
  .row { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .passes { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; font-size: 15px; }
  .footer__addr, .footer__follow a, .footer__sub, .footer .status { font-size: 14px; }
  .footer__h--big { font-size: 20px; }
  .footer__news { grid-column: 1 / -1; }
  .news__row input, .news__btn { height: 48px; font-size: 16px; }
  .news__btn { font-size: 20px; }
  .news__btn .btn__arrow { width: 17px; height: 19px; }
  .cursor, .guides i { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
