/* inclination — sketchbook stylesheet
   Edit colours here. Everything else reads from these tokens. */
:root {
  --paper: #F5F3EF;      /* page, sampled from the logo */
  --stone: #E6E6E2;      /* second page tone */
  --ink: #1A1A1A;        /* text */
  --graphite: #6F6D69;   /* pencil notes, quiet text */
  --tape: #B2B0AD;       /* hairlines, tape */
  --oxblood: #7A0000;    /* the "i", links, one accent */
  --wine: #5E2626;       /* pop-up page */

  --sans: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(16px, 4.5vw, 64px);
  --measure: 34rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --rule: color-mix(in srgb, var(--tape) 70%, transparent);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.55;
  letter-spacing: -.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {   /* paper grain over every page, flickering like film */
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  background-image: var(--grain); opacity: .075; mix-blend-mode: multiply;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
::selection { background: var(--oxblood); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .3s var(--ease); }
a:hover { color: var(--oxblood); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
p { margin: 0 0 1em; }
button { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: 0; transform: translateY(-150%); background: var(--ink); color: var(--paper); padding: .5em 1em; z-index: 300; }
.skip:focus { transform: translateY(8px); }

/* ---------- type ---------- */
.h1, .h2 { font-weight: 300; letter-spacing: -.045em; line-height: 1; margin: 0 0 .5em; }
.h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.small { font-size: .82rem; color: var(--graphite); margin-bottom: .6em; }
.giant {
  font-weight: 400;
  font-size: clamp(5.2rem, 18vw, 17rem);
  letter-spacing: -.075em;
  line-height: .86;
  margin: 0;
  white-space: nowrap;
}
.note {
  font-family: var(--hand);
  font-size: clamp(1.3rem, 1.1rem + .5vw, 1.65rem);
  line-height: 1.15;
  color: var(--graphite);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.note a { color: var(--oxblood); }

/* split-text masks (set up by main.js) */
.w, .ch { display: inline-block; vertical-align: top; }
.w { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span, .ch { transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 55ms); }
.js [data-words] .w > span { display: inline-block; }
.js [data-words]:not(.in) .w > span { transform: translateY(110%); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6em;
  font: 400 .95rem/1 var(--sans); letter-spacing: -.01em;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 1em 1.7em; text-decoration: none; cursor: pointer;
  transition: color .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn::before { /* ink fills up from the bottom like a wash */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease-out);
}
@media (hover: hover) { .btn:hover { color: var(--paper); } }
@media (hover: hover) { .btn:hover::before { transform: translateY(0); } }
.btn > span { display: inline-block; transition: transform .5s var(--ease-out); }
.btn--ghost { border-color: var(--tape); }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; } }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; transition: opacity .3s; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--oxblood); transition: transform .35s var(--ease-out), opacity .3s; }
.cursor__ring {
  position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  border: 1px solid var(--oxblood); background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: grid; place-items: center; font: 400 1.25rem/1 var(--hand); color: var(--oxblood);
  transform: scale(0); transition: transform .45s var(--ease-out);
}
.has-cursor .cursor { display: block; }
.cursor.is-link .cursor__dot { transform: scale(2.6); opacity: .35; }
.cursor.is-label .cursor__ring { transform: scale(1); }
.cursor.is-label .cursor__dot { transform: scale(0); }
.cursor.is-hidden { opacity: 0; }
@media (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-drag] { cursor: none; }
  .has-cursor input:not([type=radio]):not([type=checkbox]), .has-cursor textarea { cursor: text; }
}

