/* ===== Bosh sahifa (scroll-craft sahnalari) =====
   Mexanizm: /vendor/scrollcraft/scrollcraft.css (tahrirlanmaydi). Bu yerda faqat mavzu tokenlari va sahifa bloklari. */
:root {
  --sc-canvas: #efe6db;
  --sc-surface: #fbf7f1;
  --sc-ink: #1b1916;
  --sc-ink-soft: #5f564c;
  --sc-accent: #0b604f;
  --sc-accent-ink: #ffffff;
  --sc-font-display: 'Onest', system-ui, sans-serif;
  --sc-font-text: 'Onest', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --head: 72px;
  --hero-top: 72px; /* the sticky header sits above the hero, so the hero fills the rest of the first screen */
}
body { background: var(--sc-canvas); font-family: var(--sans); }
.home { display: block; }
[data-sc-progress] { background: var(--brand); height: 2px; z-index: 40; }

.display-lg { font: 600 clamp(2.2rem, 4.4vw, 4rem)/1 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.display-xl { font: 600 clamp(2.6rem, 6vw, 5.6rem)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.lede { font: 400 clamp(1rem, 1.25vw, 1.15rem)/1.6 var(--sans); color: var(--sc-ink-soft); max-width: 38ch; text-wrap: pretty; }

/* ---------------------------------------------------------------- 1. Hero */
.hero { position: relative; height: calc(100vh - var(--hero-top)); height: calc(100svh - var(--hero-top)); min-height: 520px; overflow: hidden; background: var(--sc-canvas); isolation: isolate; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__poster { z-index: 0; }
/* The loop fades in over the poster only once a real frame is playing: no blank flash while it buffers. */
.hero__video { z-index: 0; opacity: 0; transition: opacity .6s cubic-bezier(.16, 1, .3, 1); }
.hero__video.is-playing { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Column of density under the copy only (left third); the render is left alone elsewhere. */
  background: linear-gradient(90deg, color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 86%, transparent) 30%, color-mix(in oklab, var(--sc-canvas) 40%, transparent) 42%, transparent 50%);
}
.hero__copy {
  position: absolute; z-index: 3; left: var(--gut); top: 50%; translate: 0 -46%;
  width: min(35rem, 40vw);
}
.hero__title { font: 600 clamp(2.8rem, 5.2vw, 5.4rem)/.97 var(--display); letter-spacing: -.048em; text-wrap: balance; }
.hero__text { margin-top: 22px; font: 400 clamp(1rem, 1.2vw, 1.14rem)/1.6 var(--sans); color: var(--sc-ink-soft); max-width: 34ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__note {
  position: absolute; z-index: 3; left: var(--gut); bottom: clamp(24px, 7vh, 64px);
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--sc-surface); color: var(--sc-ink); font: 500 .95rem var(--sans);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 30px -14px rgba(80, 52, 24, .35);
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }

/* ---------------------------------------------------------------- 2. Oil rail */
.oils .sc-stage { display: flex; align-items: center; padding-top: var(--head); }
.rail { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-inline: var(--gut); height: 100%; }
.rail__lead { flex: 0 0 min(26rem, 78vw); display: grid; gap: 18px; }
.rail__grid {
  --card: clamp(10rem, min(12.5vw, calc((100svh - var(--head) - 300px) / 2)), 14rem);
  display: grid; gap: 16px; /* row 1: perfume oils, row 2: flacons */
}
.rail__row { display: flex; gap: 16px; }
.rail__row > .oil { flex: 0 0 var(--card); }
.rail__grid[aria-busy="true"] { min-width: 80vw; min-height: 60vh; }
.rail__end { flex: 0 0 min(20rem, 70vw); display: grid; gap: 14px; font: 400 1.05rem/1.5 var(--sans); color: var(--sc-ink-soft); }
.rail__end .textlink { color: var(--brand); font-size: 1rem; }

/* ---------------------------------------------------------------- 3. How it works */
.how { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center;
  padding-block: clamp(64px, 12vh, 140px) clamp(72px, 14vh, 160px); max-width: 1320px; }
.how__film { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: #f3eadf;
  box-shadow: 0 40px 80px -40px rgba(80, 52, 24, .5); }
.how__film video { width: 100%; height: 100%; object-fit: cover; }
.how__text { display: grid; gap: 28px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.how-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; }
.how-steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 600 1rem var(--sans); }
.how-steps strong { font: 600 1.25rem/1.3 var(--display); letter-spacing: -.02em; }
.how-steps span { color: var(--sc-ink-soft); line-height: 1.55; }

/* ---------------------------------------------------------------- 4. Pour (signature) */
.pour__stage { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: 1fr auto;
  align-items: center; column-gap: clamp(24px, 4vw, 72px); padding: calc(var(--head) + 3vh) var(--gut) 6vh; }
.pour__head { grid-column: 1; grid-row: 1; display: grid; gap: 18px; align-self: center; }
.pour__gauge { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: center; gap: 8px; }
.pour__svg { height: min(64svh, 560px); width: auto; overflow: visible; }
.pour__stream { fill: #2f8f76; }
.pour__ticks line { stroke: var(--sc-ink); stroke-opacity: .35; stroke-width: 2; }
.pour__ticks text { font: 500 15px var(--sans); fill: var(--sc-ink-soft); transition: fill .3s; }
.pour__ticks text.is-on { fill: var(--brand); font-weight: 700; }
.pour__volume { font: 600 clamp(2.4rem, 4vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pour__pick { grid-column: 3; grid-row: 1; justify-self: start; display: grid; gap: 14px; width: min(20rem, 100%); color: inherit; text-decoration: none; }
.pour__photo { display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--apricot); box-shadow: 0 30px 60px -30px rgba(80, 52, 24, .55); }
.pour__photo img { width: 100%; height: 100%; object-fit: cover; }
.pour__meta { display: grid; gap: 4px; }
.pour__meta strong { font: 500 1.15rem/1.3 var(--display); }
.pour__pick:hover strong { text-decoration: underline; }
.pour__go { grid-column: 3; grid-row: 2; justify-self: start; }

/* ---------------------------------------------------------------- 5. Catalog */
.catalog-sec { padding-bottom: clamp(56px, 10vh, 120px); }
.catalog-sec .catalog { padding-top: clamp(40px, 8vh, 96px); }
.catalog-sec .toolbar { align-items: baseline; }

/* ---------------------------------------------------------------- 6. Close */
.close__stage { background: var(--brand); color: #fff; display: flex; flex-direction: column; }
.close__plate { padding-top: calc(var(--head) + 10vh); display: grid; gap: 22px; max-width: 1320px; }
.close__plate .lede { color: #d6e6e0; max-width: 44ch; }
.close__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: var(--bg); border-color: var(--bg); color: var(--brand-hover); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--brand); border-color: #fff; }
.close .footer { margin-top: auto; background: transparent; padding-top: 40px; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 860px) {
  :root { --head: 64px; --hero-top: 105px; } /* two-row header on phones (logo row + search) */
  .hero__scrim { background: linear-gradient(180deg, color-mix(in oklab, var(--sc-canvas) 92%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 82%, transparent) 34%, color-mix(in oklab, var(--sc-canvas) 40%, transparent) 50%, transparent 60%); }
  .hero__copy { top: 20px; translate: none; width: auto; right: var(--gut); }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero__text { margin-top: 12px; font-size: .98rem; }
  .hero__cta { margin-top: 18px; }
  .hero__cta .btn--lg { min-height: 46px; padding: 0 20px; }
  .hero__note { display: none; } /* no free ground under the phone at this width; the close repeats the point */

  .rail__grid { --card: clamp(9.5rem, 42vw, 12rem); }
  .rail__lead { flex-basis: 72vw; }
  .rail__lead .lede { font-size: .95rem; }

  .how { grid-template-columns: 1fr; }

  .pour__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; row-gap: 14px; padding-bottom: 4vh; }
  .pour__head, .pour__gauge, .pour__pick, .pour__go { grid-column: 1; }
  .pour__head { grid-row: 1; gap: 8px; }
  .pour__head .lede { font-size: .95rem; }
  .pour__gauge { grid-row: 2; gap: 4px; }
  .pour__svg { height: min(34svh, 300px); }
  .pour__pick { grid-row: 3; grid-template-columns: 84px 1fr; align-items: center; width: 100%; }
  .pour__photo { border-radius: 16px; }
  .pour__go { grid-row: 4; }
  .close__plate { padding-top: calc(var(--head) + 6vh); }
}

@media (prefers-reduced-motion: reduce) {
  .oil, .oil__media img { transition: none; }
  /* No travel to watch: the rail becomes a grid and the pour a normal section, so no screen is held still. */
  #oils, #pour { height: auto !important; }
  #oils .sc-stage, #pour .sc-stage { position: relative; height: auto; overflow: visible; }
  #oils .sc-stage { padding-block: calc(var(--head) + 24px) 48px; }
  #oils .rail { flex-direction: column; align-items: stretch; transform: none !important; }
  #oils .rail__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
  #oils .rail__row > .oil { flex: none; }
  #oils .rail__lead, #oils .rail__end { flex-basis: auto; }
  #pour .pour__stage { min-height: 100svh; }
  #pour [data-sc-cue] { opacity: 1 !important; transform: none !important; }
}
