/*
 * The public pages' ONE stylesheet (docs/26-landing.md §9, D598): the landing in four languages, «امتحان کنید»,
 * /download and the wallet's callback page. Served under /landing/ with `style-src 'self'`: every rule lives
 * here, never in a style="" attribute (D91). Both directions: spacing and placement are logical properties.
 * Motion (D596): only transform, opacity, stroke-dashoffset, clip-path and colours move; an element's own style
 * is its most telling frame, so under reduced motion every picture simply stands still on it.
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #f6f5f1;
  --bg-alt: #edf2ee;
  --surface: #ffffff;
  --surface-2: #f2f3ef;
  --ink: #10201d;
  --ink-2: #34443f;
  --muted: #5d6c68;
  --line: rgb(16 32 29 / 0.09);
  --line-strong: rgb(16 32 29 / 0.16);
  --brand: #0f766e;
  --brand-strong: #0b5c56;
  --brand-soft: #dbf2ec;
  --brand-ink: #ffffff;
  --accent: #c2410c;
  --accent-soft: #ffedd5;
  --header-bg: rgb(255 255 255 / 0.82);
  --shell: rgb(255 255 255 / 0.55);
  --ring: 0 0 0 1px rgb(16 32 29 / 0.07);
  --shadow-1: 0 1px 2px rgb(16 32 29 / 0.05), 0 6px 18px -10px rgb(16 32 29 / 0.14);
  --shadow-2: 0 1px 2px rgb(16 32 29 / 0.04), 0 24px 48px -24px rgb(16 32 29 / 0.22), 0 60px 90px -60px rgb(16 32 29 / 0.25);
  --shadow-brand: 0 12px 30px -12px rgb(15 118 110 / 0.6);

  /* The accents of the icon tiles (the app's AppAccent, D241): ink on its own soft tint. */
  --teal-ink: #0f766e;   --teal-soft: #dbf2ec;
  --amber-ink: #a15c07;  --amber-soft: #fdf0d5;
  --rose-ink: #be185d;   --rose-soft: #fce4ef;
  --sky-ink: #1d64b0;    --sky-soft: #dfeefc;
  --violet-ink: #6d3fc0; --violet-soft: #ece4fb;

  /* The drawing language of the app's plan (PlanPalette, D381). */
  --paper: #ffffff;
  --grid: #e6ebee;
  --grid-2: #cdd5dc;
  --wall-ink: #37474f;
  --plan-wood: #f3e3c6;
  --plan-wood-line: #6d4c41;
  --plan-teal: #ccede8;
  --plan-teal-line: #00796b;
  --plan-lav: #e6dff2;
  --plan-lav-line: #5e4b9c;
  --door-ink: #d9480f;
  --door-fill: #ffe3cc;
  --window-ink: #0277a8;
  --window-fill: #d5eef8;
  --dim-ink: #0d47a1;
  --sel: #1e88e5;
  --draw-ink: #1b2733;
  --stage-bg: #eef1ee;

  /* The rendered kitchen (the same in both themes: a picture is a picture). */
  --fr: #f1ece4;
  --fr-base: #a9b8a6;
  --fr-line: rgb(70 56 40 / 0.32);
  --hd: #565d66;
  --ct: #c4bdb2;
  --ct-edge: #aaa398;
  --pl: #3f3c39;
  --carcass: #f3efe8;
  --wall-3d: #e3ddd2;
  --wall-top: #c9c1b4;
  --floor-3d: #d3c3ad;

  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --r-s: 12px;
  --r: 18px;
  --r-l: 26px;
  --r-xl: 34px;
  --wrap: 75rem;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 128px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1514;
    --bg-alt: #0d1b19;
    --surface: #111f1d;
    --surface-2: #172725;
    --ink: #e7efed;
    --ink-2: #c2cfcb;
    --muted: #8fa19c;
    --line: rgb(231 239 237 / 0.09);
    --line-strong: rgb(231 239 237 / 0.16);
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #0f3833;
    --brand-ink: #04201d;
    --accent: #fb923c;
    --accent-soft: #3a2210;
    --header-bg: rgb(17 31 29 / 0.82);
    --shell: rgb(255 255 255 / 0.04);
    --ring: 0 0 0 1px rgb(231 239 237 / 0.08);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px -10px rgb(0 0 0 / 0.6);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -24px rgb(0 0 0 / 0.7), 0 60px 90px -60px rgb(0 0 0 / 0.8);
    --shadow-brand: 0 12px 30px -12px rgb(45 212 191 / 0.45);

    --teal-ink: #5eead4;   --teal-soft: #0f3833;
    --amber-ink: #fbbf24;  --amber-soft: #3a2a0b;
    --rose-ink: #f9a8d4;   --rose-soft: #3d1426;
    --sky-ink: #93c5fd;    --sky-soft: #10284a;
    --violet-ink: #c4b5fd; --violet-soft: #2a1d4d;

    --paper: #0f1c1b;
    --grid: #1a2b29;
    --grid-2: #27403c;
    --wall-ink: #c9d6d3;
    --plan-wood: #3b2f22;
    --plan-wood-line: #d9b48a;
    --plan-teal: #13403b;
    --plan-teal-line: #4fd1c5;
    --plan-lav: #2f2742;
    --plan-lav-line: #b9a6f0;
    --door-ink: #ff8a50;
    --door-fill: #3e2414;
    --window-ink: #4fc3f7;
    --window-fill: #0e3247;
    --dim-ink: #90caf9;
    --sel: #64b5f6;
    --draw-ink: #dce6e3;
    --stage-bg: #0d1a19;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

:lang(en), :lang(tr) { line-height: 1.6; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
bdi { unicode-bidi: isolate; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 1.1em; height: 1.1em; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* ── Header: a floating island ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px var(--gutter) 0;
  padding-top: max(10px, env(safe-area-inset-top));
}

.header-island {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px;
  padding-inline-start: 14px;
  border-radius: 22px;
  background: var(--header-bg);
  box-shadow: var(--ring), var(--shadow-1);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-inline-end: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }

.nav { display: none; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

@media (min-width: 1040px) {
  .nav { display: block; margin-inline-end: auto; }
  .brand { margin-inline-end: 12px; }
}

.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 12px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background 0.4s var(--ease);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface-2); }
.lang-code { font-size: 0.9rem; min-width: 1.3em; text-align: center; }
.lang-chevron { transition: transform 0.5s var(--ease); }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 25;
  min-width: 210px;
  padding: 6px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-2);
  animation: pop-in 0.45s var(--ease);
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding-inline: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
}
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current] { color: var(--brand); }
.lang-list .icon { margin-inline-start: auto; }
.lang-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.85rem;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

/* ── Buttons and chips ──────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding-inline: 14px 16px; font-size: 0.95rem; }
.btn-lg { min-height: 58px; padding-inline: 26px; font-size: 1.05rem; }
.btn-lg:has(.btn-orb) { padding-inline: 26px 8px; }
.btn-lg:has(.btn-orb:first-child) { padding-inline: 8px 26px; }

.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--ring), var(--shadow-1); }
.btn-ghost:hover { box-shadow: var(--ring), var(--shadow-2); }
.btn-light { background: #ffffff; color: #0b5c56; }

.btn-orb {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  transition: transform 0.6s var(--ease);
}
.btn-orb .icon { width: 20px; height: 20px; }
.btn-orb-soft { background: var(--brand-soft); color: var(--brand); }
.btn-light .btn-orb { background: var(--brand-soft); color: #0b5c56; }
.btn:hover .btn-orb { transform: translateX(3px) scale(1.05); }
[dir="rtl"] .btn:hover .btn-orb { transform: translateX(-3px) scale(1.05); }
.btn-primary .icon { stroke-width: 2; }
.btn-sm .icon { width: 20px; height: 20px; }

@media (max-width: 380px) {
  .header-island .btn-sm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-island .btn-sm { padding-inline: 12px; }
}

/* A left-to-right run of numbers keeps its order in every script: Arabic-Indic digits are "Arabic numbers" to the
   bidi algorithm, and two of them around a × or a space would otherwise be shown the other way round. */
bdi[dir="ltr"], .contact-value[dir="ltr"], .site-footer a[dir="ltr"], .pic [direction="ltr"] { unicode-bidi: bidi-override; }

/* ── Sections ───────────────────────────────────────────────────────────────────────────────── */

.section, .tour { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-head-start { margin-inline: 0; text-align: start; }
.section-head h2 {
  font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}
.kicker .icon { width: 18px; height: 18px; }

/* ── Hero ───────────────────────────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(28px, 6vw, 88px) clamp(40px, 6vw, 96px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}
.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: relative;
  z-index: 0;
}
.eyebrow-dot::before, .eyebrow-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.eyebrow-dot::before { background: var(--brand); }
.eyebrow-dot::after { inset: -4px; z-index: -1; background: var(--brand-soft); animation: breathe 2.8s var(--ease-io) infinite; }

.hero h1 {
  font-size: clamp(2.05rem, 1.15rem + 4vw, 3.9rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--brand); }
.lead {
  margin-top: 20px;
  max-width: 36rem;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 0.96rem + 0.45vw, 1.22rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 0.93rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { color: var(--brand); width: 20px; height: 20px; }

@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

.hero-visual { width: 100%; max-width: 600px; margin-inline: auto; }

/* ── The app-like frame: a shell around a core (double bezel) ───────────────────────────────── */

.screen {
  padding: 6px;
  border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: var(--ring), var(--shadow-2);
}
.screen-core {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 6px);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
  container-type: inline-size;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.bar-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.bar-icon .icon { width: 18px; height: 18px; }
.bar-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.phases { display: flex; gap: 4px; margin-inline-start: auto; }
.phase, .tool, .seg-item { position: relative; z-index: 0; }
.phase::before, .tool::before, .seg-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand-soft);
  opacity: 0;
}
.seg-item::before { background: var(--surface); box-shadow: var(--shadow-1); }
.phase {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding-inline: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
@container (max-width: 420px) {
  .screen-hero .bar-title { display: none; }
  .screen-hero .phases { margin-inline: auto; }
}
.screen-body {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: var(--stage-bg);
}

/* ── The 3D kitchen (D594): millimetres × --u, faces a camera from the south-east sees ───────── */

.stage {
  --u: calc(100cqw / 5900);
  position: absolute;
  inset: 0;
  perspective: calc(14000 * var(--u));
  perspective-origin: 50% 35%;
}

.k3d-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(3840 * var(--u));
  height: calc(2840 * var(--u));
  transform-style: preserve-3d;
  transform: translate(-50%, -34%) rotateX(58deg) rotateZ(36deg);
}

