/* ═══════════════════════════════════════════════════════════════
   CUE — A music diary
   Editorial / liner-notes aesthetic
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Core palette (from app) */
  --cream:        #F5F0E6;
  --cream-deep:   #ECE4D2;
  --cream-edge:   #E1D6BE;
  --ink:          #22171A;
  --ink-soft:     #4a3d40;
  --ink-quiet:    rgba(34, 23, 26, 0.62);
  --ink-faint:    rgba(34, 23, 26, 0.32);
  --ink-ghost:   rgba(34, 23, 26, 0.10);
  --lavender:     #B79AE3;
  --plum:         #6F4EA3;
  --plum-deep:    #4a316d;

  /* Extended liner-notes palette (album tile colors) */
  --t-1:  #B79AE3; /* lavender */
  --t-2:  #6F4EA3; /* plum */
  --t-3:  #C97D5C; /* terracotta */
  --t-4:  #6B8E7F; /* sage */
  --t-5:  #D9A45F; /* gold */
  --t-6:  #8B5A6B; /* dusty rose */
  --t-7:  #4A6B7E; /* dusty teal */
  --t-8:  #3E4D3A; /* olive */
  --t-9:  #C4624A; /* burnt orange */
  --t-10: #E8C588; /* cream gold */
  --t-11: #5B4E7D; /* twilight */
  --t-12: #A87E92; /* mauve */

  /* Type stack */
  --serif:    'Fraunces', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --display:  'Instrument Serif', 'Fraunces', 'Palatino', Georgia, serif;
  --mono:     'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Rules */
  --rule:        rgba(34, 23, 26, 0.14);
  --rule-strong: rgba(34, 23, 26, 0.32);

  /* Spacing scale */
  --gutter: clamp(1.5rem, 4vw, 3.5rem);
  --bleed:  clamp(2rem, 6vw, 6rem);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───── Reset ───── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 0;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--plum);
  color: var(--cream);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ───── Paper grain overlay (subtle) ───── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0.13   0 0 0 0 0.09   0 0 0 0 0.10   0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───── Notebook margin rule (vertical hairline on left) ───── */
.margin-rule {
  position: fixed;
  top: 0;
  bottom: 0;
  left: clamp(2rem, 5vw, 5rem);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--rule) 6%,
    var(--rule) 94%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 720px) {
  .margin-rule { display: none; }
}

/* ───── Folio (page numbers, bottom corner like a printed book) ───── */
.folio {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--cream);
  padding: 0.4em 0.6em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  mix-blend-mode: multiply;
}

.folio__sep { opacity: 0.6; }

