/* ==========================================================================
   ТОМИЛЬ · landing styles
   Direction: warm editorial / premium atelier catalogue
   ========================================================================== */

:root {
  --bg: #f4ede1;
  --surface: #fbf6ec;
  --tint: #ebe1d0;
  --ink: #1c1712;
  --muted: #6c6255;
  --line: #dcd1be;
  --line-strong: #c9bca6;
  --accent: #9e4a24;
  --accent-deep: #8a3d1c;
  --accent-light: #d99c72;
  --accent-ink: #fff8f1;
  --dark: #14100c;
  --dark-surface: #1e1914;
  --dark-ink: #f3ebdd;
  --dark-muted: #b3a691;
  --dark-line: #332b22;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
svg { flex: none; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.chapter--dark :focus-visible,
.final :focus-visible,
.footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--accent-light);
}

[hidden] { display: none !important; }

/* ---------- utilities ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 14px; }

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Display serif defaults to old-style figures; keep prices and numbering legible. */
.chapter__num,
.chapter__price,
.format__num,
.format__price,
.fact__num,
.index__num,
.steps__num {
  font-variant-numeric: lining-nums;
}

.lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
}

.label {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}

/* ---------- buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn:hover svg { transform: translate(2px, -2px); }

.btn--dark {
  background: var(--ink);
  color: var(--bg);
}

.btn--paper {
  background: var(--bg);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--copper {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--copper:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.78rem;
}

.btn--full { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link span { transition: transform 0.25s var(--ease); }

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover span { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 225, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 237, 225, 0.985);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
}

.brand__mark {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
}

.menu-toggle__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle__icon span:first-child { top: 3px; }
.menu-toggle__icon span:last-child { top: 9px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  top: 6px;
  transform: rotate(-45deg);
}

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 28px var(--gutter) 40px;
  background: var(--bg);
  overflow-y: auto;
}

.mobile-menu.is-open {
  animation: menu-in 0.35s var(--ease) both;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.mobile-menu__nav a span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.mobile-menu__nav a:hover { color: var(--accent); }

.mobile-menu__foot {
  display: grid;
  gap: 14px;
}

.mobile-menu__foot p {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2.5rem, 5.5vw, 6rem);
  min-height: clamp(560px, calc(100svh - var(--header-h) - 140px), 780px);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__copy { max-width: 650px; }

.hero .display {
  margin: 26px 0 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin-top: 34px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.hero__note svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: end;
}

.orb {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  aspect-ratio: 1;
  isolation: isolate;
}

.orb::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 46% 42%, rgba(217, 156, 114, 0.32), rgba(244, 237, 225, 0) 64%);
  filter: blur(16px);
}

.orb__canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.orb__foot {
  position: absolute;
  right: 1%;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.orb__hint {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.orb__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.orb__toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.orb__toggle svg {
  width: 9px;
  height: 9px;
}

.orb__play { display: none; }

.orb__toggle[aria-pressed="true"] .orb__pause { display: none; }
.orb__toggle[aria-pressed="true"] .orb__play { display: block; }


.hero__feature {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  width: 52%;
  max-width: 300px;
  padding: clamp(6px, 0.8vw, 10px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(28, 23, 18, 0.55);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.hero__feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 38px 66px -34px rgba(28, 23, 18, 0.6);
}

@keyframes feature-pick {
  from { transform: translate3d(-12px, 8px, 0); }
  to { transform: none; }
}

.hero__feature.is-picked {
  animation: feature-pick 0.8s var(--ease);
}

.hero__feature-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dark-surface);
}

.hero__feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(28, 23, 18, 0.12);
  pointer-events: none;
}

.hero__feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(16px) scale(1.045);
  transition: opacity 0.7s var(--ease), transform 0.95s var(--ease);
  will-change: opacity, transform;
}

.hero__feature-media img.is-active {
  opacity: 1;
  transform: none;
}

.hero__feature-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px 2px;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__feature-cap [data-feature-title] { color: var(--ink); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-left: 1px solid var(--line);
}

.hero__facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact__num {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1;
}

.hero__facts li span:last-child {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ---------- contents index ---------- */

.index {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.index__note {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: right;
}

.index__list {
  border-top: 1px solid var(--line);
}

.index__list li { border-bottom: 1px solid var(--line); }

.index__list a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 24px;
  grid-template-areas: "num name meta arrow";
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.3s var(--ease);
}

.index__list a:hover {
  padding-left: 10px;
  color: var(--accent);
}

.index__num {
  grid-area: num;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.index__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
}

.index__meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.index__arrow {
  grid-area: arrow;
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease);
}

.index__list a:hover .index__arrow { transform: translateX(4px); }

/* ---------- works intro ---------- */

.works-intro {
  padding-top: var(--section-y);
}

.works-intro .h2 {
  max-width: 24ch;
  margin: 16px 0 20px;
}

