/* ===========================================================
   MOSAIQ SECURITY — Equinox-inspired homepage
   =========================================================== */

:root {
  /* type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* brand */
  --amber: #E8A33D;
  --amber-deep: #C4831F;

  /* DARK theme (default) */
  --bg:        #0B1524;
  --bg-2:      #0F1B2E;       /* surface */
  --bg-3:      #14253D;       /* raised */
  --line:      rgba(244, 239, 230, 0.12);
  --line-2:    rgba(244, 239, 230, 0.22);
  --fg:        #F4EFE6;
  --fg-2:      #C9C2B5;
  --fg-3:      #8A8475;
  --fg-muted:  rgba(244, 239, 230, 0.45);
  --grain-op:  0.045;
}

[data-theme="light"] {
  --bg:        #F4EFE6;
  --bg-2:      #ECE5D6;
  --bg-3:      #E2D9C5;
  --line:      rgba(11, 21, 36, 0.14);
  --line-2:    rgba(11, 21, 36, 0.28);
  --fg:        #0B1524;
  --fg-2:      #2A3B57;
  --fg-3:      #5C6679;
  --fg-muted:  rgba(11, 21, 36, 0.48);
  --grain-op:  0.06;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 320ms ease, color 320ms ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: var(--grain-op);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 220px 220px;
}

/* ---------- mono ---------- */
.mono { font-family: var(--mono); letter-spacing: 0.05em; font-size: 12px; text-transform: uppercase; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--fg);
}
.brand-mark { width: 38px; height: 24px; display: block; }
.brand-word {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 13px;
  text-transform: uppercase;
}
.brand-word em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  margin-left: 4px;
  color: var(--fg-2);
}

.nav-links { justify-self: center; display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--fg); transition: right 280ms ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { right: 0; }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--fg-2);
  border: 1px solid var(--line);
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: border-color 200ms;
}
.theme-toggle:hover { border-color: var(--line-2); color: var(--fg); }
.tt-track {
  width: 30px; height: 16px; border-radius: 999px; border: 1px solid var(--line-2);
  position: relative; flex: none;
}
.tt-thumb {
  position: absolute; top: 1px; left: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--fg);
  transition: left 240ms ease, background 240ms;
}
[data-theme="light"] .tt-thumb { left: 15px; background: var(--amber); }
.tt-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.tt-ico { width: 14px; height: 14px; display: none; color: currentColor; }
.tt-ico-moon { display: block; }
[data-theme="light"] .tt-ico-moon { display: none; }
[data-theme="light"] .tt-ico-sun { display: block; color: var(--amber); }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
}
.btn .arrow { transition: transform 220ms; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--amber);
  color: #0B1524;
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #0B1524; }
.btn-ghost {
  border-color: var(--line-2);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--fg-2); }
.btn-lg { padding: 16px 22px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; padding: 18px; font-size: 13px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: 64px 40px 40px;
  display: flex; flex-direction: column; gap: 28px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-meta { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-2); }
.dot {
  width: 8px; height: 8px;
  background: var(--amber);
  display: inline-block;
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 1500px;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--amber); }
.hero-title .muted { color: var(--fg-2); }

.hero-foot {
  display: block;
  text-align: center;
  margin-top: 0;
  padding-top: 8px;
}
.hero-sub { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-sub-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--fg);
}
.hero-sub-lead em { color: var(--amber); font-style: italic; }
.hero-sub-tail {
  font-size: 18px;
  color: var(--fg-2);
  margin: 0 auto;
  line-height: 1.55;
  display: block;
  padding-top: 16px;
  max-width: 60ch;
  text-align: center;
}
.hero-sub-mono {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero diagram + vert */
.hero-diagram {
  position: absolute;
  right: 40px; top: 130px;
  pointer-events: none;
  opacity: 0.85;
}
.hd-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px;
}
.hd-tag { color: var(--fg-3); padding: 4px 8px; border: 1px solid var(--line); }
.hd-tag.hd-mosaiq { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 60%, transparent); }

.hero-vert {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: var(--fg-3);
  font-size: 10px;
  letter-spacing: 0.32em;
}

