/* Public site. Matte black and white only, Bodoni Moda and Alex Brush only.
   The look follows the Tether HLD: sharp corners, hairlines, script for
   the quiet words, heavy Bodoni for the names. Admin pages use style.css. */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --bg: var(--ink);
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --script: "Alex Brush", cursive;
}

* { box-sizing: border-box; margin: 0; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--display);
  font-optical-sizing: auto;
  color: var(--paper);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 20;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

.script { font-family: var(--script); font-weight: 400; }

.black { background: var(--ink); color: var(--paper); --bg: var(--ink); }
.white { background: var(--paper); color: var(--ink); --bg: var(--paper); }

/* Header inverts against whatever section is under it */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: #fff; mix-blend-mode: difference;
}
.mono { display: block; width: 2.6rem; }
.mono svg { display: block; width: 100%; }
.topnav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.reach {
  font-size: 1.05rem; font-weight: 500; text-decoration: none;
  padding-bottom: .15rem; border-bottom: 1px solid currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(1rem, 4vh, 3rem);
  padding: 7rem 0 6rem;
}
.hero-art {
  width: min(1180px, 100%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.art { display: block; width: 100%; color: var(--paper); }
.wordmark {
  font-size: clamp(2.75rem, 10.5vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.015em;
  text-align: center;
}

/* One orchestrated moment on load: hands arrive, the tether draws, the second locket clicks in */
@keyframes in-l { from { transform: translate(-1.6px, .9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in-r { from { transform: translate(1.6px, -.9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.in-l { animation: in-l 1.3s cubic-bezier(.2, .7, .2, 1) both; }
.in-r { animation: in-r 1.3s cubic-bezier(.2, .7, .2, 1) both; }
.beads { stroke-width: .07; stroke-dasharray: 0 .12; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s 1.3s cubic-bezier(.6, 0, .2, 1) forwards; }
.pop { transform-box: fill-box; transform-origin: center; animation: pop .7s 2.6s cubic-bezier(.2, .9, .3, 1.3) both; }

/* Beaded thread that keeps going past the hero, grows as you scroll */
.thread {
  position: absolute; left: 50%; bottom: -22vh; height: 44vh;
  border-left: 4px dotted #fff;
  mix-blend-mode: difference;
  transform-origin: top; transform: scaleY(var(--th, 0));
  z-index: 2; pointer-events: none;
}

/* Tether */
.tether {
  padding: 20vh clamp(1.25rem, 4vw, 3rem) 14vh;
  text-align: center;
  overflow: hidden;
}
.mega {
  font-size: clamp(4.5rem, 19vw, 17rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
}
.coming { font-size: clamp(2rem, 5vw, 3.5rem); margin-top: .5rem; }

.stage {
  max-width: 1100px; margin: 7vh auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.card {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink); --bg: var(--paper);
  padding: 1.5rem 1rem 1.25rem;
  will-change: transform;
}
.card:nth-child(2) { margin-top: 5vh; }
.card.dark { background: var(--ink); color: var(--paper); --bg: var(--ink); }
.card svg { display: block; width: 100%; }
.card figcaption { font-size: 2.1rem; line-height: 1; margin-top: .5rem; }

/* Quote, same treatment as the HLD pull quote */
.quote {
  padding: 14vh clamp(1.25rem, 6vw, 5rem);
  text-align: center;
}
.quote p {
  margin: 0 auto;
  font-size: clamp(1.75rem, 4.4vw, 3.4rem);
  line-height: 1.25;
  max-width: 20ch;
}

/* Manifesto + FAQ: same palette and type system, more to read */
.manifesto, .faq {
  padding: 15vh clamp(1.25rem, 6vw, 5rem);
}
.about-lede { padding-top: 12.5rem; padding-bottom: 9vh; }
.tether-lede { padding-top: 12.5rem; }
.quote-note {
  margin: 1.5rem auto 0;
  max-width: 30ch;
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  opacity: .75;
}
.quote-attr {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}
.prose { max-width: 700px; margin: 0 auto; }
.prose .lead { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: .5rem; }
.prose-h {
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
}
.prose p {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.72;
  margin-bottom: 1.4rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }
.prose .mail {
  display: inline-block;
  margin-top: .5rem;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.faq dl { margin-top: 1rem; }
.faq-item { padding: 1.4rem 0; border-top: 1px solid currentColor; }
.faq-item:last-child { border-bottom: 1px solid currentColor; }
.faq-item dt {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: .4rem;
}
.faq-item dd {
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: .9;
}

/* Contact */
.contact {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1rem;
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 8rem;
  position: relative;
  text-align: center;
}
.contact .script { font-size: clamp(2rem, 5vw, 3.5rem); }
.mail {
  font-size: clamp(1.6rem, 6vw, 4.75rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15em;
  overflow-wrap: anywhere;
}
.foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  font-size: .95rem;
}

/* The loop: one continuous scroll-scrubbed motion. A locket is joined
   (given, kept), held apart while it is out of sight and doing its
   work (unseen), and joined again at return (known). Each beat carries
   a word and a short line of its own, one beat visible at a time. */
.loop { position: relative; height: 460vh; }
.loop-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vh, 2rem);
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 3rem;
  overflow: hidden;
}
.loop-art { display: block; width: min(420px, 56vw); color: var(--paper); flex: none; }
#loopOrbit { opacity: .15; }
#loopClick { opacity: 0; }
.loop-beats {
  position: relative;
  width: min(720px, 90vw);
  text-align: center;
}
.loop-word {
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  line-height: 1;
}
.loop-text {
  margin: .6rem auto 0;
  max-width: 60ch;
  font-family: var(--display);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  opacity: .85;
}

/* Once script runs (and motion is allowed), the four beats stop
   stacking and instead cross-fade in place, timed to the scroll. */
.loop-js .loop-beats { min-height: 13rem; }
.loop-js .loop-beat {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .25s linear;
}

@media (max-width: 760px) {
  .hero-art .art { width: 190%; margin-left: -45%; }
  .stage { grid-template-columns: 1fr; max-width: 320px; }
  .card:nth-child(2) { margin-top: 0; }
  .loop { height: 400vh; }
  .loop-art { width: min(280px, 60vw); }
  .loop-js .loop-beats {
    width: min(90vw, 600px);
    min-height: 15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in-l, .in-r, .pop { animation: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .thread { transform: none; }
}
