/* ═══════════════════════════════════════════════════════════════
   Saint Lumière Diaries — quiet luxury editorial
   Palette & rules: clients/sld/BRAND.md
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory:      #F5F0E8;
  --ivory-deep: #EDE6D9;
  --ink:        #232019;
  --char:       #1C1A17;
  --char-soft:  #26231E;
  --gold:       #B08D4A;
  --gold-deep:  #7A5E2B;   /* 5.3:1 on ivory — gold that may carry text */
  --gold-light: #CBA96B;   /* on dark surfaces */
  --green:      #3E4A3A;
  --blush:      #E8CFC6;
  --hairline:   rgba(35, 32, 25, 0.18);
  --hairline-light: rgba(245, 240, 232, 0.22);

  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif; /* display cut — ≥1.5rem only */
  --font-text:   'EB Garamond', Georgia, 'Times New Roman', serif;        /* text cut — body sizes */
  --font-script: 'Pinyon Script', cursive;

  --ease-cine: cubic-bezier(.22, 1, .36, 1);
  --pad-x: clamp(1.25rem, 5vw, 5rem);

  /* tracking system: named voices only — no magic numbers */
  --track-eyebrow: .32em;
  --track-ui: .22em;
  --track-ui-s: .14em;   /* optical compensation for small caps on mobile */
  --track-inline: .12em;
  --track-num: .08em;    /* italic index numerals */
  --track-logo: .04em;   /* brand lockup */

  /* caps size scale */
  --fs-caps-s: .72rem;
  --fs-caps: .8rem;
  --fs-caps-lg: .875rem;
}

