/* Interactive Keynote, a Rapid Fire Theatre offering.
   Plain CSS, mobile first. Colour pairs used for text are WCAG AA:
   white/red 4.6:1, black/red 4.5:1 (large text only), orange on black/ink,
   mid grey on black/ink only. Red on ink is for graphics and large type only. */

/* ---------- Fonts (self-hosted, Latin subset, variable weight) ---------- */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --red: #e02d00;
  --red-dark: #b82500;
  --black: #000000;
  --white: #ffffff;
  --ink: #1c1c1c;
  --grey-light: #d9d9d9;
  --grey-mid: #909090;
  --orange: #f8920a;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Default (dark) section theme */
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--grey-light);
  --eyebrow: var(--grey-light);
  --line: rgba(255, 255, 255, 0.16);
  --focus: var(--orange);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.625rem, 3.8vw, 2.75rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  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: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

/* ---------- Section themes ---------- */

.section {
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}

.section--light {
  --bg: var(--white);
  --fg: var(--ink);
  --muted: var(--ink);
  --eyebrow: var(--red);
  --line: var(--grey-light);
  --focus: var(--black);
}

.section--grey {
  --bg: var(--grey-light);
  --fg: var(--black);
  --muted: var(--black);
  --eyebrow: var(--black);
  --line: rgba(0, 0, 0, 0.22);
  --focus: var(--black);
}

.section--ink {
  --bg: var(--ink);
}

.section--dark {
  --bg: var(--black);
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--eyebrow);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 3px;
  background: var(--red);
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head__intro {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

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

.btn--ghost {
  border-color: var(--fg);
  color: var(--fg);
}

.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.6875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.link-arrow::after {
  content: "→";
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(0.25rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid #262626;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 40px;
  flex: none;
}

.brand__name {
  display: block;
  max-width: 7.5em;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand__by {
  display: none;
}

.site-nav {
  display: none;
}

@media (min-width: 30rem) {
  .brand img {
    width: 46px;
  }

  .brand__name {
    max-width: none;
    font-size: 0.9375rem;
  }

  .brand__by {
    display: block;
    margin-top: 0.2rem;
    color: var(--grey-mid);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .btn--small {
    padding-inline: 1.1rem;
  }
}

@media (min-width: 64rem) {
  .site-nav {
    display: block;
  }

  .site-nav ul {
    display: flex;
    gap: 1.75rem;
  }

  .site-nav a {
    color: var(--grey-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
    padding-block: 0.4rem;
    transition: color 0.2s, background-size 0.3s var(--ease-out);
  }

  .site-nav a:hover {
    color: var(--white);
    background-size: 100% 2px;
  }

  .site-nav + .btn {
    margin-left: 1rem;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(54rem, calc(100svh - var(--header-h)));
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 18% 115%, rgba(224, 45, 0, 0.35), transparent 70%),
    var(--black);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__media:has(img, video)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.25) 100%);
}

/* The spotlight: a soft beam from the rig and a pool of light on the floor.
   On devices with a mouse, main.js sets --beam-angle and --pool-x so it follows the pointer. */
.hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__light::before {
  /* Capped so large red type stays above 3:1 even at the beam's brightest point. */
  --beam: rgba(255, 238, 220, 0.16);
  content: "";
  position: absolute;
  top: -10%;
  left: 74%;
  width: 180vmax;
  height: 140%;
  background: conic-gradient(from 0deg at 50% 0%,
    transparent 161deg, var(--beam) 175deg, var(--beam) 185deg, transparent 199deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 92%);
  margin-left: -90vmax; /* centres the apex on `left` */
  transform: rotate(var(--beam-angle, 24deg));
  transform-origin: 50% 0;
}

.hero__light::after {
  content: "";
  position: absolute;
  left: var(--pool-x, 40%);
  bottom: -14%;
  width: 80%;
  height: 46%;
  translate: -50% 0;
  background: radial-gradient(ellipse at center, rgba(255, 238, 220, 0.13), rgba(255, 238, 220, 0) 65%);
}

.hero__inner {
  position: relative;
  align-self: center;
  padding-block: clamp(3.5rem, 11vw, 7rem) clamp(2.5rem, 6vw, 4rem);
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(2.125rem, 6.6vw, 5.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

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

.hero__lede {
  max-width: 36rem;
  margin: 1.5rem 0 2.25rem;
  color: var(--grey-light);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
}

/* ---------- 2. What it is ---------- */

.split {
  display: grid;
  gap: 2rem;
}

.statement {
  max-width: 12ch;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 3px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.prose {
  font-size: 1.125rem;
}

.prose strong {
  font-weight: 600;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .prose {
    padding-top: 1rem;
  }
}

/* ---------- 3. Outcomes ---------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 36rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.5rem 2.25rem;
  background: var(--ink);
  transition: background-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 2.5rem;
  height: 3px;
  background: var(--red);
  transition: width 0.45s var(--ease-out);
}

.card:hover {
  background: #232323;
}

.card:hover::before {
  width: calc(100% + 2px);
}

.card h3 {
  font-size: 1.25rem;
  overflow-wrap: break-word;
}

.card p {
  color: var(--grey-light);
}

.card--cta {
  justify-content: flex-end;
  background: var(--red);
  color: var(--white);
}

.card--cta::before {
  display: none;
}

.card--cta:hover {
  background: var(--red-dark);
}

.card--cta p {
  color: var(--white);
}

.card--cta .link-arrow {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.card--cta .link-arrow:focus-visible {
  outline-color: var(--white);
}

/* ---------- 4. How a session runs ---------- */

.steps {
  display: grid;
}

.step {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  border-left: 2px solid var(--black);
}

.step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.step::before {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
}

.step__label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3125rem;
}

@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .step,
  .step:last-child {
    padding: 2.25rem 2rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--black);
  }

  .step::before {
    top: -9px;
    left: 0;
  }
}

/* "No one is put on the spot" banner */
.promise {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  background: var(--red);
  color: var(--white);
  --focus: var(--white);
}

.promise::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: 50%;
  width: min(30rem, 70vw);
  aspect-ratio: 320 / 278;
  background: url("../brand/rft-dice-white-320.webp") center / contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}

.promise__inner {
  position: relative;
  z-index: 1;
}

.promise__title {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.875rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.promise__title span {
  display: block;
  color: var(--black);
}

.promise p {
  max-width: 40rem;
  font-size: 1.1875rem;
}

/* ---------- 5. Who it's for ---------- */

.audiences li {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}

.audiences li:last-child {
  border-bottom: 1px solid var(--line);
}

.audiences h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  font-weight: 700;
}

.audiences p {
  color: var(--grey-light);
}

@media (min-width: 48rem) {
  .audiences li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
  }

  .audiences p {
    font-size: 1.125rem;
  }
}

/* ---------- 6. Clients (and testimonials, currently commented out in index.html) ---------- */

/* A shorter band than the full sections: heading on the left, clients on the right. */
.section--band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.clients-band {
  display: grid;
  gap: 2rem;
}

.clients-band .section-head {
  margin-bottom: 0;
}

.clients-band h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.clients {
  display: grid;
}

.clients li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.clients li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--red);
}

