/* ==========================================================================
   SETL MAP — intro.css  (screen 01 · classes .in-*)
   Tokens only (tokens.css). Hover states use individual transform properties.
   ========================================================================== */

.screen[data-screen="intro"] { --scene-h: 40svh; }
@media (min-width: 600px) and (max-width: 1023px) and (min-height: 800px) {
  .screen[data-screen="intro"] { --scene-h: 46svh; }
  .in-cta { align-items: flex-start; }
  .in-cta .in-cta__btn { width: auto; min-width: 22rem; }
  .in-cta .in-demo { align-self: stretch; }
}

/* ───── hero (lives inside the scene slot) ───── */
.in-slot { background: transparent; box-shadow: none; }
/* the card chrome lives on the hero itself, so when the hero fades during the dock to «who» nothing opaque
   (flat sky colour, shadow) is left behind in the slot */
.in-slot > .in-hero { box-shadow: var(--shadow-scene); }
.in-hero {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; isolation: isolate;
  background: var(--sky-mid); touch-action: pan-y; contain: layout paint;
}
.in-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; --in-sw: 1.5; }
.in-L, .in-in { transform-box: view-box; }

/* linework: crisp ink, flat fills, dashed ghosts */
.in-s { fill: none; stroke: var(--ink); stroke-width: var(--in-sw); stroke-linecap: round; stroke-linejoin: round; }
.in-s--hair { stroke: var(--line-strong); stroke-width: calc(var(--in-sw) * .62); }
.in-s--glint { stroke: rgba(255, 253, 248, .85); }
.in-s--disc { stroke-width: calc(var(--in-sw) * 1.1); }
.in-f { stroke: none; }
.in-hatch { fill: url(#in-hatchpat); }
.in-g { fill: none; stroke: var(--ink-3); stroke-width: calc(var(--in-sw) * .9); stroke-dasharray: 4 5; stroke-linecap: round; stroke-linejoin: round; }
.in-g--furn { stroke: var(--line-strong); stroke-width: calc(var(--in-sw) * .85); }
.in-g--fig { stroke: var(--sun-deep); stroke-width: calc(var(--in-sw) * 1); stroke-dasharray: 3.5 4.5; fill: rgba(255, 217, 143, .38); }
.in-g--dog { stroke: var(--ink-2); stroke-width: calc(var(--in-sw) * 1.1); stroke-dasharray: 3 4; }
.in-q { font: italic 500 40px var(--font-display); fill: var(--sun-deep); }
.in-dash { fill: none; stroke: var(--line-strong); stroke-width: calc(var(--in-sw) * .8); stroke-dasharray: 18 14; stroke-linecap: round; }
.in-dog { opacity: 0; visibility: hidden; }

/* sky and weather */
.in-stars { opacity: calc(var(--night) * 2); }
.in-ray { fill: none; stroke: var(--sun-deep); stroke-width: calc(var(--in-sw) * .9); stroke-linecap: round; opacity: .7; }
.in-cloud path { fill: rgba(255, 250, 240, .55); }
.in-bird path { fill: none; stroke: var(--ink); stroke-width: calc(var(--in-sw) * .8); stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.in-smoke circle { fill: rgba(255, 250, 240, .75); }
.in-steam path { fill: none; stroke: rgba(94, 60, 24, .35); stroke-width: calc(var(--in-sw) * .9); stroke-linecap: round; }

/* light */
.in-beam { opacity: calc(.4 + var(--beam) * .7); }
.in-patch { fill: rgba(255, 217, 143, .6); }
.in-lit { fill: var(--glow); }
.in-lit--d { fill: #FFE9B8; }
.in-lampglow { opacity: var(--lamp); }
.in-lampglow--st { opacity: calc(var(--lamp) * .9 + .12); }
.in-bloom {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 70% 4%, rgba(255, 224, 160, .55) 0%, rgba(255, 217, 143, .18) 45%, rgba(255, 217, 143, 0) 75%);
}
.in-dust { position: absolute; left: 0; top: 0; pointer-events: none; }

/* stickers on the card: honest solid chips, not text on the picture */
.in-sticker { position: absolute; left: 14px; top: 14px; z-index: 3; min-height: 34px; padding: 0 14px 0 8px; font-size: 13px; background: var(--card-2); box-shadow: 3px 4px 0 rgba(42, 33, 27, .18); transform-origin: 20% 60%; }
.in-sticker .tag__icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.in-sticker .tag__icon svg { width: 13px; height: 13px; }
.in-clock {
  position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 14px 0 10px; border-radius: var(--r-pill); background: var(--glass-paper); border: 1.5px solid var(--line);
  font: 600 13px/1 var(--font-text); letter-spacing: .04em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink);
}
.in-clock__sun { display: inline-flex; width: 16px; height: 16px; color: var(--sun-deep); }
.in-clock__sun svg { width: 100%; height: 100%; }

/* manifest strip: «Здесь будет …» (solid, floats over the picture) */
.in-strip {
  position: absolute; left: 12px; right: 12px; bottom: 30px; z-index: 3; display: flex; align-items: stretch; height: 42px;
  border-radius: var(--r-pill); background: var(--glass-paper); border: 1.5px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden;
}
.in-strip__label {
  flex: none; display: inline-flex; align-items: center; padding: 0 14px 0 18px; position: relative; z-index: 2;
  font: 600 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--sun-deep); background: var(--card-2);
  box-shadow: 10px 0 12px -6px var(--card-2);
}
.in-strip__window { position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
.in-strip__track { display: flex; width: max-content; will-change: transform; }
.in-strip__set { display: flex; align-items: center; flex: none; }
.in-strip__item { flex: none; padding: 0 2px 0 0; font: italic 500 1.375rem/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--ink); white-space: nowrap; letter-spacing: -.005em; }
.in-star { flex: none; width: 13px; height: 13px; margin: 0 20px; fill: var(--sun); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
@media (min-width: 1024px), (orientation: landscape) and (max-height: 520px) {
  .in-strip { bottom: 14px; height: 52px; }
  .in-strip__item { font-size: 1.5rem; }
}

/* ───── panel ───── */
.in-panel { gap: 0; }
.in-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-3); }
.in-eyebrow__sun { display: inline-flex; width: 16px; height: 16px; color: var(--sun-deep); }
.in-eyebrow__sun svg { width: 100%; height: 100%; }
.in-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(3.375rem, min(7vw, 13svh), 6.5rem);
  font-weight: 500; line-height: var(--lh-tight); letter-spacing: var(--track-display); outline: none;
}
.in-title .ln { white-space: nowrap; }
.in-accent { position: relative; display: inline-block; font-style: italic; }
.in-accent__line { position: absolute; left: -1%; bottom: -.07em; width: 102%; height: .13em; overflow: visible; pointer-events: none; }
.in-accent__line path { fill: none; stroke: var(--sun); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.in-spark { position: absolute; width: .26em; height: .26em; fill: var(--sun); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; overflow: visible; pointer-events: none; }
.in-spark--a { right: -.2em; top: .04em; }
.in-spark--b { right: .12em; top: -.02em; width: .16em; height: .16em; }
.in-five { display: inline-block; min-width: .5em; font-variant-numeric: lining-nums tabular-nums; }
.in-lead { margin: 0 0 var(--space-4); max-width: min(25em, 34rem); }
.in-facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none;
  font: 500 var(--fs-small)/1.2 var(--font-text); color: var(--ink-2);
}
.in-facts li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.in-facts__i { display: inline-flex; width: 18px; height: 18px; color: var(--sun-deep); }
.in-facts__i svg { width: 100%; height: 100%; }
.in-cta { gap: 6px; }
.in-cta__wrap { display: block; }
.in-cta__btn { width: 100%; }
.in-note { display: none; margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-3); max-width: 14rem; }
.in-cta .in-demo { padding: 2px 0 0; text-align: center; }

