/* 1599N — shared stylesheet
   Tokens, base, header, hero, sections, components, page blocks, motion. */

:root {
  --bg: #0c0609;
  --surface: #170c12;
  --surface-2: #22111a;
  --line: #3a1f2c;
  --text: #fff4f8;
  --muted: #c9aebb;
  --pink: #ff5fa2;
  --pink-hot: #ff2e88;
  --pink-soft: #ffb3d1;
  --ink: #14060c;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --header-h: 68px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 36px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  color-scheme: dark;
  scrollbar-color: var(--pink) var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 95, 162, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 162, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--text);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--pink);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 6, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--pink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand img {
  width: 44px;
  height: 40px;
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.1);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font: 700 0.875rem var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 16px;
  height: 10px;
  border-block: 2px solid currentColor;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: calc(var(--header-h) + 2px) 0 auto 0;
    background: var(--bg);
    border-bottom: 2px solid var(--pink);
    padding: 8px var(--gutter) 20px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 14px 4px;
    font-size: 1.5rem;
    letter-spacing: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  background: transparent;
  border: 2px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  color: var(--ink);
  background: var(--text);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--pink);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--pink);
}

.btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--pink);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--text);
}

/* ---------- Hero ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(55% 70% at 80% 25%, rgba(255, 46, 136, 0.42), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 95, 162, 0.2), transparent 70%);
}

.hero-mark {
  position: absolute;
  top: -8%;
  right: -12%;
  width: min(78vw, 900px);
  opacity: 0.08;
  transform: rotate(-14deg);
  pointer-events: none;
}

.hero-grid {
  --title-size: min(21vw, 16.5rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(32px, 6vw, 80px);
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  /* Leave room for the part of the giant title that rises into this row. */
  padding-bottom: calc(var(--title-size) * 0.34 + clamp(28px, 4vw, 48px));
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  position: relative;
  rotate: 2.5deg;
}

.hero-title {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 3;
  margin-top: -0.34em;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--title-size);
  line-height: 0.8;
  pointer-events: none;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--text);
  text-shadow: 0.035em 0.035em 0 var(--pink);
}

.hero-title em {
  font-style: normal;
  color: var(--pink);
  text-shadow: 0.035em 0.035em 0 var(--text);
}

.hero-name {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pink);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.hero-kicker {
  margin-top: 20px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.9vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-kicker em {
  font-style: normal;
  color: var(--pink);
}

.hero-lede {
  margin-top: 20px;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  border-radius: var(--radius);
  transform: translate(16px, 16px);
}

.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid var(--text);
  border-radius: var(--radius);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.35s var(--ease);
}