/* ─── Reset-ish ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
p { text-wrap: pretty; }
body {
  margin: 0;
  background: var(--ivory);
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(232, 215, 198, .28), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(62, 74, 58, .07), transparent 55%);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* display face for everything that speaks at display size */
.hero-title, .chapter-title, .service-name, .offer-title, .contact-title,
.brand-word, .footer-name { font-family: var(--font-serif); }
img, svg, iframe { max-width: 100%; }
/* author display rules (e.g. .film-cover{display:flex}) must not defeat the hidden attribute */
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ol { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ─── Skip link ─── */
.skip-link {
  position: fixed; top: -4rem; left: 1rem;
  z-index: 300;
  background: var(--ink); color: var(--ivory);
  padding: .8rem 1.2rem;
  font-size: .85rem; letter-spacing: var(--track-inline); text-transform: uppercase;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus-visible { top: 1rem; }

/* ─── Film grain ─── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain-shift 9s steps(6) infinite; }
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%,1%); }
  40% { transform: translate(1%,-2%); }
  60% { transform: translate(-1%,2%); }
  80% { transform: translate(2%,-1%); }
}

/* ─── Cursor candlelight (desktop, fx-on only) ─── */
.spotlight {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1500;
  opacity: 0;
  transition: opacity 1.2s var(--ease-cine);
}
body.fx-on .spotlight.is-on { opacity: 1; }

/* ─── Ghost chapter numerals ─── */
.ghost-no {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  right: var(--pad-x);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: .8;
  color: rgba(122, 94, 43, .10);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.ghost-no-dark { color: rgba(203, 169, 107, .09); right: auto; left: var(--pad-x); }
.chapter > *:not(.ghost-no), .contact > *:not(.ghost-no) { position: relative; z-index: 1; }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--pad-x);
  background: rgba(245, 240, 232, .88);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  transition: background .5s var(--ease-cine), border-color .5s;
}
/* dark variant while the cinematic hero is on screen */
.site-header.is-over-dark {
  background: rgba(28, 26, 23, .45);
  background: color-mix(in srgb, var(--char) 45%, transparent);
  border-bottom-color: var(--hairline-light);
}
.site-header.is-over-dark .site-nav a,
.site-header.is-over-dark .brand-word,
.site-header.is-over-dark .lang-btn.is-active { color: var(--ivory); }
.site-header.is-over-dark .lang-btn { color: rgba(245, 240, 232, .6); }
.site-header.is-over-dark .lang-btn.is-active { border-bottom-color: var(--gold-light); }
.site-header.is-over-dark .brand-mark, .site-header.is-over-dark .ig-link { color: var(--gold-light); }
.site-header.is-over-dark .brand-word em { color: var(--gold-light); }
.site-header.is-over-dark .site-nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.site-header.is-over-dark .header-cta { background: var(--gold); color: #201A0E; }
.site-header.is-over-dark .header-cta:hover { background: var(--gold-light); }
.header-brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
}
.brand-mark { width: 26px; height: 32px; color: var(--gold-deep); flex: none; }
.brand-word {
  font-size: 1.05rem; letter-spacing: var(--track-logo); font-weight: 600; white-space: nowrap;
}
.brand-word em { font-family: var(--font-script); font-style: normal; font-weight: 400; font-size: 1.15em; color: var(--gold-deep); }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a {
  text-decoration: none;
  font-size: var(--fs-caps); font-weight: 600;
  letter-spacing: var(--track-ui); word-spacing: .12em; text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-cine), color .25s;
}
.site-nav a:hover { border-bottom-color: var(--gold); color: var(--gold-deep); }
.header-side { display: flex; align-items: center; gap: 1.1rem; }
.ig-link {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--gold-deep);
  transition: color .25s, transform .3s var(--ease-cine);
}
.ig-link:hover { color: var(--ink); transform: translateY(-1px); }
.ig-link svg { width: 1.35rem; height: 1.35rem; }
.lang-switch { display: flex; align-items: center; gap: .35rem; font-size: .8rem; letter-spacing: var(--track-inline); }
.lang-btn {
  min-height: 2.75rem;
  padding: .35rem .35rem;
  color: rgba(35,32,25,.72);
  border-bottom: 1px solid transparent;
  transition: color .2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.lang-sep { color: var(--hairline); }
.header-cta {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-caps); font-weight: 600; letter-spacing: var(--track-ui); word-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory); background: var(--ink);
  padding: .4rem 1.15rem;
  transition: background .25s;
}
.header-cta:hover { background: var(--green); }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-size: var(--fs-caps-lg); font-weight: 600;
  letter-spacing: var(--track-ui); word-spacing: .12em; text-transform: uppercase;
  text-indent: var(--track-ui);
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  transition: background .3s var(--ease-cine), color .3s, border-color .3s, transform .3s var(--ease-cine);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--green); }
.btn-ghost { border: 1px solid var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-gold, .hero .btn-solid { position: relative; }
.btn-gold::after, .hero .btn-solid::after {
  content: '';
  position: absolute; inset: 3px;
  border: 1px solid rgba(245, 240, 232, .4);
  pointer-events: none;
}
/* flat matte gold: the brand bans gradients/gloss, and flat colour also can't
   flash transparent mid-transition (the old "blinking black" hover bug) */
.btn-gold { background: var(--gold); color: #201A0E; }
.btn-gold:hover { background: var(--gold-light); }

.text-link {
  font-size: var(--fs-caps-lg); font-weight: 600; letter-spacing: var(--track-ui); word-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
  transition: color .25s;
}
.text-link:hover { color: var(--ink); }
.text-link-light { color: var(--gold-light); }
.text-link-light:hover { color: var(--ivory); }

/* whispered CTA: letterspaced caps with a drawn underline — the quiet sibling of .btn */
.link-quiet {
  display: inline-block;
  font-size: var(--fs-caps); font-weight: 600;
  letter-spacing: var(--track-ui); word-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  padding-bottom: .3rem;
  /* faint resting underline (affordance) + a stronger one that draws in on hover */
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(rgba(176, 141, 74, .35), rgba(176, 141, 74, .35));
  background-repeat: no-repeat;
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  transition: background-size .55s var(--ease-cine), color .3s;
}
.link-quiet:hover { background-size: 100% 1px, 100% 1px; }
.link-quiet-light { color: rgba(245, 240, 232, .85); }
.link-quiet-light:hover { color: var(--gold-light); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 7rem var(--pad-x) 5rem;
  background: linear-gradient(175deg, var(--char) 0%, #232720 55%, var(--green) 130%);
  color: var(--ivory);
}
.hero-backdrop { position: absolute; inset: 0; }
.hero-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(75rem 40rem at 50% 120%, rgba(62, 74, 58, .55), transparent 65%),
    radial-gradient(50rem 30rem at 90% -10%, rgba(176, 141, 74, .12), transparent 60%);
}
.hero-glow-wrap {
  position: absolute; left: 50%; top: 58%;
  width: 60rem; height: 60rem;
  margin: -30rem 0 0 -30rem;
  will-change: transform;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(203, 169, 107, .16), rgba(203, 169, 107, .05) 45%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: glow-breathe 9s ease-in-out infinite alternate; }
}
@keyframes glow-breathe {
  from { transform: scale(1) translateY(0); opacity: .9; }
  to   { transform: scale(1.12) translateY(-2%); opacity: 1; }
}
.hero-medallion {
  position: absolute; left: 32%; top: 50%;
  width: min(46vh, 24rem); height: auto;
  transform: translate(-50%, -52%);
  color: var(--gold-light);
  opacity: .11;
}
.hero-frame {
  position: absolute; inset: clamp(.9rem, 2.2vw, 2rem);
  border: 1px solid rgba(203, 169, 107, .28);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 68rem;
  width: 100%;
}
.hero-copy { text-align: left; }
.hero-photo {
  --tilt: 2.4deg;
  --shift: 0px;
  margin: 0;
  justify-self: center;
  max-width: min(21rem, 100%);
  padding: .7rem;
  background: var(--ivory);
  border: 1px solid rgba(176, 141, 74, .45);
  box-shadow: 0 2.2rem 4rem rgba(0, 0, 0, .45);
  transform: translateY(var(--shift)) rotate(var(--tilt));
  perspective: 800px;
}
/* break the settled 50/50: the print drops over the bottom hairline of the frame */
@media (min-width: 901px) {
  .hero-inner { grid-template-columns: 1.12fr .88fr; }
  .hero-photo { --shift: clamp(2.5rem, 6vh, 4rem); }
}
.hero-photo-media {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-photo img { display: block; width: 100%; height: auto; filter: contrast(.98) sepia(.06); }
.hero-photo-cap {
  display: block;
  text-align: center;
  margin-top: .5rem;
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--gold-deep);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-cine);
}
.hero-video.is-playing { opacity: 1; }
/* moving specular sheen over the tipped-in photo */
body.fx-on .hero-photo-media::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(18rem 14rem at var(--sx, 50%) var(--sy, 30%), rgba(245, 240, 232, .14), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  font-size: var(--fs-caps); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--gold-light);
}
.hero-title {
  margin-top: 1.4rem;
  font-weight: 500;
  line-height: .9;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word {
  display: inline-block;
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
  .hero-title .word { letter-spacing: -0.015em; }
}
.hero-title .script-line { margin-top: -.18em; }
.hero-title .script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  color: var(--gold-light);
  padding: 0 .25em .1em;
}
.hero-tagline {
  margin: 1.9rem 0 0;
  max-width: 30em;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  letter-spacing: .01em;
  color: rgba(245, 240, 232, .82);
}
.hero-actions {
  margin-top: 2.6rem;
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); flex-wrap: wrap;
}
.hero-actions .btn { min-width: 15.5rem; text-align: center; }
.hero-actions .link-quiet { color: rgba(245, 240, 232, .85); }
.hero-actions .link-quiet:hover { color: var(--gold-light); }
.cta-hint {
  flex-basis: 100%;
  margin-top: .2rem;
  font-size: 1rem; font-style: italic;
  color: rgba(245, 240, 232, .62);
}
.hero .btn-solid { background: var(--gold); color: #201A0E; }
.hero .btn-solid:hover { background: var(--gold-light); }

.hero-scroll {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 5.5rem; width: 3rem;
  display: flex; justify-content: center;
}
.scroll-line {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-light));
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-line { animation: scroll-pulse 2.4s var(--ease-cine) infinite; }
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Chapters ─── */
.chapter { position: relative; padding: clamp(5rem, 10vw, 8.5rem) var(--pad-x); max-width: 78rem; margin: 0 auto; }
.chapter-head { max-width: 46rem; }
.chapter-no {
  font-size: var(--fs-caps); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--gold-deep);
}
.chapter-title {
  margin-top: .7rem;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
}
.chapter-lede {
  margin-top: 1.1rem;
  font-style: italic;
  font-size: clamp(1.25rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: rgba(35, 32, 25, .72);
  text-wrap: balance;
  max-width: 52ch;
}
.chapter-foot { margin-top: 3.5rem; text-align: center; }

/* post-films reserve moment — catches the emotion the films just built */
.films-cta { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.films-cta-script {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--gold-deep);
}
html[lang="ru"] .films-cta-script { font-family: var(--font-serif); font-style: italic; }
.films-cta .btn-gold { margin-top: 1.4rem; }
.films-cta-all { margin-top: 1.9rem; }
.films-cta-all .link-quiet { color: var(--gold-deep); }
.films-cta-all .link-quiet:hover { color: var(--ink); }

.fleuron {
  display: flex; justify-content: center;
  color: var(--gold-deep);
  padding: 0 var(--pad-x);
}
.fleuron svg { width: 5rem; height: .875rem; }

/* ─── Films ─── */
#films {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(60rem 8rem at 50% 0%, rgba(62, 74, 58, .14), transparent 75%),
    linear-gradient(180deg, #F5F0E8, #F1EBDF);
  box-shadow: inset 0 7rem 6rem -4rem rgba(28, 26, 23, .26);
}
#films > * { max-width: 73rem; margin-left: auto; margin-right: auto; }
#films > .ghost-no { position: absolute; }
.films-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 901px) {
  .film:nth-child(2) { transform: translateY(2.75rem); }
  .film:nth-child(5) { transform: translateY(2.75rem); }
  .films-grid { padding-bottom: 2.75rem; }
}
.film { margin: 0; }
.film-cover, .film-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}
.film-cover {
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: .35rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  outline: 1px solid var(--hairline);
  outline-offset: 5px;
  background:
    radial-gradient(28rem 24rem at 50% 0%, rgba(232, 207, 198, .35), transparent 70%),
    linear-gradient(170deg, var(--ivory-deep), #E4DBC9);
  transition: outline-color .3s, border-color .3s, transform .45s var(--ease-cine);
}
.film-cover:hover { border-color: var(--gold); outline-color: var(--gold); transform: translateY(-4px); }
.film-media { position: absolute; inset: 0; }
/* silent living preview over the poster (tiny 540px clips, loaded on demand) */
.film-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease-cine);
  pointer-events: none;
  filter: saturate(.85) contrast(.97) sepia(.06) brightness(.97);
}
.film-preview.is-on { opacity: 1; }
.film-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* one colorist for all six covers; the reel plays in its true grade */
  filter: saturate(.85) contrast(.97) sepia(.06) brightness(.97);
  transition: transform .8s var(--ease-cine), filter .6s var(--ease-cine);
}
.film-cover:hover .film-media img { transform: scale(1.045); filter: saturate(.95) contrast(.98) sepia(.04); }
.film-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28, 26, 23, .16), rgba(28, 26, 23, 0) 35%, rgba(28, 26, 23, 0) 55%, rgba(28, 26, 23, .82));
  pointer-events: none;
}
.film-oval {
  z-index: 1;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4.4rem; height: 5.6rem;
  display: grid; place-items: center;
  border: 1px solid rgba(245, 240, 232, .85);
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(28, 26, 23, .28);
  transition: background .3s, color .3s, border-color .3s;
}
.film-oval svg { width: 1.5rem; height: 1.5rem; margin-left: .2rem; }
.film-cover:hover .film-oval { background: var(--gold-light); border-color: var(--gold-light); color: var(--char); }
.film-no {
  font-size: .95rem; font-weight: 600; letter-spacing: var(--track-ui); text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 1px 12px rgba(28, 26, 23, .6);
}
.film-cap {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: rgba(245, 240, 232, .94);
  text-shadow: 0 1px 12px rgba(28, 26, 23, .7);
}
.film-hint {
  font-size: .78rem; font-style: italic;
  color: rgba(245, 240, 232, .85);
  text-shadow: 0 1px 10px rgba(28, 26, 23, .55);
}
/* labels sit above the scrim; the play oval is centered by its own absolute rule above —
   do NOT add .film-oval here, position:relative would re-break its centering */
