/* love story
   Colours from the client's own sample album: paper cream, album red, warm near-black.
   Type: Karantina (Hebrew display, condensed, editorial) · Assistant (text) · Bodoni Moda italic (the Latin wordmark). */

:root {
  --bg: #f7f2eb;
  --bg-alt: #efe6da;
  --surface: #fcf9f4;
  --ink: #1c1715;
  --ink-2: #463c36;
  --muted: #6d625b;
  --accent: #a3161a;
  --accent-press: #86110f;
  --on-accent: #ffffff;
  --dark: #1c1715;
  --on-dark: #f7f2eb;
  --on-dark-2: #c9bfb5;
  --line: rgb(28 23 21 / 0.14);
  --line-dark: rgb(247 242 235 / 0.16);

  --f-display: "Secular One", "Assistant", sans-serif;
  --f-text: "Assistant", "Segoe UI", Arial, sans-serif;
  --f-mark: "Bodoni Moda", "Didot", Georgia, serif;

  --t-hero: clamp(46px, 3.8vw + 20px, 98px);
  --t-h2: clamp(42px, 2.6vw + 26px, 76px);
  --t-h3: clamp(20px, 0.4vw + 17px, 23px);
  --t-lead: clamp(18px, 0.35vw + 16px, 21px);
  --t-body: 17px;
  --t-small: 14px;

  --nav: 72px;
  --gut: 80px;
  --padt: 128px;
  --padb: 96px;
  --r: 4px;
  --btn-h: 48px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-page: cubic-bezier(0.645, 0.045, 0.355, 1);

  --shadow-page: 0 1px 2px rgb(28 23 21 / 0.08), 0 16px 34px -16px rgb(28 23 21 / 0.35);
  --shadow-book: 0 2px 4px rgb(28 23 21 / 0.10), 0 40px 70px -28px rgb(28 23 21 / 0.55);

  color-scheme: light;
  scrollbar-color: rgb(28 23 21 / 0.35) var(--bg);
}
@media (max-width: 1023px) { :root { --gut: 40px; --padt: 112px; } }
@media (max-width: 639px) {
  :root { --gut: 20px; --nav: 60px; --padt: 96px; --padb: 72px; --t-body: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.65;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: inherit; font-weight: 400; text-wrap: balance; }
h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-hero); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-family: var(--f-text); font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section--band :focus-visible, .closing :focus-visible { outline-color: var(--on-dark); }

.wrap { width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; }

