/* Home page journey: portal, chapters, collection. */
html, body.home { overflow-x: clip; }
.journey { overflow-x: clip; }
body.home .topbar { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s; }
body.home .topbar.solid { background: rgba(13, 12, 10, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.home header.site { border-bottom-color: transparent; }
body.home .topbar.solid header.site { border-bottom-color: var(--line); }

.kicker { font-family: var(--serif); letter-spacing: .38em; text-transform: uppercase; color: var(--gold); font-size: 15px; margin: 0 0 14px; }

/* Portal */
.portal { height: 420vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at center, #15110a 0%, var(--bg) 70%); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-wrap { position: absolute; top: 50%; left: 50%; width: min(92vmin, 760px); aspect-ratio: 1; margin: calc(min(92vmin, 760px) / -2) 0 0 calc(min(92vmin, 760px) / -2); }
.ring-wrap svg { width: 100%; height: 100%; overflow: visible; }
.halo { fill: none; stroke: var(--gold-hi); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.halo.thin { stroke: var(--gold); stroke-width: .8; opacity: .55; }
.lensing path { fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: .75; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.intro { position: absolute; bottom: 9vh; left: 0; right: 0; text-align: center; padding: 0 16px; pointer-events: none; }
.intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 7vw, 76px); line-height: 1.05; margin: 0 0 18px; text-shadow: 0 2px 30px #000; }
.intro .hint { color: var(--muted); font-size: 17px; letter-spacing: .08em; margin: 0; }
.intro .hint span { display: block; margin-top: 8px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.inside { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 24px; opacity: 0; pointer-events: none; }
.inside p { font-family: var(--serif); font-size: clamp(28px, 5vw, 56px); line-height: 1.15; margin: 0; max-width: 16ch; }
.inside .sub { font-family: var(--sans); font-size: clamp(18px, 2.2vw, 22px); color: var(--gold-hi); margin-top: 18px; letter-spacing: .04em; max-width: none; }

/* Chapters */
.chapter { position: relative; max-width: 1120px; margin: 0 auto; padding: 18vh 16px 10vh; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.chapter .text { position: sticky; top: 28vh; align-self: start; }
.chapter .num { font-family: var(--serif); color: var(--gold); font-size: 16px; letter-spacing: .3em; margin: 0 0 18px; }
.chapter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 0 0 16px; }
.chapter .tagline { color: var(--muted); font-size: 20px; max-width: 30ch; margin: 0; }
.chapter .orbit { position: absolute; z-index: -1; width: 70vmin; aspect-ratio: 1; border: 1px solid #2a2417; border-radius: 50%; right: -10vmin; top: 10vh; pointer-events: none; }
.chapter .orbit::after { content: ""; position: absolute; inset: 14%; border: 1px dashed #2a2417; border-radius: 50%; }
.shirts { display: grid; gap: 28px; }
.shirt { display: block; text-decoration: none; will-change: transform; }
.shirt:nth-child(even) { margin-left: 18%; }
.shirt:nth-child(odd) { margin-right: 18%; }
.shirt figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.shirt:hover figure { border-color: var(--gold); }
.shirt img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease; }
.shirt:hover img { transform: scale(1.04); }
.shirt .cap { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 2px 0; }
.shirt .cap b { font-family: var(--serif); font-weight: 400; font-size: 23px; }
.shirt .cap span { color: var(--gold-hi); font-size: 17px; white-space: nowrap; }

/* Collection */
.collection { padding: 16vh 16px 10vh; text-align: center; }
.collection > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); margin: 0 0 40px; }
.collection .grid { text-align: left; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Progress thread down the left edge */
.thread { position: fixed; left: 18px; top: 22vh; bottom: 22vh; width: 1px; background: #2a2417; z-index: 10; opacity: 0; transition: opacity .4s; }
.thread.on { opacity: 1; }
.thread span { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--gold-hi); box-shadow: 0 0 8px var(--gold); }

@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; gap: 28px; padding-top: 14vh; }
  .chapter .text { position: static; }
  .shirt:nth-child(even) { margin-left: 12%; }
  .shirt:nth-child(odd) { margin-right: 12%; }
  .thread { left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal { height: 100vh; }
  .lensing path { animation: none; stroke-dashoffset: 0; }
  .intro .hint span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Manifesto */
.manifesto { max-width: 760px; margin: 0 auto; padding: 18vh 16px 4vh; text-align: center; }
.manifesto h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.5vw, 60px); line-height: 1.08; margin: 0 0 28px; }
.manifesto p { color: var(--muted); font-size: 20px; margin: 0 0 18px; }
.manifesto .lead { color: var(--text); font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); }

/* Chapter symbol inside the orbit, turning with scroll */
.chapter .orbit { display: grid; place-items: center; transform: rotate(var(--spin, 0deg)); }
.chapter .glyph { font-family: var(--serif); font-size: clamp(90px, 18vmin, 200px); color: var(--gold); opacity: .12; white-space: nowrap; transform: rotate(calc(var(--spin, 0deg) * -2)); }

/* Shortcut to the shirts */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