.film-no, .film-cap, .film-hint { position: relative; z-index: 1; }
.film-embed { border: 1px solid var(--hairline); background: #000; }
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-embed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.film-close {
  position: absolute; top: .6rem; right: .6rem;
  z-index: 2;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(28, 26, 23, .55);
  color: var(--ivory);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .25s, color .25s;
}
.film-close:hover { background: var(--gold-light); color: var(--char); }
.film-close svg { width: 1rem; height: 1rem; }

/* lift the darkest poster so it reads as a night scene, not a hole */
.film[data-entry="3"] .film-media img { filter: contrast(.97) saturate(.95) sepia(.05) brightness(1.07); }

/* tonal cover variants — echo the grid's colour + b/w mix
   (keyed to data-entry like the brightness-lift rule above, so reordering cards keeps the tint with its poster) */
.film[data-entry="2"] .film-cover, .film[data-entry="6"] .film-cover {
  background:
    radial-gradient(28rem 24rem at 50% 0%, rgba(62, 74, 58, .16), transparent 70%),
    linear-gradient(170deg, #E7E5D6, #D9D9C4);
}
.film[data-entry="3"] .film-cover, .film[data-entry="5"] .film-cover {
  background:
    radial-gradient(28rem 24rem at 50% 0%, rgba(232, 207, 198, .55), transparent 70%),
    linear-gradient(170deg, #F0E4DC, #E9D6CB);
}
.film[data-entry="4"] .film-cover {
  background:
    radial-gradient(28rem 24rem at 50% 0%, rgba(203, 169, 107, .14), transparent 70%),
    linear-gradient(170deg, #2A2721, #1E1B16);
}

/* ─── Services ─── */
.service-group-label {
  margin-top: 2.8rem;
  font-size: var(--fs-caps-s); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--gold-deep);
}
.service--minor .service-name { font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: rgba(35, 32, 25, .8); }
.service--minor .service-desc { color: rgba(35, 32, 25, .62); }
.service--minor { padding: 1.5rem 0; }
#services {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(48rem 30rem at 12% 35%, rgba(62, 74, 58, .10), transparent 60%),
    radial-gradient(50rem 30rem at 105% 80%, rgba(232, 207, 198, .22), transparent 65%),
    linear-gradient(178deg, #F5F0E8 0%, #EFE9DC 55%, #E7DFCC 100%);
}
#services > * { max-width: 73rem; margin-left: auto; margin-right: auto; }
#services { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.service-list {
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: baseline;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.service-index {
  font-size: .95rem; font-style: italic;
  color: var(--green);
  letter-spacing: var(--track-num);
  font-variant-numeric: oldstyle-nums;
}
.service-name {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.12;
}
.service-desc {
  margin-top: 0;
  max-width: 52ch;
  text-wrap: balance;
  color: rgba(35, 32, 25, .74);
}

/* ─── Offer ─── */
.offer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  max-width: 57rem;
  margin-left: auto; margin-right: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  background:
    radial-gradient(32rem 18rem at 50% 28%, rgba(203, 169, 107, .22), transparent 68%),
    radial-gradient(26rem 12rem at 50% 78%, rgba(203, 169, 107, .10), transparent 70%),
    radial-gradient(60rem 24rem at 50% 115%, rgba(28, 26, 23, .42), transparent 60%),
    linear-gradient(170deg, #292A21, #1D1F16);
  box-shadow: 0 3rem 6rem -2rem rgba(28, 26, 23, .35), 0 0 8rem rgba(203, 169, 107, .10);
  color: var(--ivory);
  text-align: center;
}
.offer-price {
  margin-top: 1.2rem;
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  font-size: .95rem; font-weight: 500;
  letter-spacing: var(--track-ui); text-transform: uppercase;
  color: var(--gold-light);
}
.offer-note {
  margin: .9rem auto 0;
  font-size: 1.0625rem;
  font-style: italic;
  color: rgba(245, 240, 232, .72);
}
.offer-price::before, .offer-price::after {
  content: '';
  width: 2.75rem; height: 1px;
  background: rgba(203, 169, 107, .35);
}
.offer-frame {
  position: absolute; inset: .9rem;
  border: 1px solid rgba(203, 169, 107, .35);
  pointer-events: none;
}
/* the Film above the Reel: the Reel is the easy first yes, not the ceiling */
.offer-film-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: .02em;
}
.offer-film-sub {
  margin: .5rem auto 0;
  max-width: 30em;
  font-style: italic;
  color: rgba(245, 240, 232, .74);
}
.offer-film-price {
  margin-top: .9rem;
  font-size: var(--fs-caps); font-weight: 500;
  letter-spacing: var(--track-ui); text-transform: uppercase;
  color: var(--gold-light);
}
.offer-rule {
  width: 5rem; height: 1px;
  margin: 2rem auto;
  background: rgba(203, 169, 107, .35);
}
.offer-script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--gold-light);
  line-height: 1;
}
.offer-title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: .02em;
}
/* letterpress: type pressed into the dark panel */
.offer-title, .offer-price, .offer-film-name {
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 0 rgba(245, 240, 232, .07);
}
.offer-desc {
  margin: 1rem auto 0;
  max-width: 34em;
  color: rgba(245, 240, 232, .82);
}
.offer .btn-gold { margin-top: 2.2rem; }

