:root {
  --ink: #121514;
  --ink-soft: #1b201e;
  --ink-softer: #222825;
  --paper: #f4f0e7;
  --paper-muted: #ded9cf;
  --sage: #aab4ac;
  --amber: #e6a64b;
  --line: rgba(244, 240, 231, 0.17);
  --line-strong: rgba(244, 240, 231, 0.3);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(230, 166, 75, 0.09), transparent 34rem),
    radial-gradient(circle at 8% 70%, rgba(170, 180, 172, 0.06), transparent 30rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1, h2, h3, h4, p, li {
  text-wrap: pretty;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 68ch;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 21, 20, 0.82);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  text-decoration: none;
}

.focus-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230, 166, 75, 0.12);
}

.nav-tag {
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 5px;
  color: var(--paper-muted);
}

.nav-links a:hover {
  color: var(--paper);
}

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

/* ---------- Section shells ---------- */

section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-label {
  margin: 0;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.section-label .dot {
  color: var(--amber);
  margin-right: 8px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.05;
}

.section-heading .lede {
  margin: 22px 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.border-top {
  border-top: 1px solid var(--line);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(72px, 10vw, 128px) 0 96px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Landing (initial page: animated bg + CTA + liquid-glass footer) ---------- */

.landing {
  position: relative;
  min-height: 115vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 40px;
  border-bottom: none;
}

.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0a0c0b 0%,
    #1c1409 30%,
    #4a3011 52%,
    #26190c 72%,
    #120e0a 100%
  );
}

.landing-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.75;
  mix-blend-mode: screen;
  animation: landing-bg-drift ease-in-out infinite;
}

.landing-bg span:nth-child(2) {
  width: 640px;
  height: 640px;
  top: -14%;
  left: -12%;
  background: radial-gradient(circle, rgba(230, 166, 75, 0.65), transparent 70%);
  animation-duration: 30s;
}

.landing-bg span:nth-child(3) {
  width: 560px;
  height: 560px;
  bottom: -18%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 196, 110, 0.5), transparent 70%);
  animation-duration: 36s;
  animation-delay: -10s;
}

.landing-bg span:nth-child(4) {
  width: 480px;
  height: 480px;
  top: 30%;
  right: 14%;
  background: radial-gradient(circle, rgba(170, 180, 172, 0.4), transparent 70%);
  animation-duration: 26s;
  animation-delay: -16s;
}

.landing-bg span:nth-child(5) {
  width: 420px;
  height: 420px;
  bottom: 14%;
  left: 10%;
  background: radial-gradient(circle, rgba(244, 240, 231, 0.35), transparent 70%);
  animation-duration: 22s;
  animation-delay: -6s;
}

@keyframes landing-bg-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, -6%) scale(1.06);
  }
  66% {
    transform: translate(-6%, 5%) scale(0.95);
  }
}

.landing-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 28%,
    rgba(10, 11, 10, 0.05),
    rgba(10, 11, 10, 0.32) 65%,
    rgba(10, 11, 10, 0.5) 100%
  );
}

.landing-content {
  position: relative;
  z-index: 1;
}

.landing-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-content-centered .lede {
  margin-inline: auto;
}

.landing-content-centered .hero-meta {
  justify-content: center;
}

.landing h1,
.landing .lede,
.landing .eyebrow {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 28px;
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-cta:hover {
  transform: translateY(-2px);
}

.landing-cta span {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-cta:hover span {
  transform: translateY(2px);
}

.landing-footer {
  position: relative;
  z-index: 1;
}

.site-footer.landing-footer {
  margin-top: auto;
  margin-bottom: 0;
}

.hero .eyebrow {
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow span {
  color: var(--amber);
  margin-right: 10px;
}

.hero h1 {
  margin-top: 30px;
  max-width: 880px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
}

.hero h1 em {
  color: var(--amber);
  font-weight: 400;
  font-style: normal;
}

.hero .lede {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--paper-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pill {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paper-muted);
}

.pill strong {
  color: var(--paper);
}

.pill .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Idea section ---------- */

.idea-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 60px;
}

.idea-grid .prose p + p {
  margin-top: 20px;
}

.idea-grid .prose {
  color: var(--paper-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.callout {
  padding: 26px 28px;
  border: 1px solid rgba(230, 166, 75, 0.35);
  border-radius: 22px;
  background: rgba(230, 166, 75, 0.06);
}

.callout p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 1.02rem;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 34px 28px 30px 0;
}

.stat:not(:first-child) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.stat .figure {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--amber);
  line-height: 1;
}

.stat p {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stat cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--sage);
}

@media (max-width: 760px) {
  .idea-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat:not(:first-child) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 30px;
  }
}

/* ---------- Research / evidence cards ---------- */

