/*
 * The site's pages: /, /work, /game-night, /clubs. Plain CSS, no build step.
 * Colours and type follow the game's dossier style (app: src/theme.ts).
 * One look on purpose: always the light dossier; the only dark moment is the
 * lights-out section, which takes the game's night palette as it scrolls in.
 */

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/CourierPrime-400.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/CourierPrime-700.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Lora-400i.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/Lora.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(fonts/Oswald.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #f2e8d5;
  --paper: #fbf6ea;
  --edge: #dcd1b8;
  --rule: #e7dec9;
  --ink: #2c2416;
  --ink-light: #5e5140;
  --blood: #8b0000;
  --loyal: #3f6b3a;
  --amber: #85590c;
  --lamp: #fff7e2;
  --on-ink: #fbf6ea;
  --shadow: rgba(44, 36, 22, 0.28);
  --band: #2c2416;
  --band-ink: #f2e8d5;
  --band-muted: #c9bba0;
  --grain: 0.06;

  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Lora', Georgia, 'Times New Roman', serif;
  --type: 'Courier Prime', 'Courier New', monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* One look on purpose: the light dossier, whatever the device's theme.
   The only dark moment is the lights-out section below. */
:root,
:root[data-theme='dark'] {
  color-scheme: light;
}
/* Lights out: while the night section holds the middle of the screen, the
   whole page takes the game's night palette. */
body[data-surface='night'] {
  --ground: #121110;
  --paper: #1c1a17;
  --edge: #34302a;
  --rule: #2a2722;
  --ink: #e9e1cf;
  --ink-light: #a89e8a;
  --blood: #e0685f;
  --loyal: #8db585;
  --amber: #c8a96e;
  --lamp: #2a241c;
  --on-ink: #121110;
  --shadow: rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.09 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body > * {
  position: relative;
  z-index: 1;
}

/* Colours ease between day and night instead of snapping. */
body,
.nav,
.step,
.brief,
.brief *,
.sheet,
.sheet li,
.stamp,
h1,
h2,
h3,
p,
.label,
.btn,
.facts,
.phone {
  transition:
    background-color 0.9s var(--ease),
    color 0.9s var(--ease),
    border-color 0.9s var(--ease),
    box-shadow 0.9s var(--ease);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--blood);
  outline-offset: 3px;
}
p {
  margin: 0;
}
.label {
  font: 500 12px/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
  margin: 0;
}
h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.05;
}
.lede {
  font-size: 19px;
  color: var(--ink-light);
  max-width: 30em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.wordmark small {
  font: 600 11px var(--display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.wordmark span {
  font: 600 22px var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blood);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  font: 600 15px var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn-solid {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 2px 0 var(--shadow);
}
.btn-solid:hover {
  background: var(--blood);
  border-color: var(--blood);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--paper);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding-block: 36px 72px;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 12px 48px;
  }
}
.hero h1 {
  font-size: clamp(52px, 7.6vw, 92px);
  line-height: 0.96;
}
.hero .lede {
  margin-top: 18px;
  color: var(--ink);
}
.hero .ctas {
  margin-top: 28px;
}
.stores {
  margin-top: 14px;
  font: 15px var(--body);
  color: var(--ink-light);
}
.stores a {
  text-underline-offset: 3px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  font: 15px var(--type);
  color: var(--ink-light);
}
.facts b {
  color: var(--ink);
}
.table-fig {
  margin: 0;
}
.table-fig svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  margin-inline: auto;
}
.table-fig figcaption {
  text-align: center;
  font: 15px var(--body);
  color: var(--ink-light);
  margin-top: 6px;
}
.lamp-a {
  stop-color: var(--lamp);
}
.lamp-b {
  stop-color: var(--ground);
  stop-opacity: 0;
}
.chair rect {
  transition: fill 0.35s;
}

section.block {
  padding-block: 88px;
}
@media (max-width: 760px) {
  section.block {
    padding-block: 64px;
  }
}
.head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}
.head p {
  color: var(--ink-light);
  max-width: 30em;
}

