/* ============================================================
   Riyp — demo site design system
   Palette sampled from the Riyp logo + their own export carton.
   ============================================================ */

:root {
  --ink:        #0d0f12;
  --ink-2:      #14181d;
  --ink-3:      #1c2128;
  --charcoal:   #4d4d4d;
  --green:      #62b146;
  --green-dk:   #4a8f34;
  --lime:       #cedd36;
  --yellow:     #f3eb3b;
  --paper:      #f7f7f3;
  --paper-2:    #eeeee7;
  --white:      #ffffff;

  --line:       rgba(255, 255, 255, 0.10);
  --line-dark:  rgba(13, 15, 18, 0.10);
  --muted:      rgba(255, 255, 255, 0.62);
  --muted-dark: rgba(13, 15, 18, 0.58);

  --grad: linear-gradient(100deg, var(--yellow) 0%, var(--lime) 38%, var(--green) 100%);

  --shell: min(1240px, 92vw);
  --r:     14px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);

  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--lime); color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0;
}

.h-xl  { font-size: clamp(2.9rem, 7.4vw, 6rem); }
.h-lg  { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h-md  { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.h-sm  { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.kicker.on-light { color: var(--green-dk); }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
}
.lede.on-light { color: var(--muted-dark); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }

.btn-lime {
  background: var(--grad);
  color: var(--ink);
  box-shadow: 0 6px 26px rgba(206, 221, 54, 0.24);
}
.btn-lime:hover { box-shadow: 0 12px 38px rgba(206, 221, 54, 0.36); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 15, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand img {
  height: 30px;
  width: auto;
  /* charcoal wordmark -> white, mark keeps its colour via the source PNG */
  filter: brightness(0) invert(1);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.93rem;
}
.nav a { color: var(--muted); transition: color 0.25s; }
.nav a:hover, .nav a.active { color: var(--white); }
.nav .btn { padding: 0.68rem 1.25rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(98, 177, 70, 0.20) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}
.hero-figure {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
}
.hero-figure img { width: 100%; }

.hero-chip {
  position: absolute;
  left: 6%;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(10px);
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(206, 221, 54, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 12px rgba(206, 221, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 221, 54, 0); }
}

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--ink-2);
  padding: 2.4rem 1.5rem;
  text-align: center;
}
.stat .num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section.light { background: var(--paper); color: var(--ink); }
.section.mid   { background: var(--ink-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* ---------- produce grid ---------- */

.produce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}
.produce-card {
  position: relative;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 4 / 3.4;
  transition: transform 0.5s var(--ease);
}
.produce-card:hover { transform: translateY(-5px); }
.produce-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.produce-card:hover img { transform: scale(1.05); }
.produce-card .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.2rem 1.15rem;
  background: linear-gradient(to top, rgba(13, 15, 18, 0.92), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.produce-card .cap h3 { font-size: 1.18rem; color: var(--white); }
.produce-card .cap .n {
  font-size: 0.76rem;
  color: var(--lime);
  font-family: var(--f-display);
  white-space: nowrap;
}

/* ---------- feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.feature {
  padding: 2rem 1.7rem;
  border-radius: var(--r);
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.section.light .feature {
  background: var(--white);
  border-color: var(--line-dark);
}
.feature .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.section.light .feature p { color: var(--muted-dark); }

/* ---------- markets ---------- */

.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
}
.market {
  background: var(--paper);
  padding: 1.6rem 1.4rem;
}
.market h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dk);
  margin-bottom: 0.9rem;
}
.market ul { list-style: none; margin: 0; padding: 0; }
.market li {
  font-size: 0.9rem;
  padding: 0.24rem 0;
  color: var(--muted-dark);
  transition: color 0.2s;
}
.market li:hover { color: var(--ink); }

/* ---------- press ---------- */

.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.press img {
  height: 32px;
  width: auto;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.press img:hover { opacity: 1; }

/* ---------- cta band ---------- */

.cta-band {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--grad);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}
.cta-band .lede { color: rgba(13, 15, 18, 0.72); margin-inline: auto; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-grid img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.footer-grid h5 {
  font-family: var(--f-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 0.26rem 0; }
.footer-grid a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--white); }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- embed mode (?embed=1) ----------
   Used when a demo page is shown inside the pitch deck: drop the page's own
   intro and chrome so the feature being demonstrated is visible immediately. */

body.embed [data-embed-hide],
body.embed .cta-band,
body.embed .site-footer { display: none; }

