/* ==========================================================================
   We Are Janes — $Janes
   1. Tokens        6. CA strip       11. Chart
   2. Base          7. About          12. Finale
   3. Utilities     8. Manifesto      13. Footer
   4. Buttons       9. Who is Jane    14. Jane counter
   5. Header/Hero  10. Collective     15. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #fbfcfc;
  --paper: #ffffff;
  --ink: #0a0b0b;
  --ink-soft: #3a4142;
  --muted: #727c7e;
  --line: rgba(10, 11, 11, 0.12);
  --line-soft: rgba(10, 11, 11, 0.06);

  /* sampled from the ribbon identity */
  --teal-deep: #0b7f88;
  --teal: #23aeb0;
  --teal-soft: #6fd2d3;
  --teal-pale: #e4f5f5;
  --teal-mist: #f1f9f9;
  --teal-rgb: 35, 174, 176;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }

em { font-style: italic; }

code { font-family: var(--mono); }

::selection { background: var(--teal-soft); color: var(--ink); }

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

/* 3. Utilities ------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label span { color: var(--teal-deep); }
.section-label::after {
  content: "";
  flex: 0 1 120px;
  height: 1px;
  background: var(--line);
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: var(--btn-h);
  padding: 0 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-soft);
  transition: transform .35s var(--ease);
}

.btn-primary,
.btn-buy {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover,
.btn-buy:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.btn-primary:hover .btn-dot,
.btn-buy:hover .btn-dot { transform: scale(1.6); background: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--teal-pale);
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

.btn-ghost {
  width: var(--btn-h);
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.x-mark { width: 18px; height: 18px; fill: currentColor; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 252, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 8px;
  transition: transform .6s var(--ease);
}
.brand:hover img { transform: rotate(-6deg) scale(1.04); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: .6rem .8rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .35rem;
  height: 1px;
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-buy {
  --btn-h: 44px;
  padding: 0 1.3rem;
  margin-left: .5rem;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 16px; height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle-bars { position: relative; transform: translateY(-3px); }
.nav-toggle-bars::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
}
.nav-open .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
.nav-open .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

/* 5b. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--max);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: clamp(.75rem, 2vw, 1.5rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta b { margin-left: .4rem; font-weight: 500; color: var(--ink); }

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border: 1px solid var(--teal-deep);
  border-radius: 50%;
}

.hero-title {
  margin: 1.25rem 0 1.75rem;
  font-size: clamp(3.1rem, 8vw, 8.25rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -0.05em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;
}
.hero-title .line > span { display: inline-block; }

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  color: var(--ink-soft);
}
.hero-sub span { display: block; }
.hero-sub span:last-child { color: var(--teal-deep); font-style: italic; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.hero-visual {
  --spread: 1;
  --img-shift: 0px;
  --echo-shift: 0px;
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

.hero-img {
  position: relative;
  z-index: 2;
  width: 100%;
  transform: translate3d(0, var(--img-shift), 0);
  will-change: transform;
}

.echoes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.echo {
  position: absolute;
  inset: 0;
  background: url("assets/hero.png") center / contain no-repeat;
  opacity: var(--o);
  transform:
    translate3d(calc(var(--x) * var(--spread)), calc(var(--y) + var(--echo-shift)), 0)
    scale(var(--s));
}
.echo-1 { --x: -34%; --y: 4%;  --s: .74; --o: .11; }
.echo-2 { --x:  34%; --y: 4%;  --s: .74; --o: .11; }
.echo-3 { --x: -60%; --y: 9%;  --s: .54; --o: .065; }
.echo-4 { --x:  60%; --y: 9%;  --s: .54; --o: .065; }
.echo-5 { --x: -80%; --y: 14%; --s: .38; --o: .04; }
.echo-6 { --x:  80%; --y: 14%; --s: .38; --o: .04; }

.hero-caption {
  margin-top: .75rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-cue-line {
  position: relative;
  width: 64px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal-deep);
  transform: translateX(-100%);
}
.scroll-cue:hover { color: var(--ink); }

/* 6. CA strip -------------------------------------------------------------- */
.ca {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.ca-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.5rem;
}
.ca-status,
.chart-pending-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-deep);
}
.ca-field {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  min-width: 0;
}
.ca-label {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}
.ca-value {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.btn-copy {
  min-width: 7.25rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-copy:hover { background: var(--ink); color: #fff; }
.btn-copy.is-copied {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}
.ca-note {
  margin-left: auto;
  font-size: .85rem;
  color: var(--muted);
}

/* 7. About ----------------------------------------------------------------- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
}
.about-lead {
  max-width: 21ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.about-lead em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.exhibit-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.exhibit-frame img {
  width: 100%;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.08);
  will-change: transform;
}
.exhibit figcaption {
  display: flex;
  gap: .9rem;
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}
.exhibit figcaption span { color: var(--teal-deep); text-transform: uppercase; letter-spacing: .1em; }

.about-text p {
  max-width: 36em;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
}
.about-text p + p { margin-top: 1.25rem; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.5rem;
  border-top: 1px solid var(--ink);
}
.facts div {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts dt {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin-top: .2rem; font-weight: 600; }

/* 8. Manifesto ------------------------------------------------------------- */
.manifesto {
  position: relative;
  border-top: 1px solid var(--line);
}

.jane-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.jane-layer {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  grid-auto-rows: 30px;
  align-content: start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink);
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(0, 0, 0, .25), #000 85%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(0, 0, 0, .25), #000 85%);
}
.jane-layer span {
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.jane-layer span.on { opacity: .085; }
.jane-layer span.on.t { opacity: .22; color: var(--teal-deep); }

.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter) clamp(4rem, 10vw, 8rem);
}

.count-steps {
  padding: 0;
  list-style: none;
  text-align: center;
}
.step {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.step-index {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.step-word {
  display: block;
  max-width: 100%;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
}
.step-arrow {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--teal);
}

.step--one .step-word { font-size: clamp(2.4rem, 7vw, 6.25rem); }

.step--ten .step-word {
  font-size: clamp(2.7rem, 9vw, 8rem);
  text-shadow:
    0 -1em 0 rgba(10, 11, 11, .045),
    0  1em 0 rgba(10, 11, 11, .045);
}

.step--thousand .step-word {
  max-width: 11ch;
  font-size: clamp(2.8rem, 10.5vw, 9.5rem);
  text-shadow:
    0 -2em 0 rgba(10, 11, 11, .03),
    0  2em 0 rgba(10, 11, 11, .03),
    -0.9em 0 0 rgba(var(--teal-rgb), .05),
     0.9em 0 0 rgba(var(--teal-rgb), .05);
}

.step--everyone .step-word {
  font-size: clamp(3rem, 15vw, 14rem);
  color: var(--teal-deep);
  text-shadow:
    0 -0.9em 0 rgba(var(--teal-rgb), .12),
    0  0.9em 0 rgba(var(--teal-rgb), .12),
    0 -1.8em 0 rgba(var(--teal-rgb), .06),
    0  1.8em 0 rgba(var(--teal-rgb), .06),
    0 -2.7em 0 rgba(var(--teal-rgb), .03),
    0  2.7em 0 rgba(var(--teal-rgb), .03);
}

.duality {
  display: grid;
  gap: .3em;
  padding-block: clamp(5rem, 12vw, 10rem);
  font-size: clamp(2.1rem, 5.8vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.duality p:nth-child(2) { text-align: right; }
.duality em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.duality p:nth-child(2) em,
.duality .ticker { color: var(--teal-deep); }

.tenets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
}
.tenets-lead {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.tenets-list {
  padding: 0;
  list-style: none;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}
.tenets-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease), color .4s var(--ease);
}
.tenets-list li:first-child { padding-top: 0; }
.tenets-list li span {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--teal-deep);
}
.tenets-list li:hover { padding-left: .5rem; color: var(--teal-deep); }

.manifesto-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding-top: clamp(4rem, 10vw, 8rem);
  text-align: center;
  font-size: clamp(2.6rem, 10vw, 9.5rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.05em;
}
.manifesto-close span { display: block; max-width: 100%; }
.manifesto-close span:last-child { color: var(--teal-deep); }

/* 9. Who is Jane ----------------------------------------------------------- */
.who {
  padding: clamp(7rem, 16vw, 13rem) var(--gutter);
  background: var(--paper);
  border-block: 1px solid var(--line);
  text-align: center;
}
.qa + .qa { margin-top: clamp(7rem, 18vw, 15rem); }
.q {
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  font-family: var(--mono);
  font-size: clamp(.8rem, 1.1vw, 1rem);
  font-weight: 400;
  letter-spacing: .32em;
  color: var(--muted);
}
.a {
  font-size: clamp(3.5rem, 15vw, 15rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -0.055em;
}
.a--teal { color: var(--teal-deep); }

/* 10. Collective ----------------------------------------------------------- */
.collective {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
}
.collective-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.collective-title {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.collective-title em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--teal-deep);
}
.collective-intro {
  max-width: 34em;
  color: var(--ink-soft);
}

.card-field {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(.5rem, 1vw, .9rem);
}

.id-card {
  --p: 0;
  --open: 0;
  --dx: 0px;
  --dy: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  aspect-ratio: 3 / 4;
  padding: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--teal) calc(var(--p) * 100%), var(--line));
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .08em;
  color: var(--muted);
  transform: translate3d(var(--dx), calc(var(--dy) - var(--p) * 6px), 0);
  box-shadow: 0 calc(var(--p) * 16px) calc(var(--p) * 32px) -14px rgba(11, 127, 136, .45);
  transition: transform .55s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
  user-select: none;
  -webkit-user-select: none;
}
.id-card.is-open { --open: 1; }