/* mobile: bottom sheet with a sticky bar */
@media (max-width: 1023px) {
  .in-sticker, .in-clock { top: 10px; }
  .in-sticker { left: 12px; }
  .in-clock { right: 12px; }
  .in-eyebrow { margin-bottom: var(--space-2); }
  .in-title { margin-bottom: var(--space-3); }
  .in-lead { margin-bottom: 0; }
  .in-facts { margin-top: var(--space-3); padding-bottom: var(--space-3); }
  .in-cta { padding-top: 4px; }
}
@media (max-width: 1023px) { .in-facts { gap: 6px 14px; font-size: 13px; } .in-facts__i { width: 16px; height: 16px; } }
@media (max-width: 380px) { .in-facts { gap: 6px 10px; font-size: 12.5px; } .in-strip__item { font-size: 1.25rem; } }

/* desktop and landscape phones: split layout */
@media (min-width: 1024px), (orientation: landscape) and (max-height: 520px) {
  .screen[data-screen="intro"] .panel { grid-column: 1 / span 6; grid-row: 1; align-self: center; max-width: none; padding-bottom: var(--space-4); z-index: calc(var(--z-scene) + 1); }
  .screen[data-screen="intro"] .scene-slot { grid-column: 6 / -1; grid-row: 1; }
  .in-eyebrow { order: 1; margin-bottom: var(--space-4); }
  .in-title { order: 2; margin-bottom: var(--space-5); }
  .in-lead { order: 3; margin-bottom: var(--space-6); font-size: var(--fs-lead); }
  .in-cta { order: 4; margin: 0; align-items: center; gap: var(--space-5); }
  .in-facts { order: 5; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-soft); max-width: 34rem; gap: 10px 26px; }
  .in-cta .btn--primary { min-height: 60px; padding: 0 38px; font-size: 17px; }
  .in-cta__btn { width: auto; }
  .in-cta .in-demo { display: none; }
}
/* the note sits under the CTA until the left column is wide enough to hold it beside the button
   without reaching the scene card */
