/* ====================================================================
   THE WEAVE — companion site
   Palette: deep warm ink, honey-gold current, linen text.
   Fiber and candlelight — never plexus.
   ==================================================================== */

:root {
  --ink:        #0c0a07;
  --ink-2:      #14110c;
  --ink-3:      #1c1812;
  --line:       rgba(232,184,75,0.14);
  --line-soft:  rgba(255,255,255,0.08);
  --text:       #ede7da;
  --text-soft:  #b3aa97;
  --text-dim:   #7d7565;
  --gold:       #e8b84b;
  --gold-soft:  #f0cd7e;
  --gold-deep:  #c9962e;
  --maxw:       1140px;
  --font-disp:  "Fraunces", Georgia, serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------------------------- SCROLL THREAD ---------------------------- */
.thread {
  position: fixed; top: 0; left: clamp(8px, 1.6vw, 22px); bottom: 0;
  width: 2px; z-index: 40; pointer-events: none;
}
.thread__line {
  position: absolute; top: 0; left: 0; width: 2px; height: 0;
  background: linear-gradient(to bottom, rgba(232,184,75,0.05), rgba(232,184,75,0.55));
  box-shadow: 0 0 8px rgba(232,184,75,0.35);
}
.thread__bead {
  position: absolute; left: -3px; top: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold-soft);
  box-shadow: 0 0 12px 3px rgba(232,184,75,0.55);
  opacity: 0; transition: opacity .4s;
}
.thread.is-live .thread__bead { opacity: 1; }
@media (max-width: 720px) { .thread { display: none; } }

/* ---------------------------- NAV ---------------------------- */
.wnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(12,10,7,0.85), rgba(12,10,7,0));
  transition: background .35s;
}
.wnav.is-scrolled {
  background: rgba(12,10,7,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.wnav__brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-disp); font-weight: 500; font-size: 1rem;
  letter-spacing: .02em;
}
.wnav__mark { color: var(--gold); display: flex; }
.wnav__links { display: flex; gap: clamp(.9rem, 2.4vw, 1.8rem); font-size: .88rem; color: var(--text-soft); }
.wnav__links a { transition: color .2s; white-space: nowrap; }
.wnav__links a:hover { color: var(--gold-soft); }
@media (max-width: 720px) { .wnav__links { display: none; } }

/* ---------------------------- BUTTONS ---------------------------- */
.wbtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: 999px;
  font-size: .93rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.wbtn:hover { transform: translateY(-2px); }
.wbtn--gold { background: var(--gold); color: var(--ink); }
.wbtn--gold:hover { background: var(--gold-soft); }
.wbtn--ghost { border-color: rgba(232,184,75,0.35); color: var(--text); }
.wbtn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------------------------- HERO ---------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero__shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(12,10,7,0.25), transparent 55%),
    linear-gradient(to bottom, rgba(12,10,7,0.55) 0%, rgba(12,10,7,0.15) 35%, rgba(12,10,7,0.28) 70%, var(--ink) 100%);
}
.hero__content { position: relative; z-index: 3; padding: 6rem 1.4rem 4rem; max-width: 900px; }
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.8rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}
.hero__title {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(3.4rem, 12vw, 8.5rem); line-height: .98;
  letter-spacing: .08em; color: #f5efe2;
  text-shadow: 0 2px 40px rgba(0,0,0,0.65), 0 0 80px rgba(232,184,75,0.25);
}
.hero__tag {
  font-family: var(--font-disp); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: var(--gold-soft);
  margin-top: 1.4rem; text-shadow: 0 1px 16px rgba(0,0,0,0.8);
}
.hero__sub {
  color: var(--text-soft); margin-top: .8rem; font-size: clamp(.98rem, 1.6vw, 1.1rem);
  letter-spacing: .04em; text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 44px; border: 1.5px solid rgba(240,205,126,0.5);
  border-radius: 14px; display: flex; justify-content: center;
}
.hero__scroll span {
  width: 3px; height: 9px; border-radius: 2px; background: var(--gold-soft);
  margin-top: 8px; animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(14px); opacity: 0; } 60% { transform: translateY(0); opacity: 0; } }

