/* ═══════════════════════════════════════════════════════════════
   cr8veworks — swiss poster system
   Shared stylesheet for the whole site. Ported faithfully from the
   approved 2026-07 swiss-poster prototype; do not redesign here.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #101010;
  --paper: #ffffff;
  --red: #c8322b;
  --accent: #c8322b; /* auth.js feedback colour hook */
  --hair: rgba(16,16,16,.14);
  --grid-line: rgba(16,16,16,.07);
  --font: "Archivo", "Noto Sans Telugu", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}

/* visible column grid — the poster's skeleton, desktop only */
@media (min-width: 960px) {
  .shell.ruled::before {
    content: "";
    position: absolute;
    inset: 0 var(--pad);
    pointer-events: none;
    background:
      linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%;
    background-clip: content-box;
  }
  .shell.ruled > * { position: relative; }
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── top bar ─────────────────────────────── */
.topbar {
  border-bottom: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.wordmark sup { color: var(--red); font-size: .55em; top: -.7em; position: relative; }
.topbar .center { text-align: center; color: var(--ink); }
.topbar nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px clamp(14px, 2vw, 28px);
}
.topbar nav a { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.topbar nav a:hover { border-color: var(--red); color: var(--red); }
.topbar nav a[aria-current="page"] { border-color: var(--ink); }
@media (max-width: 700px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr); }
  .topbar .center { grid-column: 1 / -1; grid-row: 2; text-align: left; margin-top: 6px; }
  /* tap targets ≥ 40px on mobile nav */
  .topbar nav { gap: 0 2px; margin-right: -10px; }
  .topbar nav a { padding: 14px 10px; }
  .topbar nav .auth-button { padding: 13px 10px; margin-left: 2px; }
  .wordmark { padding: 10px 10px 10px 0; margin: -10px 0; display: inline-block; }
}

