/*
 * GCal Add Event: landing and privacy pages.
 * A dark "label" style: near-black ground, bone ink, and two accents taken from the hero photo (amber from the
 * events page, sky from the extension's card). Accents stay in type, dots, and rules, never filled areas.
 * Plus Jakarta Sans for headings and text (the same font as the extension), Geist Mono for small numbers. Fonts are served
 * from this site.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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 {
  color-scheme: dark;
  --ground: #0a0c0e;
  --ground-2: #101317;
  --ink: #ede7dc;
  --ink-2: #9ea5a8;
  --muted: #858c91;
  --amber: #e8913c;
  --sky: #38bdf8;
  --hairline: rgba(237, 231, 220, 0.13);
  --hairline-strong: rgba(237, 231, 220, 0.26);
  --focus: #7dd3fc;
  --display:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-height: 58px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* A link to a section (privacy.html#usage-count) stops below the fixed header, not under it. */
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--ink);
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 0 auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 60;
  padding: 8px 12px;
  background: var(--ground-2);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Small labels: uppercase at wide tracking. */
.label,
.corner,
.roster-label,
.dates thead th,
.fine,
.strip,
.deck-hint {
  font: 500 11px/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
h2 {
  font: 700 clamp(36px, 5.4vw, 76px) / 0.98 var(--display);
  letter-spacing: -0.03em;
}
.lede {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 17px;
}
.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--ink);
  font: 500 11px/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms,
    background 160ms,
    color 160ms;
}
.pill:hover {
  border-color: var(--ink);
}
.pill.solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.pill.solid:hover {
  background: transparent;
  color: var(--ink);
}
.pill.large {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 12px;
}

/* ---------- Navigation ---------- */
/* Inside the extension (extension-nav.js), the extension's own bar replaces the website header. */
html.in-extension {
  --nav-height: 0px;
  scroll-padding-top: calc(var(--app-nav-height, 48px) + 24px);
}
.in-extension .nav {
  display: none;
}
.in-extension .app-nav,
.in-extension .app-palette {
  --app-nav-ink: var(--ink);
  --app-nav-muted: var(--ink-2);
  --app-nav-surface: var(--ground);
  --app-nav-hover: rgba(237, 231, 220, 0.08);
  --app-nav-line: var(--hairline);
  --app-nav-font: var(--text);
}
/* The AI corner (src/ui/assistant-widget.css) reads the extension's color names; here --text is the font. */
.in-extension #ai-corner {
  --text: var(--ink);
  --surface: var(--ground-2);
}
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 0 var(--gutter);
}
.wordmark {
  font: 700 15px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.period {
  color: var(--amber);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.pill) {
  font: 500 10.5px/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 160ms;
}
.nav-links a:not(.pill):hover {
  color: var(--amber);
}

/* ---------- Portal hero ----------
   --p goes from 0 (closed) to 1 (open). Without JavaScript or with reduced motion it stays 1:
   the finished, open hero. site.js sets it from the scroll position, so it plays both ways. */
.portal {
  --p: 1;
  position: relative;
  height: 100vh;
  height: 100svh;
}
.motion .portal {
  height: 250vh;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ground);
}
.portal-image {
  position: absolute;
  inset: var(--nav-height) 0 0;
  width: 100%;
  height: calc(100% - var(--nav-height));
  object-fit: cover;
  object-position: 70% 30%;
  transform: scale(calc(1.18 - 0.18 * var(--p)));
  will-change: transform;
}
.duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--amber), var(--sky));
  mix-blend-mode: overlay;
  opacity: calc(0.22 * var(--p));
}
.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 14, 0.9), transparent 26%, transparent 74%, rgba(10, 12, 14, 0.9)),
    radial-gradient(ellipse 75% 70% at 50% 50%, transparent 30%, rgba(10, 12, 14, 0.85) 100%);
}
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: var(--ground-2);
  will-change: transform;
}
.door-left {
  left: 0;
  border-right: 1px solid var(--hairline);
  transform: translateX(calc(-112% * var(--p)));
}
.door-right {
  right: 0;
  border-left: 1px solid var(--hairline);
  transform: translateX(calc(112% * var(--p)));
}
.spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  z-index: 2;
}
.spark-amber {
  background: var(--amber);
  box-shadow: 0 0 18px 4px rgba(232, 145, 60, 0.55);
  transform: translate(calc(-42vw * var(--p) - 14px), calc(-38vh * var(--p) + 70px));
}
.spark-sky {
  background: var(--sky);
  box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.55);
  transform: translate(calc(42vw * var(--p) + 14px), calc(38vh * var(--p) + 70px));
}
/* The title grows while its tracking tightens and its halves travel apart. */
.portal-title {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  margin: 0;
  font: 800 clamp(20px, 4.8vw, 96px) / 1 var(--display);
  letter-spacing: calc(0.04em - 0.08em * var(--p));
  white-space: nowrap;
  pointer-events: none;
  transform: scale(calc(1 + 0.2 * var(--p)));
}
.half {
  display: inline-block;
  will-change: transform;
}
.half-left {
  transform: translateX(calc(var(--travel-left, -14vw) * var(--p)));
}
.half-right {
  transform: translateX(calc(var(--travel-right, 14vw) * var(--p)));
}
.half-right::after {
  content: ".";
  color: var(--amber);
}
.portal-tagline {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + clamp(40px, 6vw, 96px));
  z-index: 3;
  text-align: center;
  color: var(--ink-2);
  font: 500 clamp(12px, 1.1vw, 14px) / 1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: max(0, 1 - 3 * var(--p));
}
.portal-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(64px, 12vh, 120px);
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translate(-50%, calc(16px * (1 - var(--p))));
  opacity: clamp(0, (var(--p) - 0.72) * 4, 1);
}
.motion .portal-cta {
  pointer-events: none;
}
.motion .portal.open .portal-cta {
  pointer-events: auto;
}
.corner {
  position: absolute;
  z-index: 3;
  margin: 0;
  opacity: clamp(0, 1 - (var(--p) - 0.45) * 3, 1);
}
.corner-tl {
  top: calc(var(--nav-height) + 22px);
  left: var(--gutter);
}
.corner-tr {
  top: calc(var(--nav-height) + 22px);
  right: var(--gutter);
}
.corner-bl {
  bottom: 24px;
  left: var(--gutter);
}
.corner-br {
  bottom: 24px;
  right: var(--gutter);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: max(0, 1 - 3 * var(--p));
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--amber);
}

