/* COTELATO — стили лендинга. Чистый CSS, без препроцессоров.
   Порядок: шрифты → токены → база → навигация → сцены по очереди → мокапы → адаптив → reduced-motion. */

/* ── Шрифты ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ── Токены ─────────────────────────────────────────────────────────────── */
:root {
  --paper: #F3EDE2;
  --paper-2: #EBE3D4;
  --foam: #FAF6EE;
  --ink: #241A15;
  --ink-2: #5A4A40;
  --ink-3: #75665A;
  --roast: #1B1310;
  --roast-2: #2A1E19;
  --cream: #F3EDE2;
  --butter: #E8C880;
  --butter-2: #F2DDA6;
  --caramel: #B87A3E;
  --cocoa: #4B2F24;
  --pistachio: #A9B78E;
  --pistachio-2: #8FA274;
  --strawberry: #D9A3A0;
  --line: rgba(36, 26, 21, .14);
  --line-strong: rgba(36, 26, 21, .34);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --soft: "opsz" 144, "SOFT" 60;

  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 64px;
}

/* ── База ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--butter); color: var(--ink); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }
em { font-style: normal; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--cream); font-size: 13px;
}
.skip:focus { top: 16px; }

.wrap { padding-inline: var(--gutter); max-width: 1720px; margin-inline: auto; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Бумажное зерно */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: multiply;
}

/* Прогресс прокрутки */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i {
  display: block; height: 100%; width: 100%; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: background .6s;
}
body.is-dark .progress i { background: var(--cream); }

/* ── Типографика ────────────────────────────────────────────────────────── */
.label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.h-display {
  font-family: var(--serif); font-weight: 400; font-variation-settings: var(--soft);
  font-size: clamp(38px, 6vw, 112px); line-height: .98; letter-spacing: -.02em;
  max-width: 14ch; text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.35vw, 22px); line-height: 1.5; color: var(--ink-2);
  max-width: 52ch; text-wrap: pretty;
}
.lead--narrow { max-width: 44ch; margin-top: clamp(24px, 3vw, 40px); }

/* ── Навигация ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  color: var(--ink); transition: color .6s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 237, 226, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .6s, border-color .6s, backdrop-filter .6s;
}
.nav.is-scrolled::before {
  background: rgba(243, 237, 226, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
body.is-dark .nav { color: var(--cream); }
body.is-dark .nav.is-scrolled::before { background: rgba(27, 19, 16, .7); border-bottom-color: rgba(243, 237, 226, .1); }

.nav__mark {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 48, "SOFT" 40;
  font-size: 17px; letter-spacing: .08em;
}
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav__links a, .nav__cta {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding-block: 4px;
}
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__cta:hover::after, .nav__cta:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { justify-self: end; }

/* ── 00 · Arrival ───────────────────────────────────────────────────────── */
.scene { position: relative; padding-block: clamp(96px, 14vh, 200px); }

.scene--arrival {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + clamp(16px, 4vh, 48px)) var(--gutter) 0;
  overflow: hidden; isolation: isolate;
}
.scene--arrival::before {
  /* утренний свет: медленно гуляющее тёплое пятно */
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(242, 221, 166, .55), rgba(242, 221, 166, 0) 70%),
    radial-gradient(35% 30% at 78% 20%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%);
  animation: morning 26s ease-in-out infinite alternate;
}
@keyframes morning {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 3%) scale(1.06); }
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.arrival__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0; animation: fade 1.4s var(--ease) .9s forwards;
}
.arrival__eyebrow i { font-style: normal; color: var(--caramel); }
@keyframes fade { to { opacity: 1; } }

.wordmark {
  margin-top: auto;
  font-family: var(--serif); font-weight: 340; font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(44px, 14vw, 300px);
  line-height: .92; letter-spacing: 0; text-transform: uppercase;
  display: flex; justify-content: space-between;
  overflow: hidden; padding-bottom: .04em;
  margin-inline: -.015em;
}
.wordmark__l {
  display: inline-block;
  transform: translateY(112%);
  animation: rise-letter 1.4s var(--ease) forwards;
  animation-delay: calc(.25s + var(--n, 0) * 55ms);
}
.wordmark__l:nth-child(1) { --n: 0; } .wordmark__l:nth-child(2) { --n: 1; }
.wordmark__l:nth-child(3) { --n: 2; } .wordmark__l:nth-child(4) { --n: 3; }
.wordmark__l:nth-child(5) { --n: 4; } .wordmark__l:nth-child(6) { --n: 5; }
.wordmark__l:nth-child(7) { --n: 6; } .wordmark__l:nth-child(8) { --n: 7; }
@keyframes rise-letter { to { transform: translateY(0); } }