.display { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.display em, .hero h1 em { font-style: normal; color: var(--accent); font-weight: 400; }
.display--h2 { font-size: var(--t-h2); line-height: 1.05; }
.accent { color: var(--accent); }

.skip-link {
  position: absolute; inset-inline-start: var(--gut); top: 12px; z-index: 20;
  padding: 8px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r);
  font-weight: 500; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ---------- links ---------- */
.link {
  color: inherit;
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}
.link--icon { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- buttons: a card with photo corners, like an old photo album ---------- */
.btn {
  --corner: var(--accent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 26px;
  border: 0; border-radius: 2px;
  font: 600 16px/1.2 var(--f-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgb(28 23 21 / 0.12), 0 10px 22px -12px rgb(28 23 21 / 0.4);
  transition: transform 200ms var(--ease-out), box-shadow 240ms ease, background-color 240ms ease, color 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
/* the two photo corners */
.btn::before, .btn::after {
  content: ""; position: absolute; width: 14px; height: 14px; background: var(--corner);
  transition: transform 260ms var(--ease-out);
}
.btn::before { top: -3px; right: -3px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.btn::after { bottom: -3px; left: -3px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); --corner: var(--ink); }
.btn--secondary { background: var(--surface); color: var(--ink); }
.btn--light { background: var(--surface); color: var(--accent); --corner: var(--ink); }
.btn img { flex: none; width: 26px; height: 26px; padding: 3px; background: #fff; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgb(28 23 21 / 0.12), 0 18px 30px -12px rgb(28 23 21 / 0.45); }
  .btn:hover::before { transform: translate(2px, -2px); }
  .btn:hover::after { transform: translate(-2px, 2px); }
  .btn:active { transform: scale(0.97); }
  .btn--primary:hover { background: var(--accent-press); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 2px;
  border: 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgb(28 23 21 / 0.12), 0 8px 18px -10px rgb(28 23 21 / 0.4);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 180ms var(--ease-out), opacity 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:not(:disabled):hover { background: var(--accent); color: var(--on-accent); }
}

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--nav);
  background: rgb(247 242 235 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__progress {
  position: absolute; inset: auto 0 -1px 0; height: 2px;
  background: var(--accent);
  transform-origin: 100% 50%; transform: scaleX(var(--progress, 0));
}
.nav__row { height: 100%; display: flex; align-items: center; gap: 40px; }
.logo {
  font-family: var(--f-mark); font-style: italic; font-size: 26px; line-height: 1;
  color: var(--ink); text-decoration: none; direction: ltr; unicode-bidi: isolate; white-space: nowrap;
}
.nav__links { display: flex; gap: 32px; margin-inline-start: auto; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding-block: 12px;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: color 160ms ease, background-size 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); background-size: 100% 1px; }
}
.nav__cta { min-height: 44px; }
@media (max-width: 959px) {
  .nav__links { display: none; }
  .nav__cta { margin-inline-start: auto; }
}
@media (max-width: 639px) {
  .logo { font-size: 22px; }
  .nav__cta { padding: 0 16px; font-size: 14px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--padt) var(--padb); position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: 56px; }
.section__head p { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6; max-width: 38rem; }

/* ---------- 1. hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav) + 48px); padding-bottom: 64px;
  display: flex; align-items: center;
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.hero__text { grid-column: 1 / span 6; display: grid; gap: 28px; justify-items: start; }
.hero h1 { font-size: var(--t-hero); }
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.04em 0.06em; margin-block: -0.04em -0.06em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1100ms var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 90ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 170ms; }
.hero__lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); max-width: 32rem; }
.hero__fact { font-size: var(--t-small); color: var(--muted); }
.hero__art { grid-column: 7 / span 6; display: flex; justify-content: center; }

/* the fan: three inner pages open out from behind the cover */
.fan {
  position: relative;
  width: min(100%, 400px, calc((100svh - var(--nav) - 180px) * 0.75));
  aspect-ratio: 910 / 1212;
  perspective: 1600px;
}
.fan__page, .fan__cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 3px;
  transition: transform 700ms var(--ease-out);
}
.fan__page { object-fit: cover; box-shadow: var(--shadow-page); background: var(--surface); }
.fan__page--1 { --to: translate(-30%, 6%) rotate(-9deg); animation: fan-out 1300ms var(--ease-out) 380ms backwards; }
.fan__page--2 { --to: translate(30%, 2%) rotate(8deg); animation: fan-out 1300ms var(--ease-out) 460ms backwards; }
.fan__page--3 { --to: translate(-6%, -9%) rotate(-3deg); animation: fan-out 1300ms var(--ease-out) 300ms backwards; }
.fan__page { transform: var(--to); }
.fan__cover {
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(3deg);
  animation: cover-in 1400ms var(--ease-out) 120ms backwards;
}
.fan__cover img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 3px;
  box-shadow: var(--shadow-book);
}
/* page edges on the cover's open side */
.fan__cover::before, .fan__cover::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background: var(--surface); border: 1px solid var(--line);
}
.fan__cover::before { transform: translate3d(-7px, 6px, -4px); }
.fan__cover::after { transform: translate3d(-13px, 11px, -8px); }
@media (hover: hover) and (pointer: fine) {
  .fan:hover .fan__page--1 { transform: translate(-40%, 8%) rotate(-13deg); }
  .fan:hover .fan__page--2 { transform: translate(40%, 3%) rotate(12deg); }
  .fan:hover .fan__page--3 { transform: translate(-6%, -15%) rotate(-4deg); }
  .fan:hover .fan__cover { transform: rotateY(-4deg) rotateX(1deg) translateY(-6px); }
}

@keyframes line-up { from { transform: translateY(108%); } }
@keyframes fan-out { from { transform: translate(0, 0) rotate(0deg) scale(0.96); opacity: 0; } 30% { opacity: 1; } }
@keyframes cover-in { from { transform: rotateY(-38deg) rotateX(8deg) translateY(40px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.enter { animation: rise 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* ---------- 3. flipbook ---------- */
.flip { display: grid; gap: 28px; justify-items: center; }
.flip__stage {
  width: 100%;
  display: grid; place-items: center;
  perspective: 2600px;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.flip__book {
  position: relative;
  width: min(100%, 860px, calc((100svh - var(--nav) - 150px) * 1.5));
  aspect-ratio: 1820 / 1212;
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-page);
}
.flip__book.is-single { width: min(100%, 440px, calc((100svh - var(--nav) - 150px) * 0.75)); aspect-ratio: 910 / 1212; }
.leaf {
  position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-page);
  cursor: pointer;
}
.is-single .leaf { width: 100%; }
.leaf.is-turned { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--surface);
  overflow: hidden;
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.face--back { transform: rotateY(180deg); }
/* the fold: a soft shade along the spine on both pages */
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face--front::after { background: linear-gradient(to left, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0) 9%); }
.face--back::after  { background: linear-gradient(to right, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0) 9%); }
.is-single .face--front::after { background: linear-gradient(to left, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0) 5%); }
/* light that moves across a page while it turns */
.face::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgb(0 0 0 / 0.22), rgb(255 255 255 / 0.12) 60%, rgb(0 0 0 / 0));
  opacity: 0; transition: opacity 450ms ease;
}
.leaf.is-moving .face::before { opacity: 1; }
.flip__book::before {
  content: ""; position: absolute; inset: 1% 0.5% 0; pointer-events: none;
  box-shadow: 0 34px 50px -22px rgb(28 23 21 / 0.5), 0 2px 6px rgb(28 23 21 / 0.12);
  transform: translateZ(-2px);
  transition: right 900ms var(--ease-page);
}
.flip__book.is-closed::before { right: 50%; }
.flip__book.is-closed-end::before { left: 50%; }
.face--blank { background: var(--surface); }

