:root {
  --ink: #161412;
  --ink-soft: #3d3730;
  --paper: #f7f0e4;
  --paper-strong: #fffaf0;
  --line: rgba(38, 33, 28, 0.14);
  --coffee: #6b3f22;
  --copper: #b66a32;
  --leaf: #0f7b5c;
  --mint: #a7e8c8;
  --amber: #f2b84b;
  --graphite: #242826;
  --shadow: 0 24px 70px rgba(22, 20, 18, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(22, 20, 18, 0.86);
  color: var(--paper-strong);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--paper-strong);
  border: 1px solid rgba(255, 250, 240, 0.55);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  padding: 1px;
  width: 38px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill,
.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.pill {
  background: rgba(167, 232, 200, 0.18);
  color: var(--mint);
}

.button {
  border: 1px solid rgba(255, 250, 240, 0.26);
  color: var(--paper-strong);
}

.button.primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: white;
}

.hero {
  background:
    linear-gradient(90deg, rgba(15, 13, 11, 0.78) 0%, rgba(22, 20, 18, 0.58) 38%, rgba(22, 20, 18, 0.1) 100%),
    url("/static/images/coffee-ledger-hero.jpg") center right / cover;
  color: var(--paper-strong);
  min-height: 720px;
  padding: 132px clamp(18px, 5vw, 76px) 72px;
}

.hero-grid,
.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.handwritten-note {
  color: var(--coffee);
  font-family: "Bradley Hand", "Segoe Print", "Marker Felt", "Chalkboard SE", cursive;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.38;
}

.no-break {
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 22px;
  max-width: 760px;
}

.hero-copy > p {
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.proof-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
  max-width: 900px;
}

.proof-item {
  border-left: 3px solid var(--amber);
  padding-left: 14px;
}

.proof-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.proof-label {
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
}

.section {
  padding: 72px clamp(18px, 5vw, 76px);
}

.section.dark {
  background: var(--graphite);
  color: var(--paper-strong);
}

.simple-section {
  background: #fff6e6;
  padding-bottom: 48px;
}

.compact-heading {
  align-items: start;
}

.flow-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
}

.step-number {
  align-items: center;
  background: var(--leaf);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.step-card h3 {
  font-size: 24px;
  line-height: 1.12;
  margin-bottom: 0;
}

.step-card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.owner-section {
  background: #efe3cf;
}

.owner-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
}

.owner-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  margin-bottom: 18px;
}

.owner-copy .owner-eyebrow {
  background: rgba(71, 48, 31, 0.1);
  border: 1px solid rgba(71, 48, 31, 0.26);
  border-radius: 8px;
  color: #2b170c;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  padding: 5px 9px;
}

.owner-handwritten {
  color: #56311c;
  margin-bottom: 18px;
  max-width: 560px;
}

.record-form {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  column-gap: 16px;
  row-gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
}

.record-form label {
  color: var(--ink-soft);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  line-height: 1.25;
}

