/* ============================================================
   PDBench — Stylesheet
   Aesthetic: clean, minimal, sans-serif throughout.
   ============================================================ */

/* ---------- DESIGN TOKENS (Safe AI Lab palette) ---------- */
:root {
  /* Brand — Safe AI Lab (deep navy + bright blue) */
  --ink:           #0a1f5c;     /* deep navy — main text & dark elements */
  --ink-soft:      #1a2d6e;     /* slightly softer navy */
  --ink-mute:      #5a6790;     /* muted navy-gray for secondary text */
  --paper:         #ffffff;     /* clean white */
  --paper-2:       #f4f6fb;     /* very light blue-tinted gray */
  --rule:          #0a1f5c10;
  --rule-strong:   #0a1f5c22;

  /* Accent — bright blue from logo */
  --accent:        #3080f0;     /* logo bright blue */
  --accent-soft:   #3080f014;
  --accent-ink:    #ffffff;

  /* Highlights for medal rows */
  --gold:          #c89b3c;
  --silver:        #9ea4ad;
  --bronze:        #a26a3f;

  /* Type — clean sans-serif throughout */
  --font-display:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:     "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --max-w:         1180px;
  --gutter:        clamp(20px, 4vw, 56px);
  --radius:        4px;
}

/* ---------- RESET ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute !important; clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- PAPER TEXTURE (very subtle) ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, #00000004 0, transparent 60%),
    radial-gradient(circle at 80% 70%, #00000003 0, transparent 50%);
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--rule-strong);
  display: inline-block;
}
.brand-text {
  color: var(--ink);
}
/* keep legacy class as no-op for safety */
.brand-mark {
  font-size: 24px;
  color: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper) !important;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hero-content {
  max-width: 72ch;
  margin: 0 auto;
}
.hero-content .hero-lede { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.hero-venue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0.95;
  transition: opacity .15s ease, transform .15s ease;
}
.hero-venue:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.hero-venue img {
  height: 38px;
  width: auto;
  display: block;
}
.hero-venue-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--ink);
}
.hero-accent {
  font-weight: 600;
  color: #1e5fcc;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 16px;
}
.hero-lede:last-of-type { margin-bottom: 32px; }
.hero-lede em { font-style: italic; color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-authors {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
  letter-spacing: 0.01em;
}
.hero-authors sup { font-style: normal; font-size: 10px; vertical-align: super; }
.hero-author-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-author-note sup { font-size: 10px; vertical-align: super; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Stats card */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: stretch;
}
.stat {
  padding: 22px 20px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-scanline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: .35;
}

/* ---------- FIGURE TEASER (between hero and about) ---------- */
.figure-teaser {
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(20px, 4vw, 40px);
  background: var(--paper);
}
.figure-teaser-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.teaser-fig {
  margin: clamp(40px, 6vw, 64px) 0 0;
  text-align: center;
}
.teaser-fig img {
  max-width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
}
@media (max-width: 720px) {
  .teaser-fig img { max-width: 100%; }
}
.teaser-fig figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
}
.teaser-fig figcaption a {
  color: var(--ink);
  border-bottom: 1px dotted var(--ink-mute);
  font-style: normal;
  font-weight: 500;
  transition: color .15s ease, border-color .15s ease;
}
.teaser-fig figcaption a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.section-alt { background: var(--paper-2); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 auto 40px;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 18px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin: 0;
}
.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); font-style: italic; }
.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--rule);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Pillars */
.pillars {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  padding: 28px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-icon {
  font-size: 28px;
  color: var(--accent);
  font-family: var(--font-display);
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.pillar p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- PROTOCOL GRID ---------- */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .protocol-grid { grid-template-columns: 1fr; } }
.protocol-card {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.protocol-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.protocol-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 12px 0 8px;
}
.protocol-sub:first-of-type { margin-top: 0; }
.protocol-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.protocol-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--rule);
}
.protocol-list li:last-child { border-bottom: none; }
.protocol-list strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink);
}
.protocol-list span {
  font-size: 13px;
  color: var(--ink-mute);
  text-align: right;
}
.protocol-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.protocol-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  background: var(--paper-2);
}