@media (max-width: 900px) {
  .hero-diagram { display: none; }
  .hero-vert { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
}

/* ===========================================================
   MANIFESTO
   =========================================================== */
.manifesto { padding-top: 64px; padding-bottom: 64px; border-bottom: none; }
.manifest {
  list-style: none; margin: 0; padding: 0;
}
.m-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr;
  gap: 40px;
  padding: 44px 0;
  align-items: baseline;
  transition: background 220ms;
  position: relative;
}
.m-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 1px;
  background: var(--line);
}
.m-row:hover { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.m-num { color: var(--fg-3); align-self: start; padding-top: 18px; }
.m-strike {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.m-strike .strike {
  position: relative;
  color: var(--fg-3);
  font-style: normal;
}
.m-strike .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.m-row.in .m-strike .strike::after,
.section.in .m-row .m-strike .strike::after { transform: scaleX(1); }
.m-strike em { color: var(--fg); font-style: italic; }

.m-body {
  margin: 0;
  max-width: 52ch;
  align-self: center;
}
.m-body-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 12px;
}
.m-body-lead em { color: var(--amber); font-style: italic; }
.m-body-tail {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.m-body-tail em { color: var(--fg); font-style: italic; }

.manifest-foot {
  margin-top: 80px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.mf-line {
  width: 80px; height: 2px;
  background: var(--amber);
}
.mf-claim {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
}
.mf-claim em { color: var(--amber); font-style: italic; }
.mf-cta { margin-top: 8px; }

@media (max-width: 900px) {
  .m-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .m-num { padding-top: 0; }
}

/* ===========================================================
   STATS BAND
   =========================================================== */
.stats {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 24px 40px 64px;
  border-bottom: 1px solid var(--line);
}
.stat { flex: 0 0 auto; padding: 0 80px; text-align: center; max-width: 460px; }
.stat-rule { flex: 0 0 auto; background: var(--line); width: 1px; height: 120px; }
.stat-source {
  flex: 1 0 100%;
  text-align: center;
  margin-top: 40px;
  padding-top: 0;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.stat-source em { font-style: italic; text-transform: none; letter-spacing: 0.02em; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 4px;
  justify-content: center;
}
.stat-num span { color: var(--amber); font-size: 0.5em; }
.stat-num sup { font-size: 0.4em; color: var(--fg-2); top: -0.5em; position: relative; }
.stat-cap { color: var(--fg-2); margin: 16px auto 0; line-height: 1.4; max-width: 320px; }

@media (max-width: 900px) {
  .stats { flex-direction: column; gap: 40px; padding-bottom: 90px; }
  .stat-rule { display: none; }
  .stat { padding: 0; }
}

/* ===========================================================
   SECTIONS — generic
   =========================================================== */
.section {
  padding: 64px 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section.manifesto { border-bottom: none; padding-bottom: 24px; }
.section-head { max-width: 1100px; margin-bottom: 56px; }
.section-head-tight { margin-bottom: 44px; }
.kicker {
  display: inline-block;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: italic; color: var(--amber); }
.display.tight { line-height: 0.96; }
.amber { color: var(--amber); }

.lede {
  margin-top: 36px;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
}
.lede em { color: var(--fg); font-style: italic; }

/* ===========================================================
   OUTCOMES
   =========================================================== */
/* ===========================================================
   COMPARISON TABLE
   =========================================================== */
.cmp-table {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr;
  gap: 32px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 200ms;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row:not(.cmp-head):hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.cmp-head { color: var(--fg-3); padding: 18px 8px; }
.cmp-c1 { font-family: var(--serif); font-size: 24px; }
.cmp-head .cmp-c1, .cmp-head .cmp-c2, .cmp-head .cmp-c3 { font-family: var(--mono); font-size: 11px; }
.cmp-c2 { color: var(--fg-2); display: flex; align-items: center; gap: 10px; font-size: 16px; }
.cmp-c3 { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.x { color: var(--fg-3); font-size: 18px; }
.check { color: var(--amber); font-size: 18px; }
.cmp-mosaiq { background: color-mix(in srgb, var(--amber) 8%, transparent); }
.cmp-mosaiq:hover { background: color-mix(in srgb, var(--amber) 12%, transparent) !important; }
.cmp-mosaiq .cmp-c1 .amber { font-style: italic; }

@media (max-width: 900px) {
  .cmp-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .cmp-head { display: none; }
}

/* ===========================================================
   APPROACH DIAGRAM
   =========================================================== */
.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin: 60px 0 40px;
  padding: 0;
}
.dia-col { display: flex; flex-direction: column; gap: 18px; }
.dia-col.dia-core { justify-content: stretch; }
.dia-core .dia-core-frame { flex: 1 1 auto; display: flex; flex-direction: column; }
.dia-core .dia-core-list { margin-top: auto; }
.dia-stack { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.dia-chip {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}
.dia-label {
  color: var(--fg-3);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  min-height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.dia-flow { width: 80px; height: 1px; position: relative; align-self: center; }
.dia-flow-line {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, var(--fg-3) 20%, var(--fg-3) 80%, transparent 100%);
}
.dia-flow::after {
  content: "▸";
  position: absolute; right: -2px; top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 14px;
}

.dia-core-frame {
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 36px 28px 28px;
  text-align: center;
  overflow: hidden;
}
.dia-core-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%,
    color-mix(in srgb, var(--amber) 18%, transparent) 0%,
    transparent 60%);
  pointer-events: none;
}
.dia-core-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 18px;
  line-height: 1;
}
.dia-core-bracket {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--fg-3);
  line-height: 1;
  font-style: italic;
}
.dia-core-diamond {
  width: 20px; height: 20px;
  background: var(--amber);
  display: inline-block;
  transform: rotate(45deg);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 18%, transparent);
}
.dia-core-title {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: -0.02em;
  font-style: italic;
}
.dia-core-sub { color: var(--fg-3); margin-top: 4px; }
.dia-core-list {
  list-style: none; padding: 18px 0 0; margin: 18px 0 0;
  border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  color: var(--fg-2);
  font-size: 10px;
}
.dia-core-list li span { color: var(--amber); display: block; margin-bottom: 4px; }

.approach-note {
  max-width: 780px;
  margin: 0;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .diagram { grid-template-columns: 1fr; gap: 36px; }
  .dia-flow { display: none; }
  .dia-core-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   CATEGORY-OF-ONE CLAIM (under approach diagram)
   =========================================================== */
.approach .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.approach .section-head .kicker { display: inline-block; }
.approach-claim-line {
  margin: 64px auto 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 22ch;
}
.approach-claim-line strong {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
}
.approach-claim-line strong em { color: var(--amber); font-style: italic; }
.acl-tail {
  display: block;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-style: normal;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--fg-2);
  max-width: 56ch;
  text-align: center;
}

/* learn-more card */
.learn-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 24px;
  align-items: center;
  margin: 56px auto 0;
  max-width: 720px;
  padding: 32px 36px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--amber) 6%, transparent);
  color: var(--fg);
  text-decoration: none;
  text-align: center;
  transition: background 240ms, border-color 240ms, transform 240ms;
}
.learn-card:hover {
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  border-color: var(--amber);
}
.learn-card:hover .lc-arrow { transform: translateX(6px); }
.lc-meta {
  grid-column: 1 / -1;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.lc-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.lc-arrow { color: var(--amber); transition: transform 240ms; font-style: normal; }
.lc-sub {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 4px auto 0;
  text-align: center;
}

.out-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.out-grid-4 { grid-template-columns: repeat(4, 1fr); }
.out {
  padding: 48px 40px 56px;
  border-right: 1px solid var(--line);
  position: relative;
}
.out:last-child { border-right: none; }
.out-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.out h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.out p { color: var(--fg-2); margin: 0; max-width: 38ch; line-height: 1.5; }

@media (max-width: 1100px) {
  .out-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .out-grid-4 .out:nth-child(2) { border-right: none; }
  .out-grid-4 .out:nth-child(1),
  .out-grid-4 .out:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .out-grid, .out-grid-4 { grid-template-columns: 1fr; }
  .out { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 0; }
}

/* ===========================================================
   WHY NOW
   =========================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.why-left .display { margin-top: 32px; }
.why-lede {
  font-size: 19px; line-height: 1.55; color: var(--fg-2);
  max-width: 56ch; margin: 0 0 24px;
}
.why-lede em { color: var(--fg); font-style: italic; }
.why-tags {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.why-tag {
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===========================================================
   ACCESS FORM
   =========================================================== */
.access {
  background: var(--bg-2);
}
.access-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.access-left .display { margin-top: 32px; }
.access-lede {
  margin-top: 28px;
  font-size: 18px; color: var(--fg-2); max-width: 50ch; line-height: 1.55;
}
.access-bullets {
  margin-top: 32px; padding: 0; list-style: none;
  color: var(--fg-3); display: flex; flex-direction: column; gap: 8px;
}

.access-form {
  border: 1px solid var(--line-2);
  background: var(--bg);
  padding: 40px;
  position: relative;
}
.af-row { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.af-row label, .af-row legend {
  color: var(--fg-3);
  font-size: 11px;
}
.af-row .req { color: var(--amber); }
.af-row input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  padding: 10px 0;
  outline: none;
  transition: border-color 200ms;
  width: 100%;
}
.af-row input:focus { border-bottom-color: var(--amber); }
.af-row input:invalid:not(:placeholder-shown) { border-bottom-color: #d36b3a; }
.af-hint { color: var(--fg-3); margin-top: 6px; font-size: 10px; }

.af-radio { border: none; padding: 0; margin: 0 0 28px; }
.af-radio legend { padding: 0; margin-bottom: 12px; display: flex; gap: 8px; align-items: baseline; }
.opt { color: var(--fg-3); }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-grid label {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 180ms, background 180ms;
  font-size: 14px;
  color: var(--fg-2);
}
.radio-grid label:hover { border-color: var(--line-2); color: var(--fg); }
.radio-grid input { appearance: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); margin: 0; flex: none; }
.radio-grid input:checked { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent); }
.radio-grid label:has(input:checked) { border-color: var(--amber); color: var(--fg); background: color-mix(in srgb, var(--amber) 5%, transparent); }