/* ---------------------------- SECTIONS ---------------------------- */
.wsection { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vh, 7.5rem) clamp(1.3rem, 4.5vw, 3rem); }
.wsection__head { max-width: 820px; margin-bottom: clamp(2.4rem, 5vh, 4rem); }
.kicker {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.wsection h2, .rule__text h2, .teller h2 {
  font-family: var(--font-disp); font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.16; letter-spacing: -0.01em;
}
.wsection h2 .dim { color: var(--text-soft); font-weight: 300; }
.lede { color: var(--text-soft); margin-top: 1.1rem; font-size: 1.06rem; max-width: 68ch; }

/* ornament divider */
.orn { display: flex; justify-content: center; color: rgba(232,184,75,0.4); padding: .4rem 0; }
.orn svg { width: min(260px, 60vw); height: 16px; }

/* ---------------------------- SPLITS (world) ---------------------------- */
.split {
  display: grid; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: center;
  margin-top: clamp(2rem, 5vh, 3.4rem);
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1.15fr; }
  .split--flip { grid-template-columns: 1.15fr 1fr; }
}
.split__text p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 1.1rem; }
.split__text strong { color: var(--gold-soft); font-weight: 500; }
.split__text em { font-style: italic; color: var(--text); }
.gold-line {
  font-family: var(--font-disp); font-style: italic; font-size: 1.3rem;
  color: var(--gold-soft) !important; margin-top: 1.4rem;
}
.split__media, .rule__media {
  border-radius: 14px; overflow: hidden; background: var(--ink-3);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
}
.split__media video, .rule__media video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.split__media figcaption, .rule__media figcaption {
  font-size: .9rem; letter-spacing: .02em; color: var(--text-soft);
  padding: .6rem .95rem; border-top: 1px solid var(--line-soft);
}
.glimpses figcaption {
  font-size: .95rem; font-weight: 500; letter-spacing: .01em; color: var(--text);
  padding: .65rem .95rem; border-top: 1px solid var(--line-soft);
}
.pull {
  font-family: var(--font-disp); font-weight: 300; font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.35;
  color: var(--gold-soft); margin: 1.6rem 0;
  padding-left: 1.2rem; border-left: 2px solid var(--gold-deep);
}