.k3d-floor {
  position: absolute;
  left: calc(120 * var(--u));
  top: calc(120 * var(--u));
  width: calc(3600 * var(--u));
  height: calc(2600 * var(--u));
  background-color: var(--floor-3d);
  background-image:
    linear-gradient(90deg, rgb(80 60 40 / 0.12) 1px, transparent 1px),
    linear-gradient(rgb(80 60 40 / 0.12) 1px, transparent 1px),
    radial-gradient(120% 90% at 20% 20%, rgb(255 250 240 / 0.55), transparent 60%);
  background-size: calc(600 * var(--u)) calc(600 * var(--u)), calc(600 * var(--u)) calc(600 * var(--u)), 100% 100%;
}

.k3d-plan {
  position: absolute;
  left: calc(-120 * var(--u));
  top: calc(-120 * var(--u));
  width: calc(3840 * var(--u));
  height: calc(2840 * var(--u));
  max-width: none;
  overflow: visible;
  opacity: 0;
}

.k3d-box {
  position: absolute;
  left: calc((var(--x) + 120) * var(--u));
  top: calc((var(--y) + 120) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--d) * var(--u));
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z, 0) * var(--u)));
}

.kf { position: absolute; display: block; }
.kf-top {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(calc(var(--h) * var(--u)));
}
.kf-s {
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--h) * var(--u));
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}
.kf-e {
  right: 0;
  top: 0;
  width: calc(var(--h) * var(--u));
  height: 100%;
  transform-origin: 100% 50%;
  transform: rotateY(90deg);
}

.kb-wall-n { --x: -120; --y: -120; --w: 3840; --d: 120; --h: 2500; }
.kb-wall-w { --x: -120; --y: 0; --w: 120; --d: 2720; --h: 2500; }
.kb { --y: 0; --d: 600; --h: 870; }
.kb-b1 { --x: 0; --w: 900; }
.kb-b2 { --x: 900; --w: 600; }
.kb-b3 { --x: 1500; --w: 600; }
.kb-b4 { --x: 2100; --w: 600; }
.kb-b5 { --x: 0; --y: 600; --w: 600; --d: 600; }
.kb-b6 { --x: 0; --y: 1200; --w: 600; --d: 800; }
.kb-tall { --x: 2700; --w: 600; --d: 620; --h: 2200; }
.kb-hang { --y: 0; --d: 330; --h: 700; --z: 1450; }
.kb-w1 { --x: 0; --w: 900; }
.kb-w2 { --x: 900; --w: 600; }
.kb-w3 { --x: 1500; --w: 600; }
.kb-w4 { --x: 2100; --w: 600; }