.clients__name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.2;
}

.clients__type {
  order: -1; /* shown above the name so the labels line up even when names wrap */
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 48rem) {
  .clients {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
  }

  .clients li {
    padding-block: 1.5rem 0;
  }
}

@media (min-width: 64rem) {
  .clients-band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: 4rem;
    align-items: center;
  }
}

.quotes {
  display: grid;
  grid-column: 1 / -1; /* full width under the band when testimonials return */
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 56rem) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem 1.75rem 2rem;
  background: var(--white);
  color: var(--ink);
}

.quote::before {
  content: "“";
  height: 2.5rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
}

.quote blockquote {
  flex: 1;
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
}

.quote figcaption {
  font-size: 0.9375rem;
}

.quote figcaption strong {
  display: block;
  font-weight: 600;
}

/* ---------- 7. Facilitators ---------- */

/* Small cards. Baseline (touch screens): photo, then name, role and credits.
   Phones: a compact row. With a mouse: credits slide up over the photo on hover or focus. */

.people {
  display: grid;
  gap: 1.25rem;
}

/* Column counts keep every card at least ~265px wide so the hover credits fit.
   The "And more" tile spans two columns wherever that completes the row. */
@media (min-width: 36rem) {
  .people {
    grid-template-columns: repeat(2, 1fr);
  }

  .people__more {
    grid-column: span 2;
  }
}

@media (min-width: 58rem) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }

  .people__more {
    grid-column: auto;
  }
}

@media (min-width: 76rem) {
  .people {
    grid-template-columns: repeat(4, 1fr);
  }

  .people__more {
    grid-column: span 2;
  }
}

.people__more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  color: var(--grey-light);
}

.people__more-title {
  margin-bottom: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.person {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

.person__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1); /* headshots shot in colour still match the black-and-white set */
}

.person__info {
  padding: 1.25rem 1.25rem 1.5rem;
}

