/* ============================================================
   memoryracks.com — token system
   ============================================================ */
:root {
  --void: #0B0E12;
  --panel: #13181F;
  --panel-raised: #1B222C;
  --line: #2A313C;
  --line-soft: #1E252F;
  --text: #E9ECF1;
  --text-dim: #8C96A6;
  --text-faint: #5A6270;
  --stamp: #FF5A36;
  --stamp-dim: #C7472A;
  --cyan: #4FD1E3;
  --amber: #F2A93C;

  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

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

/* subtle grain overlay for the chassis feel */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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");
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 18, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.wordmark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.wordmark-name .dot { color: var(--cyan); }

.header-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--stamp) !important;
  border: 1px solid var(--stamp-dim);
  padding: 6px 12px;
  border-radius: 2px;
}
.nav-cta:hover { background: rgba(255, 90, 54, 0.08); }

@media (max-width: 640px) {
  .header-nav a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Eyebrows / section heads (shared)
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--stamp);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 14px;
}
.section-lede { color: var(--text-dim); font-size: 16.5px; max-width: 56ch; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 900px 500px at 78% 8%, rgba(79, 209, 227, 0.08), transparent 60%),
    var(--void);
}

.hero-inner { max-width: 760px; position: relative; z-index: 2; }

.hero-headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero-headline-accent { color: var(--stamp); }

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--stamp);
  color: #0B0E12;
  font-weight: 600;
}
.btn-primary:hover { background: #ff6f4d; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }

/* rotating stamp graphic */
.hero-stamp {
  position: absolute;
  right: -60px;
  top: 40px;
  width: 260px;
  height: 260px;
  color: var(--text-faint);
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-ring {
  width: 100%;
  height: 100%;
  animation: spin 34s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stamp-center {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--stamp);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .hero-stamp { display: none; }
}

/* ============================================================
   Ledger
   ============================================================ */
.ledger { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.ledger-entry {
  background: var(--panel);
  padding: 34px 32px;
}

.ledger-entry-wide { grid-column: 1 / -1; }

.ledger-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin: 0 0 14px;
}

.ledger-entry h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.ledger-entry p:not(.ledger-tag):not(.ledger-source) {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 14px;
}

.ledger-source {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

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

/* ============================================================
   Velocity chart
   ============================================================ */
.velocity { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }

.velocity-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.velocity-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 14px;
  font-weight: 700;
}
.velocity-copy p:not(.eyebrow) { color: var(--text-dim); font-size: 15.5px; max-width: 42ch; }

.velocity-chart { position: relative; }

.chart-svg { width: 100%; height: auto; overflow: visible; }

.chart-label, .chart-axis {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-faint);
}

.chart-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s ease forwards;
  animation-play-state: paused;
}

.chart-path.in-view { animation-play-state: running; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.chart-dot { fill: var(--cyan); }
.chart-dot-end {
  filter: drop-shadow(0 0 6px rgba(79, 209, 227, 0.9));
}

.velocity-callout {
  position: absolute;
  right: 4%;
  top: -6%;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.velocity-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--stamp);
  line-height: 1;
}

.velocity-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 4px;
  max-width: 16ch;
}

@media (max-width: 820px) {
  .velocity-inner { grid-template-columns: 1fr; gap: 36px; }
  .velocity-callout { position: static; text-align: left; margin-top: 18px; }
}

/* ============================================================
   Manifest (signature element)
   ============================================================ */
.manifest { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }

.manifest-ticket {
  max-width: 620px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 0;
  position: relative;
}

.manifest-ticket::before,
.manifest-ticket::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.manifest-ticket::before { top: -1px; }
.manifest-ticket::after { bottom: -1px; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  font-size: 15px;
}

.ticket-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.ticket-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.ticket-value-deficit { color: var(--stamp); }

.ticket-bar-row { padding: 4px 30px 20px; }

.ticket-bar {
  height: 10px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}

.ticket-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--stamp-dim), var(--stamp));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.ticket-stamp-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  padding: 4px 10px;
  border-radius: 2px;
  transform: rotate(-6deg) scale(1.5);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.ticket-stamp-mark.stamped {
  transform: rotate(-6deg) scale(1);
  opacity: 1;
}

.ticket-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  padding: 0 30px 18px;
  margin: 0;
}

/* ============================================================
   Family / naming
   ============================================================ */
.family { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }

.family-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.family-copy p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 18px;
}
.family-copy strong { color: var(--text); }

.family-list {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 26px;
  border-radius: 3px;
  align-self: start;
}

.family-list-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.family-list ul { list-style: none; margin: 0 0 20px; padding: 0; }

.family-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}
.family-list li:last-child { border-bottom: none; }

.family-note { color: var(--text-faint); font-size: 11.5px; text-align: right; }

.family-fine {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .family-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Acquire
   ============================================================ */
.acquire {
  padding: 110px 0;
  background:
    radial-gradient(ellipse 700px 400px at 15% 100%, rgba(255, 90, 54, 0.07), transparent 60%),
    var(--void);
}

.acquire-inner { max-width: 900px; }

.acquire h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.acquire-lede {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 58ch;
  margin-bottom: 48px;
}

.acquire-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.acquire-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 16px;
}

.acquire-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 15px;
}
.acquire-steps li { margin-bottom: 10px; }

.acquire-contact {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--void);
  color: var(--text);
  font: 14px/1.5 var(--font-sans);
  padding: 10px 11px;
}

.inquiry-form textarea { resize: vertical; }

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--cyan);
  outline: 1px solid var(--cyan);
  outline-offset: 1px;
}

.inquiry-form button {
  border: 1px solid var(--stamp);
  border-radius: 2px;
  background: var(--stamp);
  color: var(--void);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.inquiry-form button:hover { filter: brightness(1.08); }
.inquiry-honeypot { display: none; }

.acquire-note { font-size: 13px; color: var(--text-faint); margin: 0; }

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

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line-soft);
}

.footer-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-dot { margin: 0 8px; color: var(--line); }

.footer-fine {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 80ch;
  line-height: 1.6;
  margin: 0;
}
