@import url("./assets/fonts/fonts.css");

/* ==========================================================================
   Ticker — First Crack Coffee Roasters
   A roastery read as a trading platform.
   Depth is surface stepping + hairlines only: no shadows, no gradients.
   ========================================================================== */

:root {
  /* Palette */
  --canvas-dark: #0b0e11;
  --surface-card: #1e2329;
  --surface-elevated: #2b3139;
  --canvas-light: #ffffff;
  --surface-footer: #fafafa;
  --surface-chip: #f5f5f5;
  --accent: #fcd535;
  --accent-active: #f0b90b;
  --ink: #181a20;
  --body-on-dark: #eaecef;
  --on-dark: #ffffff;
  --muted-on-dark: #8b95a5;
  --muted-on-light: #66707f;
  --hairline-dark: #2b3139;
  --hairline-light: #eaecef;
  --credit: #0a7c50;
  --debit: #d6304b;
  --focus: #3b82f6;

  /* 4px spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --band: 80px;

  /* Radius scale */
  --r-chip: 4px;
  --r-btn: 6px;
  --r-card: 8px;
  --r-elevated: 12px;

  /* Type voices */
  --font-prose: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-num: "IBM Plex Sans", Inter, system-ui, -apple-system, Arial, sans-serif;

  --nav-h: 64px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-prose);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

/* --------------------------------------------------------------------------
   Page registers — the surface flip (Signature 1)
   -------------------------------------------------------------------------- */

.page--dark {
  background: var(--canvas-dark);
  color: var(--body-on-dark);
}

.page--light {
  background: var(--canvas-light);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--band);
}

.rule-top {
  border-top: 1px solid var(--hairline-dark);
}

.page--light .rule-top {
  border-top-color: var(--hairline-light);
}

/* --------------------------------------------------------------------------
   Typography — prose voice (Inter)
   -------------------------------------------------------------------------- */