@media (min-width: 1200px) {
  .in-note { display: block; }
  .in-cta { flex-wrap: wrap; row-gap: var(--space-3); }
  .in-cta__wrap { flex: none; }
  .in-note { flex: 1 1 100%; max-width: 26rem; margin-top: calc(-1 * var(--space-2)); }
  .in-facts { max-width: 30rem; }
}
@media (min-width: 1500px) {
  .in-cta { flex-wrap: nowrap; }
  .in-note { flex: 0 1 auto; max-width: 15rem; margin-top: 0; }
  .in-facts { max-width: 34rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .screen[data-screen="intro"] .panel { grid-column: 1 / span 5; overflow-y: auto; max-height: 100%; }
  .in-title { font-size: clamp(1.5rem, 8.5vh, 2.4rem); margin-bottom: var(--space-2); }
  .in-eyebrow { display: none; }
  .in-facts { display: none; }
  .in-lead { font-size: .8125rem; line-height: 1.4; margin-bottom: var(--space-3); max-width: 100%; }
  .in-cta { gap: var(--space-3); }
  .in-cta .btn--primary { min-height: 48px; padding: 0 24px; font-size: 15px; }
  .in-note { display: none; }
  .in-strip { height: 36px; bottom: 10px; }
  .in-strip__item { font-size: 1.125rem; }
  .in-sticker, .in-clock { top: 10px; min-height: 28px; font-size: 12px; }
}

@media (min-width: 1024px) { .screen[data-screen="intro"] .panel { overflow: visible; } }
/* very tall cards (big monitors) would be mostly lawn: keep the picture close to square */
@media (min-width: 1024px) and (min-height: 600px) {
  .screen[data-screen="intro"] .scene-slot { height: auto; aspect-ratio: 1 / 1.06; max-height: calc(100svh - var(--header-h) - var(--safe-t) - 52px); align-self: center; }
}

/* hover (fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .in-sticker { transition: rotate var(--dur-s) var(--ease-spring), translate var(--dur-s) var(--ease-spring); }
  .in-sticker:hover { rotate: 3deg; translate: 0 -2px; }
}

/* reduced motion: static strip, no pulse */
html.rm .in-strip__track { transform: none !important; }
html.rm .in-strip__set + .in-strip__set { display: none; }
html.rm .in-cta .btn--pulse::after { animation: none; }

/* portrait tablets: the sheet has room, so let the headline breathe */
@media (min-width: 600px) and (max-width: 1023px) and (min-height: 800px) {
  .in-title { font-size: clamp(3.375rem, 11.5vw, 6.25rem); margin-bottom: var(--space-4); }
  .in-lead { font-size: var(--fs-lead); max-width: 30em; }
  .in-facts { margin-top: var(--space-5); font-size: 15px; }
  .in-eyebrow { margin-bottom: var(--space-4); }
}

/* short phones: smaller picture, tighter type, so the CTA stays in the flow below the copy */
@media (max-height: 760px) and (max-width: 1023px) and (orientation: portrait) {
  .screen[data-screen="intro"] { --scene-h: 30svh; }
  .in-strip { bottom: 16px; height: 38px; }
  .in-strip__item { font-size: 1.25rem; }
}
@media (max-height: 700px) and (max-width: 1023px) and (orientation: portrait) {
  .screen[data-screen="intro"] { --scene-h: 28svh; }
  .in-facts { display: none; }
  .in-title { font-size: clamp(2.75rem, 13svh, 3.375rem); }
  .in-lead { font-size: .9375rem; line-height: 1.4; }
  .in-cta { padding-top: var(--space-3); }
}
@media (max-height: 580px) and (max-width: 1023px) and (orientation: portrait) {
  .screen[data-screen="intro"] { --scene-h: 24svh; }
  .in-eyebrow { display: none; }
}

/* short desktop windows (laptops with browser chrome): keep the whole column clear of the header and the demo tag */
@media (min-width: 1024px) and (max-height: 800px) {
  .in-title { font-size: clamp(3rem, 10.5svh, 6rem); margin-bottom: var(--space-4); }
  .in-eyebrow { margin-bottom: var(--space-3); }
  .in-lead { margin-bottom: var(--space-5); }
  .in-facts { margin-top: var(--space-5); padding-top: var(--space-4); }
}