.arrival__row {
  display: grid; grid-template-columns: 1.1fr 1.2fr .8fr; gap: var(--gutter); align-items: end;
  margin-top: clamp(18px, 2.6vw, 40px);
  padding-block: clamp(20px, 2.6vw, 36px) clamp(56px, 6vw, 84px);
  border-top: 1px solid var(--line-strong);
  opacity: 0; animation: fade 1.4s var(--ease) 1.1s forwards;
}
.arrival__line {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-size: clamp(24px, 2.5vw, 38px); line-height: 1.05; letter-spacing: -.01em;
}
.arrival__intro { max-width: 36ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: var(--ink-2); }
.arrival__meta {
  display: flex; justify-content: flex-end; gap: 28px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

.arrival__scroll {
  position: absolute; left: var(--gutter); bottom: calc(var(--lam-h) + 14px);
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; animation: fade 1.2s var(--ease) 2s forwards;
}
.arrival__scroll i { display: block; width: 40px; height: 1px; background: var(--ink-3); overflow: hidden; position: relative; }
.arrival__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Срез слоёного теста */
.scene--arrival { --lam-h: clamp(120px, 24vh, 300px); }
.lamination {
  position: relative; height: var(--lam-h);
  margin-inline: calc(-1 * var(--gutter)); overflow: hidden;
  opacity: 0; animation: fade 1.8s var(--ease) .6s forwards;
}
.lamination svg, .panel--bakery svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lam { animation: drift var(--d, 60s) linear infinite; animation-delay: var(--o, 0s); }
/* Вне экрана анимации панелей стоят: экономим CPU и батарею. */
.is-paused *, .is-paused::before, .is-paused::after { animation-play-state: paused !important; }
@keyframes drift { to { transform: translateX(-1440px); } }
.lamination__light, .panel__light {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .9) 50%, transparent 75%);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: sweep 16s var(--ease) infinite;
}
@keyframes sweep { 0% { background-position: -100% 0; } 100% { background-position: 250% 0; } }

/* ── 01 · Idea ──────────────────────────────────────────────────────────── */
.idea__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(32px, 5vw, 72px); }
.idea__body .lead { grid-column: 2; }

.index { margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line-strong); }
.index li {
  display: grid; grid-template-columns: 6ch 1.2fr 1fr auto; gap: 24px; align-items: baseline;
  padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.index__n { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.index__k {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 72, "SOFT" 60;
  font-size: clamp(28px, 3.4vw, 56px); line-height: 1; letter-spacing: -.01em;
}
.index__d { font-size: 15px; color: var(--ink-2); }
.index__t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: right; }

/* ── 02 · Menu world ────────────────────────────────────────────────────── */
.scene--menu { padding-bottom: clamp(40px, 6vw, 96px); }
.spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center;
  padding: clamp(48px, 7vw, 120px) var(--gutter) 0;
  max-width: 1720px; margin-inline: auto;
}
.spread--coffee .spread__panel { order: 2; }
.spread__panel { position: relative; }