.t-hero {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.t-display-lg {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.t-display-md {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
}

.t-display-sm {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.t-title-lg {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.t-title-md {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.t-title-sm {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.t-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.t-body-sm {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.t-caption {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.t-caption--label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Typography — number voice (IBM Plex Sans). Signature 4.
   Every numeral on the site carries .num. Zero exceptions.
   -------------------------------------------------------------------------- */

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 500;
}

.num--700 {
  font-weight: 700;
}

.num--display {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.num--md {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.num--sm {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.num--nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-family: var(--font-prose);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms linear;
}

.btn--primary {
  background: var(--accent);
  color: var(--ink); /* invariant: ink on accent, never white */
}

.btn--primary:hover {
  background: var(--accent-active);
}

/* The pill radius appears exactly once in the system: the index hero CTA. */
.btn--pill {
  min-height: 48px;
  padding: 14px 32px;
  border-radius: 999px;
}

.btn--secondary-dark {
  background: var(--surface-card);
  color: var(--on-dark);
}

.btn--secondary-dark:hover {
  background: var(--surface-elevated);
}

/* --------------------------------------------------------------------------
   Top nav — 64px, dark variant (index/about), light variant (beans)
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav--dark {
  background: var(--canvas-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.nav--light {
  background: var(--canvas-light);
  border-bottom: 1px solid var(--hairline-light);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  height: var(--nav-h);
}

.nav__wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Accent-as-text is a dark-surface license only. */
.nav--dark .nav__wordmark {
  color: var(--accent);
}

.nav--light .nav__wordmark {
  color: var(--ink);
}

.nav__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms linear;
}

.nav--dark .nav__link {
  color: var(--muted-on-dark);
}

.nav--dark .nav__link:hover,
.nav--dark .nav__link[aria-current="page"] {
  color: var(--on-dark);
}

.nav--light .nav__link {
  color: var(--muted-on-light);
}

.nav--light .nav__link:hover,
.nav--light .nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-btn);
  cursor: pointer;
}

.nav__bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav__bars::before,
.nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav__bars::before {
  top: -6px;
}

.nav__bars::after {
  top: 6px;
}

.nav--dark .nav__toggle {
  color: var(--on-dark);
}

.nav--light .nav__toggle {
  color: var(--ink);
}

/* Static open state — no morph animation; the system does not move. */
.nav[data-open="true"] .nav__bars {
  background: transparent;
}

.nav[data-open="true"] .nav__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav[data-open="true"] .nav__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero band (index)
   -------------------------------------------------------------------------- */

.hero {
  padding-block: var(--band);
}

.hero__title {
  max-width: 16ch;
  color: var(--on-dark);
}

/* Accent-as-text inside a headline — dark surfaces only. */
.hero__figure,
.figure-accent {
  color: var(--accent);
}

.hero__sub {
  max-width: 60ch;
  margin-top: var(--sp-6);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* --------------------------------------------------------------------------
   Stat callout row
   -------------------------------------------------------------------------- */

.stat-strip {
  padding-block: var(--sp-12);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* Value reads above its label; DOM order stays label-then-value so the <dl> is valid. */
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-2);
}

.stat__value {
  color: var(--accent); /* stat callout: accent text on dark only */
  white-space: nowrap;
}

.stat__label {
  display: block;
  color: var(--muted-on-dark);
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.section__head {
  max-width: 68ch;
  margin-bottom: var(--sp-12);
}

.section__eyebrow {
  display: block;
  margin-bottom: var(--sp-3);
}

.page--dark .section__eyebrow {
  color: var(--muted-on-dark);
}

.page--light .section__eyebrow {
  color: var(--muted-on-light);
}

.page--dark .section__title {
  color: var(--on-dark);
}

.page--light .section__title {
  color: var(--ink);
}

.section__lede {
  margin-top: var(--sp-6);
  font-size: 16px;
  line-height: 1.6;
}

.page--dark .section__lede {
  color: var(--body-on-dark);
}

.page--light .section__lede {
  color: var(--muted-on-light);
}

.prose p + p {
  margin-top: var(--sp-4);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Signature 2 — Origins market table (index)
   -------------------------------------------------------------------------- */

.market-card {
  background: var(--surface-card);
  border-radius: var(--r-elevated);
  padding: var(--sp-6);
}

.market {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.market__head th {
  padding: 0 var(--sp-3) var(--sp-3);
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.market__head th:first-child {
  padding-left: 0;
}

.market__col--origin {
  width: 40%;
}

.market__col--spec {
  width: 18%;
}

.market__col--action {
  width: 6%;
}

.market__row + .market__row td {
  border-top: 1px solid var(--hairline-dark);
}

.market td {
  padding: var(--sp-3);
  vertical-align: middle;
}

.market td:first-child {
  padding-left: 0;
}

.market td:last-child {
  padding-right: 0;
}

.market__origin {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.market__thumb {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.market__name {
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.market__region {
  display: block;
  color: var(--muted-on-dark);
}

.market__value {
  color: var(--body-on-dark);
}

.market__action {
  text-align: right;
}

.market__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-btn);
  color: var(--muted-on-dark);
  transition: color 120ms linear;
}

.market__chevron:hover {
  color: var(--on-dark);
}

.market__chevron::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -3px;
}

/* --------------------------------------------------------------------------
   Roasting process — step cards + photo strip
   -------------------------------------------------------------------------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.step-card {
  background: var(--surface-card);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.step-card__ordinal {
  color: var(--muted-on-dark);
}

.step-card__label {
  color: var(--on-dark);
}

.step-card__meta {
  color: var(--body-on-dark);
}

.step-card__note {
  margin-top: var(--sp-1);
  color: var(--muted-on-dark);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.photo-card {
  background: var(--surface-card);
  border-radius: var(--r-elevated);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-card figcaption {
  padding: var(--sp-3) var(--sp-6) var(--sp-6);
  color: var(--muted-on-dark);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
  background: var(--surface-card);
  border-radius: var(--r-elevated);
  padding: var(--sp-12);
}

.cta-band__title {
  color: var(--on-dark);
}

.cta-band__sub {
  margin-top: var(--sp-3);
  color: var(--body-on-dark);
}

/* --------------------------------------------------------------------------
   Origin cards (beans, light)
   -------------------------------------------------------------------------- */

.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.origin-card {
  display: flex;
  flex-direction: column;
  background: var(--canvas-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-card);
  padding: var(--sp-6);
}

.origin-card__media {
  border-radius: var(--r-elevated);
  overflow: hidden;
}

.origin-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.origin-card__name {
  margin-top: var(--sp-6);
  color: var(--ink);
}

.origin-card__region {
  margin-top: var(--sp-1);
  color: var(--muted-on-light);
}

.origin-card__specs {
  margin-top: var(--sp-6);
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--hairline-light);
}

.spec-row__label {
  color: var(--muted-on-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-row__value {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.origin-card__notes {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline-light);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.chip {
  background: var(--surface-chip);
  color: var(--ink);
  border-radius: var(--r-chip);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Signature 3 — Brew ledger (beans)
   -------------------------------------------------------------------------- */

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.ledger {
  background: var(--canvas-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-card);
  padding: var(--sp-6);
}

.ledger__method {
  color: var(--muted-on-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ledger__lead {
  margin-top: var(--sp-3);
  color: var(--ink);
  white-space: nowrap;
}

.ledger__leadNote {
  margin-top: var(--sp-1);
  color: var(--muted-on-light);
}

.ledger__rows {
  margin-top: var(--sp-6);
}

.ledger__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--hairline-light);
}

.ledger__row dt {
  color: var(--muted-on-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.ledger__row dd {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.ledger__pair {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline-light);
}

/* --credit / --debit: text color only, ledger card only. */
.ledger__debit {
  color: var(--debit);
}

.ledger__credit {
  color: var(--credit);
}

/* --------------------------------------------------------------------------
   About — lead image, week calendar grid (Signature 5), visit cards
   -------------------------------------------------------------------------- */

.lead-figure {
  margin-top: var(--sp-12);
  background: var(--surface-card);
  border-radius: var(--r-elevated);
  overflow: hidden;
}

.lead-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead-figure figcaption {
  padding: var(--sp-3) var(--sp-6) var(--sp-6);
  color: var(--muted-on-dark);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--sp-3);
}

.week__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
  min-height: 148px;
  background: var(--surface-card);
  border-radius: var(--r-card);
  padding: var(--sp-6);
}

.week__day {
  color: var(--muted-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.week__marks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.week__mark {
  color: var(--body-on-dark);
  font-size: 13px;
  line-height: 1.4;
}

/* The page's only accent-colored label. */
.week__mark--roast {
  color: var(--accent);
  font-weight: 600;
}

.week__mark--closed {
  color: var(--muted-on-dark);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.visit-card {
  background: var(--surface-card);
  border-radius: var(--r-card);
  padding: var(--sp-6);
}

.visit-card__label {
  color: var(--muted-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visit-card__value {
  margin-top: var(--sp-3);
  color: var(--on-dark);
}

.visit-card__note {
  margin-top: var(--sp-2);
  color: var(--body-on-dark);
}

/* --------------------------------------------------------------------------
   Footer — light on every page, dark ones included (the deliberate inversion)
   -------------------------------------------------------------------------- */

.footer {
  background: var(--surface-footer);
  color: var(--ink);
  padding-block: 64px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.footer__heading {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__list {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--muted-on-light);
}

.footer__link {
  color: var(--muted-on-light);
  transition: color 120ms linear;
}

.footer__link:hover {
  color: var(--ink);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline-light);
  color: var(--muted-on-light);
}

/* --------------------------------------------------------------------------
   Breakpoint: 1024px — intermediate tightening
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .t-hero {
    font-size: 48px;
  }

  .t-display-lg {
    font-size: 40px;
  }

  .origin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .week {
    gap: var(--sp-2);
  }

  .week__cell {
    padding: var(--sp-4);
    min-height: 132px;
  }

  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Breakpoint: 768px — hamburger sheet, table reflow, week list
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .container {
    padding-inline: var(--sp-4);
  }

  .section {
    padding-block: 56px;
  }

  .hero {
    padding-block: 56px;
  }

  .t-hero {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .t-display-lg {
    font-size: 32px;
  }

  .t-display-md {
    font-size: 28px;
  }

  .t-display-sm {
    font-size: 24px;
  }

  /* Nav → hamburger sheet */
  .nav__toggle {
    display: inline-flex;
  }

  .nav__nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: var(--sp-6) var(--sp-4) var(--sp-8);
    overflow-y: auto;
  }

  .nav--dark .nav__nav {
    background: var(--canvas-dark);
  }

  .nav--light .nav__nav {
    background: var(--canvas-light);
  }

  .nav[data-open="true"] .nav__nav {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: var(--sp-4) 0;
    font-size: 20px;
    font-weight: 600;
  }

  .nav--dark .nav__link + .nav__link,
  .nav--dark .nav__links li + li .nav__link {
    border-top: 1px solid var(--hairline-dark);
  }

  .nav--light .nav__links li + li .nav__link {
    border-top: 1px solid var(--hairline-light);
  }

  /* The yellow CTA is anchored at the bottom of the sheet. */
  .nav__cta {
    margin-top: auto;
    width: 100%;
  }

  /* Stat numbers scale down rather than wrap. */
  .stat-strip {
    padding-block: var(--sp-8);
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat {
    padding-block: var(--sp-4);
  }

  .stat + .stat {
    border-top: 1px solid var(--hairline-dark);
  }

  .stat__value.num--display {
    font-size: 32px;
  }

  .section__head {
    margin-bottom: var(--sp-8);
  }

  /* Signature 2 → horizontally scrollable card-per-origin list.
     The outer elevated card dissolves; each row becomes its own --surface-card
     card, so no text ever lands on --surface-elevated. */
  .market-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .market,
  .market__body {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .market__head {
    display: none;
  }

  .market__body {
    display: flex;
    gap: var(--sp-3);
    overflow-x: auto;
    padding-bottom: var(--sp-2);
  }

  .market__row {
    display: flex;
    flex-direction: column;
    flex: 0 0 248px;
    min-width: 0;
    background: var(--surface-card);
    border-radius: var(--r-elevated);
    padding: var(--sp-4);
  }

  .market__row + .market__row td {
    border-top: 0;
  }

  .market td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-2) 0;
  }

  .market td:first-child {
    padding-left: 0;
  }

  .market__cell--spec {
    border-top: 1px solid var(--hairline-dark);
  }

  .market__cell--spec::before {
    content: attr(data-label);
    font-family: var(--font-prose);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
  }

  .market__cell--origin {
    padding-top: 0;
    padding-bottom: var(--sp-3);
  }

  .market__cell--action {
    justify-content: flex-end;
    padding-bottom: 0;
    border-top: 1px solid var(--hairline-dark);
    padding-top: var(--sp-3);
  }

  /* Step cards */
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  /* CTA band */
  .cta-band {
    padding: var(--sp-6);
  }

  .cta-band .btn {
    width: 100%;
  }

  /* Beans */
  .origin-grid {
    grid-template-columns: 1fr;
  }

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

  /* Signature 5 → vertical list */
  .week {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .week__cell {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 0;
    padding: var(--sp-4) var(--sp-6);
  }

  .week__marks {
    align-items: flex-end;
    text-align: right;
  }

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

  .lead-figure {
    margin-top: var(--sp-8);
  }

  .footer {
    padding-block: 48px;
  }
}

/* --------------------------------------------------------------------------
   Breakpoint: 560px
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .step-grid {
    grid-template-columns: 1fr;
  }

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

/* --------------------------------------------------------------------------
   Motion: near none. Under reduced-motion, nothing transitions at all.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