/* ---------------------------- THE RULE ---------------------------- */
.wsection--rule {
  max-width: none;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(232,184,75,0.07), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.rule {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center;
}
@media (min-width: 900px) { .rule { grid-template-columns: 1fr 1.1fr; } }
.rule__text > p { color: var(--text-soft); font-size: 1.05rem; margin-top: 1.1rem; }
.rule__text h2 { margin-top: .2rem; }
.pull--voice { border: none; padding: 0; text-align: left; }
.pull--voice span { color: var(--text); }
.attr { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }

/* ---------------------------- FILMS ---------------------------- */
.wsection--films { }
.film {
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 20px;
}
.film__part {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.film__title {
  font-family: var(--font-disp); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .01em; margin: .3rem 0 .9rem;
}
.film__log { color: var(--text-soft); font-size: 1.04rem; max-width: 76ch; }
.glimpses {
  display: grid; gap: .9rem; margin-top: 1.8rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .glimpses { grid-template-columns: repeat(3, 1fr); } }
.glimpses figure {
  border-radius: 10px; overflow: hidden; background: var(--ink-3);
  border: 1px solid var(--line-soft);
}
.glimpses video, .glimpses img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.film__foot {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  margin-top: 1.5rem;
}
.film__note { font-size: .92rem; color: var(--text-soft); font-style: italic; }
.film__soon {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px dashed rgba(232,184,75,0.45);
  padding: .55rem 1.1rem; border-radius: 999px;
}
.pins {
  margin-top: clamp(2.4rem, 5vh, 3.6rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,184,75,0.05), transparent 55%);
}
.pins ul { list-style: none; display: grid; gap: .8rem; margin-top: .4rem; }
@media (min-width: 800px) { .pins ul { grid-template-columns: 1fr 1fr; gap: 1rem 2.4rem; } }
.pins li { color: var(--text-soft); font-size: .99rem; padding-left: 1.15rem; position: relative; }
.pins li::before { content: "◆"; position: absolute; left: 0; top: .1em; font-size: .6rem; color: var(--gold); }
.pins strong { color: var(--text); font-weight: 500; }
.pins em { color: var(--gold-soft); }

/* ---------------------------- PEOPLE ---------------------------- */
.people { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person {
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.person:hover { transform: translateY(-4px); border-color: var(--line); }
.person__img { aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--ink-3); }
.person__img img, .person__img video { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.person:hover .person__img img, .person:hover .person__img video { transform: scale(1.04); }
.person h3 {
  font-family: var(--font-disp); font-weight: 500; font-size: 1.5rem;
  padding: 1.2rem 1.4rem .1rem;
}
.person__role {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); padding: .25rem 1.4rem .6rem;
}
.person > p:not(.person__role) { padding: 0 1.4rem; color: var(--text-soft); font-size: .97rem; }
.person__quote {
  margin-top: auto; padding: 1rem 1.4rem 1.4rem !important;
  font-family: var(--font-disp); font-style: italic; color: var(--gold-soft) !important;
  font-size: .98rem !important;
}
.person em { color: var(--text); }

/* ---------------------------- SYSTEMS ---------------------------- */
.wsection--systems { }
.systems { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .systems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .systems { grid-template-columns: repeat(4, 1fr); } }
.system {
  padding: 1.6rem 1.5rem 1.8rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, rgba(232,184,75,0.05), transparent 45%), var(--ink-2);
}
.system__num {
  font-family: var(--font-disp); font-size: .95rem; color: var(--gold);
  letter-spacing: .2em;
}
.system h3 { font-family: var(--font-disp); font-weight: 500; font-size: 1.22rem; margin: .55rem 0 .6rem; }
.system p { color: var(--text-soft); font-size: .94rem; }
.system em { color: var(--gold-soft); font-style: italic; }

/* ---------------------------- SONGS ---------------------------- */
.verses { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: .6rem; }
@media (min-width: 820px) { .verses { grid-template-columns: 1fr 1fr; } }
.verse {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2);
}
.verse__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.verse__label em { text-transform: none; letter-spacing: .02em; font-style: italic; }
.verse__lv {
  font-family: var(--font-disp); font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.6; color: var(--text);
}
.verse__en { margin-top: 1.1rem; color: var(--text-soft); font-style: italic; font-size: .97rem; }
.verses__note { margin-top: 1.3rem; color: var(--text-soft); font-size: .95rem; font-style: italic; }

.score { margin-top: clamp(2.6rem, 6vh, 4rem); }
.score__lede { color: var(--text-soft); max-width: 70ch; margin-bottom: 1.6rem; }
.players { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .players { grid-template-columns: 1fr 1fr; } }
.player {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ink-2);
}
.player__btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(232,184,75,0.5); background: transparent;
  color: var(--gold-soft); font-size: .85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
  transition: background .2s, color .2s, transform .15s;
}
.player__btn:hover { background: var(--gold); color: var(--ink); transform: scale(1.05); }
.player.is-playing .player__btn { background: var(--gold); color: var(--ink); padding-left: 0; }
.player__meta { display: flex; flex-direction: column; min-width: 0; }
.player__title { font-family: var(--font-disp); font-weight: 500; font-size: 1.05rem; }
.player__desc { font-size: .86rem; color: var(--text-soft); }
.player__bar {
  flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.09);
  overflow: hidden; min-width: 40px;
}
.player__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }
.score__note { margin-top: 1.1rem; color: var(--text-soft); font-size: .92rem; font-style: italic; }

/* ---------------------------- TELLER ---------------------------- */
.wsection--teller {
  max-width: none;
  background:
    radial-gradient(50rem 26rem at 15% 100%, rgba(232,184,75,0.06), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.teller { max-width: 760px; margin: 0 auto; }
.teller > p { color: var(--text-soft); font-size: 1.07rem; margin-top: 1.2rem; }
.teller em { color: var(--gold-soft); font-style: italic; }
.teller__sig {
  font-family: var(--font-disp); font-style: italic;
  color: var(--text) !important; margin-top: 1.6rem !important;
}
.teller__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------------------------- FOOTER ---------------------------- */
.wfooter { border-top: 1px solid var(--line-soft); }
.wfooter__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.3rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .88rem; color: var(--text-dim);
}
.wfooter em { font-style: italic; }
.wfooter__links { display: flex; gap: 1.4rem; }
.wfooter__links a:hover { color: var(--gold-soft); }

/* ---------------------------- REVEAL ---------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}
