/* ============================================================
   FORMA — THE WORKSHOP FILE
   A risograph card catalog: process-blue ground, index cards,
   one ink per category, typewriter fields, paperclips.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--impeccable--2026-09-18T23-21-50-197Z/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--impeccable--2026-09-18T23-21-50-197Z/assets/fonts/CourierPrime-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--impeccable--2026-09-18T23-21-50-197Z/assets/fonts/CourierPrime-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3--impeccable--2026-09-18T23-21-50-197Z/assets/fonts/CourierPrime-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0078BF;         /* page ground — riso process blue */
  --blue-deep: #00588C;    /* scrollbar track, vignette */
  --ink: #17171F;          /* near-black print ink */
  --paper: #FAF3E1;        /* card stock */
  --paper-bright: #FFFDF2; /* form fields */
  --pink: #FF48B0;         /* fluorescent pink ink */
  --yellow: #FFE800;       /* riso yellow: tape, focus, selection */
  --orange: #FF6C2F;
  --green: #00A95C;
  --teal: #00958C;
  --shadow-ink: rgba(3, 22, 48, 0.45);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-type: "Courier Prime", "Courier New", monospace;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 100% 100%, rgba(0, 34, 66, 0.55), transparent 65%),
    var(--blue);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 100%;
  line-height: 1.5;
  min-height: 100dvh;
}
body::before { /* halftone paper on the blue ground */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px);
  background-size: 17px 17px;
  z-index: 0;
}
img { max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

/* paper grain over everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 1.05em; height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- browser surfaces ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-paper :focus-visible { outline-color: var(--pink); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--blue-deep); }
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 2px solid var(--blue-deep);
  border-radius: 8px;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(30px, 5vh, 64px);
  padding-bottom: clamp(36px, 5vh, 58px);
  color: #FDFBF3;
}
.wordmark {
  margin: 0;
  font-size: clamp(4.2rem, 9.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.82;
  color: #FDFBF3;
  text-shadow: 0.045em 0.045em 0 var(--pink); /* riso misregistration */
  user-select: text;
}
.wordmark-star { color: var(--yellow); }
.masthead-sub {
  margin: 0.9em 0 0;
  max-width: 54ch;
  font-family: var(--font-type);
  font-style: italic;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  color: #FDFBF3;
}
.masthead-sub::first-line { font-style: normal; }

/* the pinned studio print */
.studio-print {
  margin: 0;
  width: clamp(240px, 24vw, 330px);
  transform: rotate(2.4deg);
  background: var(--paper);
  padding: 12px 12px 14px;
  border-radius: 3px;
  box-shadow: 14px 16px 30px var(--shadow-ink);
  position: relative;
}
.studio-print .photo { aspect-ratio: 4 / 3.1; }
.studio-print::before, .studio-print::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 64px; height: 18px;
  background: rgba(255, 232, 0, 0.62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.studio-print::before { left: 26px; transform: rotate(-6deg); }
.studio-print::after { right: 22px; transform: rotate(5deg); }
.print-caption {
  margin: 11px 2px 0;
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.print-note { font-style: italic; opacity: 0.85; }

/* duotone print treatment, one ink per subject */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--cat, var(--pink));
  border-radius: 2px;
}
.photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.06);
  mix-blend-mode: multiply;
}
.photo::after { /* halftone screen */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 10, 14, 0.55) 0.55px, transparent 1.1px);
  background-size: 4px 4px;
  opacity: 0.30;
  pointer-events: none;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  position: relative;
  z-index: 1;
  background: var(--pink);
  color: var(--ink);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.1deg) scale(1.02);
  margin-block: 4px 44px;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 34s linear infinite;
}
.ticker-track span {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-block: 9px;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ============================================================
   TOOLBAR — the drawer front
   ============================================================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 18px 26px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 18px 22px 20px;
  margin-bottom: 46px;
  box-shadow: 10px 14px 26px var(--shadow-ink);
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.find { flex: 1 1 240px; max-width: 430px; }
.field-input {
  font-family: var(--font-type);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 10px 12px;
  min-width: 0;
}
.find { position: relative; }
.find .field-input { width: 100%; padding-right: 12px; padding-left: 34px; }
.find::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 12px;
  width: 14px; height: 14px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 7px 0 -2px var(--ink);
  transform: rotate(-45deg);
  pointer-events: none;
}
.field-input::placeholder { color: rgba(23, 23, 31, 0.68); opacity: 1; }
.field-select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317171F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