/* ─── Full-bleed plates: stills from the films between chapters ─── */
.plate {
  margin: 0;
  position: relative;
  overflow: hidden;
  height: clamp(18rem, 52vh, 32rem);
}
.plate img {
  width: 100%; height: 118%;
  object-fit: cover; object-position: 50% 50%;
  /* one desaturated filmic grade so a frame-grab reads as art direction, not a screenshot */
  filter: saturate(.55) contrast(.94) sepia(.12) brightness(.88);
  transform: translateY(var(--ply, -6%));
  will-change: transform;
}
.plate::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 23, .3), rgba(28, 26, 23, 0) 32%, rgba(28, 26, 23, 0) 62%, rgba(28, 26, 23, .42));
  pointer-events: none;
}
.plate-cap {
  position: absolute; left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  white-space: nowrap;
  color: rgba(245, 240, 232, .92);
  text-shadow: 0 1px 16px rgba(28, 26, 23, .7);
}
html[lang="ru"] .plate-cap { font-family: var(--font-serif); font-style: italic; }

/* ─── Diary ─── */
.chapter-diary {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(44rem 30rem at 30% 12%, rgba(232, 215, 198, .30), transparent 65%),
    radial-gradient(40rem 26rem at 85% 30%, rgba(232, 215, 198, .15), transparent 65%),
    radial-gradient(48rem 26rem at 8% 105%, rgba(62, 74, 58, .08), transparent 60%);
}
.chapter-diary > * { max-width: 77rem; margin-left: auto; margin-right: auto; }
.diary-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.diary-quote {
  margin-top: 2.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: 0;
  color: #8F6E33;
  text-indent: -0.45em;
  text-wrap: balance;
}
.diary-photo {
  margin: 2.6rem 0 0;
  max-width: 15rem;
  padding: .6rem .6rem 1.9rem;
  background: #FBF8F2;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(35, 32, 25, .10), 0 12px 32px rgba(35, 32, 25, .14);
  transform: rotate(-2.2deg);
  will-change: transform;
}
.diary-photo img { display: block; width: 100%; height: auto; filter: contrast(.97) sepia(.05); }
.diary-photo-cap {
  display: block;
  text-align: center;
  margin-top: .45rem;
  font-size: 1.05rem;
  color: var(--gold-deep);
}
.script-text { font-family: var(--font-script); font-weight: 400; }
/* Pinyon Script has no Cyrillic — in RU fall back to elegant serif italic
   (covers every script-font element whose text is actually translated) */
