/* Дом с характером — design system */
:root {
  --ink: #16141a;
  --ink-soft: #3a3642;
  --mist: #e9eef3;
  --paper: #f5f7fa;
  --snow: #ffffff;
  --river: #2f4f63;
  --river-deep: #1c3342;
  --lacquer: #8f2422;
  --lacquer-deep: #6e1a19;
  --lacquer-glow: #b33a36;
  --wood: #4a3428;
  --line: rgba(22, 20, 26, 0.12);
  --shadow: 0 24px 60px rgba(22, 20, 26, 0.14);
  --radius: 2px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-story: "Source Serif 4", "Times New Roman", serif;
}

html[lang^="zh"] {
  --font-display: "Unbounded", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-story: "Source Serif 4", "Songti SC", "SimSun", "Noto Serif SC", "Times New Roman", serif;
}

html[lang="de"] {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

html[lang="de"] .h2,
html[lang="de"] .time-hero__title,
html[lang="de"] .page-hero__title,
html[lang="de"] .nav__brand {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/unbounded-cyr-400.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/unbounded-500.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("../assets/fonts/unbounded-700.woff2") format("woff2"),
    url("../assets/fonts/unbounded-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../assets/fonts/manrope-400.woff2") format("woff2"),
    url("../assets/fonts/manrope-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("../assets/fonts/manrope-500.woff2") format("woff2"),
    url("../assets/fonts/manrope-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("../assets/fonts/manrope-600.woff2") format("woff2"),
    url("../assets/fonts/manrope-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../assets/fonts/source-serif-400.woff2") format("woff2"),
    url("../assets/fonts/source-serif-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("../assets/fonts/source-serif-600.woff2") format("woff2"),
    url("../assets/fonts/source-serif-latin-600.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--snow);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-solid {
  background: rgba(245, 247, 250, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--snow);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: color 0.3s var(--ease), text-shadow 0.3s;
}
.nav.is-time-hero {
  background: linear-gradient(180deg, rgba(22, 20, 26, 0.42) 0%, transparent 100%);
}
.nav.is-time-hero .nav__brand,
.nav.is-time-hero .nav__link {
  opacity: 1;
  pointer-events: auto;
  color: var(--snow);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.nav.is-time-hero .nav__cta {
  opacity: 1;
}
.nav.is-time-hero.is-solid .nav__brand,
.nav.is-time-hero.is-solid .nav__link {
  opacity: 1;
  pointer-events: auto;
}
.nav.is-time-hero.is-solid .nav__cta {
  opacity: 1;
}
.nav.is-solid .nav__brand,
.nav.is-solid .nav__link {
  color: var(--ink);
  text-shadow: none;
}
.nav__links {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.nav__link:hover {
  color: var(--snow);
}
.nav.is-solid .nav__link:hover {
  color: var(--lacquer);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  background: var(--lacquer);
  color: var(--snow) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__cta:hover {
  background: var(--lacquer-deep);
  transform: translateY(-1px);
}
.nav__burger {
  display: grid;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  place-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--snow);
  transition: background 0.25s;
}
.nav.is-solid .nav__burger span {
  background: var(--ink);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  padding: 0.2rem 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-switch__link:hover,
.lang-switch__link.is-active {
  color: var(--snow);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.lang-switch__link.is-active {
  pointer-events: none;
}
.nav.is-solid .lang-switch__link {
  color: var(--ink-soft);
  text-shadow: none;
}
.nav.is-solid .lang-switch__link:hover,
.nav.is-solid .lang-switch__link.is-active {
  color: var(--lacquer);
  border-bottom-color: var(--lacquer);
}
.lang-switch__link--zh {
  letter-spacing: 0;
  font-size: 0.72rem;
}
.nav-drawer .lang-switch {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  gap: 0.35rem 0.55rem;
}
.nav-drawer .lang-switch__link {
  color: var(--ink-soft);
  text-shadow: none;
  min-height: 2rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-bottom-color: var(--line);
}
.nav-drawer .lang-switch__link.is-active,
.nav-drawer .lang-switch__link:hover {
  color: var(--lacquer);
  border-color: var(--lacquer);
}

@media (min-width: 880px) {
  .nav__links {
    display: flex;
  }
  .nav__burger {
    display: none;
  }
}
@media (max-width: 879px) {
  .nav__inner > .lang-switch {
    display: none;
  }
}

.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  background: rgba(245, 247, 250, 0.97);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.25rem 1.75rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  z-index: 49;
  border-bottom: 1px solid var(--line);
}
.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  font-weight: 560;
  border-bottom: 1px solid var(--line);
}

/* Time hero — scroll-driven stacked panels (curtain lift) */
.time-hero {
  --time-slide-modern: 0;
  --time-slide-bw: 0;
  --time-slide-damaged: 0;
  --time-intro: 1;
  --time-era-modern: 0;
  --time-era-bw: 0;
  --time-era-damaged: 0;
  --time-scroll-hint: 1;
  --time-progress: 0;
  --time-photo-position: 50% 38%;
  --time-safe-top: env(safe-area-inset-top, 0px);
  --time-safe-bottom: env(safe-area-inset-bottom, 0px);
  --time-era-zone: calc(5.75rem + var(--time-safe-bottom));
  position: relative;
  margin: 0;
  color: var(--snow);
}
.time-hero__track {
  height: 300vh;
  height: 300dvh;
}
.time-hero__stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  /* Permanent base photo so stage never peeks as empty black during slides */
  background-color: #16141a;
  background-image: url("../assets/hero-time/damaged.jpg");
  background-size: cover;
  background-position: 50% 40%;
}
.time-hero__panel {
  position: absolute;
  /* Slight overscan kills 1px top/side gutters from sticky/subpixel rounding */
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  width: auto;
  height: auto;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}
.time-hero__panel--damaged {
  z-index: 1;
  /* Stays pinned — never slides off into empty stage */
  transform: none;
}
.time-hero__panel--bw {
  z-index: 2;
  transform: translate3d(0, calc(var(--time-slide-bw) * 100%), 0);
}
.time-hero__panel--modern {
  z-index: 3;
  transform: translate3d(0, calc(var(--time-slide-modern) * 100%), 0);
}
.time-hero__panel--modern .time-hero__photo {
  object-position: 50% 42%;
}
.time-hero__panel--damaged .time-hero__photo {
  object-position: 50% 40%;
}
.time-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--time-photo-position);
  max-width: none;
  min-width: 100%;
  min-height: 100%;
}
.time-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(22, 20, 26, 0.38) 0%, rgba(22, 20, 26, 0.08) 20%, transparent 44%, transparent 54%, rgba(22, 20, 26, 0.72) 100%),
    radial-gradient(95% 42% at 50% 100%, rgba(22, 20, 26, 0.5), transparent 70%);
  pointer-events: none;
}
/* Modern facade: white trim washes out white type — deepen left/top + bottom-center only */
.time-hero__panel--modern .time-hero__scrim {
  background:
    linear-gradient(105deg, rgba(22, 20, 26, 0.52) 0%, rgba(22, 20, 26, 0.28) 22%, rgba(22, 20, 26, 0.08) 42%, transparent 58%),
    linear-gradient(180deg, rgba(22, 20, 26, 0.44) 0%, rgba(22, 20, 26, 0.12) 18%, transparent 40%, transparent 52%, rgba(22, 20, 26, 0.78) 100%),
    radial-gradient(70% 36% at 50% 100%, rgba(22, 20, 26, 0.62), transparent 72%);
}
.time-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(22, 20, 26, 0.28) 0%, transparent 16%, transparent 88%, rgba(22, 20, 26, 0.22) 100%);
  pointer-events: none;
}
.time-hero__intro {
  --hero-text-edge: 0 0 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.82);
  --hero-text-glow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 12px 36px rgba(0, 0, 0, 0.4);
  position: absolute;
  top: calc(var(--nav-h) + 1rem + var(--time-safe-top));
  left: max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem));
  right: 1.25rem;
  bottom: auto;
  max-width: min(42ch, calc(100% - 2.5rem));
  z-index: 3;
  isolation: isolate;
  opacity: var(--time-intro);
  transform: translateY(calc((1 - var(--time-intro)) * -8px));
  pointer-events: none;
}
/* Soft local veil behind copy only — no border/radius/card */
.time-hero__intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1.75rem;
  right: -2.5rem;
  bottom: -2rem;
  left: -2rem;
  background:
    radial-gradient(ellipse 95% 90% at 18% 28%, rgba(22, 20, 26, 0.55), rgba(22, 20, 26, 0.18) 48%, transparent 74%);
  pointer-events: none;
}
.time-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: var(--hero-text-edge), 0 8px 28px rgba(0, 0, 0, 0.5), 0 18px 48px rgba(0, 0, 0, 0.38);
}
.time-hero__subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: var(--hero-text-edge), var(--hero-text-glow);
  max-width: 28ch;
}
.time-hero__tagline {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: var(--hero-text-edge), var(--hero-text-glow);
  max-width: 32ch;
}
.time-hero__era {
  position: absolute;
  left: max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem));
  right: 1.25rem;
  top: auto;
  bottom: var(--time-era-zone);
  z-index: 2;
  max-width: min(22ch, calc(100% - 2.5rem));
  pointer-events: none;
}
.time-hero__panel--modern .time-hero__era {
  opacity: var(--time-era-modern);
  transform: translateY(calc((1 - var(--time-era-modern)) * 12px));
}
.time-hero__panel--bw .time-hero__era {
  opacity: var(--time-era-bw);
  transform: translateY(calc((1 - var(--time-era-bw)) * 12px));
}
.time-hero__panel--damaged .time-hero__era {
  opacity: var(--time-era-damaged);
  transform: translateY(calc((1 - var(--time-era-damaged)) * 12px));
}
.time-hero__era-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 4.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.88),
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 6px 22px rgba(0, 0, 0, 0.52),
    0 14px 40px rgba(0, 0, 0, 0.38);
}
.time-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(4.25rem + var(--time-safe-bottom));
  translate: -50% 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  max-width: min(28ch, calc(100% - 2rem));
  padding: 0 0.5rem;
  text-align: center;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 650;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.94);
  opacity: var(--time-scroll-hint);
  isolation: isolate;
  pointer-events: none;
}
.time-hero__scroll::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.1rem -1.75rem -0.85rem;
  background: radial-gradient(ellipse 70% 85% at 50% 55%, rgba(22, 20, 26, 0.5), transparent 72%);
  pointer-events: none;
}
.time-hero__scroll-text {
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 3px 14px rgba(0, 0, 0, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.4);
}
.time-hero__scroll-arrow {
  font-size: 1.35rem;
  line-height: 1;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.55);
  animation: timeScrollPulse 2.2s var(--ease) infinite;
}
@keyframes timeScrollPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.restore-caption {
  margin: 1rem 0 0;
  max-width: 52ch;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.restore-note {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

/* Legacy hero keyframe removed — page-hero uses reveal */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.35rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--lacquer);
  color: var(--snow);
}
.btn--primary:hover {
  background: var(--lacquer-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  border-color: var(--snow);
  background: rgba(255, 255, 255, 0.08);
}
.btn--ink {
  background: var(--ink);
  color: var(--snow);
}
.btn--ink:hover {
  background: #000;
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--snow);
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section--ink {
  background: var(--ink);
  color: var(--snow);
}
.section--mist {
  background: var(--mist);
}
.section--river {
  background: linear-gradient(160deg, var(--river-deep), var(--river));
  color: var(--snow);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lacquer);
}
.section--ink .eyebrow,
.section--river .eyebrow {
  color: #f0a8a5;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 16ch;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.section--ink .lead,
.section--river .lead {
  color: rgba(255, 255, 255, 0.78);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Invite */
.invite {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .invite {
    grid-template-columns: 1fr 1.1fr;
    align-items: end;
  }
}
.invite__visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #222;
}
.invite__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.invite__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  background: rgba(22, 20, 26, 0.72);
  color: var(--snow);
  font-size: 0.8rem;
}