/* Phones */
.phone {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 400 / 776;
  margin-inline: auto;
  padding: 7px;
  border-radius: 30px;
  background: #191512;
  border: 1px solid rgba(233, 225, 207, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 50px -24px var(--shadow),
    0 4px 10px -4px var(--shadow);
}

/* Steps: a swipeable row on phones */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.step:nth-child(1) .phone {
  transform: rotate(-2deg);
}
.step:nth-child(3) .phone {
  transform: rotate(2deg);
}
.step .n {
  font: 600 13px var(--type);
  color: var(--blood);
  letter-spacing: 0.1em;
}
.step h3 {
  font-size: 20px;
}
.step p {
  color: var(--ink-light);
  font-size: 16px;
  margin-top: -8px;
}
@media (max-width: 760px) {
  .steps-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 8px 20px 20px;
    scrollbar-width: none;
  }
  .steps-scroll::-webkit-scrollbar {
    display: none;
  }
  .steps {
    grid-template-columns: repeat(3, 72%);
    gap: 18px;
  }
  .step {
    scroll-snap-align: center;
  }
  .swipe {
    display: block !important;
  }
}
.swipe {
  display: none;
  text-align: center;
  font: 14px var(--body);
  color: var(--ink-light);
}

/* Stamps */
.stamp {
  --r: -3deg;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  font: 600 20px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(var(--r));
}
.stamp small {
  font: 400 12px/1.4 var(--type);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: none;
}
.stamp.megamole {
  background: var(--blood);
  color: var(--paper);
  border: 2px solid var(--blood);
}
.stamp.mole {
  color: var(--blood);
  border: 4px double var(--blood);
}
.stamp.employee {
  color: var(--loyal);
  border: 2px solid var(--loyal);
  border-radius: 10px;
}
.stamp.contractor {
  color: var(--amber);
  border: 2px dashed var(--amber);
}
.stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 30px;
}
.stamps .stamp:nth-child(2) {
  --r: 2deg;
}
.stamps .stamp:nth-child(3) {
  --r: -1deg;
}
.stamps .stamp:nth-child(4) {
  --r: 3deg;
}
.stamps .stamp:nth-child(2).landed {
  animation-delay: 0.12s;
}
.stamps .stamp:nth-child(3).landed {
  animation-delay: 0.24s;
}
.stamps .stamp:nth-child(4).landed {
  animation-delay: 0.36s;
}
.more {
  text-align: center;
  margin-top: 26px;
  color: var(--ink-light);
}
@keyframes land {
  0% {
    transform: scale(1.7) rotate(var(--r));
    opacity: 0;
  }
  55% {
    transform: scale(0.94) rotate(var(--r));
    opacity: 1;
  }
  75% {
    transform: scale(1.03) rotate(var(--r));
  }
  100% {
    transform: scale(1) rotate(var(--r));
    opacity: 1;
  }
}
.landed {
  animation: land 0.5s var(--ease) both;
}

