/* Black Rosa — Château Edition · mobile-first */
:root {
  --bg: #000;
  --bg-2: #0d0b0a;
  --fg: #f1ebe2;
  --text: #d8d0c5;
  --muted: #8f877d;
  --line: rgba(241, 235, 226, 0.14);
  --accent: #d0343c;
  --pad: 22px;
  --header-h: 60px;
  --font-display: "Oranienbaum", "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
  white-space: pre-line;
}
h1.display { font-size: clamp(46px, 13.4vw, 120px); }
h2.display { font-size: clamp(36px, 10vw, 96px); margin-bottom: 22px; }
.text { font-size: clamp(16px, 4.3vw, 19px); line-height: 1.6; color: var(--text); max-width: 34ch; font-weight: 300; }
.kicker, .label, .caption, .days__date, .stats__cap, .header__ed, .lang, .pill {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.kicker { font-size: 12px; color: #c9b89f; margin-bottom: 18px; }
.label { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.label--center { text-align: center; }
.caption { font-size: 11px; letter-spacing: 0.26em; color: #cfc6b9; word-spacing: 0.4em; }

/* pill button */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 58px; padding: 0 34px;
  border: 1px solid rgba(241, 235, 226, 0.75); border-radius: 999px;
  font-size: 13px; color: var(--fg); white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pill i { font-style: normal; font-family: var(--font-body); font-size: 20px; letter-spacing: 0; transition: transform 0.3s var(--ease); }
.pill:hover { background: var(--fg); color: #000; }
.pill:hover i { transform: translateX(4px); }
.pill--solid { background: var(--fg); color: #000; border-color: var(--fg); }
.pill--solid:hover { background: transparent; color: var(--fg); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; place-items: center;
  transition: opacity 0.8s ease 0.1s, visibility 0.8s;
}
.preloader__mark { display: grid; justify-items: center; gap: 14px; }
.preloader__name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(34px, 10vw, 64px); letter-spacing: 0.08em; animation: fadeUp 1.2s var(--ease) both; }
.preloader__ed { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); animation: fadeUp 1.2s var(--ease) 0.35s both; }
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__left { display: flex; align-items: center; gap: 14px; }
.header__num { font-family: var(--font-mono); font-size: 12px; color: #cfc6b9; min-width: 2ch; }
.lang { font-size: 10px; letter-spacing: 0.16em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; transition: border-color 0.25s; }
.lang:hover { border-color: var(--fg); }
.header__logo { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; letter-spacing: 0.1em; white-space: nowrap; }
.header__ed { justify-self: end; text-align: right; font-size: 8.5px; line-height: 1.6; letter-spacing: 0.3em; color: var(--muted); }

/* ---------- background videos ---------- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.bg-video.is-ready { opacity: 1; }
.hero__media, .people__media, .program__media { background: #000 center / cover no-repeat; }

/* ---------- 01 hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; top: 0; left: 0; right: 0; height: 62svh; min-height: 380px; }
.hero__media .bg-video { filter: brightness(0.78) saturate(0.85) sepia(0.18); }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, #000 100%); }
.hero__content { position: relative; z-index: 2; padding-top: calc(52svh); padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.hero .text { margin-top: 24px; }
.rule { display: block; width: 44px; height: 1px; background: var(--fg); margin: 40px 0 26px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 44px; max-width: 460px; }
.stats li { display: grid; justify-items: center; gap: 10px; padding: 4px 0; }
.stats li + li { border-left: 1px solid var(--line); }
.stats__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 12vw, 64px); line-height: 1; }
.stats__cap { font-size: 10px; color: var(--muted); }
.hero .pill { width: 100%; max-width: 460px; }

body:not(.is-ready) .hero__content > * { opacity: 0; transform: translateY(22px); }
body.is-ready .hero__content > * { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s var(--ease); }
body.is-ready .hero__content > :nth-child(2) { transition-delay: 0.1s; }
body.is-ready .hero__content > :nth-child(3) { transition-delay: 0.2s; }
body.is-ready .hero__content > :nth-child(n+4) { transition-delay: 0.32s; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, body:not(.is-ready) .hero__content > * { opacity: 1; transform: none; transition: none; }
  .preloader__name, .preloader__ed { animation: none; }
}

/* ---------- 02 programme ---------- */
.program { position: relative; padding: calc(var(--header-h) + 52px) 0 0; background:
  radial-gradient(120% 60% at 80% 0%, rgba(90, 60, 35, 0.22), transparent 60%), var(--bg); }
.days { border-top: 1px solid transparent; margin-top: 18px; }
.days li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.days li:last-child { border-bottom: 0; }
.days__date { font-size: 13px; letter-spacing: 0.06em; color: var(--fg); padding-top: 2px; white-space: nowrap; }
.days p { color: var(--text); font-weight: 300; font-size: 15.5px; }
.program__media { position: relative; margin: 20px calc(var(--pad) * -1) 0; aspect-ratio: 4 / 5; overflow: hidden; }
.program__media .bg-video { filter: brightness(0.7) saturate(0.85) sepia(0.15); }
.program__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.92) 100%); }
.program__media .caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 34px; text-align: center; }

/* ---------- 03 experiences ---------- */
.exps { padding: calc(var(--header-h) + 40px) 0 24px; }
.exps .label { margin-bottom: 28px; }
.exps__list { max-width: 1240px; margin: 0 auto; display: grid; gap: 6px; }
.exp { position: relative; display: flex; align-items: center; min-height: clamp(220px, 60vw, 460px); overflow: hidden; }
.exp__img {
  position: absolute; top: 0; bottom: 0; left: 0; width: 64%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}
.exp--r .exp__img { left: auto; right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 55%, transparent 100%); }
.exp__body { position: relative; z-index: 1; margin-left: 44%; padding: 24px var(--pad) 24px 0; }
.exp--r .exp__body { margin: 0 44% 0 0; padding: 24px 0 24px var(--pad); }
.exp__n { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.exp h3 { font-size: clamp(22px, 6.4vw, 44px); margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.exp p { font-size: clamp(13.5px, 3.6vw, 17px); font-weight: 300; color: var(--text); line-height: 1.55; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.exp--full { display: block; min-height: 0; }
.exp--full .exp__img { position: relative; width: 100%; height: clamp(220px, 62vw, 520px);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.exp--full .exp__body { margin: -56px 0 0; padding: 0 var(--pad) 24px; max-width: 640px; }

/* ---------- 04 people ---------- */
.people { position: relative; min-height: max(100svh, 720px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: calc(var(--header-h) + 52px) 0 calc(48px + env(safe-area-inset-bottom)); }
.people__media { position: absolute; inset: 0; }
.people__media .bg-video { filter: brightness(0.55) saturate(0.8) sepia(0.2); }
.people__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.2) 75%, #000 100%); }
.people__top, .people__bottom { position: relative; z-index: 1; }
.people__bottom { display: grid; justify-items: center; gap: 30px; }
.people .pill { width: 100%; max-width: 460px; }

/* ---------- request ---------- */
.request { padding: clamp(80px, 14vw, 150px) 0; border-top: 1px solid var(--line); }
.request__head { margin-bottom: 36px; }
.request__box { border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 6vw, 48px); background: var(--bg-2); }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 10px; }
.field label, .field__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--fg); font: inherit; font-size: 17px; font-weight: 300; padding: 10px 0 12px; outline: none; resize: vertical;
  transition: border-color 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: #625c55; }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip.is-active { background: var(--fg); color: #000; border-color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; border: 1px solid var(--line); border-radius: 6px; margin: 1px 0 0; display: grid; place-items: center; background: transparent; cursor: pointer; }
.consent input:checked { background: var(--fg); border-color: var(--fg); }
.consent input:checked::after { content: ""; width: 6px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form__error { color: #ff7a80; font-size: 14px; }
.form .pill { width: 100%; }
.form__done { padding: 12px 0; }
.form__done-title { font-size: 40px; margin-bottom: 10px; }
#submitBtn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- footer ---------- */
.footer { padding: clamp(56px, 10vw, 100px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__name { font-size: clamp(52px, 17vw, 200px); letter-spacing: 0.04em; line-height: 0.9; white-space: nowrap; }
.footer__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 18px 0 40px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 36px; }
.contacts a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.25s; min-height: 88px; }
.contacts a:hover { border-color: var(--fg); }
.contacts__name { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 18px; letter-spacing: 0.04em; margin-bottom: 8px; }
.contacts__val { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); overflow-wrap: anywhere; }
.footer__copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 760px) {
  :root { --pad: 40px; --header-h: 72px; }
  .header__logo { font-size: 24px; }
  .header__ed { font-size: 10px; }

  .hero { justify-content: flex-end; }
  .hero__media { height: 100%; min-height: 0; }
  .hero__media::after { background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.85) 100%); }
  .hero__content { padding-top: calc(var(--header-h) + 80px); padding-bottom: 64px; }
  .hero .text { max-width: 40ch; }

  .program { padding-bottom: 100px; }
  .program__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
  .program__media { margin: 0; aspect-ratio: 3 / 4; border-radius: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
  .program__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%); }
  .days li { grid-template-columns: 130px 1fr; padding: 26px 0; }
  .days p { font-size: 17px; }

  .exps__list { gap: 24px; padding: 0 var(--pad); }
  .exp { min-height: 380px; }
  .exp__img { width: 50%; }
  .exp__body { margin-left: 54%; padding-right: 0; max-width: 460px; }
  .exp--r .exp__body { margin: 0 0 0 4%; padding-left: 0; max-width: 460px; }
  .exp--full .exp__body { margin-top: -96px; padding: 0 0 24px 4%; }

  .people__top .text { max-width: 40ch; }

  .request__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .request__head { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  .form .pill { width: auto; justify-self: start; }

  .contacts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  :root { --pad: 56px; }
  .exp { min-height: 420px; }
}
