/* onlyjensen.com — Option B: ONLY HUMAN. One sphere, poster type, the whole story. */

@font-face {
  font-family: 'Big Shoulders';
  src: url('../fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #050505;
  --paper: #f4efe6;
  --soft: rgba(244, 239, 230, 0.8);
  --dim: #a39d93;
  --line: rgba(244, 239, 230, 0.14);
  --gold: #f2b544;
  --gold-hot: #ffd98a;
  --steel: #9bb3da;
  --display: 'Big Shoulders', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(1.1rem, 4.5vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.1rem);
  line-height: 1.55;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration-color: rgba(242, 181, 68, 0.6);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--gold-hot);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100lvh;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
.gl-drawn #gl,
.shot #gl {
  opacity: 1;
}
.no-webgl #gl,
.gl-lost #gl {
  display: none;
}
/* without WebGL: a quiet gold-rimmed sphere drawn in CSS */
.no-webgl body::before {
  content: '';
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(46vh, 70vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2a2e, #0b0b0d 55%, #050505 70%);
  box-shadow:
    0 0 0 1px rgba(242, 181, 68, 0.35),
    0 0 80px rgba(242, 181, 68, 0.15);
  z-index: 0;
}

.skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  transform: translateY(-300%);
}
.skip:focus {
  transform: none;
}

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) var(--gutter);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0));
  pointer-events: none;
}
.top > * {
  pointer-events: auto;
}
.mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}
.rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
}
.rail i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(242, 181, 68, 0.15), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
}
.editions {
  position: fixed;
  right: var(--gutter);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
}
.editions a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  background: rgba(14, 13, 16, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.editions a:hover {
  color: var(--paper);
  border-color: rgba(244, 239, 230, 0.4);
}

/* ───────────────────────── type ───────────────────────── */

.hl {
  font-family: var(--display);
  font-weight: 820;
  font-size: clamp(3rem, min(9.4vw, 15vh), 9.6rem);
  line-height: 0.86;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  max-width: 16ch;
  margin: 0 auto;
}
.hl.xl {
  font-size: clamp(4.4rem, min(17vw, 26vh), 17rem);
  font-weight: 880;
  max-width: none;
  line-height: 0.82;
}
.hl.gold,
.hl em {
  color: var(--gold);
  font-style: normal;
}
.hl .given {
  color: var(--steel);
}
.hl .earned {
  color: var(--gold);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.attr {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.6rem;
}
.copy p,
.panel p {
  color: var(--soft);
  text-wrap: pretty;
}
.copy p + p {
  margin-top: 0.8em;
}
.lede {
  font-size: 1.12em;
  color: var(--paper) !important;
}
.center {
  text-align: center;
}
.fine {
  font-size: 0.82rem;
  color: var(--dim) !important;
}
.pull {
  margin: 1rem auto 0.4rem;
  max-width: 34rem;
}
.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.18;
  color: var(--paper) !important;
}
.pull footer {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.cue {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim) !important;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  50% {
    opacity: 0.35;
    transform: translateY(4px);
  }
}

/* ───────────────────────── pinned chapters ───────────────────────── */

main {
  position: relative;
  z-index: 1;
}
.chapter {
  position: relative;
}
.stage {
  padding: 18vh var(--gutter) 8vh;
}
.beat + .beat {
  margin-top: 14vh;
}
.copy {
  max-width: 38rem;
  margin: 2rem auto 0;
  text-align: center;
}

.js .chapter.pinned {
  height: calc(var(--len, 3) * 100svh);
}
.js .pinned .stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}
/* bottom scrim so the copy stays legible over the sphere and the galaxy */
.js .pinned .stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.7) 40%, rgba(5, 5, 5, 0));
  pointer-events: none;
  z-index: -1;
}
.js .pinned .beat {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(4.6rem, 11vh, 7rem) var(--gutter) clamp(2.2rem, 6vh, 4rem);
  opacity: 0;
  transform: translate3d(0, 1.6rem, 0);
  transition:
    opacity 0.6s var(--ease),
    transform 0.9s var(--ease);
  pointer-events: none;
}
.js .pinned .beat .copy {
  grid-row: 3;
  margin-top: 0;
}
.js .pinned .beat.is-past {
  transform: translate3d(0, -1.6rem, 0);
}
.js .pinned .beat.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 0.8s var(--ease) 0.1s,
    transform 1.1s var(--ease) 0.1s;
}
/* headline letters settle as a beat arrives */
.js .pinned .beat .hl {
  transition: letter-spacing 1.2s var(--ease);
  letter-spacing: 0.06em;
}
.js .pinned .beat.is-on .hl {
  letter-spacing: 0.004em;
}

/* ───────────────────────── the mend ───────────────────────── */

