/* dancewithmegantang.com: editorial portfolio */

:root {
  /* Timeless black and white, after cadence.rubenstom.com */
  --bg: #f6f6f6;
  --surface: #f6f6f6;
  --ink: #000000;
  --muted: #6b6b6b; /* 4.9:1 on the page background (WCAG AA needs 4.5) */
  --accent: #000000;
  --accent-ink: #ffffff;
  --accent-soft: #f2f2f2;
  --line: rgba(0, 0, 0, 0.08);
  /* Cards and photos sit on white, lifted off the grey page like mounted prints */
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(0, 0, 0, 0.07);
  --photo-edge: 0 0 0 1px rgba(0, 0, 0, 0.12); /* hairline a few pixels outside the photo */

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.33, 0, 0.15, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

/* Poppins, hosted with the site (SIL Open Font License) so no visitor data goes to Google */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
}

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

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

.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 16px var(--gutter);
  padding-top: max(16px, env(safe-area-inset-top));
}

.pill {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Menu: a "Menu" pill beside Contact. Native <details>, so it opens without JavaScript;
   js/site.js closes it after a link is chosen, on Escape, or on a click outside. */
.top-bar {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.menu summary,
.top-bar > .pill {
  position: relative;
  z-index: 2; /* stay above the open phone menu, so Close and Contact both show */
  list-style: none;
  cursor: pointer;
}

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

.menu .menu-close,
.menu[open] .menu-label {
  display: none;
}

.menu[open] .menu-close {
  display: inline;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  padding: max(80px, calc(env(safe-area-inset-top) + 64px)) var(--gutter) 40px;
  background: var(--bg);
}

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.menu-panel .menu-pages {
  margin-top: 28px;
}

.menu-panel .menu-pages a {
  font-size: 18px;
  font-weight: 400;
}

@media (min-width: 760px) {
  .menu {
    position: relative;
  }

  .menu-panel {
    position: absolute;
    inset: auto;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    padding: 8px 20px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  }

  .menu-panel a {
    font-size: 18px;
  }

  .menu-panel .menu-pages {
    margin-top: 12px;
  }

  .menu-panel .menu-pages a {
    font-size: 15px;
  }
}

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

main > section:not(.opening):not(.chapter) {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter);
}

/* Press */

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.press-list a {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) 2fr auto;
  align-items: baseline;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.3s var(--ease);
}

.press-list a:hover {
  padding-left: 8px;
}

.press-outlet {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.press-topic {
  color: var(--muted);
}

.press-year {
  color: var(--muted);
}

.press-year::after {
  content: " ↗";
  content: " ↗" / ""; /* empty alternative text: screen readers skip the arrow */
}

@media (max-width: 600px) {
  .press-list a {
    grid-template-columns: 1fr auto;
  }

  .press-topic {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.video {
  margin: 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--accent-soft);
}

.video-frame iframe,
.video-frame button,
.video-frame .video-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame button {
  padding: 0;
  cursor: pointer;
  background: #000;
}

.video-frame button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}

.video-frame button:hover img {
  opacity: 1;
}

.video-frame button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23000'/%3E%3C/svg%3E")
    center / 30px no-repeat;
}

.video-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
}

.video figcaption {
  margin-top: 12px;
  font-weight: 500;
}

/* Contact */

.contact {
  text-align: center;
}

.contact h2 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 20px;
}

.contact > p {
  margin: 0 auto 32px;
  font-size: 20px;
  color: var(--muted);
}

