/* ============================================================
   Yokefit — Prototype 03 — Cinematic Interactive
   Опора: Day1 Run (кинематографичность) + OUTFIT (hover-реакция)
   + Balmoral (чистота). Полноэкранные сцены, смена изображений
   при наведении, мягкие scroll-переходы, сдержанная палитра.
   Desktop only: 1440 / min 1280. Высоты сцен в px (viewport 1000).
   ============================================================ */

:root {
  --night: #0c0c0c;
  --night-soft: #161616;
  --bone: #f5f4f2;
  --smoke: #9b968f;
  --smoke-dark: #6b6660;
  --ember: #ff6a2b;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(12, 12, 12, 0.14);
  --font: "Avenir Next", Futura, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 1280px;
  background: var(--night);
  color: var(--bone);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.shell { padding-left: 64px; padding-right: 64px; }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 64px;
  background: linear-gradient(rgba(12, 12, 12, 0.82), rgba(12, 12, 12, 0));
  transition: background 300ms ease, backdrop-filter 300ms ease;
}

.site-header.scrolled {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.logo svg { display: block; }

.main-nav { display: flex; gap: 38px; }

.main-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 244, 242, 0.75);
  padding: 6px 0;
  transition: color 220ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width 260ms ease;
}

.main-nav a:hover { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #fff; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-late { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none !important; }
  html { scroll-behavior: auto; }
}

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

.hero {
  position: relative;
  height: 960px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  animation: slow-zoom 18s ease-in-out infinite alternate;
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.45) 0%, rgba(12, 12, 12, 0.05) 40%, rgba(12, 12, 12, 0.82) 92%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 88px;
  max-width: 1100px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 244, 242, 0.8);
  margin-bottom: 26px;
}

.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--ember); }

.hero h1 {
  font-size: 92px;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero h1 .ember { color: var(--ember); }

.hero .sub {
  font-size: 19px;
  color: rgba(245, 244, 242, 0.82);
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-cta-row { display: flex; align-items: center; gap: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  padding: 0 38px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.btn-ember { background: var(--ember); color: #0c0c0c; }
.btn-ember:hover { background: #fff; color: var(--night); transform: translateY(-2px); }

.btn-line { border-color: rgba(245, 244, 242, 0.6); color: var(--bone); }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-dark { background: var(--night); color: var(--bone); }
.btn-dark:hover { background: var(--ember); color: var(--night); }

.btn-dark-line { border-color: rgba(12, 12, 12, 0.5); color: var(--night); }
.btn-dark-line:hover { background: var(--night); color: var(--bone); }

.scroll-hint {
  position: absolute;
  right: 64px;
  bottom: 88px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 244, 242, 0.65);
  writing-mode: vertical-rl;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--ember), transparent);
}

/* ---------- scene scaffolding ---------- */

.scene { position: relative; }

.scene-dark { background: var(--night); }
.scene-light { background: var(--bone); color: var(--night); }

.scene-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-top: 110px;
  margin-bottom: 64px;
}

.scene-head .no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ember);
}

.scene-head h2 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.scene-head .note { margin-left: auto; font-size: 14px; color: var(--smoke); max-width: 380px; text-align: right; }

.scene-light .scene-head .note { color: var(--smoke-dark); }

/* ---------- interactive scenarios (OUTFIT-механика) ---------- */

.scenario-stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  padding-bottom: 120px;
  align-items: center;
}

.scenario-list { list-style: none; }

.scenario-item { border-bottom: 1px solid var(--line-dark); }

.scenario-item:first-child { border-top: 1px solid var(--line-dark); }

.scenario-link {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 30px 8px;
  transition: padding 260ms ease, background 260ms ease;
}

.scenario-link .idx {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--smoke);
  transition: color 260ms ease;
}

.scenario-link .name {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: rgba(245, 244, 242, 0.38);
  transition: color 260ms ease, letter-spacing 260ms ease;
}

.scenario-link .hint {
  margin-left: auto;
  font-size: 13px;
  color: transparent;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 260ms ease;
  white-space: nowrap;
}

.scenario-item.active .scenario-link { padding-left: 22px; }
.scenario-item.active .name { color: var(--bone); }
.scenario-item.active .idx { color: var(--ember); }
.scenario-item.active .hint { color: var(--ember); }

.scenario-screen {
  position: relative;
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  background: var(--night-soft);
}

.scenario-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 480ms ease, transform 900ms ease;
}

.scenario-screen img.show { opacity: 1; transform: scale(1); }

.scenario-screen .frame-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  background: rgba(12, 12, 12, 0.78);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
}

/* ---------- product monument (light scene) ---------- */

.monument {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 120px;
}

.monument-side { display: flex; flex-direction: column; gap: 56px; }

.monument-side .fact { max-width: 300px; }

.monument-side .fact + .fact { border-top: 1px solid var(--line-light); padding-top: 32px; }

.monument-side .fact .k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
}

.monument-side .fact p { font-size: 15px; color: var(--smoke-dark); }

.monument-side.right { text-align: right; align-items: flex-end; }

.monument-core { text-align: center; }

.monument-core .frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.monument-core img {
  width: 100%;
  aspect-ratio: 3 / 3.9;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 700ms ease;
}

.monument-core a:hover img { transform: scale(1.025); }

.monument-core .title {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 10px;
}

.monument-core .title .v { color: var(--ember); }