.id-top {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.id-photo {
  --sil: #d3e8e8;
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 40%, var(--sil) 0 17%, transparent 17.6%),
    radial-gradient(ellipse 40% 30% at 50% 100%, var(--sil) 0 97%, transparent 100%),
    var(--teal-mist);
}
.id-photo::after {
  content: "";
  position: absolute;
  inset: 12%;
  background: url("assets/hero.png") center / contain no-repeat;
  opacity: max(var(--p), var(--open));
  transform: scale(calc(.85 + max(var(--p), var(--open)) * .15));
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.id-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal-mist);
  opacity: calc(max(var(--p), var(--open)) * .9);
  transition: opacity .5s var(--ease);
}

.id-name {
  position: relative;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--sans);
  font-size: clamp(.68rem, .95vw, .88rem);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
}
.id-card.is-you .id-name { color: var(--teal-deep); }
.redact {
  position: absolute;
  inset: 1px -2px;
  background: var(--ink);
  transform-origin: right center;
  transform: scaleX(max(0, calc(1 - max(var(--p) * 1.8, var(--open)))));
  transition: transform .45s var(--ease);
}

.id-rows {
  display: grid;
  gap: .1rem;
  text-transform: uppercase;
}
.id-rows span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.field-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-caption b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 11. Chart ---------------------------------------------------------------- */
.chart {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(5rem, 10vw, 8rem);
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2rem);
}
.chart-head h2 {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.045em;
}

