/* ============================================================
   JNANA LAB — design system
   Night indigo · candlelight gold · breathing violet
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Registered custom properties (kinetic type) ---------- */
@property --tw {
  syntax: "<number>";
  inherits: true;
  initial-value: 380;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0912;
  --bg-deep: #060510;
  --ink: #ece9f4;
  --ink-muted: #a9a3c4;
  --ink-faint: #837da8; /* ≥4.5:1 on --bg for small text (WCAG AA) */
  --gold: #e9c98f;
  --gold-soft: #d9b98a;
  --violet: #a99df0;
  --pink: #e89ad8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);

  --space-section: clamp(7rem, 16vh, 12rem);
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --content-w: 68rem;

  --hairline: rgba(236, 233, 244, 0.09);
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(169, 157, 240, 0.35) transparent;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 380;
  font-variation-settings: "wght" 380;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, li, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
b { font-weight: 560; }

::selection { background: rgba(233, 201, 143, 0.25); color: #fff8ea; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* fine grain over everything — the "frosted noise" layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Sky canvas & vignette ---------- */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 32%, transparent 45%, rgba(4, 3, 10, 0.5) 100%);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.85rem;
  transform: translateY(-300%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 520;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow [lang="sa"] { color: var(--gold-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 420;
  font-variation-settings: "opsz" 100, "wght" 420;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-top: 0.9rem;
  text-wrap: balance;
}

/* ---------- Reveal system (JS adds .js to <html>, .inview per element) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.inview {
  opacity: 1;
  transform: none;
  filter: none;
}

/* kinetic words: each line clips, each word rises with a weight bloom */
.js .kinetic .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em);
  filter: blur(7px);
  --tw: 210;
  transition:
    opacity 1.05s var(--ease),
    transform 1.05s var(--ease),
    filter 1.05s var(--ease),
    --tw 1.4s var(--ease-soft);
  transition-delay: var(--d, 0s);
}
.js .kinetic.inview .w {
  opacity: 1;
  transform: none;
  filter: none;
  --tw: 400;
}
.kinetic .line { display: block; }

/* words resolve their own weight so each can bloom independently */
.kinetic .w { font-variation-settings: "opsz" 144, "wght" var(--tw, 400); }
.giant .w { font-variation-settings: "opsz" 144, "wght" calc(var(--tw, 380) * var(--gw, 1)); }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad-x);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(9, 8, 17, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.brand-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff3dc, var(--gold) 45%, #8d79d8 80%, transparent);
  box-shadow: 0 0 14px rgba(233, 201, 143, 0.55);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 460;
  font-variation-settings: "opsz" 40, "wght" 460;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 440;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 0.7rem 0.15rem;
  position: relative;
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0.45rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a:hover::after, .site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.sound-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.sound-toggle:hover { color: var(--ink); border-color: rgba(236, 233, 244, 0.22); }
.sound-toggle .wave { opacity: 0.25; transition: opacity 0.4s ease; }
.sound-toggle[aria-pressed="true"] { color: var(--gold); border-color: rgba(233, 201, 143, 0.4); }
.sound-toggle[aria-pressed="true"] .wave { opacity: 1; }

.head-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.lang-switch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 0.7rem;
  font-weight: 520;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.lang-switch:hover, .lang-switch:focus-visible {
  color: var(--gold);
  border-color: rgba(233, 201, 143, 0.4);
}

/* nav priority: the least essential links step aside as space tightens */
@media (max-width: 64em) {
  .site-nav .nav-lo { display: none; }
}
@media (max-width: 48em) {
  .site-nav .nav-mid { display: none; }
}

@media (max-width: 40em) {
  .site-head { padding-inline: 0.85rem; gap: 0.5rem; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.03em; }
  .site-nav { gap: 0.8rem; }
  .site-nav a { font-size: 0.7rem; letter-spacing: 0.04em; padding-inline: 0; }
  .sound-toggle { width: 40px; height: 40px; flex: 0 0 auto; }
}
@media (max-width: 30em) {
  /* the golden dot carries the brand; the wordmark lives in the footer */
  .site-head .brand-name { display: none; }
  .site-head { gap: 0.35rem; }
  .site-nav { gap: 0.55rem; }
  .site-nav a { font-size: 0.67rem; letter-spacing: 0.02em; }
  .head-tools { gap: 0.3rem; }
  .lang-switch { width: 36px; height: 36px; font-size: 0.66rem; }
  .sound-toggle { width: 36px; height: 36px; }
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
main { position: relative; z-index: 2; }

section {
  position: relative;
  max-width: var(--content-w);
  margin-inline: auto;
  padding: var(--space-section) var(--pad-x);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}
.hero-anchor {
  position: absolute;
  top: 34%; left: 50%;
  width: 1px; height: 1px;
}
.hero-eyebrow { margin-bottom: 2.2rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "wght" var(--tw, 400);
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(6, 5, 16, 0.6);
}
.hero-title em {
  color: var(--gold);
  font-variation-settings: "opsz" 144, "wght" var(--tw, 400), "SOFT" 70;
}
/* Spanish headline runs longer: two balanced lines, a touch smaller */
:lang(es) .hero-title {
  max-width: 26ch;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
}
/* italic overhang breathing room */
.hero-title em, .giant em, .creed-yes em { padding-right: 0.05em; }

.hero-sub {
  margin-top: 1.8rem;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  font-weight: 380;
  max-width: 34ch;
  text-wrap: balance;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
}
.promises li {
  font-size: 0.78rem;
  font-weight: 460;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.028);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.promises li::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
  margin-right: 0.55rem;
  vertical-align: 2px;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--ink-muted); }
.scroll-cue svg { animation: cue-bob 2.6s var(--ease-soft) infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(-1px); opacity: 0.6; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* ============================================================
   SHOWCASE — Orb
   ============================================================ */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  min-height: 100svh;
}

.phone {
  display: block;
  justify-self: center;
  width: min(300px, 74vw);
  transition: transform 0.5s var(--ease), border-color 0.5s ease, box-shadow 0.5s var(--ease);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  border: 1px solid rgba(236, 233, 244, 0.16);
  background: linear-gradient(200deg, rgba(30, 27, 48, 0.5), rgba(10, 9, 18, 0.42));
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 0 6px rgba(6, 5, 14, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 10px;
}
a.phone:hover, a.phone:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(233, 201, 143, 0.35);
  box-shadow:
    0 46px 100px -30px rgba(0, 0, 0, 0.8),
    0 0 0 6px rgba(6, 5, 14, 0.65),
    0 0 44px rgba(233, 201, 143, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: rgba(7, 6, 13, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* dynamic island */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 22px;
  border-radius: 999px;
  background: #04030a;
}
.phone-status {
  align-self: flex-start;
  padding: 14px 0 0 26px;
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: rgba(236, 233, 244, 0.85);
}
.phone-anchor {
  position: absolute;
  top: 46%; left: 50%;
  width: 1px; height: 1px;
}
.breath-cue {
  position: absolute;
  bottom: 88px; left: 0; right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(236, 233, 244, 0.5);
}
.breath-cue span { transition: opacity 1.1s ease; }
.phone-tabbar {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20, 18, 34, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.phone-tabbar .tab {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(236, 233, 244, 0.55);
  padding: 7px 11px;
  border-radius: 999px;
}
.phone-tabbar .tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.showcase-title {
  font-family: var(--font-display);
  font-weight: 430;
  font-variation-settings: "opsz" 130, "wght" 430;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
}
.lede {
  margin-top: 1.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  font-weight: 340;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
}
/* echoes the Orb landing hero tagline */
.lede em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
  padding-right: 0.05em;
}
.showcase .body {
  margin-top: 1.2rem;
  color: var(--ink-muted);
  max-width: 46ch;
}
.proof {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 46ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.4rem;
  min-height: 52px;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #14101f;
  background: linear-gradient(170deg, #f4ddb0, var(--gold) 55%, #d3a869);
  box-shadow:
    0 10px 30px -8px rgba(233, 201, 143, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px -10px rgba(233, 201, 143, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cta:active { transform: translateY(0) scale(0.99); }

@media (max-width: 56em) {
  .showcase {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .phone { order: 2; margin-top: 3rem; }
  .showcase-copy { order: 1; }
}

/* ============================================================
   ETHOS
   ============================================================ */
.ethos {
  text-align: center;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ethos-anchor {
  position: absolute;
  top: 30%; left: 50%;
  width: 1px; height: 1px;
}
.giant {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "wght" var(--tw, 380);
  text-wrap: balance;
}
.giant em { color: var(--violet); }

.ethos-body {
  margin-top: 3.2rem;
  max-width: 42rem;
  display: grid;
  gap: 1.5rem;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.7;
  color: var(--ink-muted);
}
.only-you {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 420;
  font-size: 1.12em;
  white-space: nowrap;
}

.core-principle {
  margin-top: 4.5rem;
  display: grid;
  gap: 0.8rem;
}
.cp-dim {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.cp-lit {
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 120, "wght" 440;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.01em;
  color: var(--gold);
  text-shadow: 0 0 50px rgba(233, 201, 143, 0.25);
}

/* ============================================================
   COMMITMENTS — bento
   ============================================================ */
.bento {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 26px;
  background:
    radial-gradient(140% 140% at var(--mx, 25%) var(--my, 15%), rgba(169, 157, 240, 0.09), transparent 55%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
/* gradient hairline border */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(165deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.05) 35%,
    rgba(169, 157, 240, 0.16) 75%,
    rgba(233, 201, 143, 0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); }
}

.card-a { grid-column: span 4; }
.card-b { grid-column: span 2; }
.card-c, .card-d, .card-e { grid-column: span 2; }

.card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 340;
  font-size: 0.95rem;
  color: var(--gold-soft);
  opacity: 0.9;
}
.card h3 {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 90, "wght" 440;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.card p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 44ch;
}
.card-a h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 3.4rem; }
.card-a p { font-size: 1.02rem; }

@media (max-width: 56em) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-a { grid-column: span 2; }
  .card-b, .card-c, .card-d { grid-column: span 1; }
  .card-e { grid-column: span 2; }
  .card h3 { margin-top: 1.8rem; }
}
@media (max-width: 34em) {
  .bento { grid-template-columns: 1fr; }
  .card-a, .card-b, .card-c, .card-d, .card-e { grid-column: span 1; }
}

/* ============================================================
   CYCLE — a circle, not a funnel
   ============================================================ */
.cycle { text-align: center; }

.cycle-wrap {
  position: relative;
  width: min(660px, 92vw);
  margin: 4rem auto 0;
  aspect-ratio: 1;
}
.cycle-anchor {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 1px;
}
.cycle-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: rgba(236, 233, 244, 0.08);
  stroke-width: 1;
}
.ring-draw {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.75;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--draw, 0));
}

.cycle-steps li {
  --a: calc(var(--i) / 7 * 360deg - 90deg);
  --r: calc(min(660px, 92vw) / 2 * 0.8);
  position: absolute;
  top: 50%; left: 50%;
  width: 11rem;
  transform:
    translate(-50%, -50%)
    translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r)));
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}
.cycle-steps b {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  font-weight: 420;
  color: var(--gold);
  background: rgba(10, 9, 18, 0.8);
  border: 1px solid rgba(233, 201, 143, 0.35);
  box-shadow: 0 0 18px rgba(233, 201, 143, 0.12);
}
.cycle-steps span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
  background: rgba(10, 9, 18, 0.72);
  border-radius: 12px;
  padding: 0.15rem 0.4rem;
  text-wrap: balance;
}
.cycle-steps li:last-child span {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

/* staggered appearance driven by .inview on .cycle-wrap */
.js .cycle-steps li {
  opacity: 0;
  transition: opacity 1s ease;
  transition-delay: calc(var(--i) * 0.22s + 0.3s);
}
.js .cycle-wrap.inview .cycle-steps li { opacity: 1; }

/* narrow: vertical timeline */
@media (max-width: 56em) {
  .cycle-wrap {
    width: 100%;
    aspect-ratio: auto;
    margin-top: 2.5rem;
  }
  .cycle-ring { display: none; }
  .cycle-anchor { top: -3.5rem; }
  .cycle-steps {
    position: relative;
    display: grid;
    gap: 1.6rem;
    max-width: 26rem;
    margin-inline: auto;
    text-align: left;
    padding-left: 0.5rem;
  }
  .cycle-steps::before {
    content: "";
    position: absolute;
    left: 15px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(233, 201, 143, 0.4), rgba(169, 157, 240, 0.2));
  }
  .cycle-steps li {
    position: static;
    width: auto;
    transform: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-items: start;
  }
  .cycle-steps b { flex: 0 0 auto; position: relative; z-index: 1; }
  .cycle-steps span { background: none; padding: 0.25rem 0 0; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  text-align: center;
  padding-bottom: clamp(8rem, 18vh, 14rem);
}
.manifesto-anchor {
  position: absolute;
  top: 45%; left: 50%;
  width: 1px; height: 1px;
}
.creed {
  margin-top: 3.5rem;
  display: grid;
  gap: clamp(2.6rem, 6vh, 4rem);
}
.creed-line {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}
.creed-yes {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 130, "wght" var(--tw, 400);
  font-size: clamp(1.65rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.creed-yes em {
  font-style: italic;
  color: var(--gold);
}
.creed-no {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding: 0 0.2rem;
}
.creed-no::after {
  content: "";
  position: absolute;
  left: 0; top: 54%;
  width: 100%; height: 1px;
  background: rgba(232, 154, 216, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease) 0.7s;
}
.js .creed-line.inview .creed-no::after { transform: scaleX(1); }

.closing {
  margin-top: clamp(4rem, 10vh, 6.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 90, "wght" 400;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  color: var(--ink);
  text-wrap: balance;
}

/* ============================================================
   COMMUNITY — the room where the circle meets
   ============================================================ */
.community { text-align: center; }
.community-anchor,
.about-anchor {
  position: absolute;
  top: 42%; left: 50%;
  width: 1px; height: 1px;
}

.community-card {
  position: relative;
  margin-top: 3rem;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.5rem, 5vw, 3.4rem);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(169, 157, 240, 0.14), transparent 60%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.community-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(165deg,
    rgba(255, 255, 255, 0.2),
    rgba(169, 157, 240, 0.22) 45%,
    rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.discord-mark {
  color: var(--violet);
  filter: drop-shadow(0 0 18px rgba(169, 157, 240, 0.45));
}
.community-title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 430;
  font-variation-settings: "opsz" 110, "wght" 430;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.community-body {
  margin: 1.1rem auto 0;
  max-width: 52ch;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.cta-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  min-height: 52px;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #efeaff;
  border: 1px solid rgba(169, 157, 240, 0.5);
  background: linear-gradient(170deg, rgba(169, 157, 240, 0.22), rgba(169, 157, 240, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.cta-discord:hover, .cta-discord:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(169, 157, 240, 0.85);
  box-shadow:
    0 14px 36px -12px rgba(169, 157, 240, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cta-discord:active { transform: translateY(0) scale(0.99); }
.community-fine {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ============================================================
   ABOUT — the person behind the lab
   ============================================================ */
.about-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.portrait {
  position: relative;
  width: clamp(150px, 20vw, 210px);
  aspect-ratio: 1;
  justify-self: center;
}
/* the light behind the face, echoing the orb */
.portrait::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 201, 143, 0.22), transparent 68%);
  pointer-events: none;
}
.portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(233, 201, 143, 0.35),
    0 24px 60px -24px rgba(0, 0, 0, 0.85);
}

.about-copy .body {
  margin-top: 1.2rem;
  color: var(--ink-muted);
  max-width: 54ch;
}
.about-name {
  font-family: var(--font-display);
  font-weight: 430;
  font-variation-settings: "opsz" 120, "wght" 430;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 0.8rem;
}

.collab {
  margin-top: 2.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(233, 201, 143, 0.4);
}
.collab h3 {
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 70, "wght" 440;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}
.collab p {
  margin-top: 0.5rem;
  font-size: 0.96rem;
  color: var(--ink-muted);
  max-width: 50ch;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.028);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.contact-links a:hover, .contact-links a:focus-visible {
  color: var(--ink);
  border-color: rgba(233, 201, 143, 0.45);
  transform: translateY(-2px);
}
.contact-links svg { flex: 0 0 auto; opacity: 0.85; }

@media (max-width: 56em) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about-copy .body, .collab p { margin-inline: auto; }
  .collab {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(233, 201, 143, 0.3);
  }
  .contact-links { justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem var(--pad-x) 3rem;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, transparent, rgba(5, 4, 12, 0.55));
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.foot-brand .brand-name { font-size: 1.3rem; }
.foot-anchor {
  display: inline-block;
  width: 16px; height: 16px;
}
.foot-line {
  margin: 1.4rem auto 0;
  max-width: 44ch;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-wrap: balance;
}
.promises-small { margin-top: 2rem; }
.promises-small li {
  font-size: 0.68rem;
  padding: 0.4rem 0.85rem;
}
.foot-nav {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
}
.foot-nav a {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding: 0.6rem 0.2rem;
  transition: color 0.3s ease;
}
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--ink); }
.foot-social {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.025);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.foot-social a:hover, .foot-social a:focus-visible {
  color: var(--gold);
  border-color: rgba(233, 201, 143, 0.4);
}
.foot-fine {
  margin-top: 2.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ============================================================
   NO WEBGL — a quieter sky
   ============================================================ */
.no-webgl #sky { display: none; }
.no-webgl body {
  background:
    radial-gradient(46rem 46rem at 50% 22rem, rgba(122, 106, 224, 0.26), transparent 62%),
    radial-gradient(22rem 22rem at 50% 21rem, rgba(233, 201, 143, 0.14), transparent 62%),
    var(--bg);
}

/* ============================================================
   REDUCED MOTION — stillness is the point
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .kinetic .w,
  .js .cycle-steps li {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .ring-draw { stroke-dashoffset: 0; }
  .js .creed-line .creed-no::after { transform: scaleX(1); }
}