html[lang="ru"] .offer-script,
html[lang="ru"] .hero-photo-cap,
html[lang="ru"] .diary-photo-cap {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: .01em;
}
.diary-body { border-left: 1px solid var(--hairline); padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.diary-body p + p { margin-top: 1.4rem; }
.diary-body p { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: rgba(35, 32, 25, .85); max-width: 34em; }
.diary-sign {
  margin-top: 2.6rem !important;
  font-size: 3.2rem;
  color: var(--gold-deep);
}
.diary-role {
  margin-top: .5rem !important;
  padding-top: .6rem;
  display: inline-block;
  border-top: 1px solid rgba(122, 94, 43, .35);
  font-size: var(--fs-caps-s); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--gold-deep);
}

/* ─── Contact ─── */
.contact {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(6rem, 12vw, 10rem) var(--pad-x);
  background:
    radial-gradient(52rem 20rem at 50% 96%, rgba(176, 141, 74, .16), transparent 60%),
    linear-gradient(200deg, var(--green) -20%, var(--char) 55%);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.contact::after {
  content: '';
  position: absolute; left: 50%; bottom: -18rem;
  width: 42rem; height: 42rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(203, 169, 107, .14), transparent 70%);
  pointer-events: none;
}
.contact-inner { position: relative; max-width: 50rem; margin: 0 auto; }
.contact .chapter-no { color: var(--gold-light); }
.contact-title {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
}
.contact-lede {
  margin: 1.4rem auto 0;
  max-width: 30em;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245, 240, 232, .8);
}
/* the booking ritual: three quiet steps, not a form */
.ritual {
  margin: 2.7rem auto 0;
  padding: 0;
  list-style: none;
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(1.2rem, 4vw, 3rem);
}
.ritual li {
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem;
  max-width: 11rem;
  font-size: .98rem; font-style: italic;
  line-height: 1.45;
  color: rgba(245, 240, 232, .78);
}
.ritual-no {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-light);
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  border: 1px solid rgba(203, 169, 107, .4);
  border-radius: 50%;
}
.trust-line {
  margin-top: 2.4rem;
  font-size: var(--fs-caps-s); font-weight: 600;
  letter-spacing: var(--track-inline); text-transform: uppercase;
  color: rgba(245, 240, 232, .55);
}
.contact-qr { display: none; }
@media (min-width: 901px) {
  .contact-qr {
    display: inline-flex; flex-direction: column; align-items: center;
    gap: .65rem;
    margin: 2.4rem auto 0;
  }
  .contact-qr img {
    width: 76px; height: 76px;
    padding: 7px;
    background: var(--ivory);
    border: 1px solid rgba(203, 169, 107, .35);
    opacity: .92;
  }
  .contact-qr figcaption {
    font-size: .8rem; font-style: italic;
    color: rgba(245, 240, 232, .6);
  }
}
.contact-actions {
  margin-top: 2.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.contact-actions .btn { min-width: min(22rem, 100%); text-align: center; }
.btn-ig { display: inline-flex; align-items: center; gap: .7rem; }
.btn-ig svg { width: 1.15rem; height: 1.15rem; flex: none; }
.contact-handle {
  margin-top: .6rem;
  font-size: var(--fs-caps-lg);
  letter-spacing: var(--track-inline);
  color: rgba(245, 240, 232, .7);
}
.contact-open {
  margin-top: 2.6rem;
  font-size: var(--fs-caps-s); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: rgba(203, 169, 107, .6);
}

/* ─── Footer ─── */
.site-footer {
  padding: 4rem var(--pad-x) 3rem;
  text-align: center;
  background: var(--ivory-deep);
  border-top: 1px solid rgba(176, 141, 74, .35);
}
.footer-mark { width: 34px; height: 42px; color: var(--gold-deep); }
.footer-name { margin-top: 1rem; font-size: 1.15rem; font-weight: 600; letter-spacing: var(--track-logo); }
.footer-place {
  margin-top: .3rem;
  font-size: .8rem; letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: rgba(35, 32, 25, .72);
}
.footer-legal { margin-top: 1.6rem; font-size: .9rem; color: rgba(35, 32, 25, .72); }
.footer-legal a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-legal a:hover { border-bottom-color: currentColor; }

/* ─── Chrome: scrollbar in the house palette ─── */
html { scrollbar-color: var(--gold-deep) var(--ivory-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory-deep); }
::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 5px;
  border: 2px solid var(--ivory-deep);
}