.works-intro .lead { max-width: 54ch; }

/* ---------- chapter ---------- */

.chapter {
  padding-block: var(--section-y);
}

.chapter--dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.chapter--tint {
  background: var(--tint);
}

.chapter__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.chapter__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.8;
}

.chapter--dark .chapter__num { color: var(--accent-light); }

.chapter__intro .h2 { margin: 10px 0 18px; }

.chapter__intro .lead { max-width: 52ch; }

.chapter--dark .lead,
.chapter--dark .label,
.chapter--dark .tags { color: var(--dark-muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tags li:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--accent);
}

.chapter--dark .tags li:not(:last-child)::after { color: var(--accent-light); }

.chapter__aside { padding-top: 6px; }

.chapter__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
}

.chapter__price span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter--dark .chapter__price span { color: var(--dark-muted); }

.chapter__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.chapter__foot--between {
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.gallery__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.gallery__toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.gallery__toggle svg {
  width: 9px;
  height: 9px;
}

.gallery__play { display: none; }

.gallery__toggle[aria-pressed="true"] .gallery__pause { display: none; }
.gallery__toggle[aria-pressed="true"] .gallery__play { display: block; }

.chapter--dark .gallery__toggle {
  color: var(--dark-muted);
  border-color: var(--dark-line);
}

.chapter--dark .gallery__toggle:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.chapter--dark .text-link {
  color: var(--dark-ink);
  border-color: var(--dark-line);
}

.chapter--dark .text-link:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

@media (hover: hover) {
  .chapter__foot .text-link:hover span { transform: translateX(4px); }
}

/* ---------- works galleries ---------- */

.gallery {
  display: grid;
  gap: clamp(8px, 1.4vw, 18px);
}

.work {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--dark-surface);
  text-decoration: none;
  cursor: zoom-in;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.4s var(--ease), opacity 0.3s var(--ease);
}

.work.is-swapping img { opacity: 0.25; }

.work::after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(244, 237, 225, 0.94);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.work:focus-visible::after {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .work:hover img { transform: scale(1.035); }

  .work:hover::after {
    opacity: 1;
    transform: none;
  }
}

.chapter--dark .work {
  box-shadow: inset 0 0 0 1px rgba(243, 235, 221, 0.08);
}

/* mosaic: one tall + four small */

.gallery--mosaic {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
}

.gallery--mosaic .work {
  aspect-ratio: 4 / 5;
}

.gallery--mosaic .work--lead {
  grid-column: 1;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}

.gallery--mosaic--reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr);
}

.gallery--mosaic--reverse .work--lead {
  grid-column: 3;
  grid-row: 1 / span 2;
}

/* offset editorial grid */

.gallery--offset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
}

.offset-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 24px);
}

.offset-col:nth-child(2) { padding-top: clamp(24px, 5vw, 64px); }
.offset-col:nth-child(3) { padding-top: clamp(48px, 10vw, 128px); }

.offset-col .work { aspect-ratio: 4 / 5; }

/* ---------- section head ---------- */

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.section-head .h2 {
  max-width: 20ch;
  margin-top: 14px;
}

.section-head .lead {
  max-width: 44ch;
  padding-bottom: 4px;
}

/* ---------- audience ---------- */

.audience { padding-block: var(--section-y); }

.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.list-block .h3 { margin-bottom: 18px; }

.numbered li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.55;
}

.numbered li:first-child { padding-top: 0; }

.numbered li > span {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
}

.numbered p {
  max-width: 42ch;
  margin: 0;
}

.numbered--dense li { padding: 12px 0; }

/* ---------- formats ---------- */

