/* Spiral design system — выдержки из index.html (значения идентичны главной).
   Источник: <style> в index.html. Используется страницами Spiral Flora. */
:root {
  --ink:      #110f0c;
  --char:     #17130f;
  --smoke:    #221d18;
  --ash:      #3a322a;
  --linen:    #f2ebdf;
  --sand:     #e7dccb;
  --paper:    #faf6ef;
  --ember:    #c8864a;
  --ember-lt: #e3aa6f;
  --moss:     #6b7556;
  --text-d:   #ece3d5;   /* text on dark */
  --muted-d:  #a69884;
  --text-l:   #2a231c;   /* text on light */
  --muted-l:  #75695a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Raleway", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-d);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Film grain over the whole page — the "hand-made" texture */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--ember-lt);
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.light .eyebrow { color: var(--ember); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: .98; }
h2 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 400; }
em, .it { font-style: italic; }
h1 em, h2 em { color: var(--ember-lt); }
.light h2 em { color: var(--ember); }
.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.45; font-weight: 300;
}
p { margin: 0 0 1.1em; }
.muted { color: var(--muted-d); }
.light .muted { color: var(--muted-l); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  --bg: var(--ember); --fg: #1a120a;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 34px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--bg);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ember-lt); border-color: var(--ember-lt); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--text-d); border-color: rgba(236,227,213,.35); }
.btn--ghost:hover { background: rgba(236,227,213,.08); border-color: var(--text-d); }
.light .btn--ghost { --fg: var(--text-l); border-color: rgba(42,35,28,.3); }
.light .btn--ghost:hover { background: rgba(42,35,28,.05); border-color: var(--text-l); }

/* ── Reveal ───────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .12s; } .js .rv.d2 { transition-delay: .24s; } .js .rv.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .steam i { animation: none !important; } }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .5s var(--ease), backdrop-filter .5s, padding .5s var(--ease), border-color .5s;
  padding: 26px 0;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17,15,12,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: rgba(236,227,213,.07);
}
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.nav-right { display: flex; justify-content: flex-end; }
.brand img { height: 60px; width: auto; filter: invert(1) sepia(.25) brightness(.95); transition: height .5s var(--ease); }
.nav.scrolled .brand img { height: 46px; }
@media (max-width: 720px) { .brand img { height: 50px; } .nav.scrolled .brand img { height: 40px; } }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--text-d); opacity: .8; transition: opacity .3s;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav .btn { padding: 12px 22px; font-size: 11px; }
@media (max-width: 860px) { .nav .wrap { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); } .nav-links { visibility: hidden; overflow: hidden; } }
@media (max-width: 520px) { .nav-right { visibility: hidden; } }

/* ── Sections ─────────────────────────────────────── */
.sec { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.light { background: var(--linen); color: var(--text-l); }
.paper { background: var(--paper); }
.dark2 { background: var(--char); }

/* Footer */
footer { background: var(--ink); border-top: 1px solid rgba(236,227,213,.08); padding: 70px 0 40px; font-size: 14px; color: var(--muted-d); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
footer img { height: 56px; width: auto; filter: invert(1) sepia(.25) brightness(.8); margin-bottom: 22px; }
footer h4 { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-d); margin: 0 0 18px; }
footer a { text-decoration: none; display: block; padding: 3px 0; transition: color .3s; }
footer a:hover { color: var(--ember-lt); }
footer p { margin: 0 0 4px; }
.legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 36px; margin-top: 20px; border-top: 1px solid rgba(236,227,213,.08); font-size: 12px; }
.legal a { display: inline; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > div:first-child { grid-column: 1 / -1; } }