/* ---------- Statement ---------- */
.statement {
  --q: 0.5;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.statement-inner {
  position: relative;
  display: grid;
  gap: 32px;
}
.statement-text {
  position: relative;
  z-index: 1;
  max-width: 22ch;
  font: 600 clamp(24px, 3.6vw, 52px) / 1.12 var(--display);
  letter-spacing: -0.02em;
}
.statement-text em {
  color: var(--amber);
  font-style: normal;
}
.numeral {
  position: absolute;
  right: 0;
  bottom: -0.2em;
  color: transparent;
  -webkit-text-stroke: 1px var(--hairline-strong);
  font: 800 clamp(140px, 24vw, 340px) / 0.8 var(--display);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.disc {
  position: absolute;
  top: 50%;
  right: -14vw;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.32;
  transform: translateY(calc(-50% + (0.5 - var(--q)) * 180px)) rotate(calc(var(--q) * 140deg));
  pointer-events: none;
}

/* ---------- Ways in (deck) ---------- */
.ways {
  padding: 140px 0;
  border-top: 1px solid var(--hairline);
  overflow-x: clip; /* thrown cards fly out past the deck */
}
.ways-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ways-copy {
  display: grid;
  gap: 26px;
  align-content: start;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.deck-area {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.deck {
  position: relative;
  /* Room on the right and top for the cards stacked behind. */
  width: min(100% - 40px, 500px);
  margin-top: 36px;
  aspect-ratio: 1;
  touch-action: pan-y;
  border-radius: 14px;
}
.sleeve {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  background: var(--ground-2);
  /* The deck cards are the only things on the page with a drop shadow. */
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85);
  user-select: none;
  transform-origin: 50% 80%;
}
.sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.sleeve figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--hairline);
  background: var(--ground-2);
}
.sleeve-no {
  grid-row: span 2;
  color: var(--amber);
  font: 500 12px/1.6 var(--mono);
}
.sleeve strong {
  font: 700 19px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.sleeve figcaption span:last-child {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
/* Without JavaScript the sleeves sit in a simple grid instead of a stack. */
.deck:not(.ready) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  aspect-ratio: auto;
}
.deck:not(.ready) .sleeve {
  position: relative;
  aspect-ratio: 1;
}
.deck.ready .sleeve {
  cursor: grab;
}
.deck.ready .sleeve.dragging {
  cursor: grabbing;
}
.deck-hint {
  margin: 4px 0 0;
}
.deck:not(.ready) ~ .deck-hint {
  display: none;
}
.deck-dots {
  display: flex;
  gap: 4px;
}
.deck-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.deck-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hairline-strong);
  transition:
    background 160ms,
    transform 160ms;
}
.deck-dots button[aria-current="true"]::before {
  background: var(--amber);
  transform: scale(1.35);
}

/* ---------- Roster ---------- */
.roster {
  padding: 140px 0;
  border-top: 1px solid var(--hairline);
}
.roster-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.roster-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1.4fr) 120px;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.roster-label {
  color: var(--amber);
}
.roster-label.sky {
  color: var(--sky);
}
.roster-name {
  font: 700 clamp(24px, 2.6vw, 36px) / 1.05 var(--display);
  letter-spacing: -0.02em;
  transition: color 200ms;
}
.roster-list li:hover .roster-name {
  color: var(--amber);
}
.roster-note {
  color: var(--ink-2);
  font-size: 15px;
}
.roster-count {
  color: var(--ink-2);
  font: 500 12px/1.4 var(--mono);
  text-align: right;
  white-space: nowrap;
}