.chart-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 440px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chart-frame.is-pending iframe { display: none; }

.chart-pending {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--paper);
}
.chart-frame.is-pending .chart-pending { display: flex; }
.chart-pending-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.05;
}
.chart-pending-text {
  max-width: 32em;
  font-size: .95rem;
  color: var(--ink-soft);
}
.chart-pending-addr {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.chart-pending-addr b { color: var(--ink); font-weight: 500; }

/* 12. Finale --------------------------------------------------------------- */
.finale {
  padding: clamp(9rem, 24vh, 16rem) var(--gutter) clamp(7rem, 18vh, 12rem);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.finale-a,
.finale-b {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.05;
}
.finale-b {
  color: var(--ink);
  text-shadow:
    0 -1.1em 0 rgba(var(--teal-rgb), .07),
    0  1.1em 0 rgba(var(--teal-rgb), .07),
    0 -2.2em 0 rgba(var(--teal-rgb), .035),
    0  2.2em 0 rgba(var(--teal-rgb), .035);
}
.finale-gap {
  display: flex;
  justify-content: center;
  height: 62vh;
  padding-block: 3rem;
}
.finale-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--line), var(--teal), var(--line));
  transform-origin: top;
}
.js .finale-line.reveal { transform: scaleY(0); filter: none; }
.js .finale-line.reveal.is-visible { transform: scaleY(1); transition-duration: 2.4s; }

.finale-sign { margin-top: clamp(8rem, 18vw, 13rem); }
.finale-name {
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: .32em;
  padding-left: .32em;
}
.finale-ticker {
  margin-top: .5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal-deep);
}

