/* ===== Design tokens ===== */
:root {
  --ink: #1c1a17;
  --paper: #ede8de;
  --paper-warm: #e3ddcf;
  --ochre: #c08a28;
  --stamp-red: #a83232;
  --slate: #445069;
  --brown-deep: #4a3728;
  --line: rgba(28, 26, 23, 0.14);
  --line-light: rgba(237, 232, 222, 0.22);

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin: 0 0 14px;
  font-weight: 500;
}
.eyebrow-light { color: var(--ochre); }

.section-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.06;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.section-headline.light { color: var(--paper); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }

.btn-primary {
  background: var(--stamp-red);
  color: var(--paper);
}
.btn-primary:hover { background: #8f2929; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 10px 20px; font-size: 13px; }
.btn-wide { width: 100%; justify-content: center; padding: 16px 26px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 232, 222, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-dot { color: var(--stamp-red); }

.site-nav {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.site-nav a { text-decoration: none; color: var(--ink); opacity: 0.75; }
.site-nav a:hover { opacity: 1; }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 18px;
  max-width: 620px;
  color: #2f2b26;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.trust-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-chip { display: flex; flex-direction: column; }
.trust-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--stamp-red);
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #55504a;
}

.marker-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
}
.marker-lines path, .marker-lines circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.18;
}

/* ===== Segments ===== */
.segments { padding: 80px 0; }
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.segment-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
}
.segment-tag {
  font-family: var(--font-mono);
  color: var(--ochre);
  font-size: 13px;
  font-weight: 600;
}
.segment-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 10px 0 12px;
}
.segment-card p { margin: 0; font-size: 15px; color: #3a352f; }

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

/* ===== Process ===== */
.process { padding: 80px 0; background: var(--paper-warm); }
.process-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.process-list li {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--stamp-red);
  min-width: 70px;
}
.process-list h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 6px;
}
.process-list p { margin: 0; color: #3a352f; font-size: 15px; max-width: 560px; }

@media (max-width: 600px) {
  .process-list li { flex-direction: column; gap: 8px; }
  .step-num { font-size: 26px; }
}

/* ===== Compliance ===== */
.compliance {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0;
}
.compliance-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.compliance-lead {
  font-size: 17px;
  color: #d8d2c4;
  max-width: 560px;
  margin: 0 0 32px;
}

.manifest {
  border-top: 1px solid var(--line-light);
}
.manifest-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}
.manifest-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ochre);
  padding-top: 2px;
}
.manifest-value { font-size: 15px; color: #ece7db; }

.compliance-disclaimer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #948d7d;
  margin-top: 26px;
  line-height: 1.6;
}

.stamp-wrap { display: flex; justify-content: center; }
.stamp { width: 100%; max-width: 300px; height: auto; }
.stamp-ring-outer, .stamp-ring-inner {
  fill: none;
  stroke: var(--stamp-red);
  stroke-width: 2.5;
}
.stamp-text-curve {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  fill: var(--stamp-red);
}
.stamp-center-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  fill: var(--stamp-red);
}
.stamp-center-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.stamp {
  opacity: 0;
  transform: scale(1.6) rotate(-14deg);
}
.stamp.stamped {
  animation: stampDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes stampDown {
  0% { opacity: 0; transform: scale(1.6) rotate(-14deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

@media (max-width: 860px) {
  .compliance-inner { grid-template-columns: 1fr; }
  .stamp-wrap { order: -1; }
  .stamp { max-width: 200px; }
  .manifest-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== Capacity ===== */
.capacity { padding: 80px 0; }
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.capacity-item {
  border-top: 2px solid var(--stamp-red);
  padding-top: 18px;
}
.capacity-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  margin-bottom: 8px;
}
.capacity-caption { font-size: 14px; color: #3a352f; }

@media (max-width: 860px) {
  .capacity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Lead form ===== */
.lead-section {
  background: var(--brown-deep);
  color: var(--paper);
  padding: 90px 0;
}
.lead-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.lead-sub { color: #e0d9cb; font-size: 16px; max-width: 420px; }

.hidden-field { position: absolute; left: -9999px; }

.lead-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-split > div { margin-bottom: 0; }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #55504a;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--slate);
  outline-offset: 1px;
  border-color: var(--slate);
}
textarea { resize: vertical; }

.lead-success {
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 40px 32px;
}
.lead-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 10px;
}
.lead-success p { margin: 0; color: #3a352f; }

@media (max-width: 860px) {
  .lead-inner { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 50px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 24px;
}
.footer-wordmark { color: var(--paper); margin: 0 0 8px; }
.footer-tagline { color: #b8b1a1; font-size: 14px; margin: 0; max-width: 340px; }
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.footer-links a { text-decoration: none; color: var(--ochre); }
.footer-disclaimer {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #7a7364;
  line-height: 1.6;
  margin: 0;
}

/* subtle grain overlay for texture, purely decorative */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