.formats {
  padding-block: var(--section-y);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.formats__list { margin-top: clamp(1rem, 3vw, 2rem); }

.format {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

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

.format__num {
  padding-top: 5px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.format__body .h3 {
  max-width: 20ch;
  margin: 7px 0 14px;
}

.format__desc {
  max-width: 56ch;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.format__includes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.format__includes li:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--line-strong);
}

.format__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-top: 4px;
}

.format__access {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format__price {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.format__price span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format__alt {
  margin: 3px 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.format__buy .btn { margin-top: auto; }

.formats__note {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.formats__note a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.formats__note a:hover { color: var(--accent); }

/* ---------- how it works ---------- */

.how { padding-block: var(--section-y); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.steps li:last-child { padding-right: 0; }

.steps__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 0.9;
}

.steps h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
}

.steps p {
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.how__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- about ---------- */

.about {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.about__media { margin: 0; }

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
}

.about__media figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about__copy .h2 {
  max-width: 17ch;
  margin: 14px 0 24px;
}

.about__copy .lead { color: var(--ink); }

.about__copy p {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--muted);
}

.about__copy .signature {
  margin-top: 26px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */

.faq {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.faq__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq__intro .h2 { margin: 14px 0 18px; }

.faq__intro p {
  max-width: 32ch;
  color: var(--muted);
}

.faq__intro .btn { margin-top: 24px; }

.faq__list { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq__answer {
  max-width: 58ch;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- final CTA ---------- */

.final {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}

.final__ghost {
  position: absolute;
  left: 50%;
  bottom: -0.24em;
  transform: translateX(-50%);
  color: rgba(243, 235, 221, 0.05);
  font-family: var(--font-display);
  font-size: clamp(6rem, 17vw, 16rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.final__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.final .label { color: var(--accent-light); }

.final .h2 {
  max-width: 14ch;
  margin: 16px 0 24px;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
}

.final .lead {
  max-width: 47ch;
  color: var(--dark-muted);
}

.final .btn { margin-top: 32px; }

.final__handle {
  margin-top: 18px;
  color: var(--dark-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 24px;
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.brand--light { color: var(--dark-ink); }

.footer__brand p {
  max-width: 30ch;
  margin-top: 16px;
  color: var(--dark-muted);
  font-size: 0.88rem;
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer__nav .label,
.footer__contact .label {
  margin-bottom: 6px;
  color: var(--dark-muted);
}

.footer__nav a,
.footer__contact a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: var(--dark-ink);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 12, 10, 0.97);
  color: var(--dark-ink);
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(14, 12, 10, 0.97); }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px clamp(56px, 9vw, 120px) 40px;
}

.lightbox__figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.lightbox__figure figcaption {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  color: var(--dark-muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__figure figcaption span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--accent-light);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 235, 221, 0.25);
  border-radius: 50%;
  color: var(--dark-ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg { width: 16px; height: 16px; }

.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 20px; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

body.lightbox-open { overflow: hidden; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.65s var(--ease-out),
      transform 0.65s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .orb__toggle,
  .gallery__toggle { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (min-width: 1001px) {
  .mobile-menu { display: none; }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding-bottom: 40px;
  }

  .hero__copy { max-width: 680px; }

  .hero__visual {
    max-width: 560px;
    justify-self: center;
  }

  .chapter__head { grid-template-columns: 1fr; gap: 16px; }
  .chapter__num { font-size: 2.5rem; }
  .chapter__aside { max-width: 420px; padding-top: 0; }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-head .lead { max-width: 60ch; }

  .audience__grid { grid-template-columns: 1fr; gap: 40px; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 460px; }

  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .faq__intro { position: static; }
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps li:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .steps li:last-child { padding-bottom: 0; }

  .steps p { max-width: 46ch; }

  .format {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }

  .format__buy {
    grid-column: 2;
    max-width: 420px;
    padding-top: 10px;
  }

  .format__buy .btn { margin-top: 10px; }
}

@media (max-width: 760px) {
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero__facts li {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
  }

  .hero__facts li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero__facts li:nth-child(-n + 2) { border-top: 0; }

  .index__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .index__note { text-align: left; }

  .index__list a {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    grid-template-areas:
      "num name arrow"
      "num meta arrow";
    gap: 2px 14px;
    padding: 16px 0;
  }

  .index__meta {
    text-align: left;
    white-space: normal;
  }

  .index__name { font-size: 1.18rem; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .final__ghost { font-size: 20vw; }
}

@media (max-width: 700px) {
  .gallery--mosaic,
  .gallery--mosaic--reverse { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery--mosaic .work { aspect-ratio: 4 / 5; }

  .gallery--mosaic .work--lead {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

  .gallery--offset { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .offset-col {
    display: contents;
  }

  .hero__feature { width: 54%; padding: 7px; }

  .orb__hint { display: none; }

  .chapter__foot--between { gap: 14px; }

  .lightbox__figure {
    padding: 64px 12px 96px;
  }

  .lightbox__figure img { max-height: calc(100vh - 210px); }

  .lightbox__close { top: 12px; right: 12px; }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lightbox__prev { left: calc(50% - 58px); }
  .lightbox__next { right: calc(50% - 58px); }
}

@media (max-width: 560px) {
  .site-header__cta { display: none; }

  .brand__word { font-size: 1.15rem; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero__actions .btn { width: 100%; }

  .hero__actions .text-link { align-self: flex-start; }

  .hero .display { font-size: clamp(2.65rem, 12.5vw, 3.4rem); }

  .hero__note { align-items: flex-start; }

  .format {
    grid-template-columns: 1fr;
  }

  .format__num { padding-top: 0; }

  .format__buy { grid-column: auto; }

  .footer__grid { grid-template-columns: 1fr; }

  .about__media { max-width: 100%; }

  .faq__intro .btn { width: 100%; }
}

@media (max-width: 380px) {
  .menu-toggle__label { display: none; }

  .btn { padding-inline: 18px; }

  .index__name { font-size: 1.08rem; }

  .hero__feature { width: 56%; }
}


