/* ==========================================================================
   Costcodle base: tokens, reset, typography, chrome, shared components
   ========================================================================== */

:root {
  --paper: #f4edde;
  --paper-2: #fffdf6;
  --paper-3: #eadfcb;
  --paper-4: #dfd1b8;
  --ink: #191512;
  --ink-2: #3a332c;
  --muted: #685e51;
  --line: #d8ccb6;
  --line-strong: #b9a98f;

  --red: #cf3222;
  --red-deep: #9c1f16;
  --red-text: #b3271b;
  --red-soft: #f8dcd7;
  --blue: #20518a;
  --blue-deep: #163a63;
  --blue-soft: #d7e3f2;
  --yellow: #ffc93c;
  --yellow-soft: #ffe9a8;
  --green: #1f9d6b;
  --green-soft: #d5f0e3;
  --green-text: #147a52;
  --orange: #e4702e;
  --ice: #6fa8dc;
  --stone: #8b8275;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --shadow-sm: 2px 2px 0 var(--ink);
  --shadow-md: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-soft: 0 18px 40px -22px rgba(25, 21, 18, 0.45);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;

  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #17130f;
  --paper-2: #201a14;
  --paper-3: #2a231b;
  --paper-4: #332a21;
  --ink: #f4edde;
  --ink-2: #ddd2bd;
  --muted: #a99d8a;
  --line: #3a322a;
  --line-strong: #554a3d;

  --red: #b83122;
  --red-deep: #d23b2b;
  --red-text: #ff8775;
  --red-soft: #3a1f1a;
  --blue: #7fb0e4;
  --blue-deep: #a8c9ee;
  --blue-soft: #1c2c3d;
  --yellow: #ffd24d;
  --yellow-soft: #3a3018;
  --green: #2aa876;
  --green-soft: #163327;
  --green-text: #57d8a4;
  --orange: #f0813f;
  --ice: #8ec3ea;

  --shadow-sm: 2px 2px 0 #000;
  --shadow-md: 4px 4px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --shadow-soft: 0 18px 40px -20px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ------------------------------------------------------------------ reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 82% -10%, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 42%),
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--red) 8%, transparent), transparent 36%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

[data-theme="dark"] body::after {
  mix-blend-mode: screen;
  opacity: 0.035;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

hr {
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 2rem 0;
}

/* --------------------------------------------------------------- utility */

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

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

.sr-only {
  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: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--paper);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);
}

.barcode {
  display: block;
  height: 30px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 2px,
    transparent 2px 5px,
    currentColor 5px 6px,
    transparent 6px 10px,
    currentColor 10px 13px,
    transparent 13px 16px,
    currentColor 16px 17px,
    transparent 17px 21px
  );
  color: var(--ink);
  opacity: 0.85;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}

.chip--cat {
  background: hsl(var(--cat-hue, 30) 70% 88%);
  color: hsl(var(--cat-hue, 30) 45% 22%);
  border-color: hsl(var(--cat-hue, 30) 40% 35%);
}

[data-theme="dark"] .chip--cat {
  background: hsl(var(--cat-hue, 30) 30% 22%);
  color: hsl(var(--cat-hue, 30) 60% 80%);
  border-color: hsl(var(--cat-hue, 30) 30% 45%);
}

.dot-rating {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.dot-rating__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dot-rating__dot.is-on {
  background: var(--red);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

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

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--red {
  background: var(--red);
  color: #fff9ed;
}

.btn--red:hover {
  background: var(--red-deep);
  color: #fff9ed;
}

.btn--blue {
  background: #20518a;
  color: #f4f8ff;
}

.btn--blue:hover {
  background: #173e6b;
  color: #f4f8ff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.88rem;
  border-width: 1.5px;
}

.btn--lg {
  padding: 17px 28px;
  font-size: 1.1rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.icon-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.icon-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  position: relative;
  z-index: 60;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff6e4;
  border-bottom: 2px solid var(--ink);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: max-content;
  padding-left: 22px;
  animation: ticker-scroll 46s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__sep {
  color: #fff6e4;
  font-size: 0.62rem;
}

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

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand__word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1;
}

.brand__word-accent {
  color: var(--blue);
}

[data-theme="dark"] .brand__word-accent {
  color: #8fc0f0;
}

.brand__tld {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-toggle {
  position: relative;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: inline-flex;
}

[data-theme="light"] .theme-toggle__moon,
[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

.nav-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(60px, 9vw, 120px);
  background: #191512;
  color: #f4edde;
  border-top: 2px solid #191512;
}

[data-theme="dark"] .site-footer {
  background: #0f0c09;
  border-top-color: #0f0c09;
}

.site-footer a {
  color: #f4edde;
  text-decoration: none;
}

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

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
  gap: clamp(26px, 5vw, 60px);
  padding-block: clamp(40px, 6vw, 72px) 28px;
}

.brand--footer {
  color: #f4edde;
}

.brand--footer .brand__word {
  font-size: 1.2rem;
}

.brand--footer .brand__word-accent {
  color: #8fc0f0;
}

.brand--footer .brand__tld {
  color: #a99f90;
}

.brand--footer .brand__mark {
  width: 32px;
  height: 32px;
}

.footer__blurb {
  margin-top: 16px;
  max-width: 34ch;
  color: #d6cdbd;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__stamp {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1.5px dashed rgba(244, 237, 222, 0.38);
  border-radius: 8px;
  transform: rotate(-1.5deg);
}

.footer__stamp-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--yellow);
}