.person__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.person__role {
  margin: 0.4rem 0 0;
  color: var(--grey-mid);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.person__more {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 0.9rem;
}

.person__more > * {
  min-height: 0;
  overflow: hidden;
}

.person .credits {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.person .credits li + li {
  margin-top: 0.45rem;
}

@media (max-width: 35.99rem) {
  .people {
    gap: 1rem;
  }

  .person {
    flex-direction: row;
    align-items: flex-start;
  }

  .person__photo {
    width: 6.5rem;
    flex: none;
  }

  .person__info {
    padding: 1rem 1.1rem 1.25rem;
  }
}

@media (hover: hover) and (min-width: 36rem) {
  .person__info {
    position: absolute;
    inset: auto 0 0;
    max-height: 100%; /* if credits ever run long, they clip at the bottom, never the name */
    overflow: hidden;
    padding: 1.75rem 1.25rem 1rem;
    /* Fades in over the photo, then solid behind the text so it stays readable on any headshot. */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.9) 1.5rem);
  }

  .person__name {
    padding-right: 2.25rem;
  }

  .person .credits {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .person .credits li + li {
    margin-top: 0.35rem;
  }

  .person__more {
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition:
      grid-template-rows 0.45s var(--ease-out),
      margin-top 0.45s var(--ease-out),
      opacity 0.3s;
  }

  .person:hover .person__more,
  .person:focus-within .person__more {
    grid-template-rows: 1fr;
    margin-top: 0.9rem;
    opacity: 1;
  }

  /* "More" hint in the corner */
  .person::after {
    content: "+";
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.3s var(--ease-out);
  }

  .person:hover::after,
  .person:focus-within::after {
    transform: rotate(45deg);
  }
}

.credits li,
.facts li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--grey-light);
}

.credits li + li,
.facts li + li {
  margin-top: 0.7rem;
}

.credits li::before,
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--red);
}

.about-rft {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: 2.5rem;
  border-top: 3px solid var(--red);
}

.about-rft img {
  width: 13rem;
}

.about-rft h3 {
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
}

.about-rft .link-arrow {
  margin-top: 1.75rem;
}

@media (min-width: 48rem) {
  .about-rft {
    grid-template-columns: 16rem 1fr;
    gap: 4rem;
  }

  .about-rft img {
    width: 100%;
    margin-top: 0.4rem;
  }
}

/* ---------- 8. FAQ ---------- */

.faq-layout {
  display: grid;
}

@media (min-width: 60rem) {
  .faq-layout {
    grid-template-columns: 1fr 1.9fr;
    gap: 4rem;
    align-items: start;
  }

  .faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq details {
  border-top: 2px solid var(--black);
}

.faq details:last-child {
  border-bottom: 2px solid var(--black);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--red);
}

.faq__a {
  max-width: 42rem;
  padding-bottom: 1.75rem;
  font-size: 1.0625rem;
}

/* ---------- 9. Contact ---------- */

.contact {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .contact {
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
  }
}

.contact__lede {
  margin-top: 1.25rem;
  color: var(--grey-light);
  font-size: 1.1875rem;
}

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--ink);
}

.form__required {
  margin: 0;
  color: var(--grey-light);
  font-size: 0.875rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--grey-light);
  font-size: 0.9375rem;
  font-weight: 600;
}

.req {
  color: var(--orange);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--grey-mid);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font: inherit;
  transition: border-color 0.2s;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--grey-mid);
  opacity: 1;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--grey-light);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--white);
}

.field input:user-invalid {
  border-color: var(--orange);
}

.field-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 36rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form .btn {
  justify-self: start;
  min-width: 10rem;
}

.form__note {
  color: var(--grey-light);
  font-size: 0.9375rem;
}

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

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid #262626;
  background: var(--black);
  color: var(--grey-light);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__copy {
  color: var(--grey-mid);
}

@media (min-width: 48rem) {
  .site-footer__copy {
    margin-left: auto !important;
  }
}

/* ---------- Thank-you and 404 pages ---------- */

.stage-page {
  display: grid;
  min-height: calc(100svh - var(--header-h));
}

.stage-page .hero__inner {
  max-width: 46rem;
}

.stage-page__dice {
  width: clamp(6rem, 18vw, 9rem);
  margin-bottom: 2rem;
}

.stage-page .hero__title {
  font-size: clamp(2rem, 5.5vw, 4rem);
}

/* ---------- Motion (only when the visitor hasn't asked for less) ---------- */

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

  .hero__light::before {
    animation: beam-on 2.6s var(--ease-out) 0.15s both;
  }

  .hero__light::after {
    animation: pool-on 2.2s ease-out 0.7s both;
  }

  .hero__inner > * {
    animation: rise 1s var(--ease-out) both;
  }

  .hero__inner > :nth-child(1) { animation-delay: 0.35s; }
  .hero__inner > :nth-child(2) { animation-delay: 0.5s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.7s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.85s; }
  .hero__inner > :nth-child(5) { animation-delay: 1s; }

  /* Scroll reveals. main.js adds .reveal-ready, so content is never hidden without JS. */
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition:
      opacity 0.8s var(--ease-out) var(--delay, 0s),
      transform 0.8s var(--ease-out) var(--delay, 0s);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@keyframes beam-on {
  /* `rotate` adds to the transform, so the opening swing works alongside the pointer tracking. */
  0% { opacity: 0; rotate: 12deg; }
  22% { opacity: 0.55; }
  30% { opacity: 0.1; }
  40% { opacity: 0.85; }
  100% { opacity: 1; rotate: 0deg; }
}

@keyframes pool-on {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}

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

/* Visitors who ask for less motion get instant state changes (hovers, the facilitator cards). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