/* gold drop cap opens the diary text */
.diary-body p:first-of-type::first-letter {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 3.3em; line-height: .78;
  float: left;
  padding: .06em .14em 0 0;
  color: var(--gold-deep);
}

/* ─── Scroll-driven candlelight (coarse pointers get the desktop light layer) ─── */
.scroll-glow { overflow: hidden; }
.scroll-glow::before {
  content: '';
  position: absolute; inset: -15% 0;
  background: radial-gradient(42rem 30rem at 50% var(--glow-y, 35%), rgba(203, 169, 107, .10), transparent 70%);
  pointer-events: none;
}
body.fx-scroll .hero-photo-media::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(16rem 12rem at var(--sx, 50%) var(--sy, 30%), rgba(245, 240, 232, .13), transparent 65%);
  pointer-events: none;
}

/* ─── DM concierge toast ─── */
.dm-toast {
  position: fixed; left: 50%; bottom: 1.4rem;
  transform: translateX(-50%) translateY(160%);
  z-index: 2500;
  max-width: min(92vw, 30rem);
  background: rgba(28, 26, 23, .93);
  color: var(--ivory);
  border: 1px solid rgba(203, 169, 107, .5);
  padding: .85rem 1.5rem;
  text-align: center;
  font-size: .98rem; font-style: italic;
  opacity: 0;
  pointer-events: none;
  transition: transform .55s var(--ease-cine), opacity .55s;
}
.dm-toast.is-on { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ─── Touch feedback: taps must answer like hovers do ─── */
@media (hover: none) {
  .film-cover:active { border-color: var(--gold); outline-color: var(--gold); }
  .film-cover:active .film-oval { background: var(--gold-light); border-color: var(--gold-light); color: var(--char); }
  .btn:active { transform: scale(.985); }
  .link-quiet:active { background-size: 100% 1px; }
}

/* ─── Reveal choreography ─── */
.reveal-load { opacity: 0; transform: translateY(18px); }
.reveal-mask { transform: translateY(115%); }
body.is-loaded .reveal-load {
  animation: rise .9s var(--ease-cine) forwards;
  animation-delay: var(--d, 0s);
}
/* the hero print keeps its tilt: the generic rise keyframe would end at a bare
   translateY(0) and silently erase rotate() (animation fill overrides the CSS transform) */
body.is-loaded .hero-photo.reveal-load { animation-name: rise-tilt; }
@keyframes rise-tilt { to { opacity: 1; transform: translateY(var(--shift)) rotate(var(--tilt)); } }
body.is-loaded .reveal-mask {
  animation: unmask 1.1s var(--ease-cine) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes unmask { to { transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-cine), transform .9s var(--ease-cine); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-load, .reveal-mask { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero-glow, .scroll-line { animation: none !important; }
  .btn:hover, .film-cover:hover { transform: none; }
  .spotlight { display: none !important; }
  .hero-video { display: none !important; }
}

/* ─── Anchors under fixed header ─── */
#films, #services, #diary, #contact { scroll-margin-top: 5.5rem; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .7rem; letter-spacing: var(--track-ui-s); }
  .brand-word { display: none; }
}
@media (max-width: 640px) {
  /* the brand regains its name once the nav shrinks to two items */
  .brand-word { display: inline; font-size: .88rem; }
  .brand-word em { display: none; }
}
@media (max-width: 480px) {
  .eyebrow { text-wrap: balance; }
  /* "Four Hundred Dollars" wraps here — orphaned side-rules look broken */
  .offer-price::before, .offer-price::after { display: none; }
}
@media (max-width: 900px) {
  .films-grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 3.5rem 1fr; }
  .service-desc { grid-column: 2; margin-top: .5rem; }
  .hero-medallion { display: none; }
  .diary-grid { grid-template-columns: 1fr; }
  .diary-body { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 2rem; }
  .hero { padding-top: 6rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-copy { text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { max-width: 15rem; --tilt: 1.6deg; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-header { padding-left: .8rem; padding-right: .8rem; gap: .5rem; }
  .header-cta { padding: .3rem .8rem; min-height: 2.75rem; font-size: .7rem; letter-spacing: var(--track-ui-s); }
  .header-side { gap: .4rem; }
  /* one-pager: on a phone the header keeps identity + language + the two actions;
     section nav is the scroll itself */
  .site-nav { display: none; }
  .lang-sep { display: none; }
  .lang-switch { gap: 0; font-size: .75rem; }
  .lang-btn { padding: .35rem .2rem; }
  .ig-link { width: 2.1rem; }
  .ghost-no { color: rgba(122, 94, 43, .075); }
  .ghost-no-dark { color: rgba(203, 169, 107, .07); }
  /* first two entries full-bleed, the pending four in a quieter half-size 2x2 —
     cuts ~1700px of placeholder scroll until the client's captions arrive */
  .films-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 24rem; margin-left: auto; margin-right: auto; }
  .film:nth-child(-n+2) { grid-column: 1 / -1; }
  .film:nth-child(2), .film:nth-child(5) { transform: none; }
  .film:nth-child(n+3) .film-oval { width: 3rem; height: 3.8rem; }
  .film:nth-child(n+3) .film-oval svg { width: 1.05rem; height: 1.05rem; }
  .film:nth-child(n+3) .film-no { font-size: .7rem; letter-spacing: var(--track-ui-s); }
  .film:nth-child(n+3) .film-cap { font-size: .85rem; }
  .film:nth-child(n+3) .film-hint { display: none; }
  .film:nth-child(n+3) .film-cover { padding-bottom: 1rem; }
  .service { grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.7rem 0; }
  .hero-actions .btn { width: 100%; min-width: 0; text-align: center; padding-top: .8rem; padding-bottom: .8rem; }
  .hero-actions { flex-direction: column; align-items: center; margin-top: 1.5rem; gap: 1rem; }
  /* compress the first viewport so the tipped-in print crops into the fold */
  .hero { padding-top: 5rem; padding-bottom: 2.4rem; }
  /* hint sits between the button and the films link on the phone */
  .hero-actions .link-quiet { order: 3; }
  .hero-actions .cta-hint { order: 2; margin-top: 0; font-size: .92rem; }
  .hero-inner { gap: 1.5rem; }
  .hero-tagline { margin-top: 1.1rem; }
  .hero-title { margin-top: 1.1rem; }
  .hero-title .word { font-size: clamp(3.7rem, 12vw, 8.2rem); }
  .cta-hint { margin-top: .8rem; font-size: .92rem; }
  .contact-actions { gap: 1.3rem; }
  .ritual { flex-direction: column; align-items: center; gap: 1rem; margin-top: 2.2rem; }
  .ritual li { flex-direction: row; text-align: left; max-width: none; gap: .85rem; }
  .ritual-no { flex: none; }
  .offer { padding-left: 1.4rem; padding-right: 1.4rem; }
  .offer-price::before, .offer-price::after { width: 1.4rem; }
  .plate { height: 15rem; }
  .plate-cap { font-size: 1.45rem; }
  .ig-link { width: 2.75rem; }
  .header-cta { min-height: 2.75rem; }
}