/* Night */
.night-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .night-grid {
    grid-template-columns: 1fr;
  }
  .night-grid .phone-col {
    display: none;
  }
}
.night-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.night-copy .label {
  color: var(--amber);
}
.brief {
  margin-top: 18px;
  width: 100%;
  max-width: 380px;
  min-height: 290px;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: pointer;
  box-shadow: 0 24px 44px -26px var(--shadow);
}
.brief-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.brief-top span:last-child {
  font: 13px var(--type);
  color: var(--ink-light);
}
.brief-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding-top: 16px;
}
.ring {
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
}
.ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 2;
}
.ring .track {
  stroke: var(--edge);
}
.ring .fill {
  stroke: var(--amber);
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
}
.ring b {
  font: 600 14px/1.2 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hint {
  font: 15px var(--body);
  color: var(--ink-light);
}
.reveal {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.brief.open .cover {
  display: none;
}
.brief.open .reveal {
  display: flex;
}
.reveal .role {
  font: 600 32px/1.05 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.reveal p {
  font-size: 16px;
  color: var(--ink);
  max-width: 22em;
}
.reveal .stamp {
  font-size: 16px;
}

/* Vote */
.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .vote-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.vote-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sheet {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 4px;
  max-width: 420px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 24px 44px -28px var(--shadow);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 2px solid var(--ink);
  font: 13px var(--type);
  color: var(--ink-light);
}
.sheet li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
}
.sheet li:last-child {
  border-bottom: 0;
}
.sheet .who {
  font-size: 17px;
  position: relative;
}
.sheet .who::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 55%;
  height: 2px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease) 0.9s;
}
.sheet .tally {
  font: 14px var(--type);
  color: var(--ink-light);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.sheet.counted li.out .who::after {
  transform: scaleX(1);
}
.sheet.counted li.out .who {
  color: var(--ink-light);
}
.sheet .verdict {
  --r: -9deg;
  position: absolute;
  right: 64px;
  top: 92px;
  font-size: 22px;
  opacity: 0;
  color: var(--blood);
  border: 3px solid var(--blood);
  padding: 6px 12px;
  background: var(--paper);
}
.sheet.counted .verdict {
  animation: land 0.45s var(--ease) 1.35s both;
}

/* Close */
.close {
  background: var(--band);
  color: var(--band-ink);
  text-align: center;
  padding-block: 88px 72px;
}
.close .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.close h2 {
  color: var(--band-ink);
}
.close .stamp {
  --r: -4deg;
  color: #8db585;
  border: 3px solid #8db585;
  font-size: 22px;
}
.close .btn-solid {
  background: var(--band-ink);
  color: var(--band);
  border-color: var(--band-ink);
  box-shadow: none;
}
.close .btn-solid:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fbf6ea;
}
.close .fine {
  font: 15px var(--body);
  color: var(--band-muted);
}
footer {
  background: var(--band);
  color: var(--band-muted);
  font: 14px var(--body);
  border-top: 1px solid rgba(201, 187, 160, 0.18);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 20px;
}
footer a {
  text-underline-offset: 3px;
}

.back {
  display: inline-block;
  font: 500 12px var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  padding-block: 6px;
}
.back:hover {
  color: var(--ink);
}

/* Occasion tags under the hero */
.occasions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 0 56px;
  margin-top: -28px;
}
.occasions .label {
  margin-right: 4px;
}
.occasions a {
  font: 500 13px var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--edge);
  background: var(--paper);
  border-radius: 999px;
}
.occasions a:hover {
  border-color: var(--ink);
}

/* Audience pages */
.aud-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 12px 56px;
}
@media (max-width: 860px) {
  .aud-hero {
    grid-template-columns: 1fr;
  }
  .aud-phone {
    display: none;
  }
}
.aud-hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 0.98;
  margin-top: 12px;
}
.aud-hero .lede {
  margin-top: 16px;
  color: var(--ink);
}
.aud-hero .ctas {
  margin-top: 26px;
}
.aud-eyebrow {
  margin-top: 18px;
  color: var(--blood);
}
.aud-phone {
  max-width: 250px;
  transform: rotate(2deg);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tiles.three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .tiles,
  .tiles.three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .tiles,
  .tiles.three {
    grid-template-columns: 1fr;
  }
}
.tile {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 3px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tile h3 {
  font-size: 18px;
}
.tile p {
  color: var(--ink);
  font-size: 16px;
}
.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .card-row {
    grid-template-columns: 1fr;
  }
}
.card-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.runlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.runlist li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.runlist b {
  font: 600 15px var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.runlist em {
  font: normal 14px var(--type);
  color: var(--ink-light);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .runlist li {
    grid-template-columns: 1fr auto;
  }
  .runlist span {
    grid-column: 1 / -1;
  }
}
.note-line {
  color: var(--ink-light);
  font-size: 15px;
}
.tent {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 3px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  box-shadow: 0 18px 36px -22px var(--shadow);
  transform: rotate(1.2deg);
}
.tent-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.tent h3 {
  font-size: 24px;
  line-height: 1.05;
}
.tent ol {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.55;
}
.tent-foot {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--ink-light);
}
.faq-short dl {
  max-width: 640px;
  margin: 0 auto;
}
.faq-short dt {
  font-weight: 600;
  margin-top: 18px;
}
.faq-short dd {
  margin: 4px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--edge);
  color: var(--ink);
}