@media (max-width: 720px) {
  .folio { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MASTHEAD
   ═══════════════════════════════════════════════════════════════ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: var(--gutter);
  padding: 1.2rem var(--bleed) 1rem;
  background: linear-gradient(
    to bottom,
    var(--cream) 0,
    var(--cream) 70%,
    rgba(245, 240, 230, 0.85) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  position: relative;
  cursor: pointer;
  line-height: 1;
}

.wordmark__logo {
  width: 1.2em;
  height: 1.2em;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.wordmark:hover .wordmark__logo {
  transform: rotate(360deg);
}

.wordmark__text {
  display: inline-flex;
  align-items: baseline;
}

.wordmark__r {
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
  transform-origin: center 75%;
}

.wordmark:hover .wordmark__r {
  transform: rotate(-6deg);
}

.wordmark__dot {
  color: var(--plum);
  font-weight: 600;
  margin-left: 0.04em;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__link {
  color: var(--ink-quiet);
  transition: color 0.3s var(--ease-out);
  position: relative;
  padding: 0.4rem 0;
}

.nav__num {
  color: var(--ink-faint);
  margin-right: 0.5em;
  font-style: italic;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.5s var(--ease-out);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after {
  right: 0;
}

.nav__link--cta {
  color: var(--plum);
}

.nav__link--cta::after {
  background: var(--plum);
  right: 0;
  opacity: 0.5;
}

.nav__link--cta:hover::after { opacity: 1; }

@media (max-width: 720px) {
  .masthead {
    grid-template-columns: 1fr;
    padding: 1rem 1.4rem;
  }
  .nav {
    justify-self: start;
    gap: 1rem;
    font-size: 10px;
  }
  .nav__link--cta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   COMMON BITS
   ═══════════════════════════════════════════════════════════════ */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.meta__bullet {
  display: inline-block;
  font-size: 6px;
  color: var(--plum);
  transform: translateY(-2px);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.rule--with-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  height: auto;
}

.rule--with-label::before,
.rule--with-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.rule__label {
  color: var(--ink-quiet);
  white-space: nowrap;
}

.dropcap {
  font-family: var(--display);
  font-size: 3.4em;
  line-height: 0.85;
  float: left;
  margin: 0.08em 0.12em -0.05em 0;
  color: var(--plum);
  font-feature-settings: "ss01" 1;
}

.anno {
  font-style: italic;
  color: var(--ink-quiet);
}

em { font-style: italic; color: var(--ink); font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS — progressive enhancement
   (only hide when JS has flagged the page as ready)
   ═══════════════════════════════════════════════════════════════ */

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.0s var(--ease-out),
    transform 1.0s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 90ms);
  will-change: opacity, transform;
}

.js-ready .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Opacity-only variant for elements that own their transform
   (entry cards, vinyl) — avoids specificity wars */
.js-ready .reveal-fade {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 90ms);
  will-change: opacity;
}

.js-ready .reveal-fade.is-revealed {
  opacity: 1;
}

.reveal[data-stagger="0"],
.reveal-fade[data-stagger="0"] { --stagger: 0; }
.reveal[data-stagger="1"],
.reveal-fade[data-stagger="1"] { --stagger: 1; }
.reveal[data-stagger="2"],
.reveal-fade[data-stagger="2"] { --stagger: 2; }
.reveal[data-stagger="3"],
.reveal-fade[data-stagger="3"] { --stagger: 3; }
.reveal[data-stagger="4"],
.reveal-fade[data-stagger="4"] { --stagger: 4; }
.reveal[data-stagger="5"],
.reveal-fade[data-stagger="5"] { --stagger: 5; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) var(--bleed) clamp(3rem, 5vw, 4rem);
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  flex: 1;
}

.hero__text {
  max-width: 36ch;
}

.meta--top {
  margin-bottom: 2.5rem;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0 0 1.4rem;
  font-weight: 400;
  white-space: nowrap;
}

.hero__line {
  display: inline-block;
  white-space: nowrap;
}

.hero__period {
  color: var(--plum);
  display: inline-block;
  transition: transform 0.6s var(--ease-out);
}

.hero__title:hover .hero__period {
  transform: translateY(-0.1em) rotate(8deg);
}

.hero__lede {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.18;
  margin: 0 0 2.2rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero__lede em {
  color: var(--plum);
}

.hero__body {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 32ch;
  margin-bottom: 2.4rem;
}

.hero__body p { margin: 0 0 1rem; }

/* CTA */

.hero__cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  position: relative;
  cursor: pointer;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 14px;
  letter-spacing: -0.005em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}

.btn:hover {
  color: var(--cream);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--solid {
  background: var(--ink);
  color: var(--cream);
}

.btn--solid::before {
  background: var(--plum);
  transform: translateY(101%);
}

.btn--solid:hover { color: var(--cream); }
.btn--solid:hover::before { transform: translateY(0); }

.btn__inner {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7em;
}

.btn__arrow {
  display: inline-block;
  font-family: var(--mono);
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translate(2px, -2px) rotate(0deg);
}

.link-quiet {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  position: relative;
  transition: color 0.4s var(--ease-out);
}

.link-quiet__rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-out);
}

.link-quiet:hover { color: var(--ink); }
.link-quiet:hover .link-quiet__rule { width: 56px; }

/* Hero visual */

.hero__visual {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vinyl (the lavender record, behind cards) */

.vinyl {
  position: absolute;
  width: 400px;
  height: 400px;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  filter: drop-shadow(0 24px 36px rgba(111, 78, 163, 0.22));
}

.vinyl__img {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin 22s linear infinite;
  transform-origin: center;
}

.vinyl:hover .vinyl__img {
  animation-duration: 6s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Entry cards — stacked on top of the vinyl */

.entry-card {
  background: #FBF7EE;
  border: 1px solid var(--cream-edge);
  padding: 1.4rem;
  position: absolute;
  width: 270px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 40px -22px rgba(34,23,26,0.30),
    0 4px 10px -4px rgba(34,23,26,0.10);
  transition: transform 0.6s var(--ease-out);
}

.entry-card--main {
  z-index: 3;
  left: 40px;
  top: 50%;
  transform: translate(calc(0px + var(--mx, 0px)), calc(-50% + 30px + var(--my, 0px))) rotate(-2.5deg);
}

.entry-card--prev {
  z-index: 2;
  left: 100px;
  top: 50%;
  width: 240px;
  transform: translate(calc(0px + var(--mx, 0px) * 0.6), calc(-50% - 110px + var(--my, 0px) * 0.6)) rotate(3.5deg);
}

.hero__visual:hover .entry-card--main {
  transform: translate(calc(-4px + var(--mx, 0px)), calc(-50% + 24px + var(--my, 0px))) rotate(-1.2deg);
}

.hero__visual:hover .entry-card--prev {
  transform: translate(calc(6px + var(--mx, 0px) * 0.6), calc(-50% - 116px + var(--my, 0px) * 0.6)) rotate(2deg);
}

.entry-card__date {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.7rem;
}

.entry-card__weekday {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
}

.entry-card__monthday {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.entry-card__art {
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 25%, var(--art-1) 0%, transparent 60%),
    linear-gradient(135deg, var(--art-2), var(--art-1));
  border-radius: 4px;
  margin-bottom: 0.9rem;
  position: relative;
  overflow: hidden;
}

.entry-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 70%, rgba(255,255,255,0.18), transparent 50%);
  mix-blend-mode: overlay;
}

.entry-card__song {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.1;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.entry-card__artist {
  font-size: 0.92rem;
  color: var(--ink-quiet);
  margin: 0 0 0.8rem;
  font-style: italic;
}

.entry-card__note {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  border-left: 2px solid var(--lavender);
  padding-left: 0.8rem;
}

.entry-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--rule);
  padding-top: 0.7rem;
  font-size: 11px;
  color: var(--ink-quiet);
}

.entry-card__mood {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* Hero floor */

.hero__floor {
  margin-top: 3rem;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero__visual {
    height: 560px;
  }
  .vinyl {
    width: 320px;
    height: 320px;
    right: 50%;
    transform: translate(50%, -50%);
  }
  .entry-card--main {
    left: 50%;
    transform: translate(-90%, calc(-50% + 50px)) rotate(-3deg);
  }
  .entry-card--prev {
    left: 50%;
    transform: translate(-10%, calc(-50% - 60px)) rotate(4.5deg);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
  .hero__visual { height: 500px; }
  .vinyl { width: 240px; height: 240px; }
  .entry-card--main { width: 230px; transform: translate(-90%, calc(-50% + 40px)) rotate(-3deg); padding: 1.1rem; }
  .entry-card--prev { width: 200px; transform: translate(-15%, calc(-50% - 60px)) rotate(4.5deg); padding: 1.1rem; }
  .hero__cta { gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  overflow: hidden;
  background:
    linear-gradient(to right, var(--cream) 0%, transparent 6%, transparent 94%, var(--cream) 100%);
  position: relative;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  color: var(--ink);
  animation: marquee 80s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}

.marquee__item:hover { color: var(--plum); }

.marquee__sep {
  color: var(--plum);
  font-size: 0.7em;
  opacity: 0.65;
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEAD (shared)
   ═══════════════════════════════════════════════════════════════ */

.section-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  padding-bottom: 4rem;
}

.section-head__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
  font-weight: 400;
}

.section-head__title em {
  color: var(--plum);
}

.section-head__lede {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  margin: 0;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* ═══════════════════════════════════════════════════════════════
   RITUAL
   ═══════════════════════════════════════════════════════════════ */

.ritual {
  padding: clamp(5rem, 10vw, 8rem) var(--bleed);
  position: relative;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.step:last-child {
  border-bottom: 1px solid var(--rule);
}

.step__num {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.step__num-roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--plum);
  font-feature-settings: "ss01" 1;
}

.step__num-arabic {
  color: var(--ink-faint);
}

.step__title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  display: inline-block;
}

.step__title::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--plum);
  margin-top: 0.6rem;
  transition: width 1.4s var(--ease-out);
  transition-delay: 0.4s;
}

.step.is-revealed .step__title::after {
  width: 60%;
}

.step__copy {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}

.step__art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--cream-deep);
  border: 1px solid var(--cream-edge);
  border-radius: 6px;
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease-out);
}