.footer__stamp-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #c9bfae;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cdc3b2;
  margin-bottom: 14px;
}

.footer__list {
  display: grid;
  gap: 9px;
}

.footer__list a {
  font-size: 0.94rem;
  color: #ece3d2;
}

.footer__barcode {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid rgba(244, 237, 222, 0.16);
  border-bottom: 1px solid rgba(244, 237, 222, 0.16);
}

.barcode--wide {
  color: #8f8576;
  height: 34px;
  flex: 1;
}

.footer__barcode-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: #c9bfae;
  white-space: nowrap;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  padding-block: 24px 34px;
}

.footer__disclaimer,
.footer__copy {
  max-width: 62ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #bdb3a2;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #bdb3a2;
}

/* ------------------------------------------------------------------ toast */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toast-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast--out {
  animation: toast-out 0.2s ease forwards;
}

.toast .icon {
  width: 17px;
  height: 17px;
  color: var(--green);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* ---------------------------------------------------------------- dialogs */

.dialog {
  width: min(94vw, 560px);
  max-height: min(88svh, 760px);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  backdrop-filter: blur(4px);
}

.dialog__inner {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
}

.dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.dialog__title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 10px 0 20px;
}

.dialog__subtitle {
  margin: 24px 0 12px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dialog__note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------------- FAQ */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item[open] {
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-item__plus {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.faq-item__plus::before,
.faq-item__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-item__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__a {
  padding: 0 18px 18px;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.62;
}

/* ------------------------------------------------------------------ prose */

.prose {
  max-width: 66ch;
}

.prose p {
  margin-bottom: 1.1em;
  line-height: 1.7;
}

.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.22rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 0;
  display: grid;
  gap: 0.5em;
}

.prose ul li {
  position: relative;
  padding-left: 1.4em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: prose-list;
}

.prose ol li {
  position: relative;
  padding-left: 2em;
  counter-increment: prose-list;
}

.prose ol li::before {
  content: counter(prose-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.16em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--red);
}

.prose a {
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--blue) 50%, transparent);
}

.prose strong {
  color: var(--ink);
}

.prose--narrow {
  max-width: 74ch;
}

.prose-section {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.prose-section__title {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

/* ------------------------------------------------------------- theme swap */

[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker__track {
    animation: none;
  }
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 960px) {
  .site-header__inner {
    gap: 14px;
    min-height: 66px;
  }

  .brand__word {
    font-size: 1.16rem;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-play {
    display: none;
  }

  .mobile-nav {
    display: grid;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    border-top: 1.5px dashed var(--line);
    background: var(--paper);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav__link {
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav .btn {
    margin-top: 12px;
  }

  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .footer__copy {
    white-space: normal;
  }

  .dialog__inner {
    padding: 22px 18px;
  }

  .toast-stack {
    width: calc(100vw - 28px);
  }
}

/* --------------------------------------------------------------- utilities */

[hidden] {
  display: none !important;
}

/* page-load choreography */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__copy > * {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__copy > :nth-child(1) { animation-delay: 0.02s; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.14s; }
.hero__copy > :nth-child(4) { animation-delay: 0.2s; }
.hero__copy > :nth-child(5) { animation-delay: 0.26s; }
.hero__copy > :nth-child(6) { animation-delay: 0.32s; }

.hero__art {
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.play-grid {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.page-head__grid {
  animation: rise-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.article-head {
  animation: rise-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .hero__art,
  .play-grid,
  .page-head__grid,
  .article-head {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .header-play {
    display: none;
  }
}