/* sign-in button — same label voice as nav (auth.js drives the text) */
.auth-button {
  background: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 10px;
  line-height: 1;
  cursor: pointer;
}
.auth-button:hover { background: var(--ink); color: var(--paper); }
body.is-authed .auth-button { border-color: var(--red); color: var(--red); }
body.is-authed .auth-button:hover { background: var(--red); color: #fff; }

/* ── masthead ────────────────────────────── */
.masthead { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 88px); }
.kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 40px);
}
.kicker .label span { color: var(--red); }
h1 {
  font-size: clamp(52px, 13.2vw, 188px);
  line-height: .86;
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
  word-spacing: .04em;
}
h1.size-2 { font-size: clamp(44px, 10vw, 136px); }
h1.size-3 { font-size: clamp(36px, 8vw, 100px); }
h1 .red { color: var(--red); }
h1 .hline { display: block; }
.masthead-foot {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: end;
}
.masthead-foot p {
  grid-column: 1 / span 3;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.42;
  font-weight: 500;
  max-width: 34em;
}
.masthead-foot p strong { font-weight: 800; }
.masthead-foot .down {
  grid-column: 6;
  justify-self: end;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
@media (max-width: 700px) {
  .masthead-foot { grid-template-columns: 1fr; }
  .masthead-foot p { grid-column: 1; }
  .masthead-foot .down { grid-column: 1; justify-self: start; }
}

/* ── stat strip ──────────────────────────── */
.stats {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(16px, 2vw, 28px) 0;
  border-left: 1px solid var(--hair);
  padding-left: clamp(12px, 1.6vw, 24px);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n {
  display: block;
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat .n em { font-style: normal; color: var(--red); }
.stat .label { margin-top: 8px; display: block; color: rgba(16,16,16,.75); }
@media (max-width: 700px) {
  .stats, .stats.cols-4 { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* ── section heads (plates / index / memos) ── */
.plates-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 16px;
  border-bottom: 3px solid var(--ink);
}
.plates-head h2 {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.plates-head h2 span { color: var(--red); }

/* ── plates ──────────────────────────────── */
.plate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 3fr 1.4fr;
  gap: clamp(12px, 2vw, 32px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 52px) var(--pad);
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  transition: background .12s linear, color .12s linear;
}
.plate::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  border-bottom: 1px solid var(--ink);
}
.plate:hover::after, .plate.touch-active::after { border-color: var(--paper); }
.plate:hover, .plate:focus-visible, .plate.touch-active {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}
.plate .idx {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.plate .idx .label { display: block; color: inherit; margin-top: 6px; opacity: .85; }
.plate .name {
  font-size: clamp(38px, 6.6vw, 96px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .96;
  text-transform: uppercase;
}
.plate .name [lang="te"] { letter-spacing: 0; line-height: 1.14; display: inline-block; }
.nb { white-space: nowrap; }
.plate .translit {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.plate:hover .translit, .plate.touch-active .translit { color: var(--red); }
.plate .thesis {
  margin-top: clamp(12px, 1.6vw, 20px);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.4;
  max-width: 30em;
}
.plate .side { display: grid; gap: 14px; justify-items: start; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 2px solid currentColor;
  line-height: 1;
}
.tag.live { background: var(--red); border-color: var(--red); color: #fff; }
.plate .link {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: .01em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.plate:hover .link, .plate.touch-active .link { color: #fff; }
.plate .domain { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
@media (max-width: 700px) {
  .plate { grid-template-columns: 1fr; gap: 14px; }
  .plate .idx { display: flex; align-items: baseline; gap: 10px; }
  .plate .idx .label { margin-top: 0; }
  .plate .side { grid-auto-flow: row; }
}

/* ── manifesto band ──────────────────────── */
.band { background: var(--ink); color: var(--paper); }
.band .inner { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.band .label { color: var(--red); margin-bottom: clamp(20px, 3vw, 36px); display: block; }
.band p.big {
  font-size: clamp(34px, 6.2vw, 92px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .98;
  text-transform: uppercase;
  max-width: 15em;
}
.band p.big .red { color: var(--red); }
.band .foot {
  margin-top: clamp(28px, 4vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.band .foot p { font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; line-height: 1.45; max-width: 36em; color: rgba(255,255,255,.82); }
.band .foot a {
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #fff;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
}
.band .foot a:hover { color: var(--red); }

/* ── index (build log) ───────────────────── */
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}
.index-head h2 {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.index-head h2 span { color: var(--red); }
.row {
  display: grid;
  grid-template-columns: 110px 150px 1fr;
  gap: clamp(12px, 2vw, 28px);
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.45;
  align-items: baseline;
}
.row:last-child { border-bottom: 1px solid var(--ink); }
.row .d { font-weight: 800; letter-spacing: .02em; }
.row .t {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.row .b { font-weight: 500; }
.row .b a { border-bottom: 1px solid var(--red); }
.row .b a:hover { color: var(--red); }
@media (max-width: 700px) {
  .row { grid-template-columns: 88px 1fr; }
  .row .t { grid-column: 2; order: -1; }
  .row .d { grid-row: span 2; }
  .row .b { grid-column: 2; }
}

/* ── footer ──────────────────────────────── */
footer { padding-top: clamp(56px, 8vw, 110px); overflow: hidden; }
.foot-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: clamp(28px, 4vw, 44px);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.foot-meta .label { display: block; color: var(--red); margin-bottom: 8px; }
.foot-meta a:hover { color: var(--red); }
@media (max-width: 700px) { .foot-meta { grid-template-columns: 1fr; } }
.giant {
  display: block;
  font-size: clamp(34px, 11.5vw, 168px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .78;
  text-transform: uppercase;
  white-space: nowrap;
  border-top: 3px solid var(--ink);
  padding-top: clamp(14px, 2vw, 28px);
  margin-bottom: -0.06em;
  color: var(--ink);
}
.giant span { color: var(--red); }

/* ── daily-edition mechanics ─────────────── */
/* plate stat — Swiss stat, red numeral */
.cd { display: block; }
.cd b {
  display: block;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--red);
}
.cd .label { display: block; margin-top: 6px; opacity: .75; }
.since {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .6;
}

/* aanaadu daily index row */
.daily-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink);
}
.daily-row .dr {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.daily-row .dr .arr { color: var(--red); }
.daily-row:hover .dr { color: var(--red); }

/* build-log relative-date suffix + NEW chip */
.row .d .ago {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .5;
  margin-left: 8px;
  white-space: nowrap;
}
.chip-new {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* manifesto — daily rotating second line */
.band .daily-line {
  margin-top: clamp(18px, 2.6vw, 34px);
  font-size: clamp(17px, 2.1vw, 27px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.18;
  text-transform: uppercase;
  max-width: 28em;
  color: rgba(255,255,255,.92);
}
.band .daily-line .dl-mark { color: var(--red); margin-right: .35em; }

/* ── the record — memos ──────────────────── */
.memo {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--ink);
}
.memo-top {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 3fr 1.4fr;
  gap: clamp(12px, 2vw, 32px);
  align-items: start;
}
.memo-top .idx {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.memo-top .idx .label { display: block; color: inherit; margin-top: 6px; opacity: .85; }
.memo-domain { display: block; color: var(--red); margin-bottom: 10px; }
.memo-name {
  font-size: clamp(32px, 5.6vw, 80px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .96;
  text-transform: uppercase;
}
.memo-name [lang="te"] { letter-spacing: 0; line-height: 1.14; display: inline-block; }
.memo-cd { justify-self: end; text-align: right; }
.memo-cd .days {
  display: block;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--red);
}
.memo-cd .label { display: block; margin-top: 6px; opacity: .7; }
.memo-score {
  margin-top: clamp(14px, 2vw, 22px);
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.memo-score .k { color: var(--red); }
.memo-score .asof { opacity: .55; font-weight: 600; }
.fields {
  margin-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--hair);
}
.field {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(12px, 2vw, 28px);
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.field:last-child { border-bottom: 0; }
.field dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 3px;
}
.field dd {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 40em;
}
.memo-foot {
  margin-top: clamp(14px, 2vw, 20px);
  display: flex;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}
.memo-foot a { border-bottom: 1px solid var(--red); }
.memo-foot a:hover { color: var(--red); }
.overdue-stamp {
  display: inline-block;
  margin-top: 10px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 9px;
  transform: rotate(-2deg);
}
@media (max-width: 700px) {
  .memo-top { grid-template-columns: 1fr; gap: 12px; }
  .memo-top .idx { display: flex; align-items: baseline; gap: 10px; }
  .memo-top .idx .label { margin-top: 0; }
  .memo-cd { justify-self: start; text-align: left; }
  .field { grid-template-columns: 1fr; gap: 6px; }
}

/* gated content — redacted until signed in (auth.js toggles body.is-authed) */
.gated-wrap { display: block; }
.gated-content {
  display: block;
  color: transparent;
  line-height: 1.5em;
  max-width: 40em;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0,
    var(--ink) 1.08em,
    transparent 1.08em,
    transparent 1.5em
  );
  user-select: none;
  pointer-events: none;
}
.gated-content::selection { background: transparent; }
.gate-cta {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: 2px solid var(--red);
  border-radius: 0;
  color: var(--red);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}
.gate-cta::before { content: "█ "; font-size: 8px; vertical-align: 1px; }
.gate-cta:hover { background: var(--red); color: var(--paper); }
.is-authed .gated-content {
  color: var(--ink);
  background: none;
  user-select: text;
  pointer-events: auto;
}
.is-authed .gate-cta { display: none; }

/* killed — kept for the lesson */
.killed { border: 1px solid var(--ink); margin-top: 8px; }
.kill-row {
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.kill-row:last-child { border-bottom: 0; }
.kill-row .when { font-weight: 800; }
.kill-row .what strong { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.kill-row .why {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: right;
  padding-top: 3px;
}
@media (max-width: 700px) {
  .kill-row { grid-template-columns: 1fr; gap: 4px; }
  .kill-row .why { text-align: left; padding-top: 0; }
}

/* ── auth modal (markup injected by auth.js) ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, .5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--red);
  padding: 30px 30px 26px;
  max-width: 440px;
  width: 100%;
}
.modal-close {
  float: right;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  width: 32px;
  height: 32px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin: -6px -6px 0 0;
  font-family: inherit;
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal h3 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.modal .sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(16,16,16,.75);
  line-height: 1.55;
  margin-bottom: 20px;
}
.modal .btn-google {
  width: 100%;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 12px;
}
.modal .btn-google:hover { background: var(--red); border-color: var(--red); }
.modal .divider {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  opacity: .5;
  margin: 4px 0 12px;
}
.modal input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
  -webkit-appearance: none;
}
.modal input[type="email"]:focus {
  outline: 2px solid var(--red);
  outline-offset: -1px;
}
.modal .btn-link {
  width: 100%;
  padding: 11px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.modal .btn-link:hover { background: var(--ink); color: #fff; }
.modal .auth-feedback {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--red);
  margin-top: 14px;
}
.modal .fine-print {
  font-size: 11px;
  font-weight: 500;
  opacity: .65;
  margin-top: 16px;
  line-height: 1.6;
}
.modal .fine-print a { border-bottom: 1px solid var(--red); }

/* ── motion — restrained, once, honours reduced-motion ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  h1 .hline { animation: rise .25s ease-out both; }
  h1 .hline:nth-child(2) { animation-delay: .25s; }
  h1 .hline:nth-child(3) { animation-delay: .5s; }

  @keyframes stop-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .6; }
  }
  h1 .red { animation: stop-pulse 3s ease-in-out infinite; }

  .js .plate {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease, background .12s linear, color .12s linear;
  }
  .js .plate.in { opacity: 1; transform: none; }
}

/* ── print ───────────────────────────────── */
@media print {
  .topbar nav, .auth-button, .gate-cta { display: none !important; }
  html, body { background: #fff; }
  .memo, .kill-row, .row { break-inside: avoid; }
  .overdue-stamp { transform: none; }
}