.step:nth-child(2) .step__art { transform: rotate(1.5deg); }
.step:nth-child(3) .step__art { transform: rotate(-0.8deg); }

.step__art:hover { transform: rotate(0deg) scale(1.03); }

.step-svg { width: 100%; max-width: 220px; }

@media (max-width: 920px) {
  .step {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
  }
  .step__art {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .step { grid-template-columns: 60px 1fr; }
  .step__num-roman { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   THE YEAR (centerpiece scroll)
   ═══════════════════════════════════════════════════════════════ */

.year {
  background: var(--cream);
  position: relative;
}

/* The scroller is tall — the sticky child stays put */
.year__scroller {
  height: 520vh;
  position: relative;
}

.year__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 4rem) var(--bleed);
  overflow: hidden;
}

.year__head {
  flex: 0 0 auto;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.year__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
}

.year__title-num {
  color: var(--plum);
  font-feature-settings: "lnum" 1;
}

.year__main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  min-height: 0;
}

.year__sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-self: center;
}

/* Counter */

.year__counter {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-family: var(--display);
  line-height: 0.9;
}

.year__counter-num {
  font-size: clamp(4rem, 9vw, 8rem);
  color: var(--ink);
  letter-spacing: -0.04em;
  font-feature-settings: "lnum" 1, "tnum" 1;
  transition: color 0.3s var(--ease-out);
}