/* clipped-only toggle */
.clips-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.clips-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
}
.clips-toggle:hover { transform: translateY(-2px); }
.clips-toggle[aria-pressed="true"] {
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.clips-toggle[aria-pressed="true"] .clips-count {
  background: var(--pink);
  color: var(--ink);
}

.count {
  margin: 0 0 0 auto;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: center;
  text-align: right;
}

/* ============================================================
   THE FILE — index cards
   ============================================================ */
.file {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 30px;
}
.card { position: relative; padding-top: 16px; }
.card-paper {
  position: relative;
  background: var(--paper);
  border-radius: 7px;
  padding-bottom: 20px;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 3px 8px var(--shadow-ink);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.22s ease-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card.is-hover .card-paper,
.card.is-focus .card-paper {
  transform: rotate(0deg) translateY(-7px);
  box-shadow: 0 22px 34px -10px var(--shadow-ink), 0 4px 10px rgba(3, 22, 48, 0.3);
}
.card-tab {
  position: absolute;
  top: -15px;
  right: 14px;
  background: var(--cat);
  color: var(--ink);
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px 5px;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 2px 4px rgba(3, 22, 48, 0.3);
  z-index: 2;
}
.card-photo {
  margin: 18px 16px 0;
  aspect-ratio: 5 / 3.4;
}
.card-photo::before, .card-photo::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -8px;
  width: 52px; height: 15px;
  background: rgba(255, 232, 0, 0.62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.card-photo::before { left: 10px; transform: rotate(-5deg); }
.card-photo::after { right: 10px; transform: rotate(4deg); }
.card-content { padding: 15px 18px 0; display: flex; flex-direction: column; flex: 1; }
.card-no {
  margin: 0 0 2px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(23, 23, 31, 0.78);
}
.card-title {
  margin: 0;
  font-size: clamp(1.3rem, 1.55vw, 1.52rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.03;
  color: var(--ink);
}
.card-meta {
  margin: 9px 0 0;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cat-text);
}
.card-rule {
  border: none;
  border-top: 2px dashed rgba(23, 23, 31, 0.35);
  margin: 13px 0 11px;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.card-price {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cat-text);
  line-height: 1;
}
.card-price small {
  font-size: 0.62em;
  font-weight: 800;
  vertical-align: 0.35em;
  letter-spacing: 0;
}
.card-seats {
  margin: 0;
  font-family: var(--font-type);
  font-size: 12px;
  color: rgba(23, 23, 31, 0.82);
}
.card-clipped {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cat-text);
  transform: rotate(-3deg);
}
.card-clipped .icon { width: 13px; height: 13px; }

/* whole-card hit area */
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  color: transparent;
}
.card-hit:hover, .card-hit:focus { outline: none; }
.card:focus-within { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 10px; }
.card-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(23, 23, 31, 0.8);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.card.is-hover .card-hint, .card.is-focus .card-hint { opacity: 1; transform: translateY(0); }
.card-hint .icon { width: 11px; height: 11px; }

/* ============================================================
   EMPTY STATE — nothing filed
   ============================================================ */
.empty {
  background: var(--paper);
  border: 2.5px dashed var(--ink);
  border-radius: 8px;
  padding: 34px clamp(22px, 4vw, 44px) 30px;
  max-width: 640px;
  margin: 20px auto 40px;
  transform: rotate(-0.7deg);
  box-shadow: 0 12px 26px var(--shadow-ink);
  text-align: center;
}
.empty-stamp {
  margin: 0 auto 14px;
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pink);
  transform: rotate(-2deg);
  border: 3px solid var(--pink);
  border-radius: 4px;
  padding: 4px 14px;
}
.empty-text {
  margin: 0;
  font-family: var(--font-type);
  font-size: 15px;
  color: var(--ink);
}
.empty-hint {
  margin: 8px 0 0;
  font-family: var(--font-type);
  font-style: italic;
  font-size: 13px;
  color: rgba(23, 23, 31, 0.8);
}
.empty-reset {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}
.empty-reset:hover { background: var(--pink); color: var(--ink); transform: translateY(-2px); }

.load-msg {
  font-family: var(--font-type);
  font-size: 14px;
  color: #FDFBF3;
  text-align: center;
  padding: 30px 0 10px;
}

/* ============================================================
   COLOPHON
   ============================================================ */
.colophon {
  margin-top: 76px;
  padding-top: 26px;
  border-top: 2px solid rgba(253, 251, 243, 0.5);
  color: #FDFBF3;
}
.colophon p {
  margin: 0 0 10px;
  font-family: var(--font-type);
  font-size: 12.5px;
  line-height: 1.65;
  max-width: 74ch;
}
.colophon-rule {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}
.mono { letter-spacing: 0; text-transform: none; }

/* ============================================================
   RECORD — the pulled card
   ============================================================ */