.panel {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.panel--bakery { background: #C8974F; }
.panel__light { animation-duration: 22s; }

.panel--coffee { background: radial-gradient(120% 100% at 50% 42%, #6A4832 0%, #3B2519 46%, #170E0A 100%); }
.panel--coffee::before {
  content: ""; position: absolute; inset: -25%;
  background: repeating-radial-gradient(circle at 50% 46%, rgba(255, 215, 160, .05) 0 1px, transparent 1px 34px);
  filter: blur(.7px);
  animation: ripple 18s ease-in-out infinite alternate;
}
.panel--coffee::after {
  /* мелкая рябь крема */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes ripple { from { transform: scale(.9); } to { transform: scale(1.12); } }
.crema {
  position: absolute; inset: 0;
  background: radial-gradient(52% 38% at 50% 46%, rgba(222, 168, 108, .7) 0%, rgba(200, 140, 85, .38) 42%, rgba(120, 75, 45, 0) 72%);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(.96); opacity: .85; } to { transform: scale(1.04); opacity: 1; } }
.steam {
  position: absolute; left: 50%; bottom: 36%; width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 220, .38), rgba(255, 240, 220, 0) 70%);
  filter: blur(18px); animation: rise 12s ease-in-out infinite;
}
.steam--b { left: 36%; width: 28%; animation-delay: -6s; animation-duration: 14s; }
@keyframes rise {
  0%   { transform: translate(-50%, 10%) scale(.8); opacity: 0; }
  20%  { opacity: .7; }
  100% { transform: translate(-30%, -140%) scale(1.4); opacity: 0; }
}

.panel--gelato { background: linear-gradient(180deg, #EAECDB 0%, #CDD6B7 100%); }
.scoop {
  position: absolute; width: 150%; left: -22%; top: 20%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 44% 26%, rgba(90, 110, 60, .38) 0 .55%, transparent .8%),
    radial-gradient(circle at 30% 34%, rgba(90, 110, 60, .3) 0 .4%, transparent .65%),
    radial-gradient(circle at 56% 18%, rgba(90, 110, 60, .3) 0 .45%, transparent .7%),
    radial-gradient(circle at 38% 14%, rgba(90, 110, 60, .26) 0 .5%, transparent .75%),
    radial-gradient(circle at 24% 22%, rgba(90, 110, 60, .28) 0 .35%, transparent .6%),
    radial-gradient(circle at 36% 30%, #E6ECD1 0%, #BDCB9D 46%, #98AA7A 80%, #7F9367 100%);
  box-shadow:
    inset -40px -50px 110px rgba(70, 90, 50, .3),
    inset 20px 26px 60px rgba(255, 255, 255, .4),
    -20px -30px 80px -30px rgba(50, 62, 34, .45);
  animation: scoop-breathe 16s ease-in-out infinite alternate;
}
@keyframes scoop-breathe { from { transform: scale(1) rotate(0); } to { transform: scale(1.02) rotate(1.5deg); } }
.scoop::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-24deg, rgba(255, 255, 255, .2) 0 12px, rgba(60, 80, 40, .07) 12px 20px, transparent 20px 44px);
  mix-blend-mode: soft-light;
}
.scoop::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 58% 68%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .22) 62%, rgba(255, 255, 255, 0) 66%);
}

.spread__text { padding-inline: clamp(0px, 3vw, 48px); }
.spread__n { font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--ink-3); }
.spread__title {
  font-family: var(--serif); font-weight: 400; font-variation-settings: var(--soft);
  font-size: clamp(60px, 9vw, 168px); line-height: .95; letter-spacing: -.03em; margin-top: 10px;
}
.spread__sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.6vw, 25px); color: var(--ink-2); margin-top: 18px;
}
.menu { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line-strong); max-width: 540px; }
.menu li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu span { font-size: clamp(17px, 1.3vw, 20px); }
.menu em { font-size: 13px; color: var(--ink-3); letter-spacing: .02em; text-align: right; }