.button {
  display: inline-block;
  max-width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.contact .contact-condition {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: clamp(13px, 3.6vw, 14px);
  line-height: 1.5;
  color: var(--muted);
}

.contact .contact-note {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-size: clamp(13px, 4vw, 15px);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact .contact-social {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 16px;
}

.contact .contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}

.contact-social a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.contact-social a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-social .sep {
  margin: 0 0.9em;
  font-size: 13px; /* same size as the links, so the dot sits on their line */
  color: var(--muted);
}

/* Phones: the three links sit in one row, spaced by gaps instead of dots */
@media (max-width: 480px) {
  .contact .contact-social {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 12px 24px;
  }

  .contact-social .sep {
    display: none;
  }
}

/* Very narrow screens: one row no longer fits, so the links stack, without separators */
@media (max-width: 359px) {
  .contact .contact-social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-social .sep {
    display: none;
  }

  .contact-actions .button {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.site-footer {
  padding: 48px var(--gutter) 48px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-small {
  margin-top: 6px;
  font-size: 13px;
}

.footer-small a {
  margin-left: 6px;
  color: var(--ink);
  text-underline-offset: 3px;
}

/* Privacy & notices page */

.notice-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(96px, 14vw, 140px) var(--gutter) 80px;
}

.notice-page h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 12px;
  text-wrap: balance; /* even lines, so a heading never leaves one word on its own */
}

.notice-page h2 {
  font-size: 20px;
  margin: 40px 0 10px;
}

.notice-page p,
.notice-page li {
  color: var(--muted);
}

.notice-page ul {
  padding-left: 1.2em;
  margin: 0;
}

.notice-page li + li {
  margin-top: 8px;
}

.notice-updated {
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* Worked with: names only, in the footer above the logo */
.site-footer .worked-with-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Worked with, in numbered groups: a small heading, then the names in one flowing line */
.site-footer .worked-with {
  max-width: 720px;
  margin: 14px auto 44px;
  text-align: left;
}

.site-footer .worked-with-group + .worked-with-group {
  margin-top: 18px;
}

.site-footer .worked-with-title {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .worked-with-names {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

/* Break between names, not inside one; a name wider than the screen wraps inside its own box
   instead of pushing the page sideways */
.site-footer .worked-with-name {
  display: inline-block;
  max-width: 100%;
}

.site-footer .worked-with-note {
  white-space: nowrap;
}

/* On phones, one name per line in every group, so a group with short names doesn't look uneven */
@media (max-width: 759px) {
  .site-footer .worked-with-name {
    display: block;
  }

  .site-footer .worked-with .sep {
    display: none;
  }
}

.footer-logo {
  width: clamp(150px, 22vw, 210px);
  height: auto;
  margin: 8px auto 18px;
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Editorial portfolio. Motion is driven by --p (0 to 1), set by js/scroll-progress.js.
   --p defaults to 1, so without JavaScript the finished, still layout shows.
   ========================================================================== */

/* Opening: Telescope Zoom ------------------------------------------------- */

.opening {
  --p: 1;
  /* Two steps: the photo grows to a card (--grow), then opens out to fill the screen (--fill),
     then holds full screen for the last stretch of the scroll. */
  --grow: clamp(0, calc(var(--p) * 2.2), 1);
  --fill: clamp(0, calc((var(--p) - 0.45) * 2.5), 1);
  --card-w: min(32vw, 210px); /* half the card's width */
  --card-h: calc(var(--card-w) * 1.25); /* half its height (4:5) */
  --split: calc(var(--card-w) + 12px); /* half the card's width, plus a gap */
  position: relative;
  height: 100svh;
}

.js .opening {
  --p: 0; /* start closed until js/scroll-progress.js runs, so the finished state never flashes */
  height: 260svh;
}

.opening-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.tiles {
  position: absolute;
  inset: 0;
}

.tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(56px, calc(var(--w) * 1vw), 150px);
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  translate: -50% -50%;
  transform: translate(calc(var(--dx) * var(--p) * 45vw), calc(var(--dy) * var(--p) * 45svh));
  opacity: clamp(0, calc(1 - var(--p) * 1.6), 1);
}

.tile img,
.opening-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The frame always covers the whole stage; clip-path cuts it down to the card, and the
   cut opens to the screen edges as --fill goes to 1. */
.opening-frame {
  position: absolute;
  inset: 0;
  transform: scale(calc(0.06 + 0.94 * var(--grow)));
  clip-path: inset(
    max(0px, calc((50% - var(--card-h)) * (1 - var(--fill))))
    max(0px, calc((50% - var(--card-w)) * (1 - var(--fill))))
    round calc(6px * (1 - var(--fill)))
  );
  opacity: clamp(0, calc(var(--p) * 4), 1);
}

/* A dark wash as the photo fills the screen, so the name reads in white (as on the chapter photos) */
.opening-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / calc(0.35 * var(--fill)));
}

.opening-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  margin: 0;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  /* white as soon as the photo opens past the name */
  color: color-mix(in srgb, #fff calc(min(1, var(--fill) * 4) * 100%), var(--ink));
  pointer-events: none;
}

.opening-name span:first-child {
  transform: translateX(calc(var(--grow) * -1 * var(--split)));
}

.opening-name span:last-child {
  transform: translateX(calc(var(--grow) * var(--split)));
}

@media (max-width: 900px) {
  .opening {
    --split-y: min(46vw, 40svh);
  }

  .opening-name {
    flex-direction: column;
    gap: 0;
    transform: scale(calc(1 + 0.35 * var(--fill))); /* a little larger once the photo fills the screen */
  }

  .opening-name span:first-child {
    transform: translateY(calc(var(--grow) * -1 * var(--split-y)));
  }

  .opening-name span:last-child {
    transform: translateY(calc(var(--grow) * var(--split-y)));
  }
}

.intro {
  text-align: center;
}

.roles {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.roles .sep {
  margin: 0 0.3em; /* plus the spaces either side, about the 0.8em gap the CSS dot had */
}

.positioning {
  margin: 14px auto 0;
  max-width: 22ch;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* What Megan can be booked for, with a jump to Work with me */
.available {
  margin: 18px auto 10px;
  max-width: 34ch;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
}

.showreel {
  margin: 48px 0 0;
}

/* Chapters ---------------------------------------------------------------- */

.chapter {
  padding-bottom: clamp(72px, 12vw, 140px);
}

.chapter > .stack,
.chapter > .more-title,
.chapter > .more,
.chapter > .chapter-title {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.wipe {
  --p: 1;
  position: relative;
  height: 70svh;
}

.js .wipe {
  height: 180svh;
}

.wipe-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg); /* the title's "difference" blend needs a backdrop inside this layer */
  display: grid;
  place-items: center;
}

.wipe-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0);
  filter: brightness(0.5); /* keeps the blended title light and readable over busy, bright photos */
}

.wipe-title,
.chapter-title {
  position: relative;
  margin: 0;
  padding: 0 var(--gutter);
  font-size: clamp(40px, 9vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.wipe-title {
  color: #fff;
  mix-blend-mode: difference;
}

.chapter-title {
  padding-top: clamp(72px, 12vw, 140px);
  text-align: left;
}

.stack {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 6vw, 64px);
}

.card {
  position: sticky;
  top: calc(16px + var(--i) * 12px);
  display: grid;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: var(--card-shadow); /* the shadow shows where cards stack */
}

.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 6px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--photo-edge);
}

.card-media > img,
.card-media .video-frame,
.card-media .video-frame button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media > img,
.card-media .video-frame {
  overflow: hidden;
  border-radius: 3px;
  background: var(--accent-soft);
}

.card-media .video-frame {
  aspect-ratio: auto;
}

/* No poster photo: show only the play circle (the button's aria-label names the video) */
.video-play-text {
  font-size: 0;
  color: transparent;
}

.label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.status {
  display: inline-block;
  margin-left: 0.6em;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
}

.role {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.35;
}

.card--text .role {
  font-size: clamp(22px, 3.2vw, 34px);
}

@media (min-width: 900px) {
  .card {
    top: calc(48px + var(--i) * 16px);
    grid-template-columns: 1fr 1fr;
    align-items: end;
    min-height: 70svh;
    padding: 32px;
  }

  .card--text {
    grid-template-columns: 1fr; /* same min-height as photo cards, so each card fully covers the last */
    align-items: start; /* label at the top, larger text fills the card */
  }

  .card--text .role {
    max-width: 26ch;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .card-media {
    max-height: 72svh;
  }
}

/* Phones: cards vary a lot in height, so they scroll normally instead of stacking */
@media (max-width: 899px) {
  .card {
    position: relative;
    top: auto;
  }
}

.more-title {
  margin-top: clamp(40px, 6vw, 64px);
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.more {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.more li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 2vw, 22px);
}

.more li span:last-child {
  flex-shrink: 0;
  padding-top: 0.4em;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Keep row text clear of the photo, which sits just left of the year (wide screens only) */
@media (min-width: 900px) {
  .more.has-preview li span:first-child {
    padding-right: 244px;
  }
}

.preview-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.preview-float.is-on {
  opacity: 1;
}

/* What organisers say ----------------------------------------------------- */

main.faq-page > section.quotes {
  max-width: none;
  margin: 56px 0 0;
  padding: 0; /* line up with the questions above, not the home page's section spacing */
}

.faq-page .quotes {
  scroll-margin-top: 80px; /* the home page's "See references" link lands here, clear of the Home button */
}

.faq-page .quotes h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.faq-page .quote blockquote p {
  color: var(--ink); /* the quotes read darker than the grey answers above */
}

.quotes .quote {
  max-width: 46em;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.quotes .quote:first-of-type {
  margin-top: 24px;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.45;
}

.quote figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Work with me ------------------------------------------------------------ */

.offers {
  list-style: none;
  counter-reset: offer;
  display: grid;
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.offers li {
  counter-increment: offer;
  padding: 24px;
  background: var(--bg);
}

.offers li::before {
  content: "0" counter(offer);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.offers h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.offers p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 760px) {
  .offers {
    grid-template-columns: 1fr 1fr;
  }
}

/* Working together: questions that open on tap (native <details>, no script) */
.faq {
  margin: 56px auto 0;
  text-align: left;
  scroll-margin-top: 80px; /* the PDF links here; keep the heading clear of the Contact button */
}

/* Home page: the booking page, the questions and the references as three white cards */
.link-cards {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
}

.link-card {
  display: block;
  height: 100%;
  padding: 22px 24px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.link-card-title {
  display: block;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
}

.link-card-line {
  display: block;
  color: var(--muted);
}

.link-card:hover .link-card-title,
.link-card:focus-visible .link-card-title {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (min-width: 760px) {
  .link-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.faq h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}

.faq-lead {
  margin: 0 0 24px;
  font-size: 18px;
}

.faq-more {
  margin: 0;
  text-align: center;
}

.faq-more a {
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 5px;
}

/* Working together page */
.faq-page h2 {
  color: var(--ink);
}

.faq-page .faq-subtitle {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-page .faq-note {
  margin: 48px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-page .faq-lead {
  margin-top: 20px;
  color: var(--ink);
}

.faq-page .contact {
  margin-top: 64px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.faq-page .invite p {
  color: var(--muted);
}

/* Booking at a glance page, and its link from the FAQ page */
.booking-more {
  margin: 16px 0 0;
}

.booking-more a {
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 5px;
}

/* Booking sections sit in the page's narrow column, not the full-width home-page sections */
main.notice-page.booking-page > section {
  max-width: none;
  padding: 0;
}

.booking-page .booking-list li + li {
  margin-top: 4px;
}

/* Our Story: a quiet link on the home page after the last chapter (like the FAQ link), and its own page */
main > section.our-story-link:not(.chapter) {
  max-width: 720px;
  padding-top: 0;
  text-align: center;
}

.our-story-link h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.our-story-page p,
.our-story-page li {
  color: var(--ink);
}

/* Story sections sit in a narrow column, not the full-width home-page sections */
main.notice-page.our-story-page > section:not(.opening) {
  max-width: none;
  padding: 0;
}

.our-story-page .our-story-lead {
  margin: 20px 0 0;
  font-size: clamp(18px, 2.2vw, 22px);
}

/* Photos sit small beside the words, alternating sides; each section clears its photo */
main.notice-page.our-story-page > section:not(.opening) {
  display: flow-root;
}

.our-story-figure {
  width: min(42%, 280px);
  margin: 40px 0 16px;
}

.our-story-figure--right {
  float: right;
  margin-left: clamp(16px, 4vw, 32px);
}

.our-story-figure--left {
  float: left;
  margin-right: clamp(16px, 4vw, 32px);
}

.our-story-figure img {
  width: 100%;
  height: auto;
  padding: 6px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--photo-edge), var(--card-shadow);
}

.our-story-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--muted);
}

.notice-page .our-story-pillars {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.notice-page .our-story-pillars li {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.our-story-pillars h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.our-story-pillars p {
  margin: 0;
}

.notice-page .our-story-links {
  list-style: none;
  padding: 0;
}

.our-story-links a {
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 5px;
}

.our-story-page .contact {
  margin-top: 28px;
  text-align: center;
}

.our-story-page .contact .contact-social {
  margin-top: 24px;
}

.our-story-page .our-story-closing {
  margin: 64px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.invite {
  margin: 56px auto 28px;
}

.invite h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
}

.invite p {
  margin: 0;
}

/* The two buttons are always the same width: stacked on phones, side by side when both fit on one line */
.contact .contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.contact-actions .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 720px) {
  .contact .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
  }
}

.button--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* In the works ------------------------------------------------------------ */

.works h2 {
  font-size: clamp(36px, 6vw, 64px);
}

.works-list {
  display: grid;
  gap: 16px;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.work {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (min-width: 900px) {
  .works-list {
    grid-template-columns: 1fr 1fr;
  }

  .work {
    padding: 32px;
  }
}

/* Recognition ------------------------------------------------------------- */

.recognition h3 {
  margin: 40px 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.awards li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.awards li span:first-child {
  color: var(--muted);
}

/* JavaScript off: the chapter photo sits in its own short block, so it never covers the first card */

html:not(.js) .wipe-stage {
  position: relative;
  height: 70svh;
}

/* Reduce motion: everything still, nothing pinned ------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js .opening,
  .js .wipe {
    --p: 1;
    height: auto;
  }

  .opening-stage {
    position: relative;
    height: auto;
    min-height: 100svh;
  }

  .tiles {
    display: none;
  }

  .wipe-stage {
    position: relative;
    height: 70svh;
  }

  .card {
    position: relative;
    top: auto;
  }
}