.year__counter-divisor {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--ink-faint);
  letter-spacing: -0.01em;
}

.year__counter-label {
  margin-top: 0.6rem;
  color: var(--ink-quiet);
  font-size: 10px;
}

/* Caption */

.year__caption {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  border-left: 1px solid var(--rule);
  padding-left: 1rem;
  max-width: 28ch;
}

.year__caption-label {
  color: var(--ink-faint);
  font-size: 9.5px;
  margin-bottom: 0.3em;
}

.year__caption-date {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.05;
  color: var(--ink);
}

.year__caption-song {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--plum);
  line-height: 1.2;
  min-height: 1.5em;
  transition: opacity 0.3s var(--ease-out);
}

.year__caption-artist {
  font-size: 0.92rem;
  color: var(--ink-quiet);
  font-style: italic;
}

/* Board */

.year__board {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.year__months {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 14px;
  position: relative;
}

.year__months span {
  position: absolute;
  white-space: nowrap;
}

.year__grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: clamp(2px, 0.4vw, 4px);
  width: 100%;
  aspect-ratio: 53 / 7;
  max-height: 60vh;
}

.day {
  background: rgba(34, 23, 26, 0.05);
  border-radius: 2px;
  position: relative;
  transition:
    background-color 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
  transform: scale(0.85);
  opacity: 0.75;
}

.day--lit {
  transform: scale(1);
  opacity: 1;
}

.day--filled.day--lit {
  background: var(--tile);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.10);
}

.day--filled.day--lit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25), transparent 55%);
  border-radius: inherit;
  mix-blend-mode: overlay;
}

.day--newest {
  outline: 1.5px solid var(--ink);
  outline-offset: 1px;
  z-index: 2;
}

.year__legend {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 9.5px;
}

/* Quote */

.year__quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink-quiet);
  text-align: right;
  margin: 1.5rem 0 0;
}

@media (max-width: 920px) {
  .year__scroller { height: 420vh; }
  .year__main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .year__sidebar {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .year__caption { padding-left: 0.8rem; }
  .year__counter-num { font-size: 3.6rem; }
  .year__caption-date { font-size: 1.2rem; }
  .year__grid { aspect-ratio: 53 / 9; max-height: 40vh; }
}

@media (max-width: 560px) {
  .year__sticky { padding-left: 1.4rem; padding-right: 1.4rem; }
  .year__sidebar { flex-direction: column; gap: 1.4rem; }
  .year__caption { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
  .year__grid { aspect-ratio: 53 / 11; }
}

/* ═══════════════════════════════════════════════════════════════
   TRACKLIST
   ═══════════════════════════════════════════════════════════════ */

.tracklist {
  padding: clamp(5rem, 10vw, 8rem) var(--bleed);
}

.tracks {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--rule);
}

.track {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 70px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background-color 0.5s var(--ease-out);
}

.track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(183, 154, 227, 0.07), transparent);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

.track:hover::before { opacity: 1; }

.track__num {
  color: var(--ink-faint);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  align-self: start;
  padding-top: 0.6em;
}

.track__title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 0% 1px;
  background-position: left 100%;
  background-repeat: no-repeat;
  transition: background-size 0.6s var(--ease-out);
}