/* ── 03 · Signatures ────────────────────────────────────────────────────── */
.scene--signature { background: var(--paper-2); }
.pairs { margin-top: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line-strong); }
.pair {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(14px, 2vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.pair__a {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(42px, 7vw, 124px); line-height: 1; letter-spacing: -.02em;
  transform: translateX(-40px); transition: transform 1.3s var(--ease);
}
.pair__b {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  font-size: clamp(20px, 3vw, 50px); line-height: 1; text-align: right;
  transform: translateX(40px); transition: transform 1.3s var(--ease);
}
.pair.is-in .pair__a, .pair.is-in .pair__b { transform: none; }
.swatch {
  width: clamp(44px, 6vw, 96px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 14px 30px -18px rgba(36, 26, 21, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.swatch--butter { background: radial-gradient(circle at 35% 30%, #F8E7B6, #E3BB6C 58%, #C48F4E); }
.swatch--frost  { background: radial-gradient(circle at 35% 30%, #FFFFFF, #DCE6E7 55%, #B2C2C6); }
.swatch--crema  { background: radial-gradient(circle at 40% 35%, #DBA96F, #7A4A2C 55%, #2A1811); }
.swatch--glaze  { background: radial-gradient(circle at 35% 30%, #FCEFE9, #E2B3AB 55%, #B4756E); }

.signature__materials {
  margin-top: clamp(40px, 6vw, 96px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px;
  font-family: var(--serif); font-variation-settings: var(--soft); font-size: clamp(22px, 2.6vw, 42px); line-height: 1.1;
}
.signature__materials em {
  margin-left: auto; font-family: var(--sans); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ── 04 · Applications ──────────────────────────────────────────────────── */
.apps {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px);
  padding: clamp(40px, 6vw, 96px) var(--gutter) 0; align-items: end;
  max-width: 1720px; margin-inline: auto;
}
.app { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app--cup     { grid-column: 1 / span 3; }
.app--fascia  { grid-column: 4 / span 6; }
.app--gelato  { grid-column: 10 / span 3; }
.app--box     { grid-column: 1 / span 5; }
.app--menu    { grid-column: 6 / span 3; }
.app--bag     { grid-column: 9 / span 4; grid-row: span 2; }
.app--labels  { grid-column: 1 / span 4; }
.app--loyalty { grid-column: 5 / span 4; }

.mock {
  position: relative; container-type: inline-size;
  background: var(--foam); border-radius: 2px; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(36, 26, 21, .05);
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
}
.mock::before {
  /* мягкая виньетка «стола» */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 50% 40%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%),
              linear-gradient(180deg, rgba(36, 26, 21, 0) 60%, rgba(36, 26, 21, .05) 100%);
}
.mock::after {
  /* свет за курсором */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38cqw circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease); mix-blend-mode: soft-light;
}
.mock:hover::after { opacity: 1; }
.mock-svg { position: relative; width: 100%; height: auto; }

.app--cup .mock    { aspect-ratio: 3 / 4; padding: 10% 22%; }
.app--gelato .mock { aspect-ratio: 3 / 4; padding: 14% 12%; background: #EFE8DA; }
.app--box .mock    { aspect-ratio: 4 / 3; padding: 8% 12%; }
.app--bag .mock    { aspect-ratio: 3 / 4.6; padding: 12% 20%; background: #EDE5D5; }
.app--menu .mock   { aspect-ratio: 3 / 4; padding: 10%; background: #E8E0D0; }
.app--labels .mock { aspect-ratio: 4 / 2.6; padding: 10% 8%; }
.app--loyalty .mock{ aspect-ratio: 4 / 2.6; padding: 12% 14%; background: #EFE8DA; }

.app figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; letter-spacing: .04em; }
.app figcaption em { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* Текст внутри SVG-мокапов */
.t-mark { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 72, "SOFT" 40; letter-spacing: .09em; }
.t-mark--cream { fill: #F3EDE2; }
.t-mark--ink { fill: #241A15; }
.t-label { font-family: var(--sans); font-weight: 500; letter-spacing: .24em; }
.t-label--cream { fill: rgba(243, 237, 226, .72); }
.t-label--ink { fill: #241A15; }
.t-label--muted { fill: #8C7B6F; }
.t-ring { font-family: var(--sans); font-weight: 500; font-size: 8px; }
.t-ring--cream { fill: rgba(243, 237, 226, .8); }
.t-ring--ink { fill: rgba(36, 26, 21, .78); }

/* Вывеска */
.fascia {
  aspect-ratio: 16 / 7; padding: 9% 10%;
  background: linear-gradient(180deg, #E6DCCB 0%, #D8CDB9 100%);
}
.fascia::before { background: radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.fascia__board {
  position: relative; width: 100%; aspect-ratio: 16 / 3.8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5%;
  background: linear-gradient(180deg, #30241D 0%, #1B120E 100%);
  box-shadow: 0 34px 50px -22px rgba(36, 26, 21, .6), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .5);
}
.fascia__board::after {
  /* полоса света от подсветки на стене под вывеской */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -14%; height: 14%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 226, 170, .35), rgba(255, 226, 170, 0));
  filter: blur(2px);
}
.fascia__mark {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 50;
  color: #F7EFDF; font-size: 8.4cqw; letter-spacing: .12em; line-height: 1; padding-left: .12em;
  text-shadow: 0 0 1px rgba(255, 245, 220, .9), 0 0 16px rgba(255, 226, 170, .55), 0 0 40px rgba(255, 200, 120, .25);
}
.fascia__sub { font-size: 1.55cqw; letter-spacing: .28em; text-transform: uppercase; color: rgba(247, 239, 223, .6); padding-left: .28em; }

/* Печатные карточки */
.card {
  position: relative; width: 100%; background: #FBF7EF; color: var(--ink);
  box-shadow: 0 30px 50px -26px rgba(36, 26, 21, .45), 0 1px 0 rgba(255, 255, 255, .7) inset, 0 0 0 1px rgba(36, 26, 21, .05);
}
.card--menu { aspect-ratio: 3 / 4; padding: 8% 8% 7%; display: flex; flex-direction: column; }
.card__mark { font-family: var(--serif); font-weight: 500; font-size: 6.5cqw; letter-spacing: .1em; line-height: 1; }
.card__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5cqw; margin-block: auto; }
.card__cols h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 4.4cqw; margin-bottom: 2.2cqw; line-height: 1; }
.card__cols li { font-size: 2.9cqw; line-height: 1.7; color: var(--ink-2); white-space: nowrap; }
.card__foot { font-size: 2.3cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

.card--loyalty { aspect-ratio: 1.586; padding: 7% 8%; display: flex; flex-direction: column; }
.card__line { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 10cqw; line-height: 1; margin-top: auto; }
.stamps { display: flex; gap: 2.4cqw; margin-top: 4.5cqw; }
.stamps i { width: 7.4cqw; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); }
.stamps i.on {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 44%, #FBF7EF 46% 60%, var(--ink) 62%);
}
.card--loyalty .card__foot { margin-top: 4cqw; }

/* Наклейки */
.labels { display: flex; align-items: center; justify-content: center; gap: 4%; }
.sticker { width: 30%; height: auto; filter: drop-shadow(0 14px 18px rgba(36, 26, 21, .28)); position: relative; }
.sticker:nth-child(1) { transform: rotate(-7deg) translateY(6%); }
.sticker:nth-child(2) { transform: translateY(-4%); }
.sticker:nth-child(3) { transform: rotate(6deg) translateY(5%); }

/* ── 05 · Atmosphere ────────────────────────────────────────────────────── */
.scene--atmosphere { background: var(--foam); }
.mood { margin-top: clamp(40px, 6vw, 96px); display: grid; gap: clamp(6px, 1.2vw, 18px); }
.mood__line {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(36px, 6.2vw, 108px); line-height: 1.02; letter-spacing: -.02em;
}
.mood__line:nth-child(2) { margin-left: 14%; }
.mood__line:nth-child(3) { margin-left: 32%; }
.mood__line:nth-child(4) { margin-left: 8%; }
.mood__line:nth-child(5) { margin-left: 48%; color: var(--caramel); }

.materials {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(12px, 1.5vw, 24px);
  padding: clamp(56px, 8vw, 128px) var(--gutter) 0; max-width: 1720px; margin-inline: auto;
}
.material { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.material span { font-size: 14px; margin-top: 8px; }
.material em { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tex {
  display: block; aspect-ratio: 4 / 5; border-radius: 2px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(36, 26, 21, .06);
}
.tex--tile {
  background-color: #CAD3B8;
  background-image:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 48%),
    linear-gradient(rgba(36, 26, 21, .22) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(36, 26, 21, .22) 1.5px, transparent 1.5px);
  background-size: 25% 20%, 100% 20%, 25% 100%;
}
.tex--steel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .08) 55%, rgba(255, 255, 255, .3) 100%),
    repeating-linear-gradient(90deg, #C8C8C5 0 1px, #B3B3AF 1px 2px, #D3D3D0 2px 3px, #BCBCB8 3px 5px);
}
.tex--paper {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 62% 64%, #F0D493, #F6E8CB 62%);
}
.tex--paper::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 48%, rgba(36, 26, 21, .12) 48.5%, rgba(255, 255, 255, .5) 49.5%, transparent 50.5%);
}
.tex--marble {
  background-color: #F1EEE7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='300'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007 .012' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .4 0 0 0 1 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 .08 .95 .08 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='.5'/%3E%3C/filter%3E%3Crect width='240' height='300' fill='%23F1EEE7'/%3E%3Crect width='240' height='300' filter='url(%23m)' opacity='.75'/%3E%3C/svg%3E");
  background-size: cover;
}
.tex--oak {
  background-color: #C9A46F;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09 .004' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .34 0 0 0 0 .18 0 0 0 .9 -.1'/%3E%3C/filter%3E%3Crect width='240' height='300' fill='%23D2AE78'/%3E%3Crect width='240' height='300' filter='url(%23w)' opacity='.8'/%3E%3C/svg%3E");
  background-size: cover;
}
.tex--linen {
  background-color: #E9E3D6;
  background-image:
    repeating-linear-gradient(0deg, rgba(36, 26, 21, .075) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(36, 26, 21, .075) 0 1px, transparent 1px 3px);
}
.tex--ceramic { background: radial-gradient(circle at 35% 28%, #FFFFFF, #EEEAE1 46%, #D5CFC2 100%); }
.tex--ceramic::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 50%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #E9E4DA 0 58%, #FFFFFF 60% 70%, #DED8CC 71% 78%, transparent 79%);
  box-shadow: 0 18px 30px -16px rgba(36, 26, 21, .35);
}
.tex--ceramic::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 50%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 55%);
  z-index: 1;
}

/* ── 06 · Name ──────────────────────────────────────────────────────────── */
.name__grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gutter); align-items: center;
  margin-top: clamp(40px, 6vw, 96px);
}
.syllables {
  font-family: var(--serif); font-weight: 300; font-variation-settings: var(--soft);
  font-size: clamp(52px, 9.5vw, 176px); line-height: 1; letter-spacing: -.025em;
}
.syllables i { font-style: normal; color: var(--caramel); margin-inline: .06em; }
.name__note { margin-top: 28px; max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); text-wrap: pretty; }
.ring-wrap { display: grid; place-items: center; }
.ringmark { width: clamp(180px, 22vw, 320px); height: auto; }
.ringmark .t-ring { transform-box: view-box; transform-origin: 60px 60px; animation: spin 48s linear infinite; }
.ringmark .t-mark { font-size: 40px; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 70; }
@keyframes spin { to { transform: rotate(360deg); } }

.traits {
  margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter);
}
.traits li {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.traits span { font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 50; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.traits em { color: var(--ink-2); font-size: 15px; }

/* ── 07 · FAQ (видимый, под FAQPage-разметку) ───────────────────────────── */
.scene--faq { background: var(--foam); }
.faq {
  margin-top: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter);
}
.faq__item {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.faq dt {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 60, "SOFT" 50;
  font-size: clamp(20px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -.01em;
}
.faq dd { margin: 0; color: var(--ink-2); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; text-wrap: pretty; }
.faq dd a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.faq dd a:hover { border-bottom-color: var(--ink); }

/* ── 08 · Acquire ───────────────────────────────────────────────────────── */
.scene--acquire {
  background: var(--roast); color: var(--cream);
  padding-block: clamp(120px, 18vh, 260px) clamp(96px, 14vh, 200px);
  overflow: hidden;
}
.scene--acquire::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -25%; height: 80%; pointer-events: none;
  background: radial-gradient(45% 50% at 50% 35%, rgba(214, 160, 100, .24), rgba(214, 160, 100, 0) 70%);
}
.scene--acquire .label { color: rgba(243, 237, 226, .5); }
.acquire__title {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(46px, 8vw, 150px); line-height: .98; letter-spacing: -.02em; max-width: 12ch;
}
.acquire__domain {
  margin-top: clamp(36px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px;
}
.acquire__url { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: .14em; }
.acquire__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--butter);
}
.acquire__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--butter);
  box-shadow: 0 0 14px var(--butter);
}
.acquire__body { margin-top: 28px; max-width: 48ch; font-size: clamp(16px, 1.25vw, 20px); color: rgba(243, 237, 226, .72); text-wrap: pretty; }
.acquire__cta { margin-top: clamp(36px, 4vw, 56px); }
.button {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 18px 26px; border: 1px solid rgba(243, 237, 226, .4); border-radius: 2px;
  font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.button i { position: relative; width: 26px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
.button i::after {
  content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.button:hover, .button:focus-visible { background: var(--cream); color: var(--roast); border-color: var(--cream); outline: none; }
.button:hover i { width: 38px; }
.acquire__direct { margin-top: 20px; font-size: 14px; color: rgba(243, 237, 226, .55); }
.acquire__direct a { color: rgba(243, 237, 226, .85); border-bottom: 1px solid rgba(243, 237, 226, .3); }
.acquire__fine { margin-top: clamp(56px, 8vw, 110px); font-size: 12px; letter-spacing: .04em; color: rgba(243, 237, 226, .55); }

/* ── Close ──────────────────────────────────────────────────────────────── */
.close {
  background: var(--roast); color: var(--cream); text-align: center;
  padding: clamp(60px, 8vw, 120px) var(--gutter) 28px;
  border-top: 1px solid rgba(243, 237, 226, .1);
}
.close__mark {
  font-family: var(--serif); font-weight: 340; font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(48px, 11vw, 210px); letter-spacing: .04em; line-height: 1; padding-left: .04em;
}
.close__line { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 28px); margin-top: 18px; color: rgba(243, 237, 226, .75); }
.close__domain { margin-top: 30px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.close__domain span { color: var(--butter); margin-left: 18px; }
.close__foot {
  margin-top: clamp(48px, 6vw, 96px); padding-top: 20px; border-top: 1px solid rgba(243, 237, 226, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left;
  font-size: 12px; color: rgba(243, 237, 226, .45);
}
.close__foot nav a { margin-left: 24px; color: rgba(243, 237, 226, .7); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }

/* ── Появление по скроллу ───────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .app--cup     { grid-column: 1 / span 4; }
  .app--fascia  { grid-column: 5 / span 8; }
  .app--gelato  { grid-column: 1 / span 4; }
  .app--box     { grid-column: 5 / span 8; }
  .app--menu    { grid-column: 1 / span 4; }
  .app--bag     { grid-column: 5 / span 4; grid-row: auto; }
  .app--labels  { grid-column: 9 / span 4; }
  .app--loyalty { grid-column: 1 / span 5; }
  .materials { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }

  .scene--arrival { --lam-h: clamp(96px, 18vh, 200px); }
  .arrival__row { grid-template-columns: 1fr; gap: 14px; padding-bottom: 64px; }
  .arrival__meta { justify-content: flex-start; }
  .arrival__scroll { left: auto; right: var(--gutter); }

  .idea__body { grid-template-columns: 1fr; }
  .idea__body .lead { grid-column: 1; }
  .index li { grid-template-columns: 5ch 1fr auto; row-gap: 6px; }
  .index__d { grid-column: 2; }

  .spread { grid-template-columns: 1fr; gap: 28px; }
  .spread--coffee .spread__panel { order: 0; }
  .spread__text { padding-inline: 0; }

  .apps { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .app--cup, .app--gelato, .app--menu, .app--bag { grid-column: span 1; }
  .app--fascia, .app--box, .app--labels, .app--loyalty { grid-column: span 2; }
  .app--bag { grid-row: auto; }
  /* Порядок на узком экране: пары одинаковой ширины стоят рядом. */
  .app--cup { order: 1; } .app--gelato { order: 2; } .app--fascia { order: 3; } .app--box { order: 4; }
  .app--menu { order: 5; } .app--bag { order: 6; } .app--labels { order: 7; } .app--loyalty { order: 8; }

  .materials {
    display: grid; grid-auto-flow: column; grid-auto-columns: 44%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none;
  }
  .materials::-webkit-scrollbar { display: none; }
  .material { scroll-snap-align: start; }

  .name__grid { grid-template-columns: 1fr; }
  .ring-wrap { justify-items: start; }
  .traits { grid-template-columns: 1fr; }
  .traits li { grid-template-columns: 1fr; gap: 6px; }
  .faq { grid-template-columns: 1fr; }
  .faq__item { grid-template-columns: 1fr; gap: 8px; }

  .close__foot { flex-direction: column; }
  .close__foot nav a { margin: 0 24px 0 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { font-size: 14.6vw; }
  .arrival__line { font-size: 26px; }
  .pair { gap: 12px; }
  .pair__b { font-size: 18px; }
  .swatch { width: 40px; }
  .index li { grid-template-columns: 4ch 1fr auto; }
  .app figcaption { font-size: 12px; }
  .card__cols li { white-space: normal; }
  .signature__materials em { margin-left: 0; width: 100%; }
  .acquire__domain { flex-direction: column; align-items: flex-start; }
  .close__domain span { display: block; margin: 10px 0 0; }
  .button { width: 100%; justify-content: space-between; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal, .pair__a, .pair__b { opacity: 1; transform: none; }
  .wordmark__l { transform: none; }
  .arrival__eyebrow, .arrival__row, .lamination, .arrival__scroll { opacity: 1; }
  .dust { display: none; }
  .mock { transform: none !important; }
}