/* ── v9: rhythm, depth and a few orchestrated moments ─────────────── */
:root {
  --lift:
    0 1px 1px rgba(44, 36, 22, 0.06), 0 8px 16px -8px rgba(44, 36, 22, 0.18),
    0 32px 60px -30px rgba(44, 36, 22, 0.38);
  --object-edge: rgba(44, 36, 22, 0.07);
  --ground-deep: #eadfc7;
}
body[data-surface='night'] {
  --lift:
    0 1px 1px rgba(0, 0, 0, 0.3), 0 10px 20px -8px rgba(0, 0, 0, 0.5),
    0 36px 70px -30px rgba(0, 0, 0, 0.8);
  --object-edge: #34302a;
  --ground-deep: #121110;
}
html,
body {
  overflow-x: clip;
}
.wrap {
  max-width: 1200px;
  padding-inline: 24px;
}
@media (max-width: 560px) {
  .wrap {
    padding-inline: 18px;
  }
}
section.block {
  padding-block: 128px;
}
@media (max-width: 760px) {
  section.block {
    padding-block: 80px;
  }
}

/* Sticky bar that settles once you scroll */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.topbar .nav {
  transition: padding 0.3s var(--ease);
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--object-edge);
}
.topbar.scrolled .nav {
  padding-block: 10px;
}
.topbar .wordmark span {
  transition: font-size 0.3s var(--ease);
}
.topbar.scrolled .wordmark span {
  font-size: 19px;
}

/* Hero: bigger type, bigger table, one entrance */
.hero {
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding-block: 48px 112px;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 16px 72px;
  }
}
.hero h1 {
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.line {
  display: block;
  white-space: nowrap;
}
.hero .lede {
  font-size: 21px;
  margin-top: 24px;
  max-width: 24em;
}
.hero .ctas {
  margin-top: 32px;
}
.table-fig {
  position: relative;
}
.table-fig svg {
  max-width: none;
  width: 118%;
  margin-left: -4%;
}
@media (max-width: 860px) {
  .table-fig svg {
    width: 112%;
    margin-left: -6%;
  }
}
.table-fig figcaption {
  margin-top: -4px;
}
.occasions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
}
.occasions a {
  font-size: 12px;
  padding: 7px 12px;
  background: transparent;
}
.occasions a:hover {
  background: var(--paper);
}
@keyframes rise-line {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lamp-on {
  0% {
    opacity: 0.15;
  }
  40% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
.hero .line {
  animation: rise-line 0.9s var(--ease) both;
}
.hero .mask + .mask .line {
  animation-delay: 0.12s;
}
.enter {
  animation: enter 0.7s var(--ease) both;
}
.e1 {
  animation-delay: 0.35s;
}
.e2 {
  animation-delay: 0.5s;
}
.e3 {
  animation-delay: 0.62s;
}
.e4 {
  animation-delay: 0.74s;
}
#lamp-glow {
  animation: lamp-on 1.6s ease-out 0.15s both;
}

/* Section heads: a ruled label, headings that rise into place */
.head .label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.head .label::before,
.head .label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.rise {
  transition: transform 1s var(--ease);
}
.rise.pre {
  transform: translateY(26px);
}

/* How it works: phones settle as they arrive */
.step .phone {
  transition: transform 1.1s var(--ease);
}
.step:nth-child(1) .phone.pre {
  transform: rotate(-9deg) translateY(40px);
}
.step:nth-child(2) .phone.pre {
  transform: translateY(56px);
}
.step:nth-child(3) .phone.pre {
  transform: rotate(9deg) translateY(40px);
}
.steps {
  gap: 40px;
}

/* The staff: a full-width band, stamps at full size */
.band {
  background: var(--ground-deep);
}
#staff .head h2 {
  font-size: clamp(36px, 5.6vw, 68px);
}
#staff .stamps {
  gap: 36px 56px;
  margin-top: 12px;
}
#staff .stamp {
  font-size: clamp(24px, 3.2vw, 38px);
  padding: 14px 26px;
}
#staff .stamp small {
  font-size: 13px;
  margin-top: 6px;
}
#staff .more {
  margin-top: 40px;
  font-size: 18px;
}