/* ---------- What it reads (table) ---------- */
.reads {
  padding: 140px 0;
  border-top: 1px solid var(--hairline);
}
.dates {
  width: 100%;
  border-collapse: collapse;
}
.dates thead th {
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--hairline-strong);
  text-align: left;
  font-weight: 500;
}
.dates thead th:last-child {
  text-align: right;
  padding-right: 0;
}
.dates tbody th,
.dates td {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: baseline;
}
.dates tbody th {
  width: 38%;
  font: 700 clamp(20px, 2.2vw, 30px) / 1.15 var(--display);
  letter-spacing: -0.015em;
}
.dates td {
  color: var(--ink-2);
  font-size: 15.5px;
}
.dates td:last-child {
  padding-right: 0;
  color: var(--muted);
  font: 500 11px/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

/* ---------- Questions ---------- */
.questions {
  padding: 140px 0;
  border-top: 1px solid var(--hairline);
}
.questions-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq {
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font: 600 clamp(17px, 1.6vw, 21px) / 1.3 var(--display);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--amber);
  font: 400 22px/1 var(--mono);
  transition: transform 200ms;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
}
.faq a {
  color: var(--sky);
}

/* ---------- Close ---------- */
.close {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 48px;
  align-items: end;
}
.close-grid > div:first-child {
  display: grid;
  gap: 24px;
}
.fine {
  color: var(--ink-2);
}
.steps {
  max-width: 560px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--hairline);
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-2);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--amber);
  font: 500 12px/1.9 var(--mono);
}
.steps strong {
  color: var(--ink);
  font-weight: 550;
}
.close-buttons {
  display: grid;
  gap: 10px;
}
.strip {
  margin-top: 120px;
  border-top: 1px solid var(--hairline);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.strip a {
  text-decoration: none;
  color: var(--ink-2);
}
.strip a:hover {
  color: var(--amber);
}
.giant-text {
  display: inline-block;
}
/* The wordmark runs full width and is cropped by the bottom of the page. */
.giant {
  margin: 28px 0 0;
  padding: 0 var(--gutter);
  font: 800 6.6vw/0.82 var(--display);
  letter-spacing: -0.045em;
  white-space: nowrap;
  transform: translateY(0.16em);
  user-select: none;
}

/* ---------- Privacy page ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 72px) 0 120px;
}
/* The same page title as the extension's pages. */
.doc h1 {
  font: 800 clamp(44px, 10vw, 88px) / 1.05 var(--display);
  letter-spacing: 0;
}
.doc .updated {
  margin-top: 22px;
  font: 500 11px/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc .summary {
  display: grid;
  gap: 10px;
  margin: 40px 0 8px;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--amber);
  color: var(--ink);
}
.doc h2 {
  margin: 56px 0 14px;
  font: 700 clamp(24px, 2.6vw, 32px) / 1.1 var(--display);
  letter-spacing: -0.02em;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc strong {
  color: var(--ink);
}
.doc a {
  color: var(--sky);
}
.doc ul {
  padding-left: 20px;
}
.doc li {
  margin: 6px 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
.doc th,
.doc td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.doc th {
  font: 500 11px/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--hairline-strong);
}
.doc code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ground-2);
}
.footer {
  border-top: 1px solid var(--hairline);
}
.footer .strip-inner {
  font: 500 11px/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer a:hover {
  color: var(--amber);
}

/* ---------- Reveals: once, and only when motion is welcome (see site.js) ---------- */
.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.motion .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ways-grid,
  .questions-grid,
  .close-grid {
    grid-template-columns: 1fr;
  }
  .close-buttons {
    grid-auto-flow: column;
    justify-content: start;
  }
  .roster-list li {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }
  .roster-note {
    grid-column: 2 / -1;
  }
}
@media (max-width: 720px) {
  .nav-links a:not(.pill) {
    display: none;
  }
  .corner-tr,
  .corner-br {
    display: none;
  }
  .portal-cta {
    flex-direction: column;
    width: max-content;
  }
  /* On a phone the halves stack, then slide to opposite sides. */
  .portal-title {
    flex-direction: column;
    gap: 0.08em;
    font-size: 10vw;
  }
  .portal-tagline {
    top: calc(50% + 22vw);
  }
  .ways,
  .roster,
  .reads,
  .questions {
    padding: 96px 0;
  }
  .close {
    padding-top: 96px;
  }
  .roster-list li {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  .roster-label,
  .roster-note {
    grid-column: 1 / -1;
  }
  /* The table becomes a two-column grid per row. */
  .dates thead {
    display: none;
  }
  .dates,
  .dates tbody {
    display: block;
  }
  .dates tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .dates tbody th,
  .dates td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .dates tbody th {
    grid-column: 1 / -1;
  }
  .disc {
    right: -30vw;
    width: 70vw;
  }
  .close-buttons {
    grid-auto-flow: row;
    justify-content: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation: none !important;
  }
}