.mend-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.4rem;
}
.mend {
  --mend: 0;
  position: relative;
  width: 7.6rem;
  height: 7.6rem;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(242, 181, 68, 0.24), rgba(242, 181, 68, 0.05) 62%, transparent 70%);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease);
}
.mend svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mend .track {
  fill: none;
  stroke: rgba(244, 239, 230, 0.18);
  stroke-width: 1.5;
}
.mend .fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--mend));
  filter: drop-shadow(0 0 6px rgba(242, 181, 68, 0.9));
}
.mend-label {
  position: relative;
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0 0.8rem;
}
.mend:not(.is-done):not(.is-holding) {
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    box-shadow:
      0 0 0 12px rgba(242, 181, 68, 0.07),
      0 0 60px rgba(242, 181, 68, 0.22);
  }
}
.mend.is-holding {
  transform: scale(0.94);
  box-shadow: 0 0 80px rgba(242, 181, 68, 0.45);
}
.mend.is-done {
  cursor: default;
  color: var(--gold-hot);
}
.note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--dim) !important;
}
.mend-wrap .note {
  max-width: 15rem;
  text-align: left;
}
.linkish {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(242, 181, 68, 0.6);
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.thanks {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 1s var(--ease) 0.3s;
}
.is-mended .thanks {
  opacity: 1;
}
html:not(.js) .mend-wrap,
html:not(.js) .thanks {
  display: none;
}

/* ───────────────────────── flowing sections ───────────────────────── */

.flow {
  padding: 26vh var(--gutter) 0;
}
.panel {
  background: rgba(13, 12, 15, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.letter {
  max-width: 40rem;
  margin: 0 auto;
}
.letter .eyebrow {
  margin-bottom: 1.2rem;
}
.md h2 {
  font-family: var(--display);
  font-weight: 820;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.md.is-placeholder h2 {
  color: var(--dim);
}
.md p {
  font-size: 1.06em;
  line-height: 1.7;
  color: var(--soft);
}
.md p + p {
  margin-top: 1em;
}
.md em {
  font-family: var(--serif);
  font-size: 1.15em;
  color: var(--paper);
}
.md strong {
  color: var(--paper);
  font-weight: 600;
}
.md blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--gold);
}
.md .sig {
  margin-top: 1.6rem;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5em;
  color: var(--paper);
}
.rally {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 18vh;
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.rally-title {
  margin-bottom: 0.4rem;
}
.rally > .lede {
  max-width: 36rem;
  margin: 0 auto 1.6rem;
}
.rally > .panel:first-of-type {
  max-width: 46rem;
  margin: 0 auto;
}
.asks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.panel h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.napkin {
  margin: clamp(2rem, 6vw, 5rem) 0;
  text-align: center;
}
.napkin .eyebrow {
  text-align: center;
}
.napkin-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0.6rem 0 1.4rem;
}
.napkin-text em {
  font-style: normal;
  color: var(--gold);
}
.napkin p.center {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--soft);
}
.stand,
.soulfile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
}
.stand-form label {
  display: block;
  margin: 1.3rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
input[type='text'] {
  flex: 1 1 11rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
}
input[type='text']::placeholder {
  color: #77736c;
}
input[type='text']:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.18);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--paper);
  background: rgba(244, 239, 230, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: rgba(244, 239, 230, 0.14);
  color: var(--paper);
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
  font-weight: 600;
}
.btn.gold:hover {
  background: var(--gold-hot);
  color: #1a1206;
}
.stand-actions[hidden] {
  display: none;
}
.stand-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.stand-card canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}
.soul-md {
  max-height: 30rem;
  overflow: auto;
  padding: 1.2rem 1.3rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
}
.soul-md h3 {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--steel);
  text-transform: none;
  letter-spacing: 0;
}
.soul-md h3::before {
  content: '# ';
}
.soul-md h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.6rem 0 0.6rem;
}
.soul-md h4::before {
  content: '## ';
}
.soul-md p,
.soul-md li {
  font-size: 0.95em !important;
}
.soul-md ul {
  padding-left: 1.1rem;
}
.foot {
  max-width: 72rem;
  margin: clamp(4rem, 10vw, 8rem) auto 0;
  padding: 2rem 0 max(5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  border-top: 1px solid var(--line);
}
.sources summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.sources ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--dim);
}
.sources li + li {
  margin-top: 0.5rem;
}
.disclaimer {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--dim);
}
.colophon {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8a84;
}

/* ───────────────────────── phones ───────────────────────── */

@media (max-width: 860px) {
  .tag {
    font-size: 0.56rem;
    max-width: 11rem;
    line-height: 1.35;
  }
  .hl {
    font-size: clamp(2.6rem, 13vw, 4.6rem);
  }
  .hl.xl {
    font-size: clamp(4rem, 22vw, 7rem);
  }
  .copy {
    font-size: 0.95rem;
  }
  .js .pinned .beat {
    padding-top: 5.2rem;
  }
  .asks,
  .stand,
  .soulfile {
    grid-template-columns: minmax(0, 1fr);
  }
  .editions {
    bottom: auto;
    top: 3.6rem;
    right: var(--gutter);
  }
  .editions a {
    font-size: 0.56rem;
  }
  .top {
    padding-bottom: 1.6rem;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.96) 55%, rgba(5, 5, 5, 0));
  }
  .js .pinned .stage::after {
    height: 58%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.8) 45%, rgba(5, 5, 5, 0));
  }
}
@media (max-height: 640px) {
  .pull p {
    font-size: 1.1rem;
  }
  .copy .fine {
    display: none;
  }
}

/* ───────────────────────── motion, screenshots ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .js .pinned .beat,
  .js .pinned .beat.is-on {
    transform: none !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
  }
  .js .pinned .beat .hl {
    transition: none;
    letter-spacing: 0.004em;
  }
  .cue,
  .mend {
    animation: none !important;
  }
}
.shot *,
.shot *::before,
.shot *::after {
  transition: none !important;
  animation: none !important;
}
