/* The pinned story, the information section, contact and the footer. */
main { position: relative; z-index: 2; }

/* ── the ten-screen track ─────────────────────────────────────────────── */
.track { position: relative; height: 1000vh; height: 1000svh; }
.track__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.chapter {
  position: absolute;
  width: min(520px, 40vw);
  top: 50%;
  transform: translateY(-50%);
  visibility: hidden;
}
.chapter.is-live { visibility: visible; }
.chapter--left { left: calc(var(--gutter) + 120px); }
.chapter--right { right: var(--gutter); }
.chapter--top { left: calc(var(--gutter) + 120px); top: calc(var(--top-h) + 4vh); transform: none; width: min(620px, 50vw); }
.chapter[data-chapter="0"] { width: min(640px, 48vw); }
.chapter .eyebrow { margin-bottom: 22px; }
.chapter > [data-fade] { will-change: transform, opacity; }

.headline {
  font: 300 clamp(2.6rem, 5.6vw, 5.4rem)/1.02 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.headline--md { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.headline__line { display: block; }
.headline__line--light { color: var(--brass); font-style: italic; }
:lang(ka) .headline { font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: 1.16; letter-spacing: 0; }
:lang(ka) .headline--md { font-size: clamp(1.8rem, 3.4vw, 3.1rem); }
:lang(ka) .headline__line--light, :lang(ru) .headline__line--light { font-style: normal; }
:lang(ru) .headline { font-size: clamp(2.3rem, 4.8vw, 4.6rem); }
/* split words: each word rises inside its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wi { display: inline-block; will-change: transform; }

.lede { font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: var(--ink); max-width: 46ch; margin-bottom: 18px; }
.body { color: var(--ink-2); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.8rem; color: var(--ink-2); }
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: 2px; }
.scroll-hint {
  position: absolute; left: 0; bottom: -18vh; width: 1px; height: 64px; background: var(--line); overflow: hidden;
}
.scroll-hint i { position: absolute; inset: 0; background: var(--brass); animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* the six desks in chapter 4 */
.desks { display: grid; gap: 4px; margin-top: 26px; border-top: 1px solid var(--line); }
.desks a {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink-3); font-size: 1.02rem; transition: color 0.5s var(--ease);
}
.desks i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background-color 0.5s, box-shadow 0.5s; }
.desks li.is-lit a { color: var(--ink); }
.desks li.is-lit i { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 12px rgba(217, 184, 124, 0.7); }
.desks a:hover { color: var(--brass); }

/* the five captions that ride under the ribbon */
.captions { position: absolute; inset: 0; pointer-events: none; }
.cap {
  position: absolute; left: 0; top: 0; width: 210px;
  padding-top: 14px; border-top: 1px solid rgba(217, 184, 124, 0.5);
  opacity: 0; visibility: hidden;
  will-change: transform, opacity;
}
.cap b { display: block; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; color: var(--brass); margin-bottom: 8px; }
.cap strong { display: block; font: 400 1.15rem/1.2 var(--serif); margin-bottom: 6px; }
.cap span { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }

/* ── what to expect ───────────────────────────────────────────────────── */
.expect { position: relative; padding: 16vh 0 18vh; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1400px; }
.card {
  position: relative; overflow: hidden; border-radius: 18px;
  background: rgba(16, 32, 28, 0.55);
  border: 1px solid rgba(236, 229, 212, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: 50% 100%;
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--green); }
.card h3 { font: 400 1.25rem/1.2 var(--serif); padding: 20px 22px 8px; }
.card p { padding: 0 22px 24px; font-size: 0.9rem; color: var(--ink-2); }
.js .card.reveal { transform: translateY(60px) rotateX(14deg); }
.js .card.reveal.is-in { transform: translateY(var(--cy, 0px)) rotateX(var(--cr, 0deg)); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.js .card.reveal.is-in.is-settled { transition: none; }

.tiers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin: 110px 0 28px; }
.tiers-head p { color: var(--ink-2); max-width: 52ch; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { position: relative; padding: 30px 28px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10, 20, 18, 0.6); }
.tier--pop { border-color: rgba(217, 184, 124, 0.55); background: linear-gradient(180deg, rgba(33, 68, 59, 0.55), rgba(10, 20, 18, 0.6)); }
.tier h4 { font: 400 1.45rem/1.1 var(--serif); margin-bottom: 6px; }
.tier__desc { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 26px; }
.tier__price { font: 300 2.6rem/1 var(--serif); color: var(--brass); margin-bottom: 12px; }
.tier__price small { display: block; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.tier__price span { font: 400 0.85rem/1 var(--sans); color: var(--ink-2); }
.tier__time { font-size: 0.86rem; color: var(--ink); }
.tier__badge { position: absolute; top: 18px; right: 18px; font: 600 0.66rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #16110a; background: var(--brass); padding: 7px 10px; border-radius: 99px; }

.bring { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 110px; padding-top: 48px; border-top: 1px solid var(--line); }
.bring__text p { color: var(--ink-2); margin-top: 16px; max-width: 56ch; }
.bring__list .eyebrow { margin-bottom: 18px; }
.bring__list ul { display: flex; flex-wrap: wrap; gap: 10px; }
.bring__list li { font-size: 0.86rem; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(16, 32, 28, 0.5); }

/* ── the ivory panel (consultation intake) ───────────────────────────── */
.ivory {
  position: relative; z-index: 3;
  background: var(--ivory); color: var(--ivory-ink);
  border-radius: var(--r, 120px) var(--r, 120px) 0 0;
  padding: 14vh 0 12vh;
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.35);
}
.ivory .eyebrow { color: #7a5a24; }
.ivory p { color: var(--ivory-ink-2); }

/* ── contact ──────────────────────────────────────────────────────────── */
.contact { position: relative; z-index: 3; background: var(--ivory); color: var(--ivory-ink); padding: 4vh 0 16vh; }
.contact .eyebrow { color: #7a5a24; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info > p { color: var(--ivory-ink-2); margin: 18px 0 34px; max-width: 46ch; }
.contact__info .eyebrow { margin-bottom: 16px; }
.facts { display: grid; gap: 18px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(18, 32, 28, 0.12); }
.facts dt { font: 600 0.72rem/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #6b5527; }
.facts dd { color: var(--ivory-ink); }
.facts a { text-decoration-color: rgba(18, 32, 28, 0.3); text-underline-offset: 3px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  padding: clamp(22px, 3vw, 40px); border-radius: 22px;
  background: #fbf8f0; border: 1px solid rgba(18, 32, 28, 0.1);
  box-shadow: 0 30px 60px rgba(60, 48, 20, 0.08);
}
.field { display: grid; gap: 7px; }
.field--wide, .form > .btn, .form__note, .form__done, .form__fail { grid-column: 1 / -1; }
.field label { font: 600 0.78rem/1.2 var(--sans); color: var(--ivory-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(18, 32, 28, 0.22); color: var(--ivory-ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #707a74; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #1d5547; box-shadow: 0 0 0 3px rgba(29, 85, 71, 0.18); }
.field [aria-invalid="true"] { border-color: #a3341f; }
.field [aria-invalid="false"] { border-color: #2f7a5f; }
.field__err { min-height: 0; font-size: 0.78rem; color: #a3341f; }
.field__err:empty { display: none; }
.form > .btn { justify-self: start; min-width: 200px; }
.form > .btn[disabled] { opacity: 0.6; cursor: progress; }
.form__note { font-size: 0.8rem; color: var(--ivory-ink-2); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done, .form__fail { padding: 18px 20px; border-radius: 14px; }
.form__done { background: #e3efe7; border: 1px solid #b7d5c2; }
.form__done h3 { font: 400 1.3rem/1.2 var(--serif); margin-bottom: 6px; color: #17402f; }
.form__fail { background: #f7e7df; border: 1px solid #e6c2b2; display: grid; gap: 12px; }
.form__fail p:last-child { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.foot { position: relative; z-index: 3; background: var(--bg); overflow: hidden; padding-bottom: 40px; }
.foot__word {
  font: 300 clamp(5rem, 19vw, 19rem)/0.9 "Fraunces", Georgia, serif;
  letter-spacing: -0.04em; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px rgba(217, 184, 124, 0.38);
  padding: 9vh 0 6vh;
}
.foot__word span { display: inline-block; will-change: transform; transform: translate3d(var(--wx, 0px), 0, 0); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.foot__brand { display: flex; align-items: center; gap: 10px; font: 400 1.15rem/1 var(--serif); margin-bottom: 14px; }
.foot__brand svg { width: 14px; height: 22px; color: var(--brass); }
.foot__about { color: var(--ink-2); font-size: 0.88rem; max-width: 52ch; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; padding: 2px 0; }
.foot nav a:hover { color: var(--brass); }
.foot__small { font-size: 0.8rem; color: var(--ink-3); display: grid; gap: 8px; align-content: start; }
.foot--plain { padding: 40px 0; border-top: 1px solid var(--line); }

/* ── privacy and terms ───────────────────────────────────────────────── */
.legal { padding: 60px 0 100px; max-width: 760px; }
.legal h1 { font: 300 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--serif); margin-bottom: 20px; }
.legal h2 { font: 400 1.4rem/1.25 var(--serif); margin: 44px 0 12px; color: var(--brass); }
.legal p { color: var(--ink-2); margin-bottom: 10px; }
.legal .lede { color: var(--ink); }

/* ── phones and narrow screens ───────────────────────────────────────── */
@media (max-width: 900px) {
  .chapter, .chapter[data-chapter="0"], .chapter--top {
    left: 0; right: 0; width: auto; top: auto; bottom: 0; transform: none;
    padding: 64px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(10, 20, 18, 0) 0%, rgba(10, 20, 18, 0.88) 34%, rgba(10, 20, 18, 0.96) 100%);
  }
  .chapter--top { top: auto; }
  .chapter .eyebrow { margin-bottom: 12px; }
  .headline { font-size: clamp(2.1rem, 9vw, 3rem); margin-bottom: 14px; }
  .headline--md { font-size: clamp(1.8rem, 7.6vw, 2.5rem); }
  :lang(ka) .headline { font-size: clamp(1.55rem, 6.6vw, 2.2rem); }
  :lang(ka) .headline--md { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .lede { font-size: 0.98rem; margin-bottom: 10px; }
  .body { font-size: 0.92rem; }
  .hero__actions { margin: 18px 0 16px; }
  .trust { font-size: 0.74rem; }
  .scroll-hint { display: none; }
  .desks { grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 14px; }
  .desks a { font-size: 0.86rem; padding: 9px 0; gap: 9px; }
  .cap { width: 150px; }
  .cap span { display: none; }
  .cap strong { font-size: 0.98rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .bring, .contact__grid, .foot__grid { grid-template-columns: 1fr; }
  .ivory { padding-top: 10vh; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .chapter[data-chapter="0"] .body, .chapter[data-chapter="1"] .body { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i { animation: none; }
  .js .card.reveal, .js .card.reveal.is-in { transform: none; }
}