dialog.record {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1000px, calc(100vw - 28px));
  width: 100%;
  margin: auto;
  overflow: visible;
}
dialog.record::backdrop {
  background: rgba(3, 22, 48, 0.62);
  animation: fade-in 0.28s ease-out;
}
@keyframes fade-in { from { opacity: 0; } }
.record-card {
  position: relative;
  background: var(--paper);
  border-radius: 9px;
  padding: 22px 26px 28px;
  transform: rotate(-1.2deg);
  box-shadow: 0 34px 64px -16px rgba(2, 14, 36, 0.65), 0 6px 16px rgba(2, 14, 36, 0.35);
  animation: pull-out 0.5s cubic-bezier(0.2, 0.9, 0.28, 1.04) both;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@keyframes pull-out {
  from { transform: translateY(64px) rotate(2.8deg) scale(0.96); opacity: 0.3; }
  to { transform: translateY(0) rotate(-1.2deg) scale(1); opacity: 1; }
}
.record-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 3px solid var(--cat, var(--ink));
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.record-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
}
.record-photo-wrap { margin: 0; position: relative; }
.record-photo { aspect-ratio: 4 / 3.2; }
.record-photo::before, .record-photo::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -10px;
  width: 66px; height: 18px;
  background: rgba(255, 232, 0, 0.62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.record-photo::before { left: 12px; transform: rotate(-6deg); }
.record-photo::after { right: 12px; transform: rotate(4deg); }
.record-caption {
  margin-top: 10px;
  font-family: var(--font-type);
  font-style: italic;
  font-size: 11.5px;
  color: rgba(23, 23, 31, 0.8);
}
.record-cat {
  display: inline-block;
  margin: 0 0 8px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cat-text);
  border: 2px solid var(--cat-text);
  border-radius: 3px;
  padding: 4px 10px 3px;
  transform: rotate(-2deg);
}
.record-title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
}
.record-text {
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.55;
  max-width: 58ch;
  color: var(--ink);
}
.record-fields {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.record-fields .row { display: flex; align-items: baseline; gap: 10px; }
.record-fields dt {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.record-fields .leader {
  flex: 1;
  border-bottom: 2px dotted rgba(23, 23, 31, 0.45);
  transform: translateY(-3px);
}
.record-fields dd {
  margin: 0;
  font-family: var(--font-type);
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.clip-btn, .close-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  border-radius: 5px;
  padding: 12px 18px;
  cursor: pointer;
  border: 2.5px solid var(--ink);
  transition: background-color 0.16s ease-out, color 0.16s ease-out, transform 0.16s ease-out;
}
.clip-btn { background: var(--ink); color: var(--paper-bright); }
.clip-btn:hover { transform: translateY(-2px); }
.clip-btn[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.clip-btn[aria-pressed="true"] .icon { transform: rotate(-14deg); }
.close-btn { background: var(--paper-bright); color: var(--ink); }
.close-btn:hover { background: var(--pink); transform: translateY(-2px); }

/* the CLIPPED rubber stamp */
.stamp-clipped {
  position: absolute;
  top: 64px;
  right: 34px;
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.18em;
  color: var(--cat-text);
  border: 3.5px solid var(--cat-text);
  border-radius: 5px;
  padding: 5px 14px 4px;
  transform: rotate(-12deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.record-card.is-clipped .stamp-clipped {
  opacity: 0.92;
  animation: thump 0.34s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
@keyframes thump {
  0% { transform: scale(2.1) rotate(-26deg); opacity: 0; }
  55% { opacity: 0.95; }
  100% { transform: scale(1) rotate(-12deg); opacity: 0.92; }
}
.clip-btn .icon { transition: transform 0.18s ease-out; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .file { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
}
@media (max-width: 700px) {
  .masthead { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .studio-print { width: min(78%, 320px); justify-self: center; margin-top: 8px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .find { max-width: none; }
  .toolbar .field:not(.find) { width: 100%; }
  .field-select { width: 100%; }
  .clips-toggle { align-self: flex-start; }
  .count { margin-left: 0; text-align: left; }
  .file { grid-template-columns: 1fr; gap: 38px; }
  .card-paper { transform: rotate(calc(var(--tilt, 0deg) * 0.55)); }
  dialog.record { max-width: calc(100vw - 20px); margin: 10px auto; }
  .record-card { padding: 18px 16px 22px; }
  .record-body { grid-template-columns: 1fr; gap: 20px; }
  .record-photo { aspect-ratio: 16 / 10; }
  .stamp-clipped { top: 46px; right: 16px; }
  .record-actions { gap: 10px; }
  .clip-btn, .close-btn { flex: 1 1 auto; justify-content: center; }
  .colophon { margin-top: 54px; }
}

/* ---------- reduced motion ---------- */
@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; }
}
