/* ============================================================
   Cinder — landing styles
   Palette: warm ink, bone, ember
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #101012;
  --ink-3: #16161a;
  --line: rgba(244, 241, 234, 0.09);
  --line-strong: rgba(244, 241, 234, 0.18);
  --bone: #f4f1ea;
  --bone-dim: rgba(244, 241, 234, 0.62);
  --bone-faint: rgba(244, 241, 234, 0.38);
  --ember: #e4572e;
  --ember-soft: #ff8a5c;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(900px 600px at 78% -8%, rgba(228, 87, 46, 0.13), transparent 62%),
    radial-gradient(700px 500px at 8% 12%, rgba(120, 130, 160, 0.07), transparent 60%),
    linear-gradient(180deg, #0b0b0d 0%, #08080a 55%, #0a0a0b 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 160px 160px, 100% 1400px, 100% 1400px, 100% 100%;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ember-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--bone);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.skip:focus { left: 16px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 11, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--bone);
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); }

.brand-word {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-soft);
  border: 1px solid rgba(228, 87, 46, 0.4);
  border-radius: 999px;
  padding: 3px 7px 2px;
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--bone-dim);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--bone);
  background: rgba(244, 241, 234, 0.02);
}
.btn-ghost:hover {
  background: rgba(244, 241, 234, 0.07);
  border-color: rgba(244, 241, 234, 0.32);
}

.btn-solid {
  background: var(--bone);
  color: #0a0a0b;
  border-color: var(--bone);
  position: relative;
  overflow: hidden;
}
.btn-solid:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
  transform: translateY(-1px);
}
.btn-solid:active { transform: translateY(0); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-spinner {
  display: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: block; }
.btn.is-loading .btn-label { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 46, 0.16), rgba(228, 87, 46, 0.05) 45%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 6px;
  background: rgba(244, 241, 234, 0.02);
}

.dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ember);
  opacity: 0;
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

.display {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.display em {
  font-style: italic;
  color: var(--ember-soft);
  background: linear-gradient(100deg, #ffb08a 0%, #e4572e 55%, #b83a1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.display-sm { font-size: clamp(44px, 5.6vw, 76px); }

.lede {
  max-width: 46ch;
  margin: 0 0 34px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--bone-dim);
  font-weight: 300;
}

/* ---------- form ---------- */

.access-form { max-width: 520px; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.03);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.field:focus-within {
  border-color: rgba(228, 87, 46, 0.55);
  background: rgba(244, 241, 234, 0.05);
  box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.08);
}

.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 8px 10px 16px;
}
.field input::placeholder { color: var(--bone-faint); }

.form-note {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--bone-faint);
  min-height: 20px;
  transition: color 0.25s var(--ease);
}
.form-note.is-error { color: #ff8f7a; }
.form-note.is-ok { color: #9fd6a8; }

/* ---------- stats ---------- */

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 6px;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

/* ---------- hero visual ---------- */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.orb {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 122, 0.5), rgba(228, 87, 46, 0.22) 38%, rgba(228, 87, 46, 0.06) 58%, transparent 72%);
}

.orb-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orb-core {
  position: relative;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ffe0c8, #ffb27a 55%, #e4572e 100%);
  box-shadow: 0 0 60px 10px rgba(228, 87, 46, 0.35);
}

.orb-orbit {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.orb-orbit i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--bone);
}
.orb-orbit-a { animation: orbit 26s linear infinite; }
.orb-orbit-b { animation: orbit 18s linear infinite reverse; }
.orb-orbit-b i {
  top: 50%;
  left: auto;
  right: 0;
  margin: 0 -3px 0 0;
  width: 5px;
  height: 5px;
  background: var(--ember);
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--bone-faint);
}
.visual-caption .mono { color: var(--ember-soft); }

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: rgba(244, 241, 234, 0.015);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 1;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
  white-space: nowrap;
  will-change: transform;
}

.marquee-track .sep { color: var(--ember); opacity: 0.7; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
}

.section-alt {
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.018), transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.kicker .mono { color: var(--ember-soft); }
.kicker.center { justify-content: center; }

.h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 em {
  font-style: italic;
  color: var(--bone-dim);
}

.section-lede {
  margin: 0;
  max-width: 58ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--bone-dim);
  font-weight: 300;
}
.section-lede.center { margin-inline: auto; text-align: center; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  background: var(--ink-2);
  transition: background 0.4s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% 0%, rgba(228, 87, 46, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover { background: #131316; }
.card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

.card-index { color: var(--bone-faint); }

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--ember-soft);
  opacity: 0.85;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); opacity: 1; }