body.embed .site-header { position: static; }
body.embed .section { padding-top: 1.6rem; padding-bottom: 1.6rem; }
body.embed section[style] { padding-bottom: 2rem !important; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.09s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Seasonality calendar
   ============================================================ */

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}
.chip {
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.chip.on {
  background: var(--grad);
  color: var(--ink);
  border-color: transparent;
}

.cal-select {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.cal-select select {
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 0.85rem;
  cursor: pointer;
}

/* The calendar has a legibility floor below which the bars stop meaning
   anything, so on narrow screens it scrolls sideways inside its own container
   rather than squashing — or forcing the whole page wide. */
.cal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
}

.cal {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}
.cal-months {
  display: grid;
  grid-template-columns: var(--label-w, 230px) repeat(12, 1fr);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--ink-3);
}

/* single "this week" flag, aligned to the same track geometry as the bars */
.cal-now-label {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.cal-months .m {
  padding: 1.9rem 0.25rem 0.7rem;
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
}
.cal-months .spacer { border-left: 0; }

.cal-group-label {
  padding: 0.85rem 1.2rem;
  font-family: var(--f-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.cal-row {
  display: grid;
  grid-template-columns: var(--label-w, 230px) 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.cal-row:hover { background: rgba(255, 255, 255, 0.03); }
.cal-row:last-child { border-bottom: 0; }

.cal-name {
  padding: 0.72rem 1.2rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.cal-name small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
}

.cal-track {
  position: relative;
  min-height: 52px;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px calc(100% / 12)
  );
  background-size: calc(100% / 12) 100%;
}

.bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  border-radius: 999px;
  background: var(--grad);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  transition: filter 0.25s, box-shadow 0.25s;
}
.bar:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 0 3px rgba(206, 221, 54, 0.22);
  z-index: 3;
}
.bar.dim { background: rgba(255, 255, 255, 0.14); color: var(--muted); }

.cal-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--white);
  opacity: 0.85;
  z-index: 4;
  pointer-events: none;
}

.cal-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* variety detail drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
}
.drawer.open { display: flex; }
.drawer-card {
  width: min(520px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  position: relative;
  animation: rise 0.4s var(--ease);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.4rem 0;
}
.spec div { background: var(--ink-2); padding: 0.85rem 1rem; }
.spec dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.2rem;
}
.spec dd { margin: 0; font-size: 0.92rem; font-family: var(--f-display); }

/* ============================================================
   RFQ / enquiry flow
   ============================================================ */

.rfq-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3.4rem;
}
.step-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  transition: background 0.4s;
}
.step-dot.done { background: var(--grad); }
.step-dot span {
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  transition: color 0.3s;
}
.step-dot.done span { color: var(--white); }

.rfq-step { display: none; animation: rise 0.45s var(--ease); }
.rfq-step.active { display: block; }
.rfq-step h2 { margin-bottom: 0.6rem; }
.rfq-step > p { color: var(--muted); margin-top: 0; }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 0.97rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(206, 221, 54, 0.16);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}
.pick {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.pick:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.pick.on {
  border-color: var(--lime);
  background: rgba(206, 221, 54, 0.11);
  box-shadow: inset 0 0 0 1px var(--lime);
}
.pick small { display: block; color: var(--muted); font-weight: 400; font-size: 0.76rem; margin-top: 0.2rem; }

.rfq-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* live summary rail */
.rail {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  padding: 1.7rem;
}
.rail h4 {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.rail dl { margin: 0; }
.rail .rw {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.89rem;
}
.rail .rw:last-child { border-bottom: 0; }
.rail .rw dt { color: rgba(255, 255, 255, 0.45); }
.rail .rw dd { margin: 0; text-align: right; font-family: var(--f-display); }
.rail .note {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.rfq-done { text-align: center; padding: 3rem 1rem; }
.rfq-done .tick {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin: 0 auto 1.6rem;
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .rfq-wrap { grid-template-columns: 1fr; }
  .rail { position: static; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cal-months, .cal-row { --label-w: 150px; }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 4vw 2rem;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  /* keep the bars readable and let the container scroll instead */
  .cal { min-width: 660px; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .cal-months, .cal-row { --label-w: 150px; }
  .cal-name { padding: 0.6rem 0.8rem; font-size: 0.84rem; }
  .cal-toolbar { gap: 0.4rem; }
  .cal-select { margin-left: 0; }
  #calCount { margin-left: 0 !important; }
}