.track:hover .track__title {
  background-size: 100% 1px;
}

.track__copy {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

.track__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  border: 1px solid var(--cream-edge);
  border-radius: 6px;
  transition: transform 0.5s var(--ease-out);
  justify-self: end;
}

.track__icon svg {
  width: 28px;
  height: 28px;
}

/* track 2 has wider svg */
.track:nth-child(2) .track__icon svg { width: 56px; height: 18px; }

.track:hover .track__icon { transform: rotate(-6deg) scale(1.08); }

@media (max-width: 720px) {
  .track {
    grid-template-columns: 80px 1fr;
    gap: 1rem 1.4rem;
  }
  .track__icon {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
  }
}

@media (max-width: 560px) {
  .track { grid-template-columns: 60px 1fr; }
  .track__num { font-size: 9.5px; }
}

/* ═══════════════════════════════════════════════════════════════
   PULL QUOTE
   ═══════════════════════════════════════════════════════════════ */

.pullquote {
  padding: clamp(4rem, 9vw, 7rem) var(--bleed);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream-deep);
}

.pullquote blockquote {
  margin: 0 auto;
  max-width: 880px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: center;
  position: relative;
}

.pullquote blockquote p {
  margin: 0 0 1.2rem;
}

.pullquote blockquote em {
  color: var(--plum);
}

.pullquote cite {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-style: normal;
  display: inline-block;
  margin-top: 0.6rem;
}

.pullquote blockquote::before {
  content: "❝";
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--lavender);
  opacity: 0.45;
}

/* ═══════════════════════════════════════════════════════════════
   COLOPHON
   ═══════════════════════════════════════════════════════════════ */

.colophon {
  padding: clamp(5rem, 10vw, 8rem) var(--bleed) clamp(2rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--cream);
  position: relative;
}

.colophon .meta {
  color: rgba(245, 240, 230, 0.55);
}

.colophon .meta__bullet {
  color: var(--lavender);
}

.colophon__top {
  max-width: 880px;
  margin: 0 auto 5rem;
  text-align: left;
}

.colophon__title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.colophon__lede {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(245, 240, 230, 0.78);
  max-width: 50ch;
  margin: 0 0 2.4rem;
  line-height: 1.45;
}

/* Signup */

.signup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

.signup__label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signup__label .mono {
  color: rgba(245, 240, 230, 0.5);
  font-size: 9.5px;
}

.signup__label input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.32);
  padding: 0.55rem 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--cream);
  transition: border-color 0.3s var(--ease-out);
  width: 100%;
}

.signup__label input:focus {
  outline: none;
  border-bottom-color: var(--lavender);
}

.signup__label input::placeholder {
  color: rgba(245, 240, 230, 0.28);
}

.signup .btn--solid {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  align-self: end;
}

.signup .btn--solid::before {
  background: var(--lavender);
}

.signup .btn--solid:hover { color: var(--ink); }

.signup__fineprint {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: rgba(245, 240, 230, 0.5);
  font-style: italic;
  margin: 1.2rem 0 0;
  max-width: 56ch;
}

@media (max-width: 600px) {
  .signup {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* Bottom row */

.colophon__bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.18);
  padding-top: 2rem;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.78);
}

.colophon__col p { margin: 0; line-height: 1.4; }

.colophon__col p + p { margin-top: 0.4em; }

.colophon__legend {
  color: rgba(245, 240, 230, 0.45);
  margin-bottom: 0.4rem !important;
  font-size: 9.5px;
}

.swatch {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  background: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 230, 0.2);
  vertical-align: middle;
  margin: 0 0.05em;
}

@media (max-width: 720px) {
  .colophon__bottom {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 1rem;
  }
}

/* Sign-off (huge R) */

.colophon__sign {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(245, 240, 230, 0.96);
  position: relative;
}

.sign__period {
  color: var(--lavender);
  margin-left: 0.05em;
}

.colophon__sign::before {
  content: "VOL. I — MMXXVI";
  position: absolute;
  top: 1.4rem;
  right: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 240, 230, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .section-head { padding-bottom: 2.5rem; }
  .ritual, .tracklist { padding-left: 1.4rem; padding-right: 1.4rem; }
  .pullquote { padding-left: 1.4rem; padding-right: 1.4rem; }
  .colophon { padding-left: 1.4rem; padding-right: 1.4rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .vinyl__disc { animation: none; }
  .marquee__track { animation: none; }
}