.kf-wall { background: linear-gradient(180deg, #ece7de, var(--wall-3d) 70%); }
.kf-e.kf-wall { background: linear-gradient(90deg, #ece7de, var(--wall-3d) 70%); }
.kf-wall-top { background: var(--wall-top); }
.kf-wall-end { background: #b8b0a3; }
.kf-counter {
  background: linear-gradient(135deg, #d3cdc4, var(--ct) 55%, #b9b2a7);
  box-shadow: inset 0 0 0 1px rgb(60 50 40 / 0.18);
}
.stage-hero .kb .kf-top::before, .stage-hero .kb-tall .kf-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plan-wood);
  box-shadow: inset 0 0 0 calc(18 * var(--u)) var(--plan-wood-line);
  opacity: 0;
}
.stage-hero .k3d-floor::before { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: 0; }
.kf-carcass { background: var(--carcass); box-shadow: inset 0 0 0 1px rgb(60 50 40 / 0.14); }
.kw-window {
  position: absolute;
  left: 40%;
  top: 42%;
  width: 46%;
  height: 30%;
  border: calc(40 * var(--u)) solid #f7f4ee;
  background: linear-gradient(90deg, #cfe8f4, #f1f9fd 60%, #d9eef8);
  box-shadow: 0 0 0 1px rgb(60 50 40 / 0.2);
}
.kw-window::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: calc(30 * var(--u));
  background: #f7f4ee;
}

/* A front: the face's own colour, its outline, the worktop's edge on top and the plinth under it. */
.fp {
  background-color: var(--fr);
  box-shadow: inset 0 0 0 1px var(--fr-line);
}
.kb .fp { background-color: var(--fr-base); }
.fp-side { background: var(--carcass); box-shadow: inset 0 0 0 1px var(--fr-line); }
.kb .kf-s.fp::before, .kb .kf-s.fp::after,
.kb .kf-e.fp::before, .kb .kf-e.fp::after,
.kb-tall .kf-s.fp::after { content: ""; position: absolute; }
.kb .kf-s.fp::before { left: 0; right: 0; top: 0; height: 4.6%; background: var(--ct-edge); }
.kb .kf-s.fp::after { left: 0; right: 0; bottom: 0; height: 11.5%; background: var(--pl); }
.kb .kf-e.fp::before { top: 0; bottom: 0; left: 0; width: 4.6%; background: var(--ct-edge); }
.kb .kf-e.fp::after { top: 0; bottom: 0; right: 0; width: 11.5%; background: var(--pl); }
.kb-tall .kf-s.fp::before { display: none; }
.kb-tall .kf-s.fp::after { height: 4.5%; }
.kf-e.fp, .kf-e.fp-side { box-shadow: inset 0 0 0 1px var(--fr-line), inset 0 0 0 999px rgb(40 30 20 / 0.08); }
.kb .kf-top + .kf-s.fp-side, .kb-b6 .kf-s.fp-side { box-shadow: inset 0 0 0 1px var(--fr-line), inset 0 0 0 999px rgb(40 30 20 / 0.04); }

.fp-pair { background-image: linear-gradient(90deg, transparent calc(50% - 1px), var(--fr-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.fp-drawers {
  background-image: linear-gradient(transparent 32.3%, var(--fr-line) 32.3% 32.9%, transparent 32.9% 60.2%, var(--fr-line) 60.2% 60.8%, transparent 60.8%);
}
.fp-e.fp-pair { background-image: linear-gradient(transparent calc(50% - 1px), var(--fr-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.fp-e.fp-drawers {
  background-image: linear-gradient(90deg, transparent 32.3%, var(--fr-line) 32.3% 32.9%, transparent 32.9% 60.2%, var(--fr-line) 60.2% 60.8%, transparent 60.8%);
}
.fp-tall {
  background-image:
    linear-gradient(transparent 37.8%, var(--fr-line) 37.8% 38.3%, transparent 38.3%),
    linear-gradient(90deg, transparent 86%, var(--hd) 86% 88%, transparent 88%);
  background-size: 100% 100%, 100% 12%;
  background-position: 0 0, 0 44%;
  background-repeat: no-repeat;
}
.fp-wall, .fp-wall-2 {
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--fr-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 44%, var(--hd) 44% 46%, transparent 46% 54%, var(--hd) 54% 56%, transparent 56%);
  background-size: 100% 100%, 100% 16%;
  background-position: 0 0, 0 88%;
  background-repeat: no-repeat;
}
.fp-wall-lift {
  background-image: linear-gradient(90deg, transparent 32%, var(--hd) 32% 68%, transparent 68%);
  background-size: 100% 3%;
  background-position: 0 90%;
  background-repeat: no-repeat;
}
.fp-door { background-image: linear-gradient(90deg, transparent 88%, var(--hd) 88% 89.6%, transparent 89.6%); background-size: 100% 16%; background-position: 0 16%; background-repeat: no-repeat; }
.fp-dw { background-image: linear-gradient(90deg, transparent 30%, var(--hd) 30% 70%, transparent 70%); background-size: 100% 2.4%; background-position: 0 10%; }
.kb-b4 .fp-drawers, .kb-b5 .fp-drawers { box-shadow: inset 0 0 0 1px var(--fr-line); }

/* The hero's light, over the stage: the window's warmth once the kitchen is rendered. */
.hero-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 22% 38%, rgb(255 236 200 / 0.42), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgb(16 32 29 / 0.06));
}
.hero-body { aspect-ratio: 1 / 0.86; }

/* ── The hero's loop (14 s): the plan drawn → tipped into 3D → standing → rendered ───────────── */

.stage-hero { animation: hero-stage 14s var(--ease-io) infinite; }
.stage-hero .k3d-world { animation: hero-world 14s var(--ease-io) infinite; }
.stage-hero .k3d-plan { animation: hero-plan 14s var(--ease-io) infinite; }
.stage-hero .kp-wall { stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage-hero .kp-wall-1 { animation: hero-wall-1 14s linear infinite; }
.stage-hero .kp-wall-2 { animation: hero-wall-2 14s linear infinite; }
.stage-hero .kp-wall-3 { animation: hero-wall-3 14s linear infinite; }
.stage-hero .kp-wall-4 { animation: hero-wall-4 14s linear infinite; }
.stage-hero .kp-openings { animation: hero-openings 14s var(--ease) infinite; }
.stage-hero .kp-dims { animation: hero-dims 14s var(--ease) infinite; }
.stage-hero .kf-top { animation: hero-top 14s var(--ease-io) infinite; }
.stage-hero .kf-s { animation: hero-rise-s 14s var(--ease-io) infinite; }
.stage-hero .kf-e { animation: hero-rise-e 14s var(--ease-io) infinite; }
.stage-hero .kb-hang { animation: hero-drop 14s var(--ease) infinite; }
.stage-hero .kb-hang .kf { animation: hero-hang-face 14s var(--ease) infinite; }
.stage-hero .kb .kf-top::before, .stage-hero .kb-tall .kf-top::before { animation: hero-top-ink 14s var(--ease-io) infinite; }
.stage-hero .k3d-floor::before { animation: hero-floor-paper 14s var(--ease-io) infinite; }
.hero-body .hero-light { animation: hero-light 14s var(--ease-io) infinite; }
.screen-hero .hph-1::before { animation: phase-1 14s var(--ease) infinite; }
.screen-hero .hph-2::before { animation: phase-2 14s var(--ease) infinite; }
.screen-hero .hph-3::before { animation: phase-3 14s var(--ease) infinite; }

@keyframes hero-stage {
  0% { opacity: 0; }
  3%, 93% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes hero-world {
  0%, 34% { transform: translate(-50%, -50%) rotateX(0deg) rotateZ(0deg) scale(1.22); }
  50% { transform: translate(-50%, -34%) rotateX(58deg) rotateZ(36deg) scale(1); }
  93% { transform: translate(-50%, -34%) rotateX(58deg) rotateZ(28deg) scale(1); }
  97% { transform: translate(-50%, -34%) rotateX(58deg) rotateZ(28deg) scale(1); }
  100% { transform: translate(-50%, -50%) rotateX(0deg) rotateZ(0deg) scale(1.22); }
}
@keyframes hero-plan {
  0%, 40% { opacity: 1; }
  52%, 100% { opacity: 0; }
}
@keyframes hero-wall-1 { 0%, 3% { stroke-dashoffset: 1; } 8%, 100% { stroke-dashoffset: 0; } }
@keyframes hero-wall-2 { 0%, 8% { stroke-dashoffset: 1; } 12%, 100% { stroke-dashoffset: 0; } }
@keyframes hero-wall-3 { 0%, 12% { stroke-dashoffset: 1; } 16%, 100% { stroke-dashoffset: 0; } }
@keyframes hero-wall-4 { 0%, 16% { stroke-dashoffset: 1; } 19%, 100% { stroke-dashoffset: 0; } }
@keyframes hero-openings { 0%, 18% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes hero-dims { 0%, 19% { opacity: 0; } 24%, 38% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes hero-top {
  0%, 21% { transform: translateZ(0) scale(0.55); opacity: 0; }
  30%, 44% { transform: translateZ(0) scale(1); opacity: 1; }
  60%, 96% { transform: translateZ(calc(var(--h) * var(--u))) scale(1); opacity: 1; }
  100% { transform: translateZ(0) scale(0.55); opacity: 0; }
}
@keyframes hero-rise-s {
  0%, 44% { transform: rotateX(-90deg) scaleY(0.001); }
  60%, 96% { transform: rotateX(-90deg) scaleY(1); }
  100% { transform: rotateX(-90deg) scaleY(0.001); }
}
@keyframes hero-rise-e {
  0%, 44% { transform: rotateY(90deg) scaleX(0.001); }
  60%, 96% { transform: rotateY(90deg) scaleX(1); }
  100% { transform: rotateY(90deg) scaleX(0.001); }
}
@keyframes hero-drop {
  0%, 58% { transform: translateZ(calc((var(--z) + 700) * var(--u))); }
  68%, 100% { transform: translateZ(calc(var(--z) * var(--u))); }
}
@keyframes hero-hang-face { 0%, 58% { opacity: 0; } 66%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hero-light { 0%, 62% { opacity: 0; } 74%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* The plan on the floor (the hero's first phase), in the plan's own inks. */
.kp-paper { fill: var(--paper); }
.kp-grid line { stroke: var(--grid); stroke-width: 10; }
.kp-wall { fill: none; stroke: var(--wall-ink); stroke-width: 120; stroke-linecap: square; }
.kp-window { fill: var(--window-fill); stroke: var(--window-ink); stroke-width: 24; }
.kp-gap { fill: var(--paper); }
.kp-door { fill: none; stroke: var(--door-ink); stroke-width: 26; }
.kp-dim { fill: none; stroke: var(--dim-ink); stroke-width: 14; stroke-dasharray: 60 40; }
.kp-pill { fill: var(--paper); stroke: var(--dim-ink); stroke-width: 14; }
.kp-label { fill: var(--dim-ink); font-size: 170px; font-weight: 700; font-family: var(--font); }

/* ── The tour ───────────────────────────────────────────────────────────────────────────────── */

.steps-rail { padding-bottom: 8px; }
.steps-rail ol {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 4px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.steps-rail ol::-webkit-scrollbar { display: none; }
.steps-rail li { flex: none; scroll-snap-align: start; }
.steps-rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), color 0.3s var(--ease);
}
.steps-rail a:hover { color: var(--brand); transform: translateY(-2px); }
.steps-rail .icon { width: 18px; height: 18px; color: var(--brand); }
.rail-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
}
@media (min-width: 1000px) {
  .steps-rail ol { justify-content: center; flex-wrap: wrap; }
}

.tour { padding-top: clamp(40px, 6vw, 80px); }

.scene {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 72px);
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
@media (min-width: 960px) {
  .scene { grid-template-columns: 0.86fr 1.14fr; }
  .scene:nth-of-type(even) .scene-copy { order: 2; }
}
.scene-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}
.scene-step .icon { width: 20px; height: 20px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.88rem;
}
.scene h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.scene-copy > p { margin-top: 14px; max-width: 34rem; color: var(--ink-2); font-size: clamp(1rem, 0.96rem + 0.3vw, 1.13rem); }
.scene-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.scene-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 14px 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
}
.scene-points .icon { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.2; }
.scene-figure { width: 100%; max-width: 620px; margin-inline: auto; }

.tour-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.tour-note .icon { width: 18px; height: 18px; color: var(--brand); }
.tour-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-2);
}
.tour-try h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
.tour-try p { margin-top: 6px; color: var(--muted); }
@media (max-width: 479px) { .tour-try .btn { width: 100%; } }

.pic { width: 100%; height: auto; overflow: hidden; font-family: var(--font); }
.pic text { font-family: var(--font); }

/* A scene's tool row, lit in step with its picture. */
.dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.tool .icon { width: 18px; height: 18px; }
.swatches { display: inline-flex; gap: 8px; margin-inline-start: auto; padding-inline: 6px; }
@container (max-width: 460px) {
  .dock { gap: 2px; padding: 6px; }
  .tool { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; height: auto; min-height: 50px; padding: 4px 2px; font-size: 0.72rem; }
  .swatches { flex-direction: column; gap: 5px; padding-inline: 4px 2px; }
  .sw { width: 11px; height: 11px; }
  .seg-item .icon { display: none; }
  .seg-item { padding-inline: 4px; font-size: 0.72rem; }
}
.sw { position: relative; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); }
.sw::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--brand); opacity: 0; }
.sw-walnut { background: #8a5a3b; }
.sw-graphite { background: #3d4247; }
.sw-white { background: #f4f0e8; }

.phase-on::before, .seg-4::before { opacity: 1; }
.phase .icon, .tool .icon, .seg-item .icon { color: var(--brand); }

/* Fade a loop in and out so its restart is never seen. */
@keyframes scene-fade-12 { 0% { opacity: 0; } 3%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes scene-fade-16 { 0% { opacity: 0; } 3%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes scene-fade-10 { 0% { opacity: 0; } 3%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }

/* ── ① The plan (12 s): a finger draws three walls, a door, a window; the units drop in ───────── */

.plan-body .pic { animation: scene-fade-12 12s var(--ease-io) infinite; }
.pl-paper { fill: var(--paper); }
.pl-grid-line { fill: none; stroke: var(--grid); stroke-width: 1; }
.pl-wall { fill: none; stroke: var(--wall-ink); stroke-width: 8; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pl-unit { fill: var(--plan-wood); stroke: var(--plan-wood-line); stroke-width: 1.2; }
.pl-unit.pl-tall { fill: var(--plan-lav); stroke: var(--plan-lav-line); }
.pl-hang { fill: var(--plan-teal); fill-opacity: 0.7; stroke: var(--plan-teal-line); stroke-width: 1.2; stroke-dasharray: 4 3; }
.pl-unit-labels text { fill: var(--plan-wood-line); font-size: 9px; font-weight: 700; text-anchor: middle; }
.pl-window rect { fill: var(--window-fill); stroke: var(--window-ink); stroke-width: 1.5; }
.pl-window path { fill: none; stroke: var(--window-ink); stroke-width: 1; }
.pl-door path { fill: none; stroke: var(--door-ink); stroke-width: 2; }
.pl-door .pl-swing { stroke-width: 1.4; stroke-dasharray: 3 3; }
.pl-gap { fill: var(--paper); }
.pl-pill rect { fill: var(--paper); stroke: var(--dim-ink); stroke-width: 1.2; }
.pl-pill text { fill: var(--dim-ink); font-size: 10px; font-weight: 700; text-anchor: middle; }
.pl-finger { opacity: 0; transform: translate(196px, 290px); }
.pl-finger-ring { fill: rgb(30 136 229 / 0.16); stroke: var(--sel); stroke-width: 1.5; }
.pl-finger-dot { fill: var(--sel); }
.pl-pill, .pl-door, .pl-window, .pl-units > *, .pl-unit-labels > * { transform-box: fill-box; transform-origin: center; }

.screen-plan .pl-w1 { animation: pl-w1 12s linear infinite; }
.screen-plan .pl-w2 { animation: pl-w2 12s linear infinite; }
.screen-plan .pl-w3 { animation: pl-w3 12s linear infinite; }
.screen-plan .pl-p1 { animation: pl-p1 12s var(--ease) infinite; }
.screen-plan .pl-p2 { animation: pl-p2 12s var(--ease) infinite; }
.screen-plan .pl-p3 { animation: pl-p3 12s var(--ease) infinite; }
.screen-plan .pl-door { animation: pl-door 12s var(--ease) infinite; }
.screen-plan .pl-window { animation: pl-window 12s var(--ease) infinite; }
.screen-plan .pl-finger { animation: pl-finger 12s var(--ease-io) infinite; }
.screen-plan .pl-u1, .screen-plan .pl-u2 { animation: pl-drop-a 12s var(--ease) infinite; }
.screen-plan .pl-u3, .screen-plan .pl-u4 { animation: pl-drop-b 12s var(--ease) infinite; }
.screen-plan .pl-u5 { animation: pl-drop-c 12s var(--ease) infinite; }
.screen-plan .pl-u6, .screen-plan .pl-u7 { animation: pl-drop-d 12s var(--ease) infinite; }
.screen-plan .pl-u8, .screen-plan .pl-u9 { animation: pl-drop-e 12s var(--ease) infinite; }
.screen-plan .tool-wall::before { animation: lit-plan-wall 12s var(--ease) infinite; }
.screen-plan .tool-door::before { animation: lit-plan-door 12s var(--ease) infinite; }
.screen-plan .tool-window::before { animation: lit-plan-window 12s var(--ease) infinite; }
.screen-plan .tool-unit::before { animation: lit-plan-unit 12s var(--ease) infinite; }

@keyframes pl-w1 { 0%, 4% { stroke-dashoffset: 1; } 16%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-w2 { 0%, 16% { stroke-dashoffset: 1; } 30%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-w3 { 0%, 30% { stroke-dashoffset: 1; } 42%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-p1 { 0%, 15% { opacity: 0; transform: scale(0.5); } 19%, 100% { opacity: 1; transform: none; } }
@keyframes pl-p2 { 0%, 29% { opacity: 0; transform: scale(0.5); } 33%, 100% { opacity: 1; transform: none; } }
@keyframes pl-p3 { 0%, 41% { opacity: 0; transform: scale(0.5); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes pl-door { 0%, 49% { opacity: 0; transform: scale(0.6); } 53%, 100% { opacity: 1; transform: none; } }
@keyframes pl-window { 0%, 56% { opacity: 0; transform: scaleX(0.3); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes pl-finger {
  0% { opacity: 0; transform: translate(56px, 254px); }
  3%, 4% { opacity: 1; transform: translate(56px, 254px); }
  16% { transform: translate(56px, 46px); }
  30% { transform: translate(344px, 46px); }
  42% { transform: translate(344px, 254px); }
  47% { transform: translate(318px, 204px); }
  49% { transform: translate(318px, 204px) scale(0.75); }
  51% { transform: translate(318px, 204px); }
  55% { transform: translate(196px, 62px); }
  57% { transform: translate(196px, 62px) scale(0.75); }
  59% { opacity: 1; transform: translate(196px, 62px); }
  64%, 100% { opacity: 0; transform: translate(200px, 300px); }
}
@keyframes pl-drop-a { 0%, 62% { opacity: 0; transform: translateY(-16px); } 67%, 95% { opacity: 1; transform: none; } }
@keyframes pl-drop-b { 0%, 65% { opacity: 0; transform: translateY(-16px); } 70%, 95% { opacity: 1; transform: none; } }
@keyframes pl-drop-c { 0%, 68% { opacity: 0; transform: translateY(-16px); } 73%, 95% { opacity: 1; transform: none; } }
@keyframes pl-drop-d { 0%, 71% { opacity: 0; transform: translateX(-16px); } 76%, 95% { opacity: 1; transform: none; } }
@keyframes pl-drop-e { 0%, 75% { opacity: 0; transform: scale(1.2); } 80%, 95% { opacity: 1; transform: none; } }

/* ── ② The cabinet's design (16 s): door → two doors → drawers; a lift door; the colour ───────── */

.design-body .pic { animation: scene-fade-16 16s var(--ease-io) infinite; }
.dz-wall { fill: #f1ece4; }
.dz-splash { fill: #e9e2d6; }
.dz-floor { fill: #cdb79b; }
.dz-body { fill: var(--carcass); stroke: rgb(60 45 30 / 0.35); stroke-width: 0.8; }
.dz-plinth { fill: #3f3c39; }
.dz-top { fill: #b4ada2; }
.dz-tap { fill: none; stroke: #8b939b; stroke-width: 3; stroke-linecap: round; }
.dz-fr { fill: #f4f0e8; stroke: rgb(60 45 30 / 0.4); stroke-width: 0.7; }
.dz-hd { fill: #4f565e; }
.dz-in { fill: #d3cabd; }
.dz-shelf { stroke: #b9ae9e; stroke-width: 2; }
.dz-strut { stroke: #6b7280; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.dz-sel { fill: none; stroke: var(--sel); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: 0; }
.dz-tapring { fill: rgb(30 136 229 / 0.18); stroke: var(--sel); stroke-width: 1.5; opacity: 0; }
.dz-flap, .dz-tapring { transform-box: fill-box; transform-origin: 50% 0; }
.dz-tapring { transform-origin: center; }
.dz-v1, .dz-v2, .dz-w1, .dz-tint { opacity: 0; }
.dz-tint-walnut .dz-fr { fill: #8a5a3b; }
.dz-tint-graphite .dz-fr { fill: #3d4247; }
.dz-tint-graphite .dz-hd { fill: #b9bec4; }

.screen-design .dz-tint-walnut { animation: dz-walnut 16s var(--ease-io) infinite; }
.screen-design .dz-tint-graphite { animation: dz-graphite 16s var(--ease-io) infinite; }
.screen-design .dz-v1 { animation: dz-v1 16s var(--ease) infinite; }
.screen-design .dz-v2 { animation: dz-v2 16s var(--ease) infinite; }
.screen-design .dz-v3 { animation: dz-v3 16s var(--ease) infinite; }
.screen-design .dz-w1 { animation: dz-w1 16s var(--ease) infinite; }
.screen-design .dz-w2 { animation: dz-w2 16s var(--ease) infinite; }
.screen-design .dz-flap { animation: dz-flap 16s var(--ease-io) infinite; }
.screen-design .dz-strut { animation: dz-strut 16s var(--ease-io) infinite; }
.screen-design .dz-sel-base { animation: dz-sel-base 16s var(--ease) infinite; }
.screen-design .dz-sel-wall { animation: dz-sel-wall 16s var(--ease) infinite; }
.screen-design .dz-tap-1 { animation: dz-tap-1 16s var(--ease) infinite; }
.screen-design .dz-tap-2 { animation: dz-tap-2 16s var(--ease) infinite; }
.screen-design .dz-tap-3 { animation: dz-tap-3 16s var(--ease) infinite; }
.screen-design .tool-door::before { animation: lit-dz-door 16s var(--ease) infinite; }
.screen-design .tool-drawer::before { animation: lit-dz-drawer 16s var(--ease) infinite; }
.screen-design .tool-lift::before { animation: lit-dz-lift 16s var(--ease) infinite; }
.screen-design .tool-color::before { animation: lit-dz-color 16s var(--ease) infinite; }
.screen-design .sw-walnut::after { animation: ring-walnut 16s var(--ease) infinite; }
.screen-design .sw-graphite::after { animation: ring-graphite 16s var(--ease) infinite; }
.screen-design .sw-white::after { animation: ring-white 16s var(--ease) infinite; }

@keyframes dz-v1 { 0%, 19% { opacity: 1; } 21%, 98% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes dz-v2 { 0%, 19% { opacity: 0; } 21%, 37% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes dz-v3 { 0%, 37% { opacity: 0; } 39%, 98% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes dz-w1 { 0%, 57% { opacity: 1; } 59%, 98% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes dz-w2 { 0%, 57% { opacity: 0; } 59%, 98% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes dz-flap { 0%, 63% { transform: none; } 68%, 72% { transform: scaleY(0.14); } 77%, 100% { transform: none; } }
@keyframes dz-strut { 0%, 64% { opacity: 0; } 68%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes dz-sel-base { 0%, 3% { opacity: 0; } 5%, 55% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes dz-sel-wall { 0%, 55% { opacity: 0; } 57%, 78% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes dz-tap-1 { 0%, 16% { opacity: 0; transform: scale(0.4); } 18% { opacity: 0.9; transform: scale(0.8); } 22%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes dz-tap-2 { 0%, 34% { opacity: 0; transform: scale(0.4); } 36% { opacity: 0.9; transform: scale(0.8); } 40%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes dz-tap-3 { 0%, 54% { opacity: 0; transform: scale(0.4); } 56% { opacity: 0.9; transform: scale(0.8); } 60%, 100% { opacity: 0; transform: scale(1.5); } }

/* ── ③ 3D (18 s): the kitchen turns slowly, back and forth ──────────────────────────────────── */

.three-body { aspect-ratio: 4 / 3; }
.stage-three { --u: calc(100cqw / 5600); }
.stage-three .k3d-world { transform: translate(-50%, -32%) rotateX(58deg) rotateZ(40deg); }
.screen-three .stage-three .k3d-world { animation: three-orbit 9s var(--ease-io) infinite alternate; }
.three-hint {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgb(16 32 29 / 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateX(-50%);
}
[dir="rtl"] .three-hint { transform: translateX(50%); }
.three-hint .icon { width: 18px; height: 18px; }
.screen-three .three-hint .icon { animation: hint-swipe 9s var(--ease-io) infinite alternate; }
@keyframes three-orbit {
  from { transform: translate(-50%, -32%) rotateX(58deg) rotateZ(18deg); }
  to { transform: translate(-50%, -32%) rotateX(56deg) rotateZ(62deg); }
}
@keyframes hint-swipe { from { transform: translateX(-10px); } to { transform: translateX(10px); } }

/* ── ④ Elevations and renders (16 s): drawing → codes → studio → the AI's picture (D595) ─────── */

.seg {
  display: flex;
  gap: 4px;
  margin: 8px 10px 0;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-item {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding-inline: 8px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.seg-item .icon { width: 16px; height: 16px; }
.rn-body { aspect-ratio: 4 / 3; margin-top: 8px; border-top: 1px solid var(--line); }
.rn-layer, .rn-ai-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.rn-ai-wrap { overflow: hidden; }

.rn-line .rn-wallbg, .rn-line .rn-floor { fill: var(--paper); }
.rn-line .rn-splash, .rn-line .rn-win-glass { fill: none; }
.rn-line .rn-body, .rn-line .rn-fr, .rn-line .rn-fr-up, .rn-line .rn-ct, .rn-line .rn-win-frame, .rn-line .rn-plinth {
  fill: var(--paper);
  stroke: var(--draw-ink);
  stroke-width: 0.7;
}
.rn-line .rn-win-bar { fill: none; stroke: var(--draw-ink); stroke-width: 0.6; }
.rn-line .rn-hd rect { fill: var(--draw-ink); }
.rn-dims path { fill: none; stroke: var(--dim-ink); stroke-width: 0.8; }
.rn-dim-text text { fill: var(--dim-ink); font-size: 8px; font-weight: 700; text-anchor: middle; }
.rn-dim-text .rn-dim-side { text-anchor: middle; font-size: 7.5px; }

.rn-codes .rn-wallbg { fill: #f4ede1; }
.rn-codes .rn-floor { fill: #e6dfd3; }
.rn-codes .rn-splash { fill: #efe7da; }
.rn-codes .rn-body { fill: #f3efe8; stroke: rgb(30 30 30 / 0.4); stroke-width: 0.5; }
.rn-codes .rn-fr { fill: #ece6dc; stroke: rgb(30 30 30 / 0.45); stroke-width: 0.5; }
.rn-codes .rn-fr-up { fill: #8b5e3c; stroke: rgb(30 30 30 / 0.45); stroke-width: 0.5; }
.rn-codes .rn-ct { fill: #9ea4a8; }
.rn-codes .rn-plinth { fill: #3f3c39; }
.rn-codes .rn-win-frame { fill: #fbfaf7; stroke: rgb(30 30 30 / 0.4); stroke-width: 0.5; }
.rn-codes .rn-win-glass { fill: #d5eef8; }
.rn-codes .rn-win-bar { stroke: #fbfaf7; stroke-width: 1.5; }
.rn-codes .rn-hd rect { fill: #4f565e; }
.rn-pills rect { fill: #ffffff; stroke: #1b2733; stroke-width: 0.8; }
.rn-pills text { fill: #1b2733; font-size: 7.5px; font-weight: 700; text-anchor: middle; }
.rn-legend { fill: #ffffff; stroke: rgb(30 30 30 / 0.12); }
.rn-sw { stroke: rgb(0 0 0 / 0.2); stroke-width: 0.6; }
.rn-sw-c1 { fill: #ece6dc; }
.rn-sw-c2 { fill: #8b5e3c; }
.rn-sw-c3 { fill: #9ea4a8; }
.rn-legend-text { fill: #1b2733; font-size: 8.5px; font-weight: 700; }

.rn-studio .rn-wallbg { fill: url(#rn-g-wall); }
.rn-studio .rn-floor { fill: url(#rn-g-floor); }
.rn-studio .rn-splash { fill: #e7dfd2; }
.rn-studio .rn-body { fill: #ece6dc; }
.rn-studio .rn-fr { fill: url(#rn-g-front); stroke: rgb(60 45 30 / 0.28); stroke-width: 0.5; }
.rn-studio .rn-fr-up { fill: url(#rn-g-walnut); stroke: rgb(40 25 10 / 0.4); stroke-width: 0.5; }
.rn-studio .rn-ct { fill: url(#rn-g-ct); }
.rn-studio .rn-plinth { fill: #34302c; }
.rn-studio .rn-win-frame { fill: #f7f4ee; }
.rn-studio .rn-win-glass { fill: url(#rn-g-sky); }
.rn-studio .rn-win-bar { stroke: #f7f4ee; stroke-width: 2; }
.rn-studio .rn-hd rect { fill: #8d949c; }
.rn-led { fill: url(#rn-g-led); }
.rn-shade { fill: url(#rn-g-down); }
.rn-planks { fill: none; stroke: rgb(60 35 15 / 0.28); stroke-width: 0.8; }
.rn-ct-gloss { stroke: rgb(255 255 255 / 0.75); stroke-width: 0.6; }

.rn-sun { fill: url(#rn-g-sun); }
.rn-rug { fill: #7b4a36; }
.rn-rug-lines { fill: none; stroke: rgb(240 220 190 / 0.5); stroke-width: 1.2; }
.rn-bowl circle { fill: #ef8a24; }
.rn-bowl path { fill: #ebe5da; stroke: rgb(0 0 0 / 0.2); stroke-width: 0.5; }
.rn-leaf { fill: url(#rn-g-leaf); }
.rn-pot { fill: url(#rn-g-pot); }
.rn-reflect { stroke: rgb(255 255 255 / 0.6); stroke-width: 0.8; }
.rn-grade { fill: #ffb36b; opacity: 0.08; }
.rn-vignette { fill: url(#rn-g-vignette); }

.rn-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.rn-scan::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 18px 6px rgb(255 214 140 / 0.85), 0 0 4px 1px #ffffff;
}
.rn-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgb(16 32 29 / 0.74);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}
.rn-badge-studio { opacity: 0; }
.rn-extras {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  display: flex;
  gap: 6px;
}
.rn-extras span {
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-1);
  color: #7a3e10;
  font-size: 0.78rem;
  font-weight: 700;
}

.screen-renders .rn-codes { animation: rn-codes 16s var(--ease-io) infinite; }
.screen-renders .rn-studio { animation: rn-studio 16s var(--ease-io) infinite; }
.screen-renders .rn-ai-wrap { animation: rn-ai-wrap 16s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.screen-renders .rn-ai { animation: rn-ai-in 16s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.screen-renders .rn-scan { animation: rn-scan 16s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.screen-renders .rn-badge-studio { animation: rn-badge-studio 16s var(--ease) infinite; }
.screen-renders .rn-badge-ai { animation: rn-badge-ai 16s var(--ease) infinite; }
.screen-renders .rn-extras span { animation: rn-extras 16s var(--ease) infinite; }
.screen-renders .seg-1::before { animation: lit-seg-1 16s var(--ease) infinite; }
.screen-renders .seg-2::before { animation: lit-seg-2 16s var(--ease) infinite; }
.screen-renders .seg-3::before { animation: lit-seg-3 16s var(--ease) infinite; }
.screen-renders .seg-4::before { animation: lit-seg-4 16s var(--ease) infinite; }

@keyframes rn-codes { 0%, 21% { opacity: 0; } 25%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes rn-studio { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes rn-scan {
  0%, 74% { opacity: 0; transform: translateX(0); }
  75% { opacity: 1; transform: translateX(0); }
  90% { opacity: 1; transform: translateX(100%); }
  92%, 100% { opacity: 0; transform: translateX(100%); }
}
@keyframes rn-badge-studio { 0%, 49% { opacity: 0; } 52%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes rn-badge-ai { 0%, 76% { opacity: 0; } 79%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes rn-extras { 0%, 68% { opacity: 0; transform: translateY(8px) scale(0.9); } 72%, 96% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

/* ── ⑤ The cut list (14 s): from the plan with one tap, then a piece typed on the keypad ─────── */

.cl-body .pic { animation: scene-fade-12 14s var(--ease-io) infinite; }
.cl-bg { fill: var(--paper); }
.cl-tab-track { fill: var(--surface-2); }
.cl-tab { fill: var(--surface); }
.cl-tab-1 { opacity: 0; }
.cl-tab-text { fill: var(--ink-2); font-size: 11px; font-weight: 700; text-anchor: middle; }
.cl-card { opacity: 0; }
.cl-card-bg { fill: var(--surface-2); }
.cl-room-line { fill: none; stroke: var(--wall-ink); stroke-width: 2.4; }
.cl-unit { fill: var(--plan-wood); stroke: var(--plan-wood-line); stroke-width: 1; }
.cl-unit-text { fill: var(--plan-wood-line); font-size: 8px; font-weight: 700; text-anchor: middle; }
.cl-button-bg { fill: var(--brand); }
.cl-button-icon { fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-button-text { fill: var(--brand-ink); font-size: 11px; font-weight: 700; }
.cl-ring { fill: none; stroke: var(--brand); stroke-width: 2; opacity: 0; }
.cl-row-bg { fill: var(--surface); stroke: var(--line-strong); stroke-width: 0.6; }
.cl-name { fill: var(--ink); font-size: 10.5px; font-weight: 700; }
.cl-size { fill: var(--ink-2); font-size: 10px; text-anchor: middle; }
.cl-count-bg { fill: var(--brand-soft); }
.cl-count { fill: var(--brand); font-size: 9.5px; font-weight: 700; text-anchor: middle; }
.cl-new-bg { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1; }
.cl-new .cl-count-bg { fill: var(--surface); }
.cl-sheet { transform: translateY(190px); }
.cl-sheet-bg { fill: var(--surface); stroke: var(--line-strong); stroke-width: 0.8; }
.cl-grip { fill: var(--line-strong); }
.cl-sheet-title { fill: var(--ink); font-size: 12px; font-weight: 700; }
.cl-field-label { fill: var(--muted); font-size: 9px; font-weight: 700; }
.cl-field { fill: var(--surface-2); stroke: var(--brand); stroke-width: 1.2; }
.cl-f { fill: var(--ink); font-size: 13px; font-weight: 700; opacity: 0; }
.cl-f4 { opacity: 1; }
.cl-key { fill: var(--surface-2); }
.cl-key-ok { fill: var(--brand); }
.cl-hl { fill: var(--brand-soft); opacity: 0; }
.cl-hl-done { fill: var(--brand-strong); }
.cl-key-text { fill: var(--ink); font-size: 11px; font-weight: 700; text-anchor: middle; }
.cl-key-ok-text { fill: var(--brand-ink); font-size: 10px; }
.cl-key-glyph { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.cl-button, .cl-ring, .cl-fly, .cl-row, .cl-new { transform-box: fill-box; transform-origin: center; }

.screen-cutlist .cl-tab-1 { animation: cl-tab-1 14s var(--ease) infinite; }
.screen-cutlist .cl-tab-2 { animation: cl-tab-2 14s var(--ease) infinite; }
.screen-cutlist .cl-card { animation: cl-card 14s var(--ease-io) infinite; }
.screen-cutlist .cl-button { animation: cl-press 14s var(--ease) infinite; }
.screen-cutlist .cl-ring { animation: cl-ring 14s var(--ease) infinite; }
.screen-cutlist .cl-fly { animation: cl-fly 14s var(--ease-io) infinite; }
.screen-cutlist .cl-row-1 { animation: cl-row-1 14s var(--ease) infinite; }
.screen-cutlist .cl-row-2 { animation: cl-row-2 14s var(--ease) infinite; }
.screen-cutlist .cl-row-3 { animation: cl-row-3 14s var(--ease) infinite; }
.screen-cutlist .cl-row-4 { animation: cl-row-4 14s var(--ease) infinite; }
.screen-cutlist .cl-row-5 { animation: cl-row-5 14s var(--ease) infinite; }
.screen-cutlist .cl-sheet { animation: cl-sheet 14s var(--ease) infinite; }
.screen-cutlist .cl-f1 { animation: cl-f1 14s steps(1) infinite; }
.screen-cutlist .cl-f2 { animation: cl-f2 14s steps(1) infinite; }
.screen-cutlist .cl-f3 { animation: cl-f3 14s steps(1) infinite; }
.screen-cutlist .cl-f4 { animation: cl-f4 14s steps(1) infinite; }
.screen-cutlist .cl-hl-w { animation: key-w 14s var(--ease) infinite; }
.screen-cutlist .cl-hl-minus { animation: key-minus 14s var(--ease) infinite; }
.screen-cutlist .cl-hl-two { animation: key-two 14s var(--ease) infinite; }
.screen-cutlist .cl-hl-times { animation: key-times 14s var(--ease) infinite; }
.screen-cutlist .cl-hl-t { animation: key-t 14s var(--ease) infinite; }
.screen-cutlist .cl-hl-done { animation: key-done 14s var(--ease) infinite; }
.screen-cutlist .cl-new { animation: cl-new 14s var(--ease) infinite; }

@keyframes cl-tab-1 { 0%, 48% { opacity: 1; } 51%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cl-tab-2 { 0%, 48% { opacity: 0; } 51%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cl-card { 0%, 47% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes cl-press { 0%, 7% { transform: none; } 9% { transform: scale(0.92); } 12%, 100% { transform: none; } }
@keyframes cl-ring { 0%, 8% { opacity: 0; transform: scale(0.6); } 9% { opacity: 0.9; transform: scale(0.8); } 15%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes cl-fly { 0%, 12% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(70px) scale(0.85); } }
@keyframes cl-row-1 { 0%, 15% { opacity: 0; transform: translateY(10px); } 19%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes cl-row-2 { 0%, 18% { opacity: 0; transform: translateY(10px); } 22%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes cl-row-3 { 0%, 21% { opacity: 0; transform: translateY(10px); } 25%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes cl-row-4 { 0%, 24% { opacity: 0; transform: translateY(10px); } 28%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes cl-row-5 { 0%, 27% { opacity: 0; transform: translateY(10px); } 31%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes cl-sheet { 0%, 52% { transform: translateY(190px); } 58%, 84% { transform: none; } 90%, 100% { transform: translateY(190px); } }
@keyframes cl-f1 { 0%, 61% { opacity: 0; } 62%, 65% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes cl-f2 { 0%, 65% { opacity: 0; } 66%, 69% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes cl-f3 { 0%, 69% { opacity: 0; } 70%, 73% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes cl-f4 { 0%, 73% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes cl-new { 0%, 88% { opacity: 0; transform: translateY(-8px); } 92%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

/* ── ⑥ The sheet (10 s): the pieces dropped onto a 3660 × 1830 sheet, the cuts, the counts ────── */

.sh-body .pic { animation: scene-fade-10 10s var(--ease-io) infinite; }
.sh-bg { fill: var(--paper); }
.sh-label { fill: var(--ink); font-size: 12px; font-weight: 700; }
.sh-button-bg { fill: var(--brand); }
.sh-button-text { fill: var(--brand-ink); font-size: 11px; font-weight: 700; text-anchor: middle; }
.sh-sheet { fill: #efe1c8; stroke: rgb(120 90 50 / 0.45); stroke-width: 1; }
.sh-tone-1 rect { fill: #0f766e; }
.sh-tone-2 rect { fill: #14a596; }
.sh-tone-3 rect { fill: #5fd8c8; }
.sh-tone-4 rect { fill: #a7f0e4; }
.sh-num { fill: #ffffff; font-size: 13px; font-weight: 700; text-anchor: middle; }
.sh-tone-3 .sh-num, .sh-tone-4 .sh-num { fill: #0b3b37; }
.sh-hatch-line { stroke: rgb(120 90 50 / 0.45); stroke-width: 1.2; }
.sh-offcut { stroke: rgb(120 90 50 / 0.4); stroke-width: 0.8; }
.sh-cuts { fill: none; stroke: #7c2d12; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sh-stat rect { fill: var(--surface-2); }
.sh-stat-value { fill: var(--brand); font-size: 15px; font-weight: 700; }
.sh-stat-word { fill: var(--muted); font-size: 10.5px; font-weight: 700; }
.sh-piece, .sh-stat, .sh-button { transform-box: fill-box; transform-origin: center; }

.screen-sheet .sh-button { animation: sh-press 10s var(--ease) infinite; }
.screen-sheet .sh-p1 { animation: sh-p1 10s var(--ease) infinite; }
.screen-sheet .sh-p2 { animation: sh-p2 10s var(--ease) infinite; }
.screen-sheet .sh-p3 { animation: sh-p3 10s var(--ease) infinite; }
.screen-sheet .sh-p4 { animation: sh-p4 10s var(--ease) infinite; }
.screen-sheet .sh-p5 { animation: sh-p5 10s var(--ease) infinite; }
.screen-sheet .sh-p6 { animation: sh-p6 10s var(--ease) infinite; }
.screen-sheet .sh-p7 { animation: sh-p7 10s var(--ease) infinite; }
.screen-sheet .sh-p8 { animation: sh-p8 10s var(--ease) infinite; }
.screen-sheet .sh-cuts { animation: sh-cuts 10s linear infinite; }
.screen-sheet .sh-offcut { animation: sh-offcut 10s var(--ease) infinite; }
.screen-sheet .sh-stat-1 { animation: sh-stat-1 10s var(--ease) infinite; }
.screen-sheet .sh-stat-2 { animation: sh-stat-2 10s var(--ease) infinite; }
.screen-sheet .sh-stat-3 { animation: sh-stat-3 10s var(--ease) infinite; }

@keyframes sh-press { 0%, 3% { transform: none; } 5% { transform: scale(0.92); } 8%, 100% { transform: none; } }
@keyframes sh-p1 { 0%, 8% { opacity: 0; transform: translateY(-30px); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p2 { 0%, 13% { opacity: 0; transform: translateY(-30px); } 19%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p3 { 0%, 18% { opacity: 0; transform: translateY(-30px); } 24%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p4 { 0%, 23% { opacity: 0; transform: translateY(-30px); } 29%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p5 { 0%, 28% { opacity: 0; transform: translateY(-30px); } 34%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p6 { 0%, 32% { opacity: 0; transform: translateY(-30px); } 38%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p7 { 0%, 36% { opacity: 0; transform: translateY(-30px); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes sh-p8 { 0%, 40% { opacity: 0; transform: translateY(-30px); } 46%, 100% { opacity: 1; transform: none; } }
@keyframes sh-cuts { 0%, 48% { stroke-dashoffset: 1; } 62%, 100% { stroke-dashoffset: 0; } }
@keyframes sh-offcut { 0%, 58% { opacity: 0; } 63%, 100% { opacity: 1; } }
@keyframes sh-stat-1 { 0%, 64% { opacity: 0; transform: scale(0.85); } 68%, 100% { opacity: 1; transform: none; } }
@keyframes sh-stat-2 { 0%, 68% { opacity: 0; transform: scale(0.85); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes sh-stat-3 { 0%, 72% { opacity: 0; transform: scale(0.85); } 76%, 100% { opacity: 1; transform: none; } }

/* ── ⑦ The invoice (10 s): the paper fills in, the total, «PDF» ─────────────────────────────── */

.iv-body .pic { animation: scene-fade-10 10s var(--ease-io) infinite; }
.iv-bg { fill: var(--surface-2); }
.iv-shadow { fill: rgb(16 32 29 / 0.1); }
.iv-sheet { fill: #ffffff; stroke: rgb(16 32 29 / 0.08); }
.iv-logo { fill: #0f766e; }
.iv-logo-icon { fill: none; stroke: #ffffff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iv-workshop { fill: #10201d; font-size: 11px; font-weight: 700; }
.iv-title { fill: #0f766e; font-size: 14px; font-weight: 700; }
.iv-small { fill: #5d6c68; font-size: 8.5px; }
.iv-head { fill: #f2f3ef; }
.iv-col { fill: #5d6c68; font-size: 8.5px; font-weight: 700; }
.iv-text { fill: #10201d; font-size: 9.5px; }
.iv-muted { fill: #5d6c68; }
.iv-num { font-weight: 700; }
.iv-rule { stroke: rgb(16 32 29 / 0.08); }
.iv-total-bg { fill: #dbf2ec; }
.iv-total-text { fill: #0b5c56; font-size: 10.5px; font-weight: 700; }
.iv-stamp-bg { fill: none; stroke: #c2410c; stroke-width: 2.4; }
.iv-stamp-text { fill: #c2410c; font-size: 15px; font-weight: 700; text-anchor: middle; letter-spacing: 0.06em; }
.iv-share-bg { fill: #0f766e; }
.iv-share-icon { fill: none; stroke: #ffffff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iv-line, .iv-totals, .iv-total, .iv-stamp, .iv-share { transform-box: fill-box; transform-origin: center; }

.screen-invoice .iv-line-1 { animation: iv-line-1 10s var(--ease) infinite; }
.screen-invoice .iv-line-2 { animation: iv-line-2 10s var(--ease) infinite; }
.screen-invoice .iv-line-3 { animation: iv-line-3 10s var(--ease) infinite; }
.screen-invoice .iv-line-4 { animation: iv-line-4 10s var(--ease) infinite; }
.screen-invoice .iv-totals { animation: iv-totals 10s var(--ease) infinite; }
.screen-invoice .iv-total { animation: iv-total 10s var(--ease) infinite; }
.screen-invoice .iv-stamp { animation: iv-stamp 10s cubic-bezier(0.2, 1.4, 0.4, 1) infinite; }
.screen-invoice .iv-share { animation: iv-share 10s var(--ease) infinite; }

@keyframes iv-line-1 { 0%, 10% { opacity: 0; transform: translateY(8px); } 15%, 100% { opacity: 1; transform: none; } }
@keyframes iv-line-2 { 0%, 17% { opacity: 0; transform: translateY(8px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes iv-line-3 { 0%, 24% { opacity: 0; transform: translateY(8px); } 29%, 100% { opacity: 1; transform: none; } }
@keyframes iv-line-4 { 0%, 31% { opacity: 0; transform: translateY(8px); } 36%, 100% { opacity: 1; transform: none; } }
@keyframes iv-totals { 0%, 40% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes iv-total { 0%, 48% { opacity: 0; transform: scale(0.94); } 54%, 100% { opacity: 1; transform: none; } }
@keyframes iv-stamp { 0%, 62% { opacity: 0; transform: scale(2); } 68%, 100% { opacity: 1; transform: none; } }
@keyframes iv-share { 0%, 72% { opacity: 0; transform: scale(0.5); } 77%, 100% { opacity: 1; transform: none; } }

/* ── More tools: a bento of icon tiles ──────────────────────────────────────────────────────── */

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--shadow-2); }
.tile-wide { grid-column: span 2; }
.tile h3 { font-size: 1.04rem; line-height: 1.5; }
.tile p { color: var(--muted); font-size: 0.9rem; line-height: 1.75; }
.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 15px;
  background: var(--acc-soft);
  color: var(--acc-ink);
}
.tile-icon .icon { width: 24px; height: 24px; }
.tile-teal { --acc-ink: var(--teal-ink); --acc-soft: var(--teal-soft); }
.tile-amber { --acc-ink: var(--amber-ink); --acc-soft: var(--amber-soft); }
.tile-rose { --acc-ink: var(--rose-ink); --acc-soft: var(--rose-soft); }
.tile-sky { --acc-ink: var(--sky-ink); --acc-soft: var(--sky-soft); }
.tile-violet { --acc-ink: var(--violet-ink); --acc-soft: var(--violet-soft); }
@media (max-width: 359px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
}

/* ── Platforms ──────────────────────────────────────────────────────────────────────────────── */

.platforms { display: grid; gap: 12px; }
@media (min-width: 760px) { .platforms { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.platform:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--shadow-2); }
.platform-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand);
}
.platform-icon .icon { width: 28px; height: 28px; }
.platform-text { display: flex; flex-direction: column; min-width: 0; }
.platform-name { font-weight: 700; font-size: 1.08rem; }
.platform-note { color: var(--muted); font-size: 0.88rem; }
.platform-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── About, contact, the final call ─────────────────────────────────────────────────────────── */

.about-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.promises { display: grid; gap: 10px; margin-top: 22px; }
.promises li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.promises .icon { color: var(--brand); margin-top: 2px; }
.maker { margin-top: 22px; color: var(--muted); }
.maker strong { color: var(--ink); }

.contacts { display: grid; gap: 12px; max-width: 46rem; margin-inline: auto; }
@media (min-width: 640px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
  transition: transform 0.6s var(--ease);
}
.contact:hover { transform: translateY(-3px); }
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
}
.contact-text { display: flex; flex-direction: column; }
.contact-label { color: var(--muted); font-size: 0.86rem; }
.contact-value { font-weight: 700; font-size: 1.12rem; }
[dir="rtl"] .contact-value { text-align: end; }
.hint { max-width: 46rem; margin: 16px auto 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(45 212 191 / 0.35), transparent 55%),
    linear-gradient(135deg, #0f766e, #0b4f4a);
  color: #ffffff;
  box-shadow: var(--shadow-2);
}
.cta-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; }
.cta p { margin-top: 6px; color: rgb(255 255 255 / 0.82); }
@media (max-width: 479px) { .cta .btn { width: 100%; } }

/* ── Footer ─────────────────────────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(40px, 6vw, 64px) 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 12px; max-width: 26rem; color: var(--muted); font-size: 0.92rem; }
.footer-title { margin-bottom: 10px; font-size: 0.95rem; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: 0.93rem; }
.site-footer ul a:hover, .site-footer ul a[aria-current] { color: var(--brand); }
.seals:empty { display: none; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.footer-bottom a { color: var(--brand); }

/* ── «امتحان کنید» (D597) ─────────────────────────────────────────────────────────────────────── */

.try-hero { padding-block: clamp(28px, 5vw, 64px) clamp(16px, 3vw, 32px); text-align: center; }
.try-hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); line-height: 1.25; }
.try-hero .lead { margin-inline: auto; }
.try { padding-bottom: var(--section); }
.try-grid {
  display: grid;
  gap: 20px;
  grid-template-areas: "stage" "panel" "results";
}
@media (min-width: 1000px) {
  .try-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-areas: "panel stage" "panel results";
    align-items: start;
    gap: 24px 40px;
  }
  .try-panel { position: sticky; top: 100px; }
}
.try-panel { grid-area: panel; }
.try-stage { grid-area: stage; }
.try-results { grid-area: results; }

.try-panel {
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
}
.try-group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.try-group:last-child { margin-bottom: 0; }
.try-group legend { margin-bottom: 10px; padding: 0; color: var(--ink-2); font-size: 0.92rem; font-weight: 700; }
.opts { display: grid; gap: 8px; }
.opts-2 { grid-template-columns: repeat(2, 1fr); }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-4 { grid-template-columns: repeat(4, 1fr); }
.opts-5 { grid-template-columns: repeat(5, 1fr); }
.opt-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 74px;
  padding: 10px 4px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.opt:active { transform: scale(0.96); }
.opt .icon { width: 26px; height: 26px; }
.opt-num { min-height: 64px; }
.opt-num strong { font-size: 1.35rem; line-height: 1; }
.opt-input:checked + .opt { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.opt-input:focus-visible + .opt { outline: 3px solid var(--brand); outline-offset: 2px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.swatch-white { background: #f4f0e8; }
.swatch-oak { background: linear-gradient(135deg, #d8b585, #b98a55); }
.swatch-walnut { background: linear-gradient(135deg, #9a6a45, #6f482e); }
.swatch-sage { background: #9fb3a1; }
.swatch-graphite { background: #3d4247; }
.opt-color { font-size: 0.74rem; }
.try-lift-note {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.7;
}
.try-lift-note .icon { color: var(--accent); margin-top: 3px; }
.try:has(#tf-lift:checked) .try-lift-note { display: flex; }
@media (max-width: 380px) {
  .opts-5 { grid-template-columns: repeat(3, 1fr); }
  .opt .icon { width: 22px; height: 22px; }
}

.try { --front: #f4f0e8; }
.try:has(#tc-oak:checked) { --front: #caa577; }
.try:has(#tc-walnut:checked) { --front: #8a5a3b; }
.try:has(#tc-sage:checked) { --front: #9fb3a1; }
.try:has(#tc-graphite:checked) { --front: #3d4247; }

.try-body { aspect-ratio: 340 / 320; }
.stage-2d, .stage-3d { position: absolute; inset: 0; }
.stage-3d { display: none; }
.try:has(#tv-three:checked) .stage-2d { display: none; }
.try:has(#tv-three:checked) .stage-3d { display: block; }

/* The variants: the first one shows wherever :has() is not known; with it, the chosen width and front. */
.vw, .vf { display: none; }
.vw-60, .vf-door { display: block; }
@supports selector(:has(*)) {
  .vw-60, .vf-door { display: none; }
  .try:has(#tw-60:checked) .vw-60, .try:has(#tw-80:checked) .vw-80, .try:has(#tw-90:checked) .vw-90,
  .try:has(#tf-door:checked) .vf-door, .try:has(#tf-pair:checked) .vf-pair,
  .try:has(#tf-drawers:checked) .vf-drawers, .try:has(#tf-lift:checked) .vf-lift { display: block; }
}
.stage-2d .vw, .stage-2d .vf { height: 100%; }
.hw.vf { display: none; }
.hw.vf-door { display: flex; }
@supports selector(:has(*)) {
  .hw.vf-door { display: none; }
  .try:has(#tf-door:checked) .hw.vf-door, .try:has(#tf-pair:checked) .hw.vf-pair,
  .try:has(#tf-drawers:checked) .hw.vf-drawers, .try:has(#tf-lift:checked) .hw.vf-lift { display: flex; }
}

.tw { width: 100%; height: 100%; }
.tw-floor { stroke: var(--wall-ink); stroke-width: 1.5; }
.tw-ceiling { stroke: var(--wall-ink); stroke-width: 1; stroke-dasharray: 5 4; }
.tw-plinth { fill: #3f3c39; }
.tw-body { fill: var(--carcass); stroke: rgb(60 45 30 / 0.45); stroke-width: 0.8; }
.tw-front { fill: var(--front); stroke: rgb(30 25 20 / 0.4); stroke-width: 0.8; transition: fill 0.6s var(--ease); }
.tw-handle { fill: #4f565e; }
.tw-box { fill: #cdc3b4; }
.tw-dim line { stroke: var(--dim-ink); stroke-width: 1; }
.tw-dim-text { fill: var(--dim-ink); font-size: 12px; font-weight: 700; }
.tw-flap { transform-box: fill-box; transform-origin: 50% 0; animation: tw-flap 5s var(--ease-io) infinite; }
@keyframes tw-flap { 0%, 30% { transform: none; } 45%, 70% { transform: scaleY(0.16); } 85%, 100% { transform: none; } }
.tw-face .tw-body { stroke-width: 6; }
.tw-face .tw-front { stroke-width: 3; }

.cab {
  --u: calc(100cqw / 1700);
  --w: 600;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) perspective(calc(4000 * var(--u))) rotateX(-14deg) rotateY(-30deg);
  animation: cab-turn 10s var(--ease-io) infinite alternate;
}
.cab-w80 { --w: 800; }
.cab-w90 { --w: 900; }
.cab-base { --h: 720; --d: 560; }
.cab-wall { --h: 360; --d: 320; }
.cab-face { position: absolute; display: block; backface-visibility: hidden; }
.cab-front, .cab-back { inset: 0; }
.cab-front { transform: translateZ(calc(var(--d) * var(--u) / 2)); }
.cab-front .tw { display: block; }
.cab-back { background: #d8d0c3; transform: rotateY(180deg) translateZ(calc(var(--d) * var(--u) / 2)); }
.cab-left, .cab-right {
  top: 0;
  left: calc(50% - var(--d) * var(--u) / 2);
  width: calc(var(--d) * var(--u));
  height: 100%;
  background: linear-gradient(90deg, #e2d9cb, #d3c9b9);
  box-shadow: inset 0 0 0 1px rgb(60 45 30 / 0.3);
}
.cab-right { transform: rotateY(90deg) translateZ(calc(var(--w) * var(--u) / 2)); }
.cab-left { transform: rotateY(-90deg) translateZ(calc(var(--w) * var(--u) / 2)); }
.cab-top, .cab-bottom {
  left: 0;
  top: calc(50% - var(--d) * var(--u) / 2);
  width: 100%;
  height: calc(var(--d) * var(--u));
  background: #efe9df;
  box-shadow: inset 0 0 0 1px rgb(60 45 30 / 0.3);
}
.cab-top { transform: rotateX(90deg) translateZ(calc(var(--h) * var(--u) / 2)); }
.cab-bottom { background: #cfc5b5; transform: rotateX(-90deg) translateZ(calc(var(--h) * var(--u) / 2)); }
@keyframes cab-turn {
  from { transform: translate(-50%, -50%) perspective(calc(4000 * var(--u))) rotateX(-14deg) rotateY(-38deg); }
  to { transform: translate(-50%, -50%) perspective(calc(4000 * var(--u))) rotateX(-18deg) rotateY(26deg); }
}

.try-results {
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
}
.try-results-title, .try-hw-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.try-results-title .icon, .try-hw-title .icon { color: var(--brand); }
.try-hw-title { margin-top: 22px; font-size: 1rem; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.totals li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  text-align: center;
}
.totals strong { font-size: 1.35rem; line-height: 1.2; }
.totals span { font-size: 0.78rem; font-weight: 700; line-height: 1.3; }
.cuts { display: grid; gap: 8px; margin-top: 14px; }
.cut {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-2);
}
.cut-name { font-weight: 700; }
.cut-name small { display: inline-block; margin-inline-start: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.cut-count {
  align-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}
.cut-dim { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-size: 0.9rem; }
.cut-axis { min-width: 2.5em; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.cut-dim code {
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--brand);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
}
.hw { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hw li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.88rem;
}
.hw strong { color: var(--brand); }
.try-note {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}
.try-note .icon { color: var(--brand); margin-top: 3px; }

/* The loops' compositor-only keyframes: opacity and transform, nothing that repaints a frame (D596). */
@keyframes lit-plan-wall { 0%, 3% { opacity: 0; } 4%, 44% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes lit-plan-door { 0%, 44% { opacity: 0; } 46%, 52% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes lit-plan-window { 0%, 52% { opacity: 0; } 54%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes lit-plan-unit { 0%, 61% { opacity: 0; } 63%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes lit-dz-door { 0%, 2% { opacity: 0; } 4%, 37% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes lit-dz-drawer { 0%, 37% { opacity: 0; } 39%, 56% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes lit-dz-lift { 0%, 56% { opacity: 0; } 58%, 77% { opacity: 1; } 79%, 100% { opacity: 0; } }
@keyframes lit-dz-color { 0%, 77% { opacity: 0; } 79%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes phase-1 { 0%, 34% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes phase-2 { 0%, 34% { opacity: 0; } 38%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes phase-3 { 0%, 62% { opacity: 0; } 66%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes lit-seg-1 { 0%, 22% { opacity: 1; } 24%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lit-seg-2 { 0%, 22% { opacity: 0; } 24%, 47% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes lit-seg-3 { 0%, 47% { opacity: 0; } 49%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes lit-seg-4 { 0%, 73% { opacity: 0; } 75%, 97% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes ring-walnut { 0%, 79% { opacity: 0; } 81%, 87% { opacity: 1; } 89%, 100% { opacity: 0; } }
@keyframes ring-graphite { 0%, 87% { opacity: 0; } 89%, 93% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes ring-white { 0%, 93% { opacity: 0; } 95%, 97% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes key-w { 0%, 60% { opacity: 0; } 61%, 63% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes key-minus { 0%, 64% { opacity: 0; } 65%, 67% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes key-two { 0%, 68% { opacity: 0; } 69%, 71% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes key-times { 0%, 72% { opacity: 0; } 73%, 75% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes key-t { 0%, 76% { opacity: 0; } 77%, 79% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes key-done { 0%, 81% { opacity: 0; } 82%, 84% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes hero-top-ink { 0%, 44% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes hero-floor-paper { 0%, 56% { opacity: 1; } 70%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dz-walnut { 0%, 78% { opacity: 0; } 82%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes dz-graphite { 0%, 86% { opacity: 0; } 90%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes breathe { 50% { opacity: 0.45; transform: scale(1.7); } }
@keyframes rn-ai-wrap {
  0%, 75% { transform: translateX(-100%); opacity: 1; }
  90%, 96% { transform: none; opacity: 1; }
  99%, 100% { transform: none; opacity: 0; }
}
@keyframes rn-ai-in { 0%, 75% { transform: translateX(100%); } 90%, 100% { transform: none; } }

/* ── Document pages: /download and the wallet's callback (D598) ──────────────────────────────── */

.dl-hero { padding-block: clamp(28px, 5vw, 64px) clamp(12px, 2vw, 24px); text-align: center; }
.dl-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); line-height: 1.3; text-wrap: balance; }
.dl-hero .lead { margin-inline: auto; }
.dl-section { padding-block: 16px var(--section); }
.dl-list { display: grid; gap: 16px; max-width: 54rem; }
.dl-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-2);
}
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.4; }
.dl-platform {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
}
.dl-platform .icon { width: 30px; height: 30px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.dl-version { color: var(--ink-2); font-weight: 700; }
.dl-message {
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.dl-card .actions { margin-top: 0; }
.dl-req { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.dl-req .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--brand); }
.dl-digest { border-radius: var(--r); background: var(--surface-2); padding: 4px 14px; }
.dl-digest summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.dl-digest summary .icon { width: 18px; height: 18px; color: var(--brand); }
.dl-digest p { color: var(--muted); font-size: 0.88rem; }
.dl-digest code {
  display: block;
  margin-block: 8px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  text-align: left;
}
.dl-empty { justify-items: center; text-align: center; }
.dl-empty h2 { font-size: 1.35rem; }
.dl-empty p { max-width: 34rem; color: var(--muted); }
.dl-empty .actions { justify-content: center; }

.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
  counter-increment: step;
}
.step::after {
  content: counter(step);
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  color: var(--line-strong);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
:lang(fa) .step::after { content: counter(step, persian); }
:lang(ar) .step::after { content: counter(step, arabic-indic); }
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
}
.step h3 { font-size: 1.05rem; }
.step p { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }

.footer-bottom-only { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 0; border-top: 0; padding-top: 0; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-langs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--brand); }

/* ── The privacy policy, /privacy (docs/65-privacy-policy.md D1410) ───────────────────────────── */

.legal-wrap { max-width: 48rem; }
.legal-hero { padding-block: clamp(28px, 5vw, 64px) clamp(14px, 2.4vw, 28px); text-align: center; }
.legal-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-brand);
}
.legal-mark .icon { width: 34px; height: 34px; }
.legal-hero .kicker { display: flex; width: fit-content; margin-inline: auto; }
.legal-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); line-height: 1.3; text-wrap: balance; }
.legal-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.legal-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--ink-2);
  font-size: 0.88rem;
}
.legal-meta .icon { width: 18px; height: 18px; color: var(--brand); }
.legal-note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }

.legal-body { padding-block: 8px var(--section); }
.legal-body .legal-wrap { display: grid; gap: 16px; }
.legal-lead p { color: var(--ink-2); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem); line-height: 2; white-space: pre-line; }
.legal-lead p + p { margin-top: 10px; }

.legal-toc {
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--r-l);
  background: var(--brand-soft);
}
.legal-toc h2 { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 1rem; }
.legal-toc h2 .icon { width: 20px; height: 20px; }
.legal-toc ol { display: grid; gap: 2px; margin-top: 8px; }
.legal-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
}
.legal-toc a:hover, .legal-toc a:focus-visible { background: var(--surface); }

.legal-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.legal-card {
  padding: clamp(18px, 3.4vw, 30px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-1);
  scroll-margin-top: 96px;
}
.legal-card h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.35rem); line-height: 1.5; }
.legal-card h2 + div { margin-top: 12px; }
.legal-card p { color: var(--ink-2); line-height: 2; white-space: pre-line; }
.legal-card p + p, .legal-card p + .legal-list, .legal-card .legal-list + p { margin-top: 10px; }
.legal-list { display: grid; gap: 8px; }
.legal-list li { position: relative; padding-inline-start: 22px; color: var(--ink-2); line-height: 1.9; white-space: pre-line; }
.legal-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  inset-inline-start: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}
.legal-empty { display: grid; justify-items: center; gap: 12px; text-align: center; }
.legal-empty p { max-width: 34rem; color: var(--muted); }
.legal-empty .actions { justify-content: center; margin-top: 0; }

.legal-top { text-align: center; }
.legal-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 14px;
  color: var(--brand);
  font-weight: 700;
}
.legal-top .icon { width: 18px; height: 18px; }

.legal-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--r-l);
  background: var(--surface-2);
}
.legal-ask > div { flex: 1 1 16rem; }
.legal-ask h2 { font-size: 1.05rem; }
.legal-ask p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.legal-ask-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
}
.legal-ask-mark .icon { width: 24px; height: 24px; }

/* The privacy policy's link under the brand's line, in every footer (D1410). */
.footer-legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.footer-legal { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); }
.footer-legal .icon { width: 18px; height: 18px; color: var(--brand); }
.footer-legal:hover, .footer-legal[aria-current] { color: var(--brand); }
.footer-brand .footer-legal { margin-top: 10px; font-size: 0.93rem; }

/* ── Reduced motion: every picture stands still on its most telling frame (D596) ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
