:root {
  color-scheme: light;
  --font-main: "Google Sans", "Google Sans Text", "Product Sans", Arial, sans-serif;
  --paper: #dde0e1;
  --ink: #111214;
  --muted: #70757c;
  --line: rgba(20, 22, 24, 0.16);
  --soft-line: rgba(255, 255, 255, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.app-body {
  min-height: 520vh;
  background: var(--paper);
  overflow-x: hidden;
}

body.card-page-body {
  min-height: 100vh;
  color: var(--card-ink);
  background: var(--card-bg);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

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

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.72), transparent 28rem),
    linear-gradient(180deg, #e4e7e8 0%, #d4d7d8 55%, #c4c7c8 100%);
  perspective: 1200px;
  perspective-origin: 50% 43%;
  isolation: isolate;
}

.stage.is-expanded {
  perspective: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(20, 22, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 24, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 76%, transparent 100%);
  z-index: 0;
}

.intro {
  position: absolute;
  top: 50%;
  left: clamp(18px, 5vw, 70px);
  width: min(21rem, calc(100vw - 36px));
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.intro p {
  margin: 0;
  color: rgba(17, 18, 20, 0.58);
  font-size: clamp(1.35rem, 2.025vw, 2.025rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro h1 {
  max-width: 12em;
  margin: 0 0 0.75rem;
  font-size: clamp(3.15rem, 6vw, 5.55rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.deck {
  position: fixed;
  inset: 0;
  z-index: 1;
  transform-style: flat;
}

.stage.is-opening-card .deck,
.stage.is-expanded .deck,
.stage.is-closing .deck {
  z-index: 40;
}

.deck-controls {
  position: fixed;
  top: 50%;
  right: clamp(16px, 7vw, 118px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 3.25rem;
  height: min(54vh, 31rem);
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}

.deck-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem;
  aspect-ratio: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease;
}

.deck-button:hover {
  transform: scale(1.08);
}

.deck-button span {
  width: 0.86rem;
  aspect-ratio: 1;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(0.18rem) rotate(45deg);
}

.deck-button-down span {
  transform: translateY(-0.18rem) rotate(225deg);
}

.arc-card {
  --card-bg: #f6f5f1;
  --card-ink: #111214;
  --accent: #ff432e;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 57vw, 720px);
  height: clamp(185px, 36vw, 420px);
  z-index: var(--z, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  transition:
    top 500ms cubic-bezier(0.19, 1, 0.22, 1),
    left 500ms cubic-bezier(0.19, 1, 0.22, 1),
    width 500ms cubic-bezier(0.19, 1, 0.22, 1),
    height 500ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 420ms ease;
  will-change: transform, opacity;
}

.card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--card-ink);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  box-shadow:
    0 34px 72px rgba(20, 23, 25, 0.26),
    0 10px 22px rgba(20, 23, 25, 0.18);
  transition:
    transform 320ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 320ms ease;
}

.card-frame {
  flex: 0 0 auto;
  display: block;
  width: var(--page-preview-width, 100%);
  height: calc(100% / var(--page-preview-scale, 1));
  max-width: none;
  max-height: none;
  border: 0;
  background: var(--card-bg);
  pointer-events: none;
  transform: scale(var(--page-preview-scale, 1));
  transform-origin: top left;
}

.card-hitbox {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 5;
}

.arc-card:hover .card-shell {
  transform: scale(1.028);
  box-shadow:
    0 42px 92px rgba(20, 23, 25, 0.32),
    0 14px 26px rgba(20, 23, 25, 0.2);
}

.card-topline {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: clamp(14px, 2vw, 24px);
  border-bottom: 1px solid currentColor;
}

.card-index,
.card-kicker,
.detail-label,
.metric-label,
.micro {
  font-size: clamp(0.56rem, 0.95vw, 0.72rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.74;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  aspect-ratio: 1;
  color: var(--card-bg);
  background: var(--card-ink);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.card-hero {
  display: grid;
  grid-template-columns: 1fr minmax(7rem, 32%);
  gap: clamp(12px, 2vw, 26px);
  min-height: 0;
  padding: clamp(14px, 2.2vw, 28px);
}

.card-preview-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.mini-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(7rem, 0.72fr);
  gap: clamp(12px, 2.8vw, 34px);
  align-items: end;
  flex: 1;
  min-height: 0;
  padding: clamp(13px, 2.2vw, 26px);
  border-bottom: 1px solid currentColor;
}

.mini-masthead .section-label {
  margin-bottom: clamp(0.45rem, 1.2vw, 0.9rem);
}

.mini-title {
  max-width: 8em;
  font-size: clamp(2rem, 6.1vw, 6.2rem);
}

.mini-visual {
  align-self: stretch;
  min-height: clamp(7rem, 17vw, 15.5rem);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: clamp(3.6rem, 7vw, 5.2rem);
}

.mini-metric {
  min-width: 0;
  padding: clamp(8px, 1.35vw, 15px);
  border-right: 1px solid currentColor;
}

.mini-metric:last-child {
  border-right: 0;
}

.mini-metric strong {
  display: block;
  margin-top: 0.3rem;
  overflow: hidden;
  font-size: clamp(1rem, 2.35vw, 2.25rem);
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title {
  margin: 0;
  font-size: clamp(2.4rem, 7.8vw, 7.6rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-title span {
  display: block;
}

.preview-copy {
  align-self: end;
  max-width: 20rem;
  margin: 0;
  font-size: clamp(0.92rem, 1.55vw, 1.24rem);
  line-height: 1.35;
  opacity: 0.8;
}

.preview-panel {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.preview-panel::before,
.preview-panel::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 4px;
}

.visual-bars::before {
  background:
    linear-gradient(90deg, var(--accent) 0 34%, transparent 34% 44%, currentColor 44% 48%, transparent 48%),
    repeating-linear-gradient(180deg, transparent 0 18%, currentColor 18% 19%, transparent 19% 31%);
  opacity: 0.9;
}

.visual-frame::before {
  inset: 14% 18%;
  border: 1px solid currentColor;
  background:
    linear-gradient(90deg, transparent 0 76%, var(--accent) 76% 79%, transparent 79%),
    linear-gradient(180deg, transparent 0 72%, currentColor 72% 73%, transparent 73%);
}

.visual-frame::after {
  inset: auto 9% 8% auto;
  width: 36%;
  height: 38%;
  background: var(--accent);
}

.visual-grid::before {
  inset: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) 12% 68% / 42% 16% no-repeat,
    linear-gradient(currentColor, currentColor) 64% 28% / 24% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 64% 43% / 30% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 64% 58% / 20% 2px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 18%, rgba(0, 0, 0, 0.14) 18% 18.5%, transparent 18.5% 25%);
}

.visual-radar::before {
  inset: 18%;
  border-radius: 50%;
  border: 1px solid currentColor;
  background:
    radial-gradient(circle, var(--accent) 0 12%, transparent 13%),
    conic-gradient(from 20deg, rgba(0, 0, 0, 0.18), transparent 22%, rgba(0, 0, 0, 0.22), transparent 58%);
}

.visual-radar::after {
  inset: 8%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.visual-stack::before {
  inset: 12% 16%;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 76% 22% no-repeat,
    linear-gradient(currentColor, currentColor) 0 42% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 63% / 82% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 84% / 55% 2px no-repeat;
}

.visual-photo::before {
  inset: 0;
  background:
    radial-gradient(circle at 58% 35%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    linear-gradient(120deg, transparent 0 42%, var(--accent) 42% 52%, transparent 52%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.26));
}

.visual-system::before {
  inset: 12%;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 34% 34% no-repeat,
    linear-gradient(currentColor, currentColor) 54% 0 / 46% 9% no-repeat,
    linear-gradient(currentColor, currentColor) 54% 22% / 34% 9% no-repeat,
    linear-gradient(currentColor, currentColor) 0 62% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 82% / 72% 2px no-repeat;
}

.visual-map::before {
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, var(--accent) 0 6%, transparent 6.5%),
    radial-gradient(circle at 68% 44%, currentColor 0 4%, transparent 4.5%),
    radial-gradient(circle at 48% 70%, currentColor 0 4%, transparent 4.5%),
    linear-gradient(145deg, transparent 0 24%, rgba(0, 0, 0, 0.12) 24% 25%, transparent 25% 52%, rgba(0, 0, 0, 0.12) 52% 53%, transparent 53%);
}

.visual-type::before {
  inset: 12%;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 76% / 92% 13% no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 72% 12% no-repeat,
    linear-gradient(currentColor, currentColor) 0 22% / 88% 12% no-repeat,
    linear-gradient(currentColor, currentColor) 0 44% / 52% 12% no-repeat;
}

.visual-launch::before {
  inset: 8%;
  background:
    linear-gradient(42deg, transparent 0 44%, var(--accent) 44% 56%, transparent 56%),
    linear-gradient(currentColor, currentColor) 0 76% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 22% / 66% 2px no-repeat;
}

.card-topline,
.card-hero,
.card-preview-page {
  display: none;
}

.expanded-scroll {
  display: block;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-width: none;
}

.close-card {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  display: none;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  color: var(--card-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 6;
}

.close-card::before,
.close-card::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.close-card::before {
  transform: rotate(45deg);
}

.close-card::after {
  transform: rotate(-45deg);
}

.stage.is-expanded .deck-controls,
.stage.is-opening .deck-controls,
.stage.is-opening-card .deck-controls,
.stage.is-closing .deck-controls {
  pointer-events: none;
}

.stage.is-expanded .deck-button,
.stage.is-opening .deck-button,
.stage.is-opening-card .deck-button,
.stage.is-closing .deck-button {
  pointer-events: none;
}

.arc-card.is-promoted {
  position: absolute;
  transform: var(--card-motion-transform) !important;
  z-index: var(--card-promoted-z, 3000);
  transition:
    top var(--card-frame-duration, 460ms) cubic-bezier(0.19, 1, 0.22, 1),
    left var(--card-frame-duration, 460ms) cubic-bezier(0.19, 1, 0.22, 1),
    width var(--card-frame-duration, 460ms) cubic-bezier(0.19, 1, 0.22, 1),
    height var(--card-frame-duration, 460ms) cubic-bezier(0.19, 1, 0.22, 1),
    transform var(--card-frame-duration, 460ms) cubic-bezier(0.19, 1, 0.22, 1),
    opacity 300ms ease,
    filter 300ms ease;
}

.arc-card.is-promoted.is-raised {
  top: calc(50% - var(--card-raise-distance, 180px));
  transform: var(--card-motion-transform) !important;
}

.arc-card.is-active {
  cursor: default;
  z-index: 3000;
}

.arc-card.is-waapi {
  transition: none !important;
}

.arc-card.is-active .card-shell {
  transform: none;
  box-shadow:
    0 46px 120px rgba(20, 23, 25, 0.38),
    0 18px 36px rgba(20, 23, 25, 0.22);
}

.arc-card.is-active:hover .card-shell {
  transform: none;
}

.arc-card.is-fullscreen-content .close-card {
  display: grid;
}

.arc-card.is-fullscreen-content .card-frame {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  transform: none;
}

.arc-card.is-fullscreen-content .card-hitbox {
  display: none;
}

.arc-card.is-fullscreen-content .expanded-scroll {
  overflow-y: auto;
  pointer-events: auto;
  scrollbar-width: none;
}

.arc-card.is-fullscreen-content .expanded-scroll::-webkit-scrollbar {
  display: none;
}

.expanded-page {
  width: var(--page-preview-width, 100%);
  min-height: 100%;
  padding: clamp(22px, 4vw, 64px);
  transform: scale(var(--page-preview-scale, 1));
  transform-origin: top left;
}

.arc-card.is-fullscreen-content .expanded-page {
  width: auto;
  transform: none;
}

.expanded-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: end;
  min-height: auto;
  padding-bottom: clamp(20px, 4vw, 48px);
  border-bottom: 1px solid currentColor;
}

.expanded-title {
  max-width: 9em;
  margin: 0;
  font-size: clamp(3.2rem, 12vw, 11rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.expanded-lede {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.32;
}

.expanded-visual {
  min-height: clamp(20rem, 44vw, 36rem);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 7px;
}

.card-page-body .expanded-page {
  padding: clamp(18px, 3.2vw, 48px);
}

.dense-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 clamp(14px, 2vw, 24px);
  padding: 0;
  list-style: none;
}

.dense-kicker li,
.tag-row span {
  padding: 0.3rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: clamp(0.66rem, 0.9vw, 0.82rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hero-media,
.figure-wide img,
.gallery-grid img,
.mosaic-gallery img,
.image-pair img,
.side-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  min-height: clamp(14rem, 30vw, 27rem);
  border-radius: 7px;
  overflow: hidden;
}

.dense-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(22px, 4vw, 48px) 0;
  border-bottom: 1px solid currentColor;
}

.article-columns {
  column-count: 2;
  column-gap: clamp(18px, 3vw, 42px);
}

.article-columns p,
.article-stack p,
.compact-list li,
.timeline li,
.note-grid p,
.caption,
.pullquote,
.data-table,
.rank-list li {
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  line-height: 1.42;
}

.article-columns p,
.article-stack p {
  margin: 0 0 1rem;
}

.pullquote {
  margin: 0;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: clamp(1.25rem, 2vw, 2.1rem);
  font-weight: 850;
  line-height: 1.12;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr;
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(22px, 4vw, 48px) 0;
  border-bottom: 1px solid currentColor;
}

.gallery-grid figure,
.mosaic-gallery figure,
.figure-wide,
.image-pair figure,
.side-image {
  min-height: clamp(11rem, 20vw, 20rem);
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.caption {
  margin: 0.65rem 0 0;
  opacity: 0.78;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid currentColor;
}

.data-table th,
.data-table td {
  padding: clamp(10px, 1.4vw, 18px);
  border-bottom: 1px solid currentColor;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.compact-list,
.timeline,
.rank-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li,
.timeline li,
.rank-list li {
  padding: clamp(12px, 1.8vw, 20px);
  border: 1px solid currentColor;
  border-radius: 7px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(22px, 4vw, 48px) 0;
  border-bottom: 1px solid currentColor;
}

.note-grid article {
  min-height: 11rem;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid currentColor;
  border-radius: 7px;
}

.note-grid h3,
.article-stack h3,
.dense-band h3,
.mosaic-gallery h3,
.split-header h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.2vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.image-pair,
.split-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 34px);
  padding: clamp(22px, 4vw, 48px) 0;
  border-bottom: 1px solid currentColor;
}

.mosaic-gallery {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.8fr;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(22px, 4vw, 48px) 0;
  border-bottom: 1px solid currentColor;
}

.mosaic-gallery .tall {
  min-height: clamp(20rem, 38vw, 38rem);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid currentColor;
}

.metric {
  min-height: 9rem;
  padding: clamp(18px, 3vw, 34px);
  border-right: 1px solid currentColor;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  line-height: 0.9;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 82px);
  padding: clamp(34px, 7vw, 88px) 0;
}

.section-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story h3,
.deliverables h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 4vw, 4.3rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.story p,
.deliverables li {
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.48;
}

.story p {
  max-width: 54rem;
  margin: 0 0 1rem;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.deliverables li {
  min-height: 10rem;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 7px;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 44px) 0 0;
  border-top: 1px solid currentColor;
}

.cta-strip p {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  color: var(--card-bg);
  background: var(--card-ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
}

.is-dark {
  --card-bg: #111214;
  --card-ink: #f3f0e9;
  border-color: rgba(255, 255, 255, 0.18);
}

.is-red {
  --card-bg: #ff432e;
  --card-ink: #f8f0e9;
  --accent: #111214;
}

.is-white {
  --card-bg: #f8f7f2;
  --card-ink: #141518;
  --accent: #ff432e;
}

.is-ice {
  --card-bg: #dfe9e9;
  --card-ink: #13191b;
  --accent: #ef4d37;
}

.is-lime {
  --card-bg: #d9f06c;
  --card-ink: #151810;
  --accent: #111214;
}

.is-blue {
  --card-bg: #3956ff;
  --card-ink: #f7f5ed;
  --accent: #d9f06c;
}

.is-silver {
  --card-bg: #c9cbce;
  --card-ink: #111214;
  --accent: #ff432e;
}

.is-cream {
  --card-bg: #ece7d5;
  --card-ink: #131313;
  --accent: #3956ff;
}

.is-green {
  --card-bg: #0d4d3f;
  --card-ink: #f7f3e8;
  --accent: #ff5c45;
}

.is-yellow {
  --card-bg: #ffd84f;
  --card-ink: #15120c;
  --accent: #ff432e;
}

@media (max-width: 820px) {
  .intro {
    top: clamp(18px, 4vw, 48px);
    width: min(14rem, calc(100vw - 36px));
    transform: none;
  }

  .intro h1 {
    font-size: clamp(1.15rem, 5vw, 2rem);
  }

  .intro p {
    font-size: 0.8rem;
  }

  .deck-controls {
    right: 0.75rem;
    width: 2.7rem;
    height: min(48vh, 24rem);
  }

  .deck-button {
    width: 2.7rem;
  }

  .arc-card {
    width: min(88vw, 430px);
    height: min(58vw, 300px);
  }

  .card-topline {
    grid-template-columns: 3.5rem 1fr auto;
    gap: 0.5rem;
  }

  .card-hero,
  .mini-masthead {
    grid-template-columns: 1fr;
  }

  .preview-panel,
  .mini-visual {
    display: none;
  }

  .preview-copy {
    max-width: none;
  }

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

  .mini-metric:nth-child(2n) {
    border-right: 0;
  }

  .expanded-masthead,
  .content-grid,
  .dense-band,
  .gallery-grid,
  .mosaic-gallery,
  .image-pair,
  .split-header,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .article-columns {
    column-count: 1;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
  }

  .mosaic-gallery .tall,
  .gallery-grid figure,
  .mosaic-gallery figure,
  .figure-wide,
  .image-pair figure,
  .side-image,
  .hero-media {
    min-height: 14rem;
  }

  .expanded-masthead {
    min-height: auto;
    padding-top: 4rem;
  }

  .metrics-row,
  .deliverables {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 7rem;
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }

  .metric:last-child {
    border-bottom: 0;
  }
}