/* Paper objects instead of boxes */
.brief,
.sheet,
.tent,
.tile,
.seats {
  border-color: var(--object-edge);
  box-shadow: var(--lift);
}
.brief {
  transform: rotate(-1.2deg);
  max-width: 400px;
}
.sheet {
  transform: rotate(0.8deg);
}

/* Night: the room closes in, the phone glows */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}
body[data-surface='night']::after {
  opacity: 1;
}
.phone-col .phone {
  transition: box-shadow 1.2s var(--ease);
}
body[data-surface='night'] .phone-col .phone {
  box-shadow:
    0 0 0 1px rgba(233, 225, 207, 0.08),
    0 0 120px -20px rgba(200, 169, 110, 0.35),
    var(--lift);
}

/* By day: minutes on the left, words on the right */
.vote-copy {
  order: 2;
}
@media (max-width: 860px) {
  .vote-copy {
    order: 0;
  }
}

/* Buttons press like a stamp */
.btn {
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn-solid:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--shadow);
}
.btn-outline:hover {
  transform: translateY(1px);
}
.btn:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: none;
}

/* ── iPhone frames ─────────────────────────────────────────────────
   Proportioned like a current Pro model (about 71.5 × 149.6 mm), sized
   with container units so every detail scales with the phone. */
.phone {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 71.5 / 149.6;
  height: auto;
  max-width: 250px;
  padding: 0;
  /* Corner radius: 17% of the width, expressed per axis. */
  border-radius: 17% / 8.1%;
  background: linear-gradient(145deg, #2b2926 0%, #121110 45%, #1d1b19 100%);
  border: 1.5px solid #6d6860;
  box-shadow: var(--lift);
}
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 1.4%;
  border-radius: 2px;
}
/* Left edge: action button, volume up, volume down. Right edge: side button. */
.phone::before {
  left: -2.4%;
  top: 17%;
  height: 29%;
  background: linear-gradient(
    to bottom,
    #6a655d 0 15%,
    transparent 15% 32%,
    #6a655d 32% 60%,
    transparent 60% 70%,
    #6a655d 70% 98%,
    transparent 98%
  );
}
.phone::after {
  right: -2.4%;
  top: 27%;
  height: 13%;
  background: #6a655d;
}
.phone .pscreen {
  position: absolute;
  inset: 1.72% 3.6%;
  overflow: hidden;
  border-radius: 14.65% / 6.73%;
  background: #f2e8d5;
  display: flex;
  flex-direction: column;
}
.phone.dark .pscreen {
  background: #121110;
}
.phone .sb {
  flex: none;
  height: 14cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4cqw 7.5cqw 0 9.5cqw;
  font:
    600 4.6cqw/1 -apple-system,
    'SF Pro Text',
    'Helvetica Neue',
    Arial,
    sans-serif;
  letter-spacing: -0.01em;
  color: #1a1714;
}
.phone.dark .sb {
  color: #f5f1e8;
}
.phone .sb svg {
  display: block;
  height: 3.4cqw;
  width: auto;
  fill: currentColor;
}
.phone .sb .icons {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
}
.phone .island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 31cqw;
  height: 9.2cqw;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone .pscreen img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  border-radius: 0;
  /* Show the full width of the screenshot, with a little extra side
     margin; the screen colour matches the app's, so the gap reads as
     the app's own padding. */
  box-sizing: border-box;
  padding: 0 3.5cqw 3cqw;
  object-fit: contain;
  object-position: top center;
  display: block;
}
.phone .home {
  position: absolute;
  bottom: 2.2cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 34cqw;
  height: 1.3cqw;
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.85);
  z-index: 2;
}
.phone.dark .home {
  background: rgba(245, 241, 232, 0.85);
}
.aud-phone {
  max-width: 260px;
}
.run-phone {
  justify-self: center;
  transform: rotate(-2deg);
}
@media (max-width: 860px) {
  .run-phone {
    display: block;
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .sheet .verdict {
    opacity: 1;
  }
  .pre {
    transform: none !important;
  }
  body::after {
    display: none;
  }
  .ring .fill {
    transition: none;
  }
}