.flip__controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.flip__count {
  min-width: 11ch; text-align: center;
  font-size: 15px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums;
}

/* zoom dialog */
.zoom {
  width: min(100vw - 32px, 1100px); max-height: calc(100svh - 32px);
  padding: 24px; border: 0; border-radius: 6px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.6);
  opacity: 1; transform: scale(1);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), overlay 260ms allow-discrete, display 260ms allow-discrete;
}
.zoom::backdrop { background: rgb(28 23 21 / 0.72); transition: opacity 220ms ease; }
@starting-style { .zoom[open] { opacity: 0; transform: scale(0.96); } }
.zoom__pages { display: flex; gap: 12px; justify-content: center; overflow: auto; max-height: calc(100svh - 80px); direction: ltr; }
.zoom__pages img { width: auto; max-height: calc(100svh - 96px); max-width: 100%; }
.zoom__close { position: absolute; top: 12px; inset-inline-start: 12px; }

/* ---------- 2. the chapter story ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.is-locked { overflow: hidden; }

.story { position: relative; padding-block: var(--padt) var(--padb); }
.story__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.story__head { grid-column: 1 / -1; display: grid; gap: 20px; max-width: 46rem; margin-bottom: 24px; }
.story__head p { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6; max-width: 36rem; }

/* the list on the start side, the page beside it */
.story__list { grid-column: 1 / span 5; grid-row: 2; }
.story__stage { grid-column: 7 / span 6; grid-row: 2; }
.story__sticky {
  position: sticky; top: calc(var(--nav) + (100svh - var(--nav) - var(--ph)) / 2);
  --ph: min(calc(100svh - var(--nav) - 120px), 680px);
  display: grid; justify-items: center; gap: 18px;
}
.story__page {
  position: relative; height: var(--ph); aspect-ratio: 910 / 1212;
  border-radius: 3px; box-shadow: var(--shadow-book);
  background: var(--surface);
}
/* each page turns in from the spine side, over the one before */
.story__page img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 750ms var(--ease-in-out);
}
.story__page img.is-on, .story__page img.is-past { clip-path: inset(0 0 0 0); }
.story__page img.is-on { z-index: 2; }
.story__page::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 3px;
  background: linear-gradient(to left, rgb(0 0 0 / 0.10), transparent 6%);
}
.story__count { font: italic 400 18px / 1 var(--f-mark); color: var(--muted); direction: ltr; }
.story__count span { color: var(--accent); }

.chap {
  min-height: 32svh;
  display: grid; align-content: center; justify-items: start; gap: 12px;
  padding-block: 32px;
  opacity: 0.28;
  transition: opacity 500ms ease;
}
.chap.is-on { opacity: 1; }
.chap__img { display: none; }
.chap__num { font: italic 400 22px / 1 var(--f-mark); color: var(--accent); direction: ltr; }
.chap__title { font: 400 clamp(40px, 2vw + 24px, 64px) / 1.05 var(--f-display); letter-spacing: -0.01em; }
.chap__en { font: italic 400 20px / 1.2 var(--f-mark); color: var(--ink-2); direction: ltr; }
.chap__desc { font-size: var(--t-lead); color: var(--ink-2); max-width: 26rem; line-height: 1.6; }
.chap__go { margin-top: 6px; padding: 8px 0; min-height: 44px; border: 0; background: none; font: 600 15px var(--f-text); color: var(--accent); cursor: pointer; }