.record-form input,
.record-form textarea {
  background: #fffaf0;
  border: 1px solid rgba(38, 33, 28, 0.22);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  min-height: 46px;
  padding: 11px 13px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.record-form input:focus,
.record-form textarea:focus {
  background: #fffdf6;
  border-color: rgba(15, 123, 92, 0.58);
  box-shadow: 0 0 0 3px rgba(15, 123, 92, 0.14);
  outline: none;
}

.record-form textarea {
  min-height: 126px;
  resize: vertical;
}

.form-wide,
.form-submit {
  grid-column: 1 / -1;
}

.form-submit {
  font-size: 15px;
  justify-content: center;
  min-height: 46px;
}

.plain-note {
  background: rgba(15, 123, 92, 0.1);
  border: 1px solid rgba(15, 123, 92, 0.2);
  border-radius: 8px;
  color: var(--ink-soft);
  padding: 14px;
}

.example-rotator {
  display: grid;
  gap: 8px;
}

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

.typewriter-line {
  align-items: flex-start;
  display: flex;
  line-height: 1.55;
  min-height: calc(1.55em * 3);
}

.typewriter-example {
  color: var(--ink);
}

.typewriter-caret {
  background: var(--leaf);
  display: inline-block;
  flex: 0 0 2px;
  height: 1.25em;
  margin-left: 4px;
  margin-top: 0.15em;
  width: 2px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0;
}

.section-heading p {
  color: var(--ink-soft);
  max-width: 470px;
}

.section-heading .handwritten-note {
  color: #5c3923;
  max-width: 540px;
}

.dark .section-heading p {
  color: rgba(255, 250, 240, 0.72);
}

.batch-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.batch-card,
.ledger-panel,
.explain-panel {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.batch-card {
  display: grid;
  gap: 18px;
  min-height: 330px;
  padding: 22px;
}

.batch-top {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.batch-id {
  color: var(--coffee);
  font-size: 13px;
  font-weight: 900;
}

.batch-card h3 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.status-chip {
  background: #e7f7ee;
  border: 1px solid #b6dfc8;
  border-radius: 8px;
  color: #11613f;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.metadata {
  display: grid;
  gap: 10px;
}

.metadata div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.simple-proof {
  color: var(--leaf);
  font-weight: 800;
}

.metadata span,
.hash-label {
  color: rgba(61, 55, 48, 0.7);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.hash {
  background: #efe4d2;
  border-radius: 8px;
  color: #47301f;
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 10px;
}

.copy-field {
  align-items: stretch;
  background: #efe4d2;
  border: 1px solid rgba(38, 33, 28, 0.14);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.copy-field .hash {
  background: transparent;
  border-radius: 0;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-value {
  align-items: center;
  background: rgba(255, 250, 240, 0.82);
  border: 0;
  border-left: 1px solid rgba(38, 33, 28, 0.14);
  color: var(--coffee);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-width: 70px;
  padding: 0 12px;
  transition: background 140ms ease, color 140ms ease;
}

.copy-value:hover,
.copy-value:focus-visible {
  background: rgba(15, 123, 92, 0.12);
  color: var(--leaf);
  outline: none;
}

.copy-value.is-copied {
  background: var(--leaf);
  color: white;
}

.card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions .button {
  background: var(--ink);
  border-color: var(--ink);
}

.card-actions .button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.ledger-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.ledger-panel,
.explain-panel {
  color: var(--ink);
  padding: 24px;
}

.verification-ok {
  align-items: center;
  color: var(--leaf);
  display: flex;
  font-size: 24px;
  font-weight: 900;
  gap: 10px;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.metric-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
}

.metric-row strong {
  font-size: 22px;
}

.explain-grid {
  display: grid;
  gap: 14px;
}

.explain-item {
  border-left: 3px solid var(--leaf);
  padding-left: 14px;
}

.explain-item strong {
  display: block;
}

.trace-hero {
  background: var(--graphite);
  color: var(--paper-strong);
  padding: 128px clamp(18px, 5vw, 76px) 50px;
}

.trace-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.block-card {
  animation: rise-in 540ms ease both;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 22px;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.block-card:nth-child(2) {
  animation-delay: 80ms;
}

.block-card:nth-child(3) {
  animation-delay: 160ms;
}

.block-card:nth-child(4) {
  animation-delay: 240ms;
}

.block-card:hover {
  box-shadow: 0 24px 64px rgba(22, 20, 18, 0.14);
  transform: translateY(-3px);
}

.block-card::before {
  background: var(--leaf);
  border-radius: 50%;
  content: "";
  height: 12px;
  left: -6px;
  position: absolute;
  top: 28px;
  width: 12px;
}

.block-card h3 {
  font-size: 24px;
  margin-bottom: 0;
}

.event-summary {
  font-size: 18px;
  margin-bottom: 2px;
}

.reader-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reader-meta div {
  background: #f5ead8;
  border-radius: 8px;
  padding: 12px;
}

.reader-meta span {
  color: rgba(61, 55, 48, 0.68);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.reader-meta strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.block-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-details {
  background: #fff8ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.proof-details summary {
  color: var(--coffee);
  cursor: pointer;
  font-weight: 900;
}

.proof-details p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.side-panel {
  align-self: start;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: 22px;
  position: sticky;
  top: 84px;
}

.qr {
  background: #f8f4ea;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
}

.side-summary,
.side-impact {
  margin-bottom: 8px;
}

.side-impact {
  color: var(--leaf);
  font-weight: 900;
}

.side-note {
  font-size: 14px;
}

.empty-state {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}

.banner {
  border-radius: 8px;
  font-size: 15px;
  margin-top: 24px;
  padding: 14px 18px;
}

.banner.is-dismissible {
  transition: max-height 260ms ease, margin 260ms ease, opacity 220ms ease, padding 260ms ease;
}

.banner.is-hidden {
  max-height: 0;
  margin-bottom: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 0;
  padding-top: 0;
}

.banner.success {
  background: rgba(15, 123, 92, 0.12);
  border: 1px solid rgba(15, 123, 92, 0.3);
  color: var(--ink);
}

.console-hero {
  background:
    linear-gradient(90deg, rgba(15, 13, 11, 0.78) 0%, rgba(22, 20, 18, 0.58) 42%, rgba(22, 20, 18, 0.12) 100%),
    url("/static/images/coffee-ledger-hero.jpg") center right / cover;
  min-height: 560px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 38px;
}

.stat {
  display: grid;
  gap: 2px;
}

.stat-value {
  font-size: 30px;
  font-weight: 900;
}

.stat-label {
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.customer-link {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-top: 16px;
  text-align: center;
}

.customer-link-label {
  color: var(--coffee);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.customer-link-actions .button {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
  flex: 1;
  justify-content: center;
  min-width: 150px;
}

.customer-link-actions .button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.preview-row {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
}

.preview-row a {
  color: var(--coffee);
  font-weight: 700;
  text-decoration: underline;
}

.qr-small {
  background: #fff;
  border-radius: 6px;
  height: 116px;
  padding: 6px;
  width: 116px;
}

.panel-lede {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.results-table {
  border-collapse: collapse;
  width: 100%;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.results-table th {
  color: rgba(61, 55, 48, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-table td {
  font-weight: 700;
}

.panel-note {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 0;
  margin-top: 16px;
}

.shop-header {
  align-items: center;
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 76px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.shop-name {
  font-size: 20px;
  font-weight: 900;
}

.verified-badge {
  background: rgba(15, 123, 92, 0.12);
  border: 1px solid rgba(15, 123, 92, 0.3);
  border-radius: 999px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  padding: 6px 14px;
}

.exp-hero {
  background:
    linear-gradient(110deg, rgba(255, 246, 230, 0.98) 0%, rgba(247, 240, 228, 0.9) 52%, rgba(15, 123, 92, 0.16) 100%),
    repeating-linear-gradient(135deg, rgba(182, 106, 50, 0.08) 0 1px, transparent 1px 18px);
  overflow: hidden;
  padding: 60px clamp(18px, 5vw, 76px) 34px;
  position: relative;
}

.exp-hero::after {
  background: rgba(15, 123, 92, 0.18);
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  transform-origin: left;
  width: 100%;
}

.exp-hero-grid {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  position: relative;
  z-index: 1;
}

.exp-hero-copy {
  animation: rise-in 640ms ease both;
}

.exp-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.exp-hero-copy > p {
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 620px;
}

.exp-hero-copy > .customer-handwritten {
  color: #57321e;
  font-size: clamp(19px, 2.2vw, 25px);
  max-width: 640px;
}

.impact-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.impact-signal div {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(38, 33, 28, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(61, 55, 48, 0.12);
  min-width: 164px;
  padding: 12px 14px;
}

.impact-signal span,
.impact-signal strong {
  display: block;
}

.impact-signal span {
  color: var(--leaf);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.impact-signal strong {
  color: rgba(61, 55, 48, 0.72);
  font-size: 12px;
  margin-top: 4px;
  text-transform: uppercase;
}

.exp-visual {
  animation: rise-in 720ms 120ms ease both;
  aspect-ratio: 4 / 3;
  min-height: 340px;
  position: relative;
}

.exp-visual img {
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(22, 20, 18, 0.24);
  height: 100%;
  object-fit: cover;
  transform: rotate(1.5deg);
  width: 100%;
}

.trace-orbit {
  border: 1px solid rgba(167, 232, 200, 0.72);
  border-radius: 8px;
  bottom: 38px;
  display: grid;
  gap: 10px;
  left: -18px;
  padding: 12px;
  position: absolute;
  width: 150px;
}

.trace-orbit::before {
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  content: "";
  height: 2px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.trace-orbit span {
  background: rgba(22, 20, 18, 0.78);
  border: 1px solid rgba(167, 232, 200, 0.82);
  border-radius: 4px;
  display: block;
  height: 12px;
  position: relative;
  width: 28px;
}

.trace-orbit span:nth-child(2) {
  justify-self: center;
}

.trace-orbit span:nth-child(3) {
  justify-self: end;
}

.floating-record {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(38, 33, 28, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(22, 20, 18, 0.18);
  color: var(--ink);
  display: grid;
  gap: 4px;
  max-width: 250px;
  padding: 12px 14px;
  position: absolute;
}

.floating-record span {
  color: var(--coffee);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-record strong {
  font-size: 15px;
  line-height: 1.25;
}

.record-one {
  right: -8px;
  top: 30px;
}

.record-two {
  bottom: 16px;
  right: 24px;
}

.feedback-section {
  background: #efe3cf;
}

.feedback {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 640px;
  padding: 30px;
  text-align: center;
}

.feedback h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.feedback.thanks h2 {
  margin-bottom: 8px;
}

.feedback p {
  margin-bottom: 0;
}

.rating-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 54px));
  justify-content: center;
}

.rating {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  height: 54px;
  width: 100%;
}

.rating:hover {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.rating-caption {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 0;
  margin-top: 14px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trace-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes ledger-pulse {
  0%,
  100% {
    background: rgba(22, 20, 18, 0.78);
  }

  50% {
    background: var(--leaf);
  }
}

@keyframes drift-card {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .typewriter-caret {
    animation: caret-blink 900ms steps(2, start) infinite;
  }

  .exp-hero::after {
    animation: trace-fill 1400ms ease-out both;
  }

  .trace-orbit span {
    animation: ledger-pulse 1800ms ease-in-out infinite;
  }

  .trace-orbit span:nth-child(2) {
    animation-delay: 220ms;
  }

  .trace-orbit span:nth-child(3) {
    animation-delay: 440ms;
  }

  .record-one {
    animation: drift-card 5200ms ease-in-out infinite;
  }

  .record-two {
    animation: drift-card 6200ms 240ms ease-in-out infinite reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-caret {
    display: none;
  }

  .block-card,
  .exp-hero-copy,
  .exp-visual {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .experience {
    overflow-x: hidden;
  }

  .shop-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .shop-name,
  .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-name {
    font-size: 16px;
  }

  .verified-badge {
    border-radius: 8px;
    flex: 0 0 auto;
    font-size: 12px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 5px 9px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
    position: fixed;
  }

  .brand {
    flex: 1 1 auto;
    gap: 6px;
  }

  .brand-mark {
    border-radius: 7px;
    flex: 0 0 auto;
    height: 30px;
    width: 30px;
  }

  .nav-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .nav-actions .pill,
  .nav-actions .button {
    font-size: 12px;
    min-height: 32px;
    padding: 6px 8px;
  }

  .hero {
    min-height: 780px;
    padding-top: 106px;
  }

  .trace-hero {
    padding-top: 104px;
  }

  .trace-hero h1 {
    font-size: 40px;
  }

  .exp-hero {
    padding-top: 34px;
  }

  .exp-hero h1 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .trace-hero .no-break {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .proof-strip,
  .flow-steps,
  .ledger-layout,
  .owner-layout,
  .trace-layout,
  .exp-hero-grid,
  .reader-meta,
  .block-meta {
    grid-template-columns: 1fr;
  }

  .exp-visual {
    min-height: 280px;
    overflow: hidden;
  }

  .exp-visual img {
    transform: none;
  }

  .trace-orbit {
    left: 12px;
  }

  .floating-record {
    max-width: min(240px, 72vw);
  }

  .record-one {
    right: 10px;
    top: 18px;
  }

  .record-two {
    bottom: 12px;
    right: 12px;
  }

  .stat-row {
    gap: 20px;
  }

  .record-form {
    grid-template-columns: 1fr;
  }

  .feedback {
    padding: 24px 16px;
  }

  .feedback h2 {
    font-size: 22px;
  }

  .rating-row {
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 46px));
  }

  .rating {
    font-size: 18px;
    height: 46px;
  }

  .batch-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .block-card .batch-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-panel {
    position: static;
  }
}