.monument-core .sub { font-size: 15px; color: var(--smoke-dark); margin-bottom: 26px; }

/* ---------- cinematic quote band ---------- */

.film-band {
  position: relative;
  height: 780px;
  background-image: url("assets/v-back-full.webp");
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* при очень высоких viewport (полностраничная съёмка) fixed-фон теряет смысл */
@media (min-height: 2000px) {
  .film-band { background-attachment: scroll; }
}

.film-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.58);
}

.film-band .inner { position: relative; z-index: 2; max-width: 980px; padding: 0 64px; }

.film-band blockquote {
  font-size: 64px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 34px;
}

.film-band blockquote .ember { color: var(--ember); }

/* ---------- collection teaser ---------- */

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 120px;
}

.teaser-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--night-soft);
}

.teaser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: brightness(0.62) saturate(0.9);
  transform: scale(1.01);
  transition: filter 420ms ease, transform 700ms ease;
}

.teaser-card:hover img { filter: brightness(0.92) saturate(1); transform: scale(1.045); }

.teaser-card .meta {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 2;
}

.teaser-card .name {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.teaser-card .soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 244, 242, 0.75);
  border: 1px solid rgba(245, 244, 242, 0.4);
  padding: 7px 14px;
}

/* ---------- telegram scene ---------- */

.tg-scene { border-top: 1px solid var(--line-dark); }

.tg-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  padding-bottom: 120px;
}

.tg-grid blockquote {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.tg-grid blockquote .ember { color: var(--ember); }

.tg-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tg-shots figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5.1; }

.tg-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 700ms ease;
}

.tg-shots figure:hover img { transform: scale(1.04); }

.tg-shots figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(12, 12, 12, 0.78);
  padding: 7px 12px;
}

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

.site-footer { border-top: 1px solid var(--line-dark); background: var(--night); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 64px;
  font-size: 13px;
  color: var(--smoke);
}

.footer-links { display: flex; gap: 32px; }

.footer-links a {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--smoke);
  transition: color 220ms ease;
}

.footer-links a:hover { color: var(--ember); }

.fine-print { font-size: 12px; color: var(--smoke); line-height: 1.6; }

/* ============================================================
   product page — chaptered film
   ============================================================ */

.pdp-open {
  position: relative;
  height: 960px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.pdp-open .hero-bg img { object-position: center 18%; }

.pdp-open .title-block { position: relative; z-index: 2; padding: 0 64px 80px; }

.pdp-open .title-block h1 {
  font-size: 140px;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pdp-open .title-block h1 .v { color: var(--ember); }

.pdp-open .pos { font-size: 20px; color: rgba(245, 244, 242, 0.85); max-width: 560px; margin-top: 18px; }

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
  padding: 110px 64px;
}

.chapter.flip .ch-media { order: 2; }

.chapter .ch-media { overflow: hidden; position: relative; }

.chapter .ch-media img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  transition: transform 900ms ease;
}

.chapter .ch-media:hover img { transform: scale(1.03); }

.ch-tag {
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(12, 12, 12, 0.78);
  color: var(--bone);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
}

.chapter .no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ember);
  margin-bottom: 16px;
}

.chapter h2 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.chapter p { font-size: 16.5px; color: var(--smoke); max-width: 460px; }

.scene-light .chapter p { color: var(--smoke-dark); }

.chapter .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.chapter .duo img { aspect-ratio: 3 / 4; }

/* fabric placeholder chapter */

.fabric-slab {
  border: 1px dashed rgba(245, 244, 242, 0.4);
  background:
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(255, 255, 255, 0.03) 16px 17px),
    var(--night-soft);
  aspect-ratio: 4 / 4.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 48px;
}

.fabric-slab .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--ember);
  padding: 7px 13px;
}

.fabric-slab p { color: var(--smoke); font-size: 15.5px; max-width: 420px; }
.fabric-slab strong { color: var(--bone); }

/* size scene (light) */

.size-scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 120px;
}

.size-panel { border: 1px solid var(--line-light); padding: 48px; }

.size-panel h3 {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

table.sizes { width: 100%; border-collapse: collapse; margin-bottom: 18px; }

table.sizes th, table.sizes td {
  border-bottom: 1px solid var(--line-light);
  padding: 13px 14px 13px 0;
  font-size: 15px;
  text-align: left;
}

table.sizes th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke-dark);
}

table.sizes td:first-child { font-weight: 700; }

.helper-slot {
  border: 1px dashed var(--smoke-dark);
  padding: 28px;
  margin-bottom: 20px;
  background: rgba(255, 106, 43, 0.06);
}

.helper-slot .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--night);
  padding: 7px 13px;
  margin-bottom: 14px;
}

.helper-slot p { font-size: 15px; color: var(--night); }

.text-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ember);
  padding-bottom: 4px;
  transition: color 220ms ease;
}

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

/* final cta */

.final-cta {
  text-align: center;
  padding: 130px 64px 120px;
}

.final-cta h2 {
  font-size: 76px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.final-cta h2 .ember { color: var(--ember); }

.final-cta .row { display: flex; justify-content: center; gap: 20px; margin-bottom: 26px; }

.back-strip {
  display: block;
  text-align: center;
  padding: 42px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 240ms ease, background 240ms ease;
}

.back-strip:hover { color: var(--night); background: var(--ember); }