/* 13. Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--ink); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) calc(2rem + 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.footer-id {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-id img { width: 56px; height: 56px; border-radius: 10px; }
.footer-lines {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.footer-lines li + li { color: var(--muted); font-weight: 500; }

.footer-links {
  display: flex;
  gap: .5rem;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.footer-links a:hover { border-color: var(--ink); }
.footer-links a.is-buy { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer-links a.is-buy:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

.footer-fine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}
.footer-fine p:last-child { max-width: 46em; }
.footer-fine code { color: var(--ink); overflow-wrap: anywhere; }

/* 14. Jane counter --------------------------------------------------------- */
.jane-counter {
  position: fixed;
  left: var(--gutter);
  bottom: 1.1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 252, 252, .96);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.jane-counter.is-visible { opacity: 1; transform: none; }
.jane-counter b {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.jane-counter.is-max b { color: var(--teal-deep); }

/* 15. Motion --------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease),
    filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-title .line > span {
    animation: rise 1.3s var(--ease) both;
  }
  .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .eyebrow, .hero-sub, .hero-ctas, .hero-meta {
    animation: fade-up 1.2s var(--ease) both;
  }
  .hero-meta { animation-delay: 0s; }
  .eyebrow { animation-delay: .05s; }
  .hero-sub { animation-delay: .35s; }
  .hero-ctas { animation-delay: .5s; }
  .hero-img { animation: fade-in 1.6s var(--ease) .2s both; }

  .echo {
    animation:
      echo-out 2.6s var(--ease) backwards,
      echo-drift 9s ease-in-out infinite alternate;
  }
  .echo-1, .echo-2 { animation-delay: .9s, 3.5s; }
  .echo-3, .echo-4 { animation-delay: 1.2s, 4s; }
  .echo-5, .echo-6 { animation-delay: 1.5s, 4.5s; }

  .scroll-cue-line::after { animation: cue 2.8s var(--ease) 2s infinite; }
  .status-dot { animation: pulse 2.4s ease-in-out infinite; }
}

@keyframes rise {
  from { transform: translateY(105%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes echo-out {
  from { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes echo-drift {
  from { translate: 0 0; }
  to   { translate: 0 -8px; }
}
@keyframes cue {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .finale-line.reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .hero-img,
  .exhibit-frame img { will-change: auto; }
  .jane-layer span { transition: none; }
  .id-card,
  .redact,
  .id-photo::before,
  .id-photo::after { transition: none; }
  .id-card { transform: none; }
}

/* 15b. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .card-field { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-field .id-card:nth-child(n + 37) { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .btn-buy { margin-left: 0; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav li + li { border-top: 1px solid var(--line-soft); }
  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .site-nav a::after { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-visual { max-width: 420px; }
  .hero-title { font-size: clamp(3.1rem, 13vw, 7.5rem); }

  .about-body,
  .tenets { grid-template-columns: 1fr; }

  .ca-note { margin-left: 0; flex-basis: 100%; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .card-field { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-field .id-card:nth-child(n + 25) { display: none; }

  .chart-frame { aspect-ratio: auto; height: 540px; min-height: 0; }

  .duality p:nth-child(2) { text-align: left; }
  .step { min-height: 52vh; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }

  .brand span { font-size: .95rem; }
  .brand img { width: 34px; height: 34px; }
  .btn-buy { --btn-h: 42px; padding: 0 1rem; }

  .hide-sm { display: none; }

  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr auto; }
  .hero-ctas .btn-primary { grid-column: 1 / -1; }
  .btn { padding: 0 1.1rem; }
  .btn-ghost { padding: 0; }

  .ca-inner { gap: .75rem 1rem; }
  .ca-field { flex: 1 1 100%; }

  .card-field { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-field .id-card:nth-child(n + 19) { display: none; }
  .id-card { font-size: .5rem; padding: .5rem; }

  .jane-layer { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); font-size: 9px; }

  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }

  .finale-gap { height: 48vh; }

  .footer-links { flex-wrap: wrap; }
  .jane-counter { left: .75rem; bottom: .75rem; font-size: .6rem; }
}

@media (max-width: 380px) {
  .brand span { display: none; }
}