@media (max-width: 899px) {
  /* on a phone the page stays pinned at the top and the chapters scroll up under it */
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .story__head { grid-row: 1; }
  .story__stage {
    grid-column: 1 / -1; grid-row: 2;
    position: sticky; top: var(--nav); z-index: 2;
    margin-inline: calc(var(--gut) * -1); padding: 14px var(--gut) 12px;
    background: var(--bg); box-shadow: 0 14px 14px -6px var(--bg);
  }
  .story__sticky { position: static; --ph: min(44svh, 400px); gap: 8px; }
  .story__count { font-size: 15px; }
  .story__list { grid-column: 1 / -1; grid-row: 3; }
  .chap { min-height: 30svh; padding-block: 18px; gap: 6px; justify-items: center; text-align: center; }
  .chap__title { font-size: 34px; }
  .chap__en { font-size: 16px; }
  .chap__desc { font-size: 16px; }
  .chap__go { min-height: 40px; padding: 4px 0; font-size: 14px; }
}
/* ---------- 5. how it works ---------- */
.section--band { background: var(--accent); color: var(--on-accent); }
.section--band .section__head { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.step { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.35); }
.step__num {
  font-family: var(--f-mark); font-style: italic; font-weight: 400; font-size: clamp(110px, 8vw + 40px, 180px); line-height: 0.8;
  color: rgb(255 255 255 / 0.92);
  margin-bottom: 8px;
}
.step p { color: var(--on-accent); max-width: 24rem; }

/* ---------- 6. closing ---------- */
.closing { background: var(--dark); color: var(--on-dark); padding-block: var(--padt) 32px; overflow: hidden; }
.closing__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.closing__text { grid-column: 1 / span 6; display: grid; gap: 24px; justify-items: start; align-content: start; }
.closing__text p { font-size: var(--t-lead); color: var(--on-dark-2); max-width: 30rem; }
.closing__text .btn { margin-top: 8px; }
.closing .btn--primary { --corner: var(--on-dark); }
.contacts { grid-column: 8 / span 5; margin: 8px 0 0; }
.contacts__row {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px;
  min-height: 60px; border-bottom: 1px solid var(--line-dark);
}
.contacts__row:first-child { border-top: 1px solid var(--line-dark); }
.contacts dt { font-size: var(--t-small); color: var(--on-dark-2); }
.contacts dd { margin: 0; font-size: 19px; }
.contacts a { display: inline-flex; align-items: center; min-height: 44px; }
.ic-light { filter: invert(1) brightness(1.2); }
.closing__mark {
  grid-column: 1 / -1;
  margin: 72px 0 24px;
  font-family: var(--f-mark); font-style: italic;
  font-size: clamp(72px, 16vw, 260px); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--on-dark); direction: ltr; text-align: center; white-space: nowrap;
}
.closing__mark.is-in { animation: mark-in 1400ms var(--ease-out) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(30px); letter-spacing: 0.04em; } }
.legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: var(--t-small); color: var(--on-dark-2); }

/* ---------- reveals: headings and blocks rise once ---------- */
[data-reveal] { transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.js .closing__mark[data-reveal]:not(.is-in) { transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .hero__text { grid-column: 1 / span 7; }
  .hero__art { grid-column: 8 / span 5; }
  .closing__text, .contacts { grid-column: 1 / -1; }
  .contacts { margin-top: 48px; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .hero { min-height: 0; display: block; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .hero__text, .hero__art { grid-column: 1 / -1; }
  .fan { width: min(56%, 250px); }
  .fan__page--1 { --to: translate(-26%, 6%) rotate(-8deg); }
  .fan__page--2 { --to: translate(26%, 2%) rotate(7deg); }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { grid-template-columns: auto 1fr; column-gap: 20px; }
  .step__num { grid-row: span 2; font-size: 96px; }
}
@media (max-width: 639px) {
  .btn-row { display: grid; width: 100%; }
  .btn-row .btn, .section--band .btn, .closing__text .btn { width: 100%; }
  .section__head { margin-bottom: 40px; }
  .contacts__row { grid-template-columns: 80px 1fr; }
  .contacts dd { font-size: 17px; }
  .icon-btn { width: 48px; height: 48px; }
}

/* ---------- reduced motion: everything rests, nothing stays hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span, .fan__page, .fan__cover, .enter, .closing__mark.is-in { animation: fade 300ms ease both !important; }
  .leaf, .flip__book { transition-duration: 1ms; }
  .js [data-reveal]:not(.is-in) { transform: none; }
  [data-reveal] { transition: opacity 300ms ease; }
  .btn, .icon-btn { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
  .btn:active, .icon-btn:active { transform: none; }
  .step__num { transition: none; }
}
@keyframes fade { from { opacity: 0; } }