.research-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.research-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink-soft);
}

.research-card .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.research-card .kicker .year {
  color: var(--amber);
}

.research-card h3 {
  margin: 16px 0 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.research-card p {
  margin: 14px 0 0;
  color: var(--paper-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.research-card a.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--amber);
  text-decoration: none;
  text-underline-offset: 4px;
}

.research-card a.source-link:hover {
  text-decoration: underline;
}

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

/* ---------- Comparison table ---------- */

.compare-table-wrap {
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

table.compare caption {
  text-align: left;
  padding: 20px 24px 0;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

table.compare th,
table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare thead th {
  color: var(--paper);
  font-weight: 700;
  font-size: 0.82rem;
}

table.compare tbody th {
  color: var(--paper);
  font-weight: 650;
  white-space: nowrap;
}

table.compare td {
  color: var(--paper-muted);
  line-height: 1.5;
}

table.compare tbody tr.highlight td,
table.compare tbody tr.highlight th {
  background: rgba(230, 166, 75, 0.07);
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
  border-bottom: none;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(244, 240, 231, 0.08);
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--paper);
}

table.compare.rubric-table {
  min-width: 760px;
}

table.compare.rubric-table th:first-child {
  width: 13%;
  white-space: normal;
}

table.compare.rubric-table td:nth-child(2) {
  width: 27%;
  font-style: italic;
  color: var(--sage);
}

table.compare.rubric-table td:nth-child(3) {
  width: 60%;
}

/* ---------- Q&A prep ---------- */

.qa-prep {
  display: grid;
  gap: 22px;
}

.qa-item {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-soft);
}

.qa-q {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--paper);
}

.qa-a {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------- Architecture / how it works ---------- */

.pipeline {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.pipeline-step {
  position: relative;
  padding: 24px 20px 20px 0;
}

.pipeline-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 24px;
  right: -6px;
  color: var(--amber);
  font-size: 1.1rem;
}

.pipeline-step .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--amber);
}

.pipeline-step h4 {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-weight: 750;
  font-size: 0.98rem;
  color: var(--paper);
}

.pipeline-step p {
  margin: 8px 0 0;
  color: var(--sage);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .pipeline-step:not(:last-child)::after {
    display: none;
  }
}

.privacy-note {
  margin-top: 40px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid rgba(170, 180, 172, 0.3);
  border-radius: 20px;
  background: rgba(170, 180, 172, 0.05);
}

.privacy-note .mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.privacy-note p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.privacy-note strong {
  color: var(--paper);
}

/* ---------- Task grid (reused motif) ---------- */

.task-grid {
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  list-style: none;
}

.task-grid li {
  min-height: 200px;
  padding: 26px 26px 28px 0;
  border-bottom: 1px solid var(--line);
}

.task-grid li:not(:nth-child(3n + 1)) {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.task-number {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.task-grid h3 {
  margin: 32px 0 8px;
  font-family: var(--sans);
  font-weight: 720;
  font-size: 1.08rem;
}

.task-grid p {
  margin: 0;
  color: var(--sage);
  font-size: 0.9rem;
  line-height: 1.55;
}

.task-grid li.phase2 {
  background: rgba(230, 166, 75, 0.045);
}

.phase2-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230, 166, 75, 0.16);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

  .task-grid li:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Team ---------- */

.team-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.team-card .role-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.team-card h3 {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-weight: 750;
  font-size: 1.2rem;
}

.team-card p {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

/* ---------- Roadmap ---------- */

.roadmap-track {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.roadmap-col h3 {
  font-family: var(--sans);
  font-weight: 750;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.roadmap-col ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap-col li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.roadmap-col.shipped h3 {
  color: var(--amber);
}

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

/* ---------- Liquid glass (generic utility) ---------- */

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.sources {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sources ol {
  margin: 44px 0 0;
  padding: 0;
  counter-reset: source;
  display: grid;
  gap: 16px;
}

.sources li {
  counter-increment: source;
  padding-left: 40px;
  position: relative;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.sources li::before {
  content: "[" counter(source) "]";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.sources li a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: clamp(64px, 12vw, 160px);
  margin-bottom: 64px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  color: rgba(244, 240, 231, 0.7);
}

.footer-bg {
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
}

.footer-bg span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: footer-bg-drift 26s ease-in-out infinite;
}

.footer-bg span:nth-child(1) {
  width: 420px;
  height: 420px;
  top: 5%;
  left: 0%;
  background: radial-gradient(circle, rgba(230, 166, 75, 0.55), transparent 70%);
  animation-duration: 24s;
}

.footer-bg span:nth-child(2) {
  width: 380px;
  height: 380px;
  bottom: 0%;
  right: 5%;
  background: radial-gradient(circle, rgba(170, 180, 172, 0.45), transparent 70%);
  animation-duration: 30s;
  animation-delay: -8s;
}

.footer-bg span:nth-child(3) {
  width: 300px;
  height: 300px;
  top: 35%;
  right: 25%;
  background: radial-gradient(circle, rgba(244, 240, 231, 0.3), transparent 70%);
  animation-duration: 20s;
  animation-delay: -14s;
}

@keyframes footer-bg-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(7%, -9%) scale(1.08);
  }
  66% {
    transform: translate(-9%, 7%) scale(0.94);
  }
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 56px);
  margin-bottom: 40px;
}

.footer-brand .wordmark {
  font-size: 1.3rem;
}

.footer-desc {
  margin: 18px 0 0;
  max-width: 34ch;
  color: rgba(244, 240, 231, 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-links-heading {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.82rem;
  color: rgba(244, 240, 231, 0.6);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-links-list a:hover {
  color: var(--paper);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 231, 0.5);
}

.footer-bottom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-tag {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 240, 231, 0.55);
}

/* motion.footer equivalent: initial opacity:0/y:40, animate to opacity:1/y:0, duration 1s, delay 0.4s, ease-out */
.footer-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1000ms ease-out 400ms, transform 1000ms ease-out 400ms;
}

.footer-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ---------- Logo ---------- */

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(230, 166, 75, 0.3));
  animation: logo-breathe 4.5s ease-in-out infinite;
}

.hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 20px rgba(230, 166, 75, 0.28));
  animation: logo-breathe 4.5s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(230, 166, 75, 0.24));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(230, 166, 75, 0.5));
    transform: scale(1.035);
  }
}

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

.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 490ms; }

/* ---------- Hero load-in (plays immediately, not scroll-triggered) ---------- */

.hero-animate {
  animation: hero-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-animate.hero-animate-delay-1 { animation-delay: 90ms; }
.hero-animate.hero-animate-delay-2 { animation-delay: 180ms; }
.hero-animate.hero-animate-delay-3 { animation-delay: 270ms; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Micro-interactions ---------- */

.pill,
.research-card,
.team-card,
.stat,
.nav-links a,
.source-link,
.pipeline-step {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 166, 75, 0.55);
}

.research-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

table.compare tbody tr {
  transition: background 200ms ease;
}

table.compare tbody tr:hover td,
table.compare tbody tr:hover th {
  background: rgba(244, 240, 231, 0.035);
}

table.compare tbody tr.highlight:hover td,
table.compare tbody tr.highlight:hover th {
  background: rgba(230, 166, 75, 0.1);
}

.pipeline-step:not(:last-child)::after {
  animation: arrow-pulse 2.6s ease-in-out infinite;
}

.pipeline-step:nth-child(1)::after { animation-delay: 0ms; }
.pipeline-step:nth-child(2)::after { animation-delay: 150ms; }
.pipeline-step:nth-child(3)::after { animation-delay: 300ms; }
.pipeline-step:nth-child(4)::after { animation-delay: 450ms; }

@keyframes arrow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

.stat .figure {
  transition: text-shadow 500ms ease;
}

.stat-strip.is-visible .stat .figure {
  text-shadow: 0 0 24px rgba(230, 166, 75, 0.35);
}

/* ---------- iPhone scroll showcase ---------- */

.showcase {
  overflow: clip;
  padding-bottom: 0;
}

.phone-track {
  position: relative;
  height: 220vh;
  margin-top: 20px;
}

.phone-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 572px;
  border-radius: 56px;
  background: linear-gradient(160deg, #2c2c2e, #050505 55%, #000);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateX(34deg) scale(0.84);
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.55)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 14px;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04), transparent 50%),
    #0c0d0c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-orb {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  opacity: 0.35;
  transform: scale(0.92);
}

.phone-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(140deg, #fff, rgba(255, 255, 255, 0.2) 45%, #fff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.phone-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.35);
  opacity: 0.7;
}

.phone-mic {
  width: 30px;
  height: 30px;
  color: #fff;
}

.phone-ask-label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
}

.phone-caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .phone-track {
    height: 170vh;
  }

  .phone-frame {
    width: 224px;
    height: 458px;
    border-radius: 46px;
  }

  .phone-screen {
    border-radius: 36px;
    inset: 12px;
  }

  .phone-orb {
    width: 132px;
    height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > *,
  .hero-animate,
  .footer-animate {
    opacity: 1 !important;
    transform: none !important;
  }

  .phone-track {
    height: auto;
  }

  .phone-stage {
    position: relative;
    height: auto;
    padding: 40px 0 60px;
  }

  .phone-frame {
    transform: none !important;
  }

  .phone-orb {
    opacity: 1 !important;
    transform: none !important;
  }
}