/* Experiences — interaction containers */
.exp-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 760px) {
  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.exp {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: var(--snow);
  isolation: isolate;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: transform 0.45s var(--ease);
}
.exp:hover {
  transform: translateY(-4px);
}
.exp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.exp:hover img {
  transform: scale(1.05);
}
.exp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(22, 20, 26, 0.88) 100%);
}
.exp h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
}
.exp p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 34ch;
}

/* Quote band */
.quote-band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(143, 36, 34, 0.18), transparent 55%),
    var(--paper);
}
.quote-band--ink {
  background: var(--ink);
  color: var(--snow);
}
.quote-band--ink .quote cite {
  color: rgba(255, 255, 255, 0.65);
}
.quote {
  margin: 0;
  font-family: var(--font-story);
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  line-height: 1.35;
  max-width: 22ch;
  font-weight: 400;
}
.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Story */
.story {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .story {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
  /* Sticky side portrait only in two-column layout — on mobile it must scroll with the feed */
  .story__portrait {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
}
.story__portrait figure {
  margin: 0;
  position: relative;
  /* no white mat / card — portrait sits on section mist */
}
.story__portrait figure::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 8%;
  bottom: 18%;
  border-radius: 50%;
  background: rgba(28, 24, 20, 0.14);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.story__portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  /* JPEG vignette fades to white — multiply dissolves white into section gray */
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.05);
}
.story__portrait figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 28ch;
}
.story__body p {
  font-family: var(--font-story);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.story__facts {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .story__facts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fact {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.fact span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Team */
.team-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.team-card {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.team-card__name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.team-card p {
  margin: 0 0 0.65rem;
  font-family: var(--font-story);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.team-card__src {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(58, 54, 66, 0.72);
}

/* Gallery */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery__item:nth-child(5) {
    grid-column: span 2;
  }
  .gallery__item:nth-child(8) {
    grid-row: span 2;
  }
}
.gallery__item {
  overflow: hidden;
  background: #222;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
  transition: transform 0.7s var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.06);
}
.gallery--page {
  grid-auto-rows: 160px;
}
.gallery--page .gallery__item.is-hidden {
  display: none;
}
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.gallery-filter {
  border: 1px solid var(--line);
  background: var(--snow);
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.gallery-filter:hover,
.gallery-filter.is-active {
  background: var(--lacquer);
  border-color: var(--lacquer);
  color: var(--snow);
}
.gallery-filter:focus-visible {
  outline: 2px solid var(--lacquer);
  outline-offset: 2px;
}
.gallery-sources {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.gallery-sources a {
  color: var(--lacquer);
}
.nav__link--active {
  color: var(--lacquer) !important;
}
.nav.is-solid .nav__link--active {
  color: var(--lacquer) !important;
}

/* Page hero (subpages) */
.page-hero {
  position: relative;
  min-height: clamp(18rem, 42vw, 28rem);
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
  color: var(--snow);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 17, 0.35) 0%, rgba(14, 13, 17, 0.82) 100%),
    radial-gradient(80% 120% at 0% 0%, rgba(143, 36, 34, 0.35), transparent 55%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.05;
  margin: 0.35rem 0 0.85rem;
  max-width: 14ch;
}
.page-hero__lead {
  max-width: 44ch;
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

/* Video grid (gallery page) */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.video-grid > * {
  min-width: 0;
  max-width: 100%;
}
.video-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  overflow: hidden;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  min-width: 0;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
}
.video-card__title {
  margin: 0;
  font-size: 1.05rem;
}
.video-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.video-card__link {
  font-weight: 600;
  color: var(--lacquer);
  text-decoration: none;
}
.video-card__link:hover {
  text-decoration: underline;
}
.video-poster--card {
  width: 100%;
  min-width: 0;
}

/* Route */
.route {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .route {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
  }
}
.route__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.route__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.route__num {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.route__map {
  min-height: 360px;
  background: #0f1c24;
  overflow: hidden;
  position: relative;
}
.route__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}
.route__address {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}
.route__address a {
  color: #f0c2bf;
}

/* Reviews */
.reviews {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}
.review {
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}
.review p {
  margin: 0 0 1rem;
  font-family: var(--font-story);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.review footer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* Press */
.press-groups {
  display: grid;
  gap: 2.25rem;
  margin-top: 2rem;
}
.press-group__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lacquer);
}
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 760px) {
  .press-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.press-card {
  background: var(--snow);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 8px 28px rgba(22, 20, 26, 0.05);
}
.press-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.press-card__date {
  opacity: 0.75;
}
.press-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.25;
}
.press-card__title a {
  text-decoration: none;
  color: var(--ink);
}
.press-card__title a:hover,
.press-card__title a:focus-visible {
  color: var(--lacquer);
  text-decoration: underline;
}
.press-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Form */
.visit {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .visit {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }
}
.form {
  display: grid;
  gap: 0.9rem;
  background: var(--snow);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 560;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea {
  min-height: 7rem;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--lacquer);
  box-shadow: 0 0 0 3px rgba(143, 36, 34, 0.15);
}
.form input.is-invalid,
.form textarea.is-invalid {
  border-color: var(--lacquer-deep);
  box-shadow: 0 0 0 3px rgba(143, 36, 34, 0.12);
}
.form__row {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: var(--ink-soft);
}
.form__consent input {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
}
.form__status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--river);
}
.form__status.is-error {
  color: var(--lacquer-deep);
}
.form__status.is-ok {
  color: #1f6b45;
}
.visit__contacts {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.visit__contacts a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  width: fit-content;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Video */
.video-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .video-block {
    grid-template-columns: 0.9fr 1.2fr;
  }
}
.video-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  text-decoration: none;
  color: var(--snow);
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.video-poster:hover img {
  transform: scale(1.04);
}
.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(14, 13, 17, 0.75) 100%);
}
.video-poster__play {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lacquer);
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.video-poster__label {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* FAQ */
.faq__head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
.faq__list {
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}
.faq__item {
  border-top: 1px solid var(--line);
  padding: 0.35rem 0 0;
  background: transparent;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--lacquer);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* Footer */
.footer {
  padding: 2.5rem 0 2rem;
  background: #0e0d11;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}
.footer__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer__brand {
  font-family: var(--font-display);
  color: var(--snow);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.85);
}
.footer nav {
  display: grid;
  gap: 0.45rem;
}
.footer__note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  opacity: 0.7;
}
.footer__credit {
  margin: 0.75rem 0 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 12, 0.92);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 80;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--snow);
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--snow);
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.lightbox__nav--prev {
  left: 1rem;
}
.lightbox__nav--next {
  right: 1rem;
}
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible {
  outline: 2px solid var(--snow);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .time-hero {
    --time-era-zone: calc(4.85rem + var(--time-safe-bottom));
  }
  .time-hero__intro {
    top: calc(var(--nav-h) + 0.65rem + var(--time-safe-top));
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    max-width: calc(100% - 2rem);
  }
  .time-hero__title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.95rem, 10.5vw, 2.65rem);
    line-height: 1;
  }
  .time-hero__subtitle {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    max-width: 26ch;
  }
  .time-hero__tagline {
    font-size: 0.86rem;
    max-width: 30ch;
  }
  .time-hero__era {
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    max-width: calc(100% - 2rem);
  }
  .time-hero__era-label {
    font-size: clamp(1.1rem, 4.8vw, 1.55rem);
    line-height: 1.12;
  }
  .time-hero__scroll {
    bottom: calc(3.75rem + var(--time-safe-bottom));
    max-width: min(24ch, calc(100% - 1.5rem));
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .time-hero__track {
    height: 100dvh;
    height: 100vh;
  }
  .time-hero__stage {
    position: relative;
  }
  .time-hero__panel {
    will-change: auto;
    transform: none !important;
  }
  .time-hero__panel--bw,
  .time-hero__panel--damaged {
    display: none;
  }
  .time-hero {
    --time-intro: 1;
    --time-era-modern: 1;
    --time-era-bw: 0;
    --time-era-damaged: 0;
    --time-slide-modern: 0;
    --time-slide-bw: 0;
    --time-slide-damaged: 0;
  }
  .time-hero__scroll,
  .time-hero__scroll-arrow {
    animation: none !important;
  }
  .reveal,
  .exp img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