.af-foot { color: var(--fg-3); margin-top: 14px; font-size: 10px; line-height: 1.5; }
.af-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.af-success {
  text-align: center; padding: 40px 16px;
}
.af-success-mark {
  color: var(--amber); font-size: 40px; margin-bottom: 12px;
}
.af-success h3 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin: 0 0 10px; }
.af-success p { color: var(--fg-2); margin: 0; }

/* ===== TRUST STRIP ===== */
.trust-strip {
  max-width: 1280px;
  margin: 96px auto 0;
  padding: 0;
}
.trust-strip-top {
  margin: 0 auto 88px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.trust-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.trust-eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--amber);
  font-weight: 600;
  white-space: nowrap;
}
.trust-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
  max-width: 56ch;
}
.trust-sep {
  color: var(--amber);
  margin: 0 6px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .access-shell { grid-template-columns: 1fr; gap: 40px; }
  .access-form { padding: 28px; }
  .radio-grid { grid-template-columns: 1fr; }
  .trust-headline { gap: 16px; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.foot {
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line);
}
.foot-top { padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.foot-tag {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.foot-tag em { color: var(--amber); }
.foot-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--fg-3); }
.foot-links { display: flex; gap: 28px; color: var(--fg-3); }
.foot-links a { transition: color 180ms; }
.foot-links a:hover { color: var(--fg); }

/* ===========================================================
   PADDING TUNING
   =========================================================== */
@media (max-width: 700px) {
  .nav { padding: 16px 20px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding: 80px 20px 60px; }
  .stats, .section, .foot { padding-left: 20px; padding-right: 20px; }
}

/* ===========================================================
   ENTRY ANIMATION
   =========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   MOBILE LAYER (≤ 640px) — uniform iOS + Android rendering
   Desktop behavior untouched.
   =========================================================== */
@media (max-width: 640px) {
  /* Global hardening — prevent horizontal scroll, normalize box model,
     disable iOS text auto-sizing so layout matches Android exactly. */
  html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  *, *::before, *::after { box-sizing: border-box; }
  img, svg { max-width: 100%; height: auto; }

  /* ---- NAV ---- */
  .nav {
    padding: 14px 16px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .theme-toggle { padding: 5px 8px 5px 5px; gap: 6px; }
  .theme-toggle .tt-track { width: 24px; height: 13px; }
  .theme-toggle .tt-thumb { width: 9px; height: 9px; }
  [data-theme="light"] .tt-thumb { left: 12px; }
  .theme-toggle .tt-icon { width: 12px; height: 12px; }
  .theme-toggle .tt-ico { width: 12px; height: 12px; }
  .nav-actions .btn-primary { padding: 10px 14px; font-size: 11px; }
  .brand-mark { width: 40px; height: auto; }
  .brand-word { font-size: 14px; letter-spacing: 0.04em; }

  /* ---- HERO ---- */
  .hero {
    padding: 56px 20px 64px;
    min-height: auto;
    gap: 32px;
  }
  .hero-title { font-size: clamp(28px, 7vw, 40px); line-height: 1.04; }
  .hero-sub-lead { font-size: clamp(15px, 3.8vw, 19px); line-height: 1.25; }
  .hero-sub-tail { font-size: 13px; }
  .hero-meta { font-size: 11px; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .hero-foot { padding-top: 28px; gap: 24px; }
  .hero-cta { justify-content: center; }
  .hero-diagram, .hero-vert { display: none; }

  /* ---- SECTION SPACING ---- */
  .section { padding: 80px 20px; }
  .stats { padding: 64px 20px 48px; flex-direction: column; gap: 36px; }
  .stat { padding: 0; max-width: 100%; }
  .stat-rule { display: none; }
  .stat-num { font-size: clamp(32px, 7vw, 48px); }
  .stat-cap { max-width: 100%; }
  .stat-source { margin-top: 40px; padding-top: 24px; font-size: 10px; }

  /* ---- KICKER + DISPLAY ---- */
  .kicker { font-size: 10px; letter-spacing: 0.14em; }
  .display { font-size: clamp(34px, 9.5vw, 56px); line-height: 1.04; }
  .display br { display: none; }

  /* ---- MANIFESTO ---- */
  .m-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .m-num { padding-top: 0; font-size: 10px; }
  .m-strike { font-size: clamp(28px, 7.6vw, 40px); line-height: 1.06; }
  .m-body { font-size: 15px; }
  .m-body-lead { font-size: 16px; }
  .m-body-tail { padding-top: 10px; font-size: 14px; }

  /* ---- APPROACH DIAGRAM ---- */
  /* Restore the desktop 3-column layout on mobile (sources | mosaiq | agents).
     Flow arrows stay hidden — they'd be too cramped at this width. */
  .diagram {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 8px;
    margin: 40px 0 32px;
    align-items: stretch;
  }
  .dia-flow { display: none; }
  .dia-col { gap: 10px; }
  .dia-stack { gap: 6px; flex: 1 1 auto; }
  .dia-chip {
    flex: 1 1 0;
    padding: 8px 8px;
    font-size: 9px;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    justify-content: center;
    word-break: break-word;
    hyphens: auto;
  }
  .dia-core-frame { padding: 14px 8px 12px; }
  .dia-core-mark { gap: 6px; margin: 0 0 8px; }
  .dia-core-bracket { font-size: 22px; }
  .dia-core-diamond { width: 12px; height: 12px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 18%, transparent); }
  .dia-core-title { font-size: 20px; }
  .dia-core-sub { font-size: 8px; letter-spacing: 0.04em; }
  .dia-core-list {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 8px;
  }
  .dia-label {
    min-height: 36px;
    font-size: 8px;
    letter-spacing: 0.04em;
    padding-top: 8px;
  }
  .dia-label { min-height: 44px; font-size: 10px; }
  .approach-claim-line {
    margin-top: 48px;
    font-size: clamp(26px, 7.2vw, 38px);
    line-height: 1.1;
    max-width: 100%;
  }

  /* ---- LEARN CARD ---- */
  .learn-card {
    margin-top: 40px;
    padding: 24px 22px;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .lc-meta { font-size: 10px; letter-spacing: 0.14em; }
  .lc-title { font-size: clamp(26px, 7vw, 36px); gap: 12px; }
  .lc-arrow { font-size: 22px; }
  .lc-sub { font-size: 13px; max-width: 100%; }

  /* ---- COMPARISON ---- */
  .cmp-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 4px; }
  .cmp-head { display: none; }
  .cmp-c1 { font-size: 22px; }
  .cmp-c2, .cmp-c3 { font-size: 14px; }

  /* ---- OUTCOMES ---- */
  .out-grid, .out-grid-4 { grid-template-columns: 1fr; }
  .out {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
  }
  .out:last-child { border-bottom: none; }
  .out h3 { font-size: 22px; }
  .out p { font-size: 15px; max-width: 100%; }

  /* ---- WHY GRID (if present) ---- */
  .why-grid { grid-template-columns: 1fr; gap: 32px; }

  /* ---- TRUST STRIP ---- */
  .trust-strip-top {
    margin-bottom: 56px;
    padding-bottom: 40px;
  }
  .trust-headline { gap: 14px; padding: 0; }
  .trust-eyebrow { font-size: 11px; letter-spacing: 0.24em; }
  .trust-line {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.32;
    max-width: 100%;
  }
  .trust-sep { margin: 0 4px; }

  /* ---- ACCESS FORM ---- */
  .access-shell { grid-template-columns: 1fr; gap: 32px; }
  .access-left .display { margin-top: 24px; }
  .access-lede { font-size: 16px; margin-top: 20px; }
  .access-bullets { margin-top: 24px; font-size: 11px; }
  .access-form { padding: 24px 20px; }
  .af-row { margin-bottom: 18px; }
  .af-row label { font-size: 10px; }
  .af-row input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 12px 0;
  }
  .af-hint { font-size: 10px; }
  .radio-grid { grid-template-columns: 1fr; gap: 8px; }
  .radio-grid label { padding: 14px 14px; font-size: 13px; }
  .btn-block { padding: 16px 20px; font-size: 12px; }
  .af-foot { font-size: 10px; line-height: 1.5; }
  .af-success { padding: 32px 20px; }

  /* ---- FOOTER ---- */
  .foot { padding: 56px 20px 28px; }
  .foot-top { padding-bottom: 40px; }
  .foot-tag {
    font-size: clamp(36px, 11vw, 60px);
    line-height: 1.05;
  }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 24px;
  }
  .foot-links {
    flex-wrap: wrap;
    gap: 16px 20px;
    font-size: 11px;
  }

  /* ---- BUTTONS ---- */
  .btn { padding: 12px 18px; font-size: 11px; min-height: 44px; }

  /* ---- TOUCH TARGETS ---- */
  a, button, input, label { -webkit-tap-highlight-color: transparent; }

  /* ---- GRAIN — keep, but lighten on mobile to reduce GPU cost ---- */
  .grain { background-size: 180px 180px; opacity: calc(var(--grain-op) * 0.7); }
}