.sticker {
  position: absolute;
  z-index: 2;
  padding: 10px 16px;
  background: var(--text);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-photo .sticker {
  top: -14px;
  right: -12px;
  transform: rotate(9deg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 36px;
  }

  .hero-grid {
    --title-size: 24vw;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 2;
    margin-inline: 6px 22px;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .hero-photo .sticker {
    right: -6px;
  }

  .hero-title {
    grid-row: 3;
    margin-top: -0.3em;
  }
}

/* ---------- Crossing tickers ---------- */

.tickers {
  position: relative;
  z-index: 4;
  height: clamp(130px, 15vw, 190px);
}

.ticker {
  position: absolute;
  top: 50%;
  left: -6%;
  right: -6%;
  overflow: hidden;
  border-block: 3px solid var(--ink);
}

.ticker-a {
  z-index: 2;
  background: var(--pink);
  color: var(--ink);
  transform: translateY(-50%) rotate(-3deg);
}

.ticker-b {
  z-index: 1;
  background: var(--ink);
  color: var(--pink);
  border-color: var(--pink);
  transform: translateY(-50%) rotate(2.5deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 66s linear infinite;
}

.ticker-b .ticker-track {
  animation-duration: 28s;
  animation-direction: reverse;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker ul {
  display: flex;
  flex: none;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0 14px 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  text-transform: uppercase;
}

.ticker li span {
  font-stretch: 100%;
  font-weight: 600;
  opacity: 0.75;
}

.ticker li::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  transform: rotate(45deg);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: clamp(48px, 7vw, 88px) 0;
}

.stat {
  padding: 22px 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.stat:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  border-color: var(--pink);
  box-shadow: 8px 8px 0 var(--pink);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat {
    padding: 16px 14px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 9vw, 120px);
}

.section-head {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  z-index: -1;
  top: -0.32em;
  right: -0.04em;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 17rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 95, 162, 0.3);
  pointer-events: none;
}

.section-pink .section-head[data-num]::before {
  -webkit-text-stroke-color: rgba(20, 6, 12, 0.22);
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--pink);
}

.section-num::after {
  content: "";
  width: 56px;
  height: 3px;
  background: var(--pink);
}

.section h2,
.page-head h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section h2 em,
.page-head h1 em {
  font-style: normal;
  color: var(--pink);
}

.section-head p:not(.section-num) {
  margin-top: 16px;
  max-width: 36em;
  font-size: 1.125rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-grid .about-big {
  font-family: var(--font-display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.about-big em {
  font-style: normal;
  color: var(--pink);
}

.about-grid p + p {
  margin-top: 1.1em;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36em;
}

.facts {
  padding: 8px 22px;
  background: var(--surface);
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--pink);
  transform: rotate(1.2deg);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.facts div + div {
  border-top: 1px dashed var(--line);
}

.facts dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.facts dd {
  text-align: right;
  font-weight: 600;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .facts {
    margin-right: 10px;
  }
}

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.member {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.member:hover {
  transform: translate(-5px, -8px);
  border-color: var(--pink);
  box-shadow: 10px 10px 0 var(--pink);
}

@media (min-width: 761px) {
  .team .member:nth-child(odd) {
    rotate: -1.6deg;
  }

  .team .member:nth-child(even) {
    rotate: 1.4deg;
    margin-top: 24px;
  }

  .team .member:hover {
    rotate: 0deg;
  }
}

.member-photo {
  position: relative;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.member-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  color: var(--pink);
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 7rem);
}

.member:hover .member-photo img {
  transform: scale(1.06);
}

.member-photo .sticker {
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--pink);
  font-size: 0.75rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.member-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px;
}

.member h3 {
  font-family: var(--font-display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 3px 10px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  color: var(--pink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: auto;
}

.member-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Robots ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.robot {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.robot:hover {
  transform: translate(-4px, -4px);
  border-color: var(--pink);
  box-shadow: 8px 8px 0 var(--pink);
}

.robot img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.robot:hover img {
  transform: scale(1.06);
}

@media (hover: hover) {
  .robot:not(.robot-feature) img {
    filter: grayscale(1) contrast(1.15);
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  }

  .robot:not(.robot-feature)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--pink);
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  .robot:hover img {
    filter: none;
  }

  .robot:hover::before {
    opacity: 0;
  }
}

.robot-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.robot figcaption {
  z-index: 2;
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(12, 6, 9, 0.94) 55%);
}

.robot .label {
  display: inline-block;
  padding: 3px 10px;
  background: var(--pink);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
}

.robot h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
}

.robot-feature h3 {
  font-size: clamp(1.375rem, 3vw, 2.125rem);
}

.robot figcaption p:not(.label) {
  margin-top: 2px;
  color: var(--pink-soft);
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .robot-feature {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---------- Results ---------- */

.season {
  border-top: 2px solid var(--line);
}

.seasons {
  border-bottom: 2px solid var(--line);
}

.season summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease), padding 0.25s var(--ease);
}

.season summary::-webkit-details-marker {
  display: none;
}

.season summary:hover {
  color: var(--pink);
  padding-left: 10px;
}

.season summary::after {
  content: "+";
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  font: 500 1.375rem/1 var(--font-mono);
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.season[open] summary::after {
  content: "\2212";
  background: var(--pink);
  color: var(--ink);
  transform: rotate(180deg);
}

.season-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.season-name .label {
  font-size: 0.875rem;
}

.season[open] .season-name {
  color: var(--pink);
}

.results {
  padding-bottom: 22px;
}

.results li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 6px 20px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    translate 0.25s var(--ease);
}

.results li:hover {
  background: var(--pink);
  color: var(--ink);
  translate: 8px 0;
}

.results li:hover .year,
.results li:hover .outcome {
  color: var(--ink);
}

.results li:hover .outcome b {
  background: var(--ink);
  color: var(--pink);
}

.results .year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--pink-soft);
}

.results .event {
  font-weight: 600;
  font-size: 1.0625rem;
}

.results .outcome {
  color: var(--muted);
  line-height: 2;
}

.results .outcome b {
  display: inline-block;
  padding: 3px 12px;
  line-height: 1.5;
  background: var(--pink);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.results-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.season .results-note {
  margin: 0 0 12px 14px;
}

@media (max-width: 680px) {
  .results li {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: start;
    padding-inline: 4px;
  }

  .results .outcome {
    grid-column: 2;
  }

  .season .results-note {
    margin-left: 4px;
  }
}

/* ---------- Contact (pink block) ---------- */

.section-pink {
  background: var(--pink);
  color: var(--ink);
}

.section-pink .section-num {
  color: var(--ink);
}

.section-pink .section-num::after {
  background: var(--ink);
}

/* Ink on pink keeps "hello" readable (7:1); the white offset keeps it
   distinct from the rest of the heading. */
.section-pink h2 em {
  color: var(--ink);
  text-shadow: 0.04em 0.04em 0 var(--text);
}

.section-pink .section-head p:not(.section-num) {
  color: var(--ink);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.contact a {
  display: block;
  height: 100%;
  padding: 22px;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact a:hover {
  transform: translate(-5px, -5px) rotate(-1deg);
  box-shadow: 10px 10px 0 var(--text);
}

.contact a:focus-visible {
  outline-color: var(--ink);
}

.contact strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  overflow: hidden;
  border-top: 2px solid var(--pink);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.site-footer a:hover {
  color: var(--pink);
}

.wordmark {
  display: block;
  margin-bottom: -0.16em;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(5rem, 27vw, 24rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  user-select: none;
}

/* ---------- Motion preference ---------- */

.motion-toggle {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--pink);
}

.motion-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 250;
  width: min(400px, calc(100vw - 32px));
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--pink);
  animation: fade 0.3s ease both;
}

.motion-toast p:not(.label) {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.motion-toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.motion-toast .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.8125rem;
}

/* ---------- Workshop page ---------- */

.page-head {
  padding-block: clamp(44px, 7vw, 96px) clamp(28px, 4vw, 48px);
  background: radial-gradient(60% 90% at 90% 0%, rgba(255, 46, 136, 0.34), transparent 70%);
}

.page-head h1 {
  margin-top: 14px;
}

.page-head p:not(.label) {
  margin-top: 20px;
  max-width: 36em;
  font-size: 1.1875rem;
  color: var(--muted);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.toc a:hover {
  background: var(--pink);
  color: var(--ink);
  transform: translateY(-3px) rotate(-2deg);
}

.workshop .section {
  padding-block: clamp(36px, 5vw, 64px);
}

.workshop .section h2 {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.resource {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.resource:hover {
  transform: translate(-4px, -4px);
  border-color: var(--pink);
  box-shadow: 8px 8px 0 var(--pink);
}

.resource h3 {
  font-family: var(--font-display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.2;
}

.resource p:not(.label) {
  color: var(--muted);
}

.resource-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

.resource-links a::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
}

.resource-links a:hover::after {
  transform: translateX(5px);
}

/* ---------- Viewer and utility pages ---------- */

.viewer-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.viewer-page .site-header {
  position: static;
  flex: none;
}

.viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.viewer embed,
.viewer iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--surface);
}

.viewer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 6px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}

.viewer-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.simple-page {
  padding-block: clamp(48px, 8vw, 110px);
  min-height: 55vh;
  background: radial-gradient(50% 70% at 90% 0%, rgba(255, 46, 136, 0.3), transparent 70%);
}

.simple-page h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.simple-page p:not(.label) {
  margin-top: 18px;
  max-width: 36em;
  font-size: 1.125rem;
  color: var(--muted);
}

.simple-page .btn {
  margin-top: 28px;
}

.media {
  margin-top: 32px;
  max-width: 900px;
  border: 3px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 14px 14px 0 var(--pink);
}

.media img,
.media iframe {
  display: block;
  width: 100%;
  border: 0;
}

.media iframe {
  aspect-ratio: 16 / 9;
}

/* ---------- Motion ----------
   Everything that moves things around lives behind `no-preference`.
   Visitors with Reduce Motion on still get fades and colour changes. */

:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scroll reveal only when JS has confirmed it can run it.
   Uses the `translate` property so card hover transforms still work. */
.js .reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease),
    transform 0.3s var(--ease), rotate 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.2s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.hero-title .char {
  display: inline-block;
  pointer-events: auto;
  animation: fade 0.6s ease calc(0.15s + var(--i) * 0.06s) both;
  transition: translate 0.3s var(--spring), color 0.2s var(--ease);
}

.hero-anim > *,
.hero-photo {
  animation: fade 0.6s ease both;
}

.scroll-progress {
  display: none;
}

.cursor {
  position: fixed;
  top: -18px;
  left: -18px;
  z-index: 300;
  width: 36px;
  height: 36px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, scale 0.3s var(--spring),
    background-color 0.25s ease, border-color 0.25s ease;
}

.cursor.is-on {
  opacity: 1;
}

.cursor.is-big {
  scale: 1.9;
  background: rgba(255, 95, 162, 0.16);
}

.cursor.is-light {
  border-color: var(--ink);
}

.cursor.is-light.is-big {
  background: rgba(20, 6, 12, 0.12);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .js .reveal {
    translate: 0 32px;
  }

  /* Hero entrance */
  .hero-anim > * {
    animation: rise 0.7s var(--ease) both;
  }

  .hero-anim > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-anim > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-anim > *:nth-child(4) { animation-delay: 0.24s; }

  .hero-photo {
    animation: drop 0.9s var(--ease) 0.15s both,
      float 6s ease-in-out 1.2s infinite;
  }

  .hero-photo .sticker {
    animation: swing 3.2s ease-in-out 1s infinite;
  }

  .hero-title .char {
    animation: char-in 0.8s var(--spring) calc(0.3s + var(--i) * 0.08s) both;
  }

  .hero-title .char:hover {
    translate: 0 -0.08em;
    color: var(--pink);
  }

  .hero-title em.char:hover {
    color: var(--text);
  }

  .brand img {
    animation: spin-in 0.9s var(--spring) both;
  }

  /* Header slides away on scroll down, back on scroll up */
  .site-header {
    transition: translate 0.35s var(--ease);
  }

  .site-header.is-hidden:not(:focus-within) {
    translate: 0 -110%;
  }

  /* Button shine */
  .btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    translate: -120% 0;
    transition: translate 0.6s var(--ease);
  }

  .btn:hover::after {
    translate: 120% 0;
  }

  /* Section headings wipe in, their rule grows */
  .js .section-head.reveal h2 {
    clip-path: inset(-0.2em 100% -0.2em 0);
    transition: clip-path 0.9s var(--ease) 0.12s;
  }

  .js .section-head.reveal.is-in h2 {
    clip-path: inset(-0.2em -0.2em -0.2em 0);
  }

  .js .section-head.reveal .section-num::after {
    scale: 0 1;
    transform-origin: left;
    transition: scale 0.7s var(--ease) 0.3s;
  }

  .js .section-head.reveal.is-in .section-num::after {
    scale: 1 1;
  }

  /* Robot cards wipe up and their photos settle */
  .js .robot.reveal.is-in {
    animation: wipe 0.9s var(--ease) backwards;
  }

  .js .robot.reveal img {
    scale: 1.18;
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease),
      scale 1.3s var(--ease);
  }

  .js .robot.reveal.is-in img {
    scale: 1;
  }

  /* Team chips pop in after the card arrives */
  .js .member.reveal .chips li {
    opacity: 0;
    scale: 0.6;
    transition: opacity 0.3s ease, scale 0.45s var(--spring);
  }

  .js .member.reveal.is-in .chips li {
    opacity: 1;
    scale: 1;
  }

  .chips li:nth-child(1) { transition-delay: 0.35s; }
  .chips li:nth-child(2) { transition-delay: 0.42s; }
  .chips li:nth-child(3) { transition-delay: 0.49s; }
  .chips li:nth-child(4) { transition-delay: 0.56s; }
  .chips li:nth-child(5) { transition-delay: 0.63s; }
  .chips li:nth-child(6) { transition-delay: 0.7s; }

  .member-photo .sticker {
    transition: rotate 0.4s var(--spring), scale 0.4s var(--spring);
  }

  .member:hover .member-photo .sticker {
    rotate: 8deg;
    scale: 1.12;
  }

  /* Stat number pops when the count finishes */
  .stat strong.is-done {
    animation: pop 0.45s var(--spring);
  }

  /* Results rows cascade in when a season opens */
  .season[open] .results li {
    animation: row-in 0.5s var(--ease) both;
  }

  .season[open] .results li:nth-child(2) { animation-delay: 0.04s; }
  .season[open] .results li:nth-child(3) { animation-delay: 0.08s; }
  .season[open] .results li:nth-child(4) { animation-delay: 0.12s; }
  .season[open] .results li:nth-child(5) { animation-delay: 0.16s; }
  .season[open] .results li:nth-child(6) { animation-delay: 0.2s; }
  .season[open] .results li:nth-child(7) { animation-delay: 0.24s; }
  .season[open] .results li:nth-child(8) { animation-delay: 0.28s; }

  /* Workshop pills drop in */
  .toc li {
    animation: rise 0.5s var(--ease) both;
  }

  .toc li:nth-child(2) { animation-delay: 0.04s; }
  .toc li:nth-child(3) { animation-delay: 0.08s; }
  .toc li:nth-child(4) { animation-delay: 0.12s; }
  .toc li:nth-child(5) { animation-delay: 0.16s; }
  .toc li:nth-child(6) { animation-delay: 0.2s; }
  .toc li:nth-child(7) { animation-delay: 0.24s; }
  .toc li:nth-child(8) { animation-delay: 0.28s; }

  .hero-mark {
    animation: mark-float 14s ease-in-out infinite;
  }

  /* Scroll-linked effects where the browser supports them */
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block;
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 60;
      height: 4px;
      background: var(--pink);
      transform-origin: left;
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }

    .hero-mark {
      animation: mark-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    .section-head[data-num]::before {
      animation: num-drift linear both;
      animation-timeline: view();
    }

    .wordmark {
      background: linear-gradient(90deg, var(--pink) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
      -webkit-background-clip: text;
      background-clip: text;
      animation: fill-in linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 55%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(8deg);
  }
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

@keyframes swing {
  50% {
    rotate: -10deg;
  }
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translateY(0.55em) rotate(10deg) scale(0.85);
  }
}

@keyframes spin-in {
  from {
    opacity: 0;
    transform: rotate(-200deg) scale(0.4);
  }
}

@keyframes wipe {
  from {
    clip-path: inset(100% 0 0 0 round var(--radius));
  }
  to {
    clip-path: inset(0 0 0 0 round var(--radius));
  }
}

@keyframes pop {
  40% {
    scale: 1.18;
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}

@keyframes mark-float {
  50% {
    translate: -2% 4%;
    rotate: 6deg;
  }
}

@keyframes mark-drift {
  to {
    translate: -6% 22%;
    rotate: 18deg;
  }
}

@keyframes num-drift {
  from {
    translate: 0 35%;
  }
  to {
    translate: 0 -35%;
  }
}

@keyframes grow-x {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}

@keyframes fill-in {
  to {
    background-position: 0 0;
  }
}

@media (hover: none) {
  .member:hover,
  .robot:hover,
  .stat:hover,
  .resource:hover,
  .contact a:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Reduce Motion: keep fades, drop the sliding and the scrolling bands. */
@media (prefers-reduced-motion: reduce) {
  .hero-photo img {
    transform: none;
  }

  .tickers {
    height: auto;
    padding-block: 12px;
  }

  .ticker-a {
    position: relative;
    inset: auto;
    transform: rotate(-2deg);
  }

  .ticker-b,
  .ticker ul[aria-hidden="true"] {
    display: none;
  }

  .ticker-track {
    animation: none;
  }

  .ticker-track,
  .ticker ul {
    width: auto;
    flex-wrap: wrap;
  }
}