/* ---------- TABS ---------- */
.tabs-wrap {
  margin: 24px 0 8px;
}
.tab-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 18px 0 6px;
}
.tab-group-label:first-child { margin-top: 0; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--rule-strong);
}
.tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-mute);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- TASK HEADER ---------- */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}
.task-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.task-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 60ch;
}
.task-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.search-wrap input,
.filter-wrap select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.search-wrap input { width: 220px; }
.filter-wrap select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%235a6068' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.search-wrap input:focus,
.filter-wrap select:focus { border-color: var(--accent); }

/* ---------- TABLE ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.lb-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  padding: 14px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.lb-table thead th.th-rank { cursor: default; width: 56px; }
.lb-table thead th:hover { color: var(--ink); }
.lb-table thead th[data-dir="asc"],
.lb-table thead th[data-dir="desc"] { color: var(--accent); }
.lb-table thead th[data-dir="asc"]::after  { content: " ▲"; font-size: 10px; }
.lb-table thead th[data-dir="desc"]::after { content: " ▼"; font-size: 10px; }

.lb-table tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background .12s ease;
}
.lb-table tbody tr:last-child { border-bottom: none; }
.lb-table tbody tr:hover { background: var(--accent-soft); }

.lb-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}
.lb-table .td-method {
  font-weight: 600;
  color: var(--ink);
}
.lb-table .td-method a { color: var(--ink); border-bottom: 1px dotted var(--ink-mute); }
.lb-table .td-method a:hover { color: var(--accent); border-color: var(--accent); }

/* Reference links (generators in tabs/title, protocol tags, etc) */
.ref-link {
  color: inherit;
  border-bottom: 1px dotted var(--ink-mute);
  transition: color .15s ease, border-color .15s ease;
}
.ref-link:hover { color: var(--accent); border-color: var(--accent); }
/* In dark / accent contexts, lighten the dotted underline */
.task-title .ref-link { border-bottom-color: var(--rule-strong); }
.lb-table .td-venue {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.setting-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid;
}
.setting-whitebox {
  color: var(--ink-soft);
  border-color: var(--rule-strong);
  background: var(--paper-2);
}
.setting-blackbox {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}
.lb-table .td-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.lb-table .td-primary {
  font-weight: 600;
  color: var(--ink);
}
.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--paper);
}
.rank-1 { background: var(--gold); }
.rank-2 { background: var(--silver); }
.rank-3 { background: var(--bronze); }
.rank-n { color: var(--ink-mute); font-family: var(--font-mono); font-size: 13px; }

.code-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  border: 1px solid var(--rule-strong);
  padding: 3px 8px;
  border-radius: 3px;
  transition: all .15s ease;
}
.code-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.code-link.is-disabled { opacity: .35; pointer-events: none; }

.table-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

/* ---------- SUBMIT ---------- */
.submit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .submit-grid { grid-template-columns: 1fr; } }
.submit-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.code-block {
  margin: 0;
  padding: 24px;
  background: var(--ink);
  color: #e4ebff;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius);
  overflow-x: auto;
}
.code-block code { color: inherit; background: transparent; padding: 0; }

/* Citation: coming-soon placeholder */
.citation-pending {
  margin-top: 16px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.citation-pending-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  white-space: nowrap;
}
.citation-pending-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--rule-strong);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  transition: transform .2s ease;
  font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.site-foot {
  padding: 48px var(--gutter) 32px;
  background: var(--paper-2);
  color: var(--ink-mute);
  border-top: 1px solid var(--rule-strong);
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px 60px;
}
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; } }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-logo {
  height: 32px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.foot-tag {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-mute);
  max-width: 42ch;
  line-height: 1.5;
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--accent); }
.foot-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule-strong);
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

/* ---------- ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero-content > *:nth-child(1) { animation-delay: .05s; }
  .hero-content > *:nth-child(2) { animation-delay: .15s; }
  .hero-content > *:nth-child(3) { animation-delay: .25s; }
  .hero-content > *:nth-child(4) { animation-delay: .35s; }
  .hero-stats { animation: rise .8s .3s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