.card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bone-dim);
  font-weight: 300;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.card-list li {
  position: relative;
  padding: 11px 0 11px 20px;
  font-size: 13px;
  color: var(--bone-faint);
  border-bottom: 1px solid var(--line);
}
.card-list li:last-child { border-bottom: 0; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.7;
}

/* ---------- code section ---------- */

.code-section {
  border-top: 1px solid var(--line);
}

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.code-points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.code-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--bone-dim);
}
.code-points .mono { color: var(--ember-soft); }

.code-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f0f12, #0b0b0d);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.025);
}

.code-dots { display: flex; gap: 5px; }
.code-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.16);
}
.code-dots i:first-child { background: rgba(228, 87, 46, 0.6); }

.code-body {
  margin: 0;
  padding: 22px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.78);
  tab-size: 2;
}

.code-body .ln {
  display: inline-block;
  width: 26px;
  color: rgba(244, 241, 234, 0.2);
  user-select: none;
}

.code-body .kw { color: #d98a6a; }
.code-body .str { color: #a8c7a0; }
.code-body .num { color: #c9b48a; }
.code-body .fn { color: #e8dcc8; }

.code-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.02);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--bone-faint);
}
.code-foot .mono { color: var(--ember-soft); }

/* ---------- status ---------- */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.progress-list {
  margin-top: 40px;
  display: grid;
  gap: 22px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--bone-dim);
}
.progress-head .mono { color: var(--bone-faint); }

.bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.08);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: inherit;
  background: linear-gradient(90deg, #b83a1c, var(--ember-soft));
  transform-origin: left;
  animation: bar-in 1.4s var(--ease) both;
}

@keyframes bar-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- log ---------- */

.log {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101013, #0c0c0e);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.log-head,
.log-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(244, 241, 234, 0.025);
}
.log-head { border-bottom: 1px solid var(--line); }
.log-foot { border-top: 1px solid var(--line); }

.log-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd6a8;
}
.log-live i {
  position: relative;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #9fd6a8;
}
.log-live i::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #9fd6a8;
  opacity: 0;
  animation: pulse-green 2.4s var(--ease) infinite;
}
@keyframes pulse-green {
  0%   { transform: scale(0.6); opacity: 0.7; }
  70%  { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  counter-reset: log;
}

.log-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.log-list li:last-child { border-bottom: 0; }
.log-list li:hover { background: rgba(244, 241, 234, 0.025); }

.log-date { padding-top: 3px; color: var(--bone-faint); }

.log-list p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bone-dim);
  font-weight: 300;
}

/* ---------- manifesto ---------- */

.manifesto { border-top: 1px solid var(--line); }

.quote {
  position: relative;
  margin: 0 0 clamp(56px, 7vw, 96px);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(228, 87, 46, 0.08), transparent 65%),
    rgba(244, 241, 234, 0.015);
}

.quote-mark {
  width: 40px;
  height: 27px;
  color: var(--ember);
  opacity: 0.5;
  margin-bottom: 24px;
}

.quote blockquote {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 30ch;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.quote figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--bone);
}
.quote figcaption .mono { display: block; margin-top: 2px; }

.avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, #1c1c20, #101013);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.principle { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.principle .mono { display: block; margin-bottom: 14px; color: var(--ember-soft); }
.principle h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
}
.principle p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-dim);
  font-weight: 300;
}

/* ---------- cta ---------- */

.cta-section {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(20px, 4vw, 48px);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(228, 87, 46, 0.14), rgba(228, 87, 46, 0.04) 45%, transparent 68%);
  pointer-events: none;
}

.cta-inner .display { margin-bottom: 22px; }
.cta-inner .section-lede { margin-bottom: 40px; }

.access-form-lg { width: 100%; max-width: 560px; }
.access-form-lg .field { padding: 7px; }
.access-form-lg .field input { padding: 12px 10px 12px 20px; font-size: 15.5px; }
.access-form-lg .btn { padding: 13px 24px; }
.access-form-lg .form-note { padding-left: 0; text-align: center; }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #08080a;
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--bone-faint);
  font-weight: 300;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-nav h4 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.footer-nav a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--bone-dim);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--bone); transform: translateX(2px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone-faint);
}
.footer-status i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .visual-caption { display: none; }
  .status-grid { grid-template-columns: 1fr; }
  .code-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 30px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero-visual { max-width: 300px; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
  .header-cta svg { width: 17px; height: 17px; }
  .hero-stats { flex-wrap: wrap; gap: 22px 32px; }
  .field { flex-direction: column; border-radius: 18px; padding: 10px; }
  .field input { width: 100%; padding: 10px 12px; text-align: center; }
  .field .btn { width: 100%; }
  .form-note { padding-left: 0; text-align: center; }
  .log-list li { grid-template-columns: 1fr; gap: 6px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .quote blockquote { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