/* Tighten the very-small bracket for ≤ 380px (older iPhones, narrow Androids) */
@media (max-width: 380px) {
  .nav { padding: 12px 14px; }
  .section { padding: 64px 16px; }
  .hero { padding: 48px 16px 56px; }
  .stats, .foot { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: clamp(24px, 6.6vw, 32px); }
  .display { font-size: clamp(30px, 9vw, 44px); }
  .m-strike { font-size: clamp(26px, 7.2vw, 36px); }
}

/* ====== ACCESSIBILITY / SEO HELPERS ====== */
.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;
}

/* ====== FAQ SECTION ====== */
.faq {
  padding-top: 64px;
  padding-bottom: 64px;
}
.faq-list {
  max-width: 980px;
  margin: 56px auto 0;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background-color 160ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background-color: var(--surface-hover, rgba(255,255,255,0.02)); }
.faq-item summary h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.25;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--fg-2);
  transition: transform 220ms ease, background-color 160ms ease;
}
.faq-plus::before {
  top: 8px; left: 0;
  width: 18px; height: 2px;
}
.faq-plus::after {
  top: 0; left: 8px;
  width: 2px; height: 18px;
}
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
  max-width: 760px;
}
.faq-body > .faq-body-inner {
  overflow: hidden;
  padding: 0 8px;
  opacity: 0;
  transition: opacity 220ms ease 60ms, padding-bottom 280ms ease;
  min-height: 0;
}
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-item.is-open .faq-body > .faq-body-inner {
  opacity: 1;
  padding-bottom: 32px;
}
.faq-item.is-open .faq-plus::after { transform: scaleY(0); }
.faq-item.is-open .faq-plus::before { background: var(--amber); }
.faq-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
@media (max-width: 720px) {
  .faq { padding-top: 64px; padding-bottom: 64px; }
  .faq-list { margin-top: 32px; }
  .faq-item summary { padding: 20px 4px; gap: 16px; }
  .faq-item summary h3 { font-size: 19px; }
  .faq-body { padding: 0 4px 24px; }
  .faq-body p { font-size: 15px; }
}