/* ---------- opening sequence ---------- */
.intro { display: none; }
.js:not(.seen) .intro {
  position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  background: var(--paper);
  animation: lift 1s var(--ease-out) 1.55s forwards;
}
.intro__mark { position: relative; width: 112px; }
.intro__mark i { position: absolute; width: 34.5%; height: 34.5%; background: var(--paper); animation: tile .45s var(--ease-out) forwards; }
.intro__mark i:nth-of-type(1) { left: 0; top: 0; animation-delay: .15s; }
.intro__mark i:nth-of-type(2) { left: 33%; top: 0; animation-delay: .23s; }
.intro__mark i:nth-of-type(3) { left: 66%; top: 0; animation-delay: .31s; }
.intro__mark i:nth-of-type(4) { left: 0; top: 33%; animation-delay: .39s; }
.intro__mark i:nth-of-type(5) { left: 33%; top: 33%; animation-delay: .47s; }
.intro__mark i:nth-of-type(6) { left: 66%; top: 33%; animation-delay: .55s; }
.intro__mark i:nth-of-type(7) { left: 0; top: 66%; animation-delay: .63s; }
.intro__mark i:nth-of-type(8) { left: 33%; top: 66%; animation-delay: .71s; }
.intro__mark i:nth-of-type(9) { left: 66%; top: 66%; animation-delay: .79s; }
@keyframes tile { to { opacity: 0; transform: scale(.6); } }
.intro__word { margin: 0; font-family: var(--hand); font-size: 1.6rem; color: var(--graphite); opacity: 0; transform: translateY(8px) rotate(-2deg); animation: rise .9s var(--ease-out) .75s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0) rotate(-2deg); } }
@keyframes lift { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: padding .5s var(--ease-out);
}
.bar.is-small { padding-top: 8px; padding-bottom: 8px; }
.bar__progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--oxblood); transform-origin: left; transform: scaleX(0); }
.bar__logo img { width: clamp(46px, 4vw, 56px); transition: width .5s var(--ease-out), transform .6s var(--ease-out); }
.bar.is-small .bar__logo img { width: clamp(38px, 3.2vw, 44px); }
@media (hover: hover) { .bar__logo:hover img { transform: rotate(-3deg); } }
.bar__nav { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); margin-left: auto; font-size: .92rem; }
.bar__nav a { position: relative; text-decoration: none; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.bar__nav a[aria-current]::after, .bar__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.bar__join { color: var(--oxblood); }
.bar__menu, .bar__nav-note { display: none; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.bar__folio { font-size: .8rem; color: var(--graphite); font-variant-numeric: tabular-nums; min-width: 3.6em; }
.sound { display: inline-flex; align-items: center; gap: .55em; font: 400 .82rem var(--sans); color: var(--graphite); background: none; border: 0; cursor: pointer; padding: .3em 0; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] { color: var(--oxblood); }
.sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

/* ---------- sketchbook pages ---------- */
.page[id] { scroll-margin-top: 84px; }
.page { position: relative; padding: clamp(64px, 10vw, 140px) var(--gutter); }
.folio { position: absolute; top: 22px; right: var(--gutter); font-size: .78rem; color: var(--graphite); }

.hairline { display: flex; align-items: center; gap: .9em; font-size: .78rem; color: var(--graphite); }
.hairline i { flex: 1; height: 1px; background: currentColor; opacity: .55; transform-origin: left; transition: transform 1.6s var(--ease-out) .2s; }
.js .hairline[data-draw]:not(.in) i { transform: scaleX(0); }

/* tape strip on any taped item */
.taped { position: relative; }
.taped::before {
  content: ""; position: absolute; z-index: 3;
  top: -14px; left: 50%; width: 112px; height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: color-mix(in srgb, var(--tape) 62%, transparent);
  background-image: var(--grain);
  clip-path: polygon(2% 8%, 9% 0, 20% 6%, 33% 1%, 47% 7%, 61% 0, 74% 6%, 88% 1%, 98% 9%, 100% 92%, 90% 100%, 76% 94%, 62% 100%, 48% 93%, 34% 100%, 20% 94%, 8% 100%, 0 90%);
}
.taped--left::before { left: 18%; transform: translateX(-50%) rotate(-38deg); top: -6px; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro card" "list card" "giant giant" "cap cap" "line line";
  align-content: end;
  column-gap: var(--gutter);
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: 28px;
}
.hero__intro { grid-area: intro; max-width: 30rem; }
.hero__lede { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .5em; }
.hero__sub { color: var(--graphite); margin-bottom: 1.6em; }
.hero__list { grid-area: list; align-self: end; max-width: 27rem; margin-top: 2rem; }
.hero__card { grid-area: card; justify-self: center; align-self: center; width: min(100%, 300px); margin: 0 0 2rem; position: relative; z-index: 5; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero__stack { position: relative; aspect-ratio: 5 / 6; transform: rotate(2deg); transition: transform .9s var(--ease-out), box-shadow .5s; box-shadow: 0 30px 50px -36px rgba(40, 20, 20, .45); }
.hero__stack .art { position: absolute; inset: 0; opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .5s, clip-path .9s var(--ease-out); }
.hero__stack .art.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.hero__card.is-dragging .hero__stack { transition: none; box-shadow: 0 46px 60px -30px rgba(40, 20, 20, .5); }
.note--card { margin-top: 1.1rem; }
.hero .giant { grid-area: giant; margin: clamp(1.5rem, 4vw, 3rem) 0 0 -.06em; }
.giant__cap { grid-area: cap; justify-self: end; font-style: italic; font-size: .9rem; color: var(--graphite); margin: .6rem 0 1.8rem; transition: opacity .4s; }
.giant__cap.is-swapping { opacity: 0; }
.hairline--hero { grid-area: line; }

/* hero entrance (runs once the intro lifts, or right away on later visits) */
.giant .ch { padding-bottom: .1em; transition-delay: calc(var(--i, 0) * 32ms); }
.giant .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.js .hero .ch { transform: translateY(108%); }
.js .hero.is-ready .ch { transform: translateY(0); }
.js .hero .ch.is-out { transform: translateY(-108%); transition-duration: .5s; transition-delay: calc(var(--i, 0) * 18ms); }
.js .hero .ch.is-in { transform: translateY(108%); transition: none; }
.js .hero__intro, .js .hero__list { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .hero__list { transition-delay: .15s; }
.js .hero.is-ready .hero__intro, .js .hero.is-ready .hero__list { opacity: 1; transform: none; }
.js .hero__card { opacity: 0; transform: translateY(-50px) rotate(-8deg); transition: opacity .8s var(--ease-out) .25s, transform 1.4s var(--ease-out) .25s; }
.js .hero.is-ready .hero__card { opacity: 1; transform: none; }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tracks li { display: flex; align-items: baseline; border-bottom: 1px solid var(--rule); }
.tracks__b {
  flex: 1; display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; text-align: left;
  background: none; border: 0; padding: .75rem 0; cursor: pointer; font: inherit;
}
.tracks__n { font-size: .78rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.tracks__t { font-size: 1.15rem; letter-spacing: -.02em; transition: transform .5s var(--ease-out), color .3s; }
@media (hover: hover) { .tracks__b:hover .tracks__t { transform: translateX(6px); } }
.tracks__s { font-size: .8rem; color: var(--graphite); }
.tracks__b.is-current .tracks__t, .tracks__b.is-current .tracks__n { color: var(--oxblood); }

/* ---------- example pieces (CSS art, swap for real work later) ---------- */
.art { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--stone); }
.art::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .18; mix-blend-mode: multiply; pointer-events: none; }
.art__fig { position: absolute; left: 14px; bottom: 12px; font: 400 1.15rem/1 var(--hand); color: var(--graphite); }

.art--bluehour { background: linear-gradient(180deg, #1d2741 0%, #34436a 34%, #7d7a93 60%, #c99b86 80%, #ecc9a6 100%); }
.rule-words { position: absolute; left: 14px; right: 14px; top: 58%; display: flex; align-items: center; gap: .6em; color: rgba(255,255,255,.85); font-size: .72rem; letter-spacing: .08em; }
.rule-words i { flex: 1; height: 1px; background: currentColor; opacity: .8; }

.art--poem { background: var(--paper); display: flex; align-items: center; padding: 12%; border: 1px solid var(--rule); }
.art--poem p, .art--poem .poem { font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; letter-spacing: -.015em; margin: 0; text-align: left; }
.art--sm .poem { font-size: 1rem; }
.caret { display: inline-block; width: 1px; height: 1em; background: var(--oxblood); vertical-align: -.12em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.art--audio { background: var(--stone); display: flex; align-items: center; justify-content: center; }
.wave { display: flex; align-items: center; gap: 3px; height: 40%; width: 78%; }
.wave span { flex: 1; background: var(--oxblood); border-radius: 2px; min-height: 2px; transform-origin: center; }
.is-playing .wave span { animation: bar 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -37ms); }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
.playbtn { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: .5em; font: 400 .82rem var(--sans); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: .5em .9em; cursor: pointer; z-index: 2; }
.playbtn__icon { width: 0; height: 0; border-left: 7px solid var(--oxblood); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.playbtn[aria-pressed="true"] .playbtn__icon { width: 7px; height: 9px; border: 0; border-left: 2px solid var(--oxblood); border-right: 2px solid var(--oxblood); }

.art--sketch { background: var(--paper); border: 1px solid var(--rule); }
.art--sketch svg { position: absolute; inset: 6% 8% 14%; width: 84%; height: 80%; }
.pencil { fill: none; stroke: var(--graphite); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pencil--soft { stroke-width: .9; opacity: .55; }
.js .reveal .pencil { stroke-dasharray: 1; }

.art--film { background: #24221f; display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; padding: 12px 18px; }
.art--film span { background: linear-gradient(120deg, #6d7684, #b9b2a6 60%, #8d8579); opacity: .85; }
.art--film span:nth-child(2) { background: linear-gradient(200deg, #7c6c66, #c8b8a6); }
.art--film span:nth-child(3) { background: linear-gradient(90deg, #3f4656, #a59b8e); }

.art--love { background: var(--oxblood); }
.torn { position: absolute; inset: 22% 16% 26% 20%; background: var(--paper); transform: rotate(-6deg);
  clip-path: polygon(0 6%, 12% 0, 24% 5%, 40% 1%, 55% 6%, 70% 0, 86% 4%, 100% 0, 97% 22%, 100% 41%, 96% 60%, 100% 80%, 95% 100%, 78% 95%, 62% 100%, 45% 94%, 30% 100%, 14% 95%, 0 100%, 4% 78%, 0 58%, 5% 38%, 1% 20%); }
.art--blank { background: var(--paper); border: 1px dashed var(--tape); }

/* ---------- ritual (scroll reveal) ---------- */
.ritual { padding-bottom: 40px; }
.ritual__head { max-width: var(--measure); margin-bottom: 2rem; }
.reveal { min-height: 92svh; display: flex; align-items: center; justify-content: center; gap: clamp(2.5rem, 10vw, 10rem); }
.reveal--flip { flex-direction: row-reverse; }
.reveal__text { max-width: 24rem; will-change: transform; }
.reveal__n { font-size: .8rem; color: var(--graphite); margin-bottom: 1.2em; font-variant-numeric: tabular-nums; }
.reveal__t { font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -.045em; line-height: .98; margin: 0 0 .6em; }
.reveal__d { color: var(--graphite); max-width: 22rem; }
.reveal__img { width: clamp(240px, 28vw, 380px); margin: 0; will-change: clip-path, opacity, transform; }

/* ---------- volumes ---------- */
.volumes { background: var(--stone); }
.volumes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.tabs { position: relative; display: flex; gap: 1.6rem; }
.tabs button { font: 400 .95rem var(--sans); color: var(--graphite); background: none; border: 0; padding: .3em 0 .4em; cursor: pointer; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--oxblood); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }
.vol__meta { font-size: .9rem; color: var(--graphite); max-width: var(--measure); margin-bottom: 2rem; }
.vol__empty { font-family: var(--hand); font-size: 1.7rem; color: var(--graphite); padding: 3rem 0 4rem; transform: rotate(-1.5deg); }
.vol:not([hidden]) { animation: pagein .7s var(--ease-out); }
@keyframes pagein { from { opacity: 0; transform: translateX(16px); } }

.strip { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 18px var(--gutter) 14px; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-grabbing { scroll-snap-type: none; }
.strip__track { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.strip__item { flex: 0 0 clamp(210px, 24vw, 290px); scroll-snap-align: start; }
.strip__item:nth-child(odd) .flip { transform: rotate(-1deg); }
.strip__item:nth-child(even) .flip { transform: rotate(.8deg) translateY(10px); }
.strip__cap { font-size: .8rem; color: var(--graphite); margin-top: .9rem; text-align: right; }
.strip__ctrl { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; font-size: .9rem; }
.strip__count { font-variant-numeric: tabular-nums; color: var(--graphite); }
.strip__track-line { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.strip__track-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.17); transition: transform .3s; }
.strip__ctrl button { font: 400 .9rem var(--sans); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; color: var(--ink); padding: .3em 0; }

/* postcard flip */
.flip { display: block; width: 100%; padding: 0; border: 0; background: none; perspective: 1200px; cursor: pointer; transition: transform .6s var(--ease-out); font: inherit; text-align: left; }
@media (hover: hover) { .flip:hover { transform: rotate(0) translateY(-6px) !important; } }
.flip__inner { position: relative; display: block; aspect-ratio: 5 / 6; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 40px -30px rgba(40, 20, 20, .5); }
.flip__back { transform: rotateY(180deg); background: var(--paper); border: 1px solid var(--rule); padding: 14px; display: grid; grid-template-rows: auto 1fr auto; }
.pc__stamp { justify-self: end; width: 46px; height: 56px; border: 1px dashed var(--tape); display: grid; place-items: center; }
.pc__stamp img { width: 32px; height: auto; }
.pc__note { align-self: center; font: 400 1.5rem/1.1 var(--hand); color: var(--ink); transform: rotate(-3deg); padding: 0 .2rem; }
.pc__rows { display: grid; gap: .1rem; font-size: .78rem; }
.pc__rows span { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--rule); padding: .3rem 0; }
.pc__rows em { font-style: normal; color: var(--graphite); }

/* ---------- pop-ups ---------- */
.popups { background: var(--wine); color: var(--paper); overflow: hidden; }
.popups .folio { color: color-mix(in srgb, var(--paper) 60%, transparent); }
@media (hover: hover) { .popups a:hover { color: var(--paper); opacity: .75; } }
.popups__lede { max-width: var(--measure); color: color-mix(in srgb, var(--paper) 78%, transparent); margin-bottom: 2.5rem; }
.dates { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); }
.dates li {
  position: relative; display: grid; grid-template-columns: 7rem 14rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.2rem 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  transition: padding .5s var(--ease-out);
}
.dates li::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 7%, transparent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .dates li:hover::before { transform: scaleY(1); } }
@media (hover: hover) { .dates li:hover { padding-left: 1rem; } }
.dates li > * { position: relative; }
.dates__v { font-size: 1.3rem; letter-spacing: -.02em; }
.dates__d, .dates__p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: .95rem; }
.dates__a { font-size: .9rem; }
.dates__a--off { opacity: .45; }
.note--light { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.note--light a { color: var(--paper); }
.peek { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .3s; }
.peek.is-on { opacity: 1; }
.peek__card {
  width: 170px; aspect-ratio: 5 / 6; margin: -110px 0 0 30px; background: var(--paper); color: var(--ink);
  padding: 14px; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 30px 50px -24px rgba(0,0,0,.5);
  transform: rotate(var(--r, 3deg)) scale(var(--s, .9)); transition: transform .6s var(--ease-out);
}
.peek.is-on .peek__card { --s: 1; }
.peek__vol { font-size: .8rem; color: var(--graphite); }
.peek__cup { justify-self: center; align-self: center; width: 62px; height: 52px; border: 1.4px solid var(--graphite); border-top: 0; border-radius: 0 0 30px 30px; position: relative; background: linear-gradient(to top, #8c9a63 0 70%, transparent 70%); background-clip: content-box; padding: 0 2px 2px; }
.peek__cup::before { content: ""; position: absolute; left: -6px; right: -6px; top: 0; height: 1.4px; background: var(--graphite); }
.peek__note { font: 400 1.25rem/1.05 var(--hand); color: var(--oxblood); transform: rotate(-3deg); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; overflow: hidden; }
.about__word { font-weight: 400; font-size: clamp(7rem, 26vw, 24rem); letter-spacing: -.08em; line-height: .75; color: var(--stone); margin-left: -.07em; user-select: none; transform-origin: 0 100%; will-change: transform; }
.about__body { max-width: var(--measure); }
.about__sign { color: var(--graphite); }
.about__sign a { color: var(--oxblood); }

/* ---------- join call ---------- */
.join-cta { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.giant--join { color: var(--oxblood); margin-left: -.06em; }
.join-cta__body { max-width: 24rem; }
.join-cta__body p { color: var(--graphite); }

/* ---------- footer ---------- */
.foot { padding: 28px var(--gutter) 40px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 12rem)); gap: 1.5rem; margin-top: 2rem; font-size: .9rem; }
.foot__cols a { display: block; text-decoration: none; padding: .15em 0; transition: transform .4s var(--ease-out), color .3s; }
@media (hover: hover) { .foot__cols a:hover { transform: translateX(4px); } }
.foot__h { color: var(--graphite); font-size: .8rem; margin-bottom: .5em; }

/* ---------- join page ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; min-height: calc(100svh - 160px); padding-top: clamp(40px, 6vw, 80px); }
.join__intro { max-width: 28rem; margin-bottom: 2.4rem; }
.join__lead { color: var(--graphite); }
.form { display: grid; gap: 1.5rem; max-width: 32rem; }
.field { display: grid; gap: .4rem; font-size: .85rem; color: var(--graphite); border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .6rem; }
.field em { font-style: normal; opacity: .7; }
.field input:not([type=radio]) {
  font: 300 1.2rem var(--sans); letter-spacing: -.01em; color: var(--ink);
  background: linear-gradient(var(--oxblood), var(--oxblood)) left bottom / 0 1px no-repeat, linear-gradient(var(--tape), var(--tape)) left bottom / 100% 1px no-repeat;
  border: 0; border-radius: 0; padding: .45em 0; width: 100%; transition: background-size .6s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--tape); }
.field input:focus { outline: none; background-size: 100% 1px, 100% 1px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span { display: inline-block; padding: .5em 1em; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
@media (hover: hover) { .chips label:hover span { transform: translateY(-2px); border-color: var(--ink); } }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--graphite); }
.check input { accent-color: var(--oxblood); margin-top: .3em; }
.form .btn { justify-self: start; margin-top: .4rem; }
.form__msg { min-height: 1.4em; font-size: .9rem; color: var(--oxblood); }
.joined__lead { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.15; max-width: 26rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.join__right { position: sticky; top: 120px; perspective: 1200px; }
.join__hint { font: 400 1.3rem var(--hand); color: var(--graphite); margin-top: 1.4rem; transform: rotate(-2deg); }
.member-card {
  position: relative; aspect-ratio: 3 / 2; background: var(--paper);
  border: 1px solid var(--rule); padding: 7% 8%;
  display: grid; grid-template-rows: auto 1fr auto auto;
  box-shadow: 0 40px 60px -40px rgba(60, 20, 20, .45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.5deg);
  transition: transform .8s var(--ease-out);
  overflow: hidden;
}
.member-card.is-tilting { transition: transform .15s linear; }
.member-card::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: multiply; pointer-events: none; }
.member-card::before { /* light sweeping across the card as it tilts */
  content: ""; position: absolute; inset: -40%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), transparent 40%);
  opacity: var(--glare, 0); transition: opacity .4s;
}
.member-card__tape { position: absolute; top: -6px; left: 40%; width: 110px; height: 28px; transform: rotate(-3deg); background: color-mix(in srgb, var(--tape) 62%, transparent); background-image: var(--grain); z-index: 3; }
.member-card__mark { position: absolute; right: 7%; top: 10%; height: 34%; width: auto; }
.member-card__brand { font-size: .8rem; color: var(--graphite); margin: 0; }
.member-card__name { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.045em; line-height: 1; align-self: end; margin: 0 0 1rem; max-width: 68%; overflow-wrap: anywhere; transition: color .3s; }
.member-card__name.is-empty { color: var(--tape); }
.member-card__meta { display: flex; gap: 2rem; margin: 0 0 1rem; font-size: .8rem; }
.member-card__meta dt { color: var(--graphite); }
.member-card__meta dd { margin: 0; }
.member-card__foot { margin: 0; font-size: .72rem; color: var(--graphite); border-top: 1px solid var(--rule); padding-top: .6rem; }
.stamp {
  position: absolute; z-index: 4; left: 46%; top: 20%; width: 110px; height: 110px; border-radius: 50%;
  border: 2px solid var(--oxblood); color: var(--oxblood); display: grid; place-content: center; text-align: center;
  font: 500 .85rem/1.25 var(--sans); letter-spacing: .02em; mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--oxblood);
  opacity: 0; transform: scale(2.2) rotate(-30deg);
}
.stamp span:last-child { font-weight: 300; font-size: .75rem; }
.is-member .stamp { animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { 60% { opacity: .9; transform: scale(.94) rotate(-14deg); } 100% { opacity: .85; transform: scale(1) rotate(-14deg); } }
.is-member .form, .is-member .join__hint { display: none; }


/* ---------- phones and small tablets ---------- */
@media (max-width: 760px) {
  /* top bar: logo, page counter, menu button */
  .bar { gap: .9rem; flex-wrap: nowrap; padding: 10px var(--gutter); background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar.is-small { padding-top: 6px; padding-bottom: 6px; }
  .bar__logo img { width: 42px; }
  .bar.is-small .bar__logo img { width: 36px; }
  .bar__folio { margin-left: auto; order: 8; }
  .bar__menu { order: 9; }
  .joinpage .bar__menu { margin-left: auto; }
  .bar__menu {
    display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 0 2px 0 10px;
    font: 400 .95rem var(--sans); background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .bar__menu i { position: relative; width: 18px; height: 1px; background: currentColor; transition: transform .45s var(--ease-out); }
  .bar__menu i::after { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 1px; background: currentColor; transition: transform .45s var(--ease-out), opacity .3s; }
  .nav-open .bar__menu i { transform: translateY(3px) rotate(-38deg); }
  .nav-open .bar__menu i::after { transform: translate(-1px, -6px) rotate(76deg); width: 18px; }

  /* the menu opens as its own sketchbook page */
  .bar__nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    padding: 96px var(--gutter) 48px; background: var(--paper);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
  }
  .nav-open .bar__nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out); }
  .bar__nav a {
    display: flex; align-items: baseline; justify-content: space-between;
    font-size: clamp(2.2rem, 11vw, 3.2rem); font-weight: 300; letter-spacing: -.045em; line-height: 1;
    padding: .32em 0; border-bottom: 1px solid var(--rule);
    opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
  }
  .bar__nav a:first-child { border-top: 1px solid var(--rule); }
  .bar__nav a::after { display: none; }
  .bar__nav a[data-p]::before { content: attr(data-p); order: 2; font-size: .8rem; letter-spacing: 0; color: var(--graphite); }
  .nav-open .bar__nav a { opacity: 1; transform: none; }
  .nav-open .bar__nav a:nth-child(2) { transition-delay: .05s; } .nav-open .bar__nav a:nth-child(3) { transition-delay: .1s; }
  .nav-open .bar__nav a:nth-child(4) { transition-delay: .15s; } .nav-open .bar__nav a:nth-child(5) { transition-delay: .2s; }
  .bar__nav-note { display: block; margin-top: 2rem; font: 400 1.4rem var(--hand); color: var(--graphite); transform: rotate(-2deg); }
  .nav-open { overflow: hidden; }

  .page { padding-top: 56px; padding-bottom: 64px; }
  .page[id] { scroll-margin-top: 50px; }
  .folio { top: 14px; }

  .hero { grid-template-columns: 1fr; grid-template-areas: "intro" "card" "list" "giant" "cap" "line"; min-height: 0; padding-top: 28px; }
  .hero .folio { display: none; }
  .hero__lede { font-size: clamp(1.55rem, 7vw, 1.9rem); }
  .hero__card { width: min(66%, 260px); margin: 2.6rem auto .6rem; }
  .giant__cap { justify-self: start; }
  .tracks__b { padding: .95rem 0; }
  .tracks__s a { display: inline-block; padding: .7em 0; }

  .reveal, .reveal--flip { flex-direction: column; min-height: 0; padding: 3rem 0; gap: 2.2rem; align-items: flex-start; }
  .reveal__img { width: min(82%, 330px); align-self: center; }
  .reveal__t { font-size: clamp(2.1rem, 9vw, 2.6rem); }

  .tabs { gap: 1.2rem; }
  .tabs button { padding: .75em 0 .65em; }
  .strip__item { flex-basis: min(66vw, 280px); }
  .strip__ctrl button { padding: .8em .3em; }

  .dates li { grid-template-columns: 1fr auto; row-gap: .25rem; padding: 1.1rem 0; }
  .dates__d, .dates__p { grid-column: 1; }
  .dates__a { grid-column: 2; grid-row: 1; display: inline-block; padding: .4em 0; }
  .note a { display: inline-block; padding: .25em 0; }

  .about { grid-template-columns: 1fr; }
  .about__word { order: 2; font-size: 38vw; }

  .join-cta { gap: 1.4rem; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols a { padding: .6em 0; }

  /* join page: heading, then the card, then the form */
  .join { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .join__left { display: contents; }
  .join__intro { order: 1; margin-bottom: 2rem; }
  .join__right { order: 2; position: static; margin-bottom: 2.6rem; }
  .form, .joined { order: 3; }
  .join__hint, .peek { display: none; }
  .member-card { padding: 6% 7%; }
  .member-card__mark { height: 28%; top: 9%; right: 6%; }
  .member-card__name { font-size: clamp(1.6rem, 8vw, 2.2rem); margin-bottom: .7rem; max-width: 80%; }
  .member-card__meta { gap: 1.1rem; font-size: .75rem; }
  .stamp { width: 86px; height: 86px; left: auto; right: 10%; top: 26%; font-size: .72rem; }
  .form .btn, .card-actions .btn { width: 100%; justify-content: center; }
  .chips span { padding: .7em 1.1em; }
  .playbtn { padding: .75em 1.1em; }
}

/* touch screens: keep the film grain still (smoother scrolling, less battery) */
@media (pointer: coarse) {
  body::before { animation: none; inset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js:not(.seen) .intro { display: none; }
  .js .hero .ch, .js [data-words] .w > span { transform: none !important; }
  .js .hero__intro, .js .hero__list, .js .hero__card { opacity: 1 !important; transform: none !important; }
  .js .hairline[data-draw] i { transform: none !important; }
  .stamp { opacity: .85; transform: rotate(-14deg); }
  .js .reveal .pencil { stroke-dasharray: none; }
}
