/* ---- assets/css/base.css ---- */
/* Re-skin per client: their brand colour and type; two sites must not look alike.

   Starter base: neutral tokens (light + dark + .night), fonts, reset, type scale and primitives.
   House look: thin, sharp, quiet. Weights 400/500/600 only, 1px hairline borders, small radii (4-12px; pills only
   for chips), ONE accent set (--brand, --brand-fill, --brand-fill-hover, --brand-soft, --brand-ink) that each site
   replaces, strong ease-out, UI motion under 300ms, transform/opacity only, hover only on fine pointers.
   Section styles live in css/sections/<file>.css and are concatenated after this file. */

/* ---------- fonts ----------
   Mikhak (Amin Abedi, OFL), the FD build (Persian digits), 400/500/600. Space Grotesk for Latin brand names. */
@font-face { font-family: "Mikhak"; src: url(/assets/fonts/mikhak-fd-regular.woff2?v=4aa464b7e8) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mikhak"; src: url(/assets/fonts/mikhak-fd-medium.woff2?v=9406dc18a3) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mikhak"; src: url(/assets/fonts/mikhak-fd-semibold.woff2?v=0cb6f4a722) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/space-grotesk-latin.woff2?v=cbee7234c1) format("woff2"); font-weight: 300 700; font-display: swap; }

/* ---------- tokens ----------
   Diba: white ground, near-black ink, the logo lime (#90c843) as the one action fill with black ink on it.
   Lime fails as text on white, so text accents use the deep leaf green (--brand). Dark = the expo hall at night.
   .night pins the dark palette on one block (footer, the scale band). */
:root {
  --font: "Mikhak", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Space Grotesk", var(--font);

  --canvas: #ffffff;
  --raised: #f3f4f5;
  --card: #ffffff;
  --elevated: #eceef0;
  --line: #e2e5e8;
  --line-strong: #c9ced3;
  --field-line: #8c939a;     /* 3.2:1 on white: control boundaries */
  --fg: #0c0e0f;
  --fg-2: #3a3f44;
  --fg-3: #5c636a;          /* 6:1 on white */

  --lime: #90c843;           /* the logo green */
  --brand: #3b6812;          /* text accent, 6.4:1 on white */
  --brand-fill: #90c843;
  --brand-fill-hover: #a2d65a;
  --brand-soft: #eef6e4;
  --brand-ink: #0c0e0f;      /* 11:1 on the lime */

  --shadow: 0 1px 2px rgb(12 14 15 / .05), 0 10px 28px -14px rgb(12 14 15 / .18);

  --r-1: 3px;
  --r-2: 6px;
  --r-3: 10px;
  --pill: 999px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --t-fast: 140ms;
  --t-ui: 220ms;
  --hdr-h: 64px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --hdr-h: 72px; --gutter: 48px; } }

:root[data-theme="dark"] {
  --canvas: #0b0d0e; --raised: #111416; --card: #15181b; --elevated: #1c2024;
  --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .18); --field-line: #6b7279;
  --fg: #f2f4f5; --fg-2: #bfc5ca; --fg-3: #8f979e;
  --brand: #a6d96a; --brand-fill: #90c843; --brand-fill-hover: #a2d65a; --brand-soft: rgb(144 200 67 / .12); --brand-ink: #0b0d0e;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 36px -14px rgb(0 0 0 / .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b0d0e; --raised: #111416; --card: #15181b; --elevated: #1c2024;
    --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .18); --field-line: #6b7279;
    --fg: #f2f4f5; --fg-2: #bfc5ca; --fg-3: #8f979e;
    --brand: #a6d96a; --brand-fill: #90c843; --brand-fill-hover: #a2d65a; --brand-soft: rgb(144 200 67 / .12); --brand-ink: #0b0d0e;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 36px -14px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
.night {
  --canvas: #0b0d0e; --raised: #111416; --card: #15181b; --elevated: #1c2024;
  --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .18); --field-line: #6b7279;
  --fg: #f2f4f5; --fg-2: #bfc5ca; --fg-3: #8f979e;
  --brand: #a6d96a; --brand-fill: #90c843; --brand-fill-hover: #a2d65a; --brand-soft: rgb(144 200 67 / .12); --brand-ink: #0b0d0e;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 36px -14px rgb(0 0 0 / .7);
  color-scheme: dark;
  background: var(--canvas);
  color: var(--fg);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a, button, input, label { touch-action: manipulation; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--hdr-h) + 16px); }
::selection { background: var(--brand-soft); color: var(--fg); }
.is-locked { overflow: hidden; }
.is-theming *, .is-theming *::before, .is-theming *::after { transition: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--fg); color: var(--canvas); border-radius: var(--r-2); }
.skip:focus-visible { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-1); }

/* ---------- type scale ---------- */
.h-display { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem); font-weight: 500; line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
.h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.75rem); font-weight: 500; line-height: 1.38; text-wrap: balance; }
.h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.6; }
.lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); color: var(--fg-2); line-height: 1.95; max-width: 60ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--fg-2); letter-spacing: 0; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand-fill); }
.muted { color: var(--fg-3); }
.latin { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }

/* Phone numbers in RTL: Persian digits are weak in bidi, so space-separated groups come out reversed
   («۰۹۱۳ ۷۳۰ ۰۷۵۰» shows as «۰۷۵۰ ۷۳۰ ۰۹۱۳»). One isolated LTR run fixes it; `right`, not match-parent. */
a[href^="tel:"] .num, a.num[href^="tel:"], .num { direction: ltr; unicode-bidi: isolate; text-align: right; word-spacing: .2em; font-variant-numeric: tabular-nums; }
/* Latin sub-labels and handles under Persian titles */
.tag-en { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left)); }
@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } .btn--sm { min-height: 44px; } }
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec--mist { background: var(--raised); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .h2 { margin-bottom: 12px; }
.sec-head p:not(.eyebrow) { color: var(--fg-2); font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-2);
  font-size: .95rem; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand-fill); color: var(--brand-ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--quiet { color: var(--brand); padding-inline: 8px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-fill-hover); }
  .btn--ghost:hover { border-color: var(--fg-3); background: var(--elevated); }
  .btn--quiet:hover { background: var(--brand-soft); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-2); color: var(--fg-2);
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.icon-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--elevated); color: var(--fg); } }

/* ---------- card, chip ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(20px, 3vw, 28px);
  transition: border-color var(--t-ui) var(--ease-out), translate var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card--link:hover { border-color: var(--line-strong); translate: 0 -2px; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--elevated);
  font-size: .8125rem; font-weight: 500; color: var(--fg-2);
}
.chip--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

/* ---------- reveal ----------
   [data-reveal] fades up once when first seen (core.js adds .is-in). [data-stagger] on a parent indexes its
   children (--i). Only transform and opacity. Without JS everything is visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease-out) calc(var(--i, 0) * 70ms), transform .7s var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ---- assets/css/sections/00-chrome.css ---- */
/* Chrome: header, mobile menu, footer, preview badge, dialog and toast. */

/* header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h);
  background: var(--canvas); border-bottom: 1px solid var(--line);
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
.hdr.is-solid { background: color-mix(in srgb, var(--canvas) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.hdr.is-over { background: transparent; border-bottom-color: transparent; color: #f3f5f8; }
.hdr.is-over .icon-btn { color: #bcc3cd; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-instant, .hdr.is-instant * { transition: none !important; }
.hdr__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo__tile { display: grid; place-items: center; width: 44px; height: 36px; border-radius: var(--r-1); background: var(--lime); color: #fff; }
.logo__mark { width: 30px; height: auto; }
.logo__name { font-size: .875rem; font-weight: 500; color: var(--fg-2); line-height: 1.3; }
@media (max-width: 380px) { .logo__name { display: none; } }
.hdr__nav { display: none; margin-inline-start: 16px; }
.hdr__list { display: flex; gap: 4px; }
.hdr__link { display: block; padding: 8px 12px; border-radius: var(--r-2); font-size: .9375rem; color: var(--fg-2); transition: color var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out); }
.hdr.is-over .hdr__link { color: #bcc3cd; }
.hdr__link[aria-current="page"] { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .hdr__link:hover { color: var(--fg); background: var(--elevated); } }
.hdr__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.hdr__cta { display: none; }
@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1024px) { .hdr__nav { display: block; } .hdr__burger { display: none; } }

/* mobile menu: a sheet under the header */
.menu {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49; background: color-mix(in srgb, var(--canvas) 40%, transparent);
  opacity: 0; visibility: hidden; transition: opacity var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu.is-instant { transition: none; }
.menu__panel { display: grid; gap: 16px; align-content: start; padding-block: 12px 24px; background: var(--canvas); border-bottom: 1px solid var(--line); max-width: none; }
.menu__nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.menu__nav a[aria-current="page"] { color: var(--brand); }
@media (min-width: 1024px) { .menu { display: none; } }

/* main sits under the fixed header; a leading .hero.night slides up behind it */
main { padding-top: var(--hdr-h); }
main > .hero:first-child { margin-top: calc(var(--hdr-h) * -1); padding-top: var(--hdr-h); }

/* footer */
.ftr { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.ftr__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.logo--ftr { margin-bottom: 14px; }
.ftr__h { font-weight: 500; font-size: .875rem; color: var(--fg-3); margin-bottom: 10px; }
.ftr__text { color: var(--fg-2); font-size: .9375rem; }
.ftr__list { display: grid; gap: 6px; font-size: .9375rem; color: var(--fg-2); }
.ftr a { transition: color var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ftr a:hover { color: var(--fg); } }
.ftr__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-block: 20px calc(20px + 64px); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--fg-3); }
.ftr__bar a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* preview badge: bottom start corner, quiet, hideable */
.pbadge {
  position: fixed; inset-inline-start: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; max-width: calc(100vw - 96px);
  background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  font-size: .75rem; line-height: 1.4; color: var(--fg-3);
}
.pbadge__link { padding: 6px 4px 6px 8px; }
.pbadge__x { display: grid; place-items: center; width: 28px; height: 28px; margin-inline-end: 2px; border-radius: var(--r-1); color: var(--fg-3); transition: color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.pbadge__x:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pbadge__link:hover, .pbadge__x:hover { color: var(--fg); } }

/* dialog (D.dialog) */
.dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgb(13 16 20 / .5); }
.dlg[open] { animation: dlg-in var(--t-ui) var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dlg__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 20px; border-bottom: 1px solid var(--line); }
.dlg__title { font-weight: 600; }
.dlg__body { padding: 20px; }

/* toast (D.toast) */
.toasts { position: fixed; inset-inline: 0; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 70; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 16px; background: var(--fg); color: var(--canvas); border-radius: var(--r-2); font-size: .875rem; opacity: 0; transform: translateY(8px); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
.toast.is-in { opacity: 1; transform: none; }


/* ---- assets/css/sections/00-shared.css ---- */
/* Shared pieces used by more than one section. */
.h2 .soft { color: var(--fg-3); }
.btn--xl { min-height: 60px; padding: 0 32px; font-size: 1.125rem; border-radius: var(--r-2); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { transform: translateY(-1px); } .btn--primary:active { transform: scale(.97); } }

/* An underlined text link whose line draws on hover. */
.link-line {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem; font-weight: 500; color: var(--fg); cursor: pointer;
}
.link-line::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 9px; height: 1px; background: var(--line-strong);
}
.link-line::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 9px; height: 1px; background: var(--fg); z-index: 1;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link-line:hover::before { transform: scaleX(1); } }

/* Sections that hold one screen on a laptop or desktop (taste: one section per screen). */
@media (min-width: 1024px) and (min-height: 640px) {
  .sec--screen { min-height: calc(100svh - var(--hdr-h)); display: flex; align-items: center; padding-block: 48px; }
  .sec--screen > .wrap { width: 100%; }
}

/* Photos zoom a touch inside their frame on hover. */
.zoom { overflow: hidden; }
.zoom img { transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .zoom:hover img { transform: scale(1.025); } }


/* ---- assets/css/sections/01-hero.css ---- */
/* Hero: triptych. RTL: the headline on the right, the collage in the middle, the button on the left line. */
.hero { padding-block: 24px 32px; }
.hero__grid { display: grid; gap: 28px; }
.hero__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1.3; margin-bottom: 16px; }
.hero__lead { font-size: 1rem; line-height: 1.9; color: var(--fg-2); max-width: 40ch; }
.hero__act { display: grid; gap: 2px; justify-items: center; }
.hero__act .btn { width: 100%; }

.hero__collage { position: relative; aspect-ratio: 4 / 3.3; width: 100%; }
@media (max-width: 767px) { .hero__title { font-size: 2.1rem; margin-bottom: 10px; } .hero__lead { font-size: .95rem; line-height: 1.8; } .hero__grid { gap: 20px; } .hero .eyebrow { margin-bottom: 10px; } }
.col-set { position: absolute; inset: 0; }
.pc {
  position: absolute; object-fit: cover; aspect-ratio: 3 / 2; height: auto;
  border-radius: var(--r-2); background: var(--elevated);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  opacity: 0; transform: translateY(10px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.col-set.is-on .pc { opacity: 1; transform: none; }
.col-set.is-on .pc--b { transition-delay: 40ms; }
.col-set.is-on .pc--c { transition-delay: 80ms; }
.col-set.is-on .pc--d { transition-delay: 120ms; }
.pc--a { top: 0; inset-inline-start: 0; width: 70%; z-index: 1; }
.pc--b { top: 22%; inset-inline-end: 0; width: 46%; z-index: 2; }
.pc--c { top: 50%; inset-inline-start: 4%; width: 52%; z-index: 3; }
.pc--d { top: 66%; inset-inline-end: 6%; width: 50%; z-index: 2; }

.col-pause {
  position: absolute; z-index: 5; inset-inline-end: 0; bottom: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--canvas); color: var(--fg); box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-ui) var(--ease-out);
}
.col-pause:active { transform: scale(.94); }
.col-pause .i-play { display: none; }
.col-pause[aria-pressed="true"] .i-play { display: block; }
.col-pause[aria-pressed="true"] .i-pause { display: none; }
@media (hover: hover) and (pointer: fine) { .col-pause:hover { background: var(--elevated); } }

/* entrance, once on load */
.js .hero[data-enter] .hero__text > *, .js .hero[data-enter] .hero__act { opacity: 0; transform: translateY(12px); }
.js .hero.is-entered .hero__text > *, .js .hero.is-entered .hero__act {
  opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js .hero.is-entered .hero__text > :nth-child(2) { transition-delay: 70ms; }
.js .hero.is-entered .hero__text > :nth-child(3) { transition-delay: 140ms; }
.js .hero.is-entered .hero__act { transition-delay: 260ms; }
.js .hero[data-enter]:not(.is-entered) .col-set.is-on .pc { opacity: 0; transform: translateY(10px) scale(.98); }

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .hero__text { grid-column: 1 / -1; }
  .hero__collage { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .hero__act { grid-column: 1 / -1; grid-template-columns: auto auto; align-items: center; gap: 24px; justify-content: start; }
  .hero__act .btn { width: auto; }
}
@media (min-width: 1024px) {
  .hero { min-height: 100svh; display: flex; align-items: stretch; padding-block: 48px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; min-height: calc(100svh - var(--hdr-h) - 96px); }
  .hero__text { grid-column: 1 / span 3; }
  .hero__collage { grid-column: 4 / span 6; aspect-ratio: auto; height: min(716px, calc(100svh - var(--hdr-h) - 96px)); }
  .hero__act { grid-column: 10 / span 3; justify-items: end; align-self: center; }
  .hero__act .btn { width: auto; }
  .hero__title { font-size: clamp(2.5rem, 1.2rem + 2.2vw, 3.25rem); }
}
@media (prefers-reduced-motion: reduce) {
  .pc { transition: opacity .2s linear; transform: none !important; }
}


/* ---- assets/css/sections/02-about.css ---- */
/* About: the claim, four facts, and the same client's two booths. */
.about__grid { display: grid; gap: 40px; }
.about__text .h2 { margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--line); }
.fact { padding: 18px 0 18px 16px; border-bottom: 1px solid var(--line); }
.fact:nth-child(even) { padding-inline: 16px 0; border-inline-start: 1px solid var(--line); }
.fact dt { font-size: 1.5rem; font-weight: 500; line-height: 1.4; }
.fact dd { margin-top: 4px; font-size: .9rem; color: var(--fg-3); line-height: 1.7; }
.about__pics { display: grid; gap: 12px; }
.about__pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-2); background: var(--elevated); }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .about__text { grid-column: 1 / span 6; }
  .about__pics { grid-column: 8 / span 5; position: relative; display: block; height: 600px; }
  .about__pic { position: absolute; }
  .about__pic--a { top: 0; inset-inline-start: 0; width: 100%; }
  .about__pic--b { bottom: 0; inset-inline-end: 0; width: 76%; box-shadow: 0 0 0 6px var(--canvas); }
}


/* ---- assets/css/sections/03-work.css ---- */
/* Work: a hall directory. Rows open a gallery dialog; on desktop the hovered or focused row shows in the preview. */
.work__head { display: grid; gap: 8px; margin-bottom: 28px; }
.work__hint { color: var(--fg-3); font-size: .95rem; }
.dir { display: grid; gap: 32px; }
.dir__list { border-top: 1px solid var(--line-strong); counter-reset: none; }
.dir__list li { border-bottom: 1px solid var(--line); }
.dir__row {
  position: relative; display: grid; grid-template-columns: auto 72px 1fr auto; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 10px 4px; text-align: start;
  transition: background-color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.dir__row::before {
  content: ""; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 3px; background: var(--brand-fill);
  transform: scaleY(0); transition: transform var(--t-ui) var(--ease-out);
}
.dir__row.is-cur::before { transform: scaleY(1); }
.dir__row:active { transform: scale(.995); }
.dir__no { font-size: .8125rem; color: var(--fg-3); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.dir__thumb { display: block; width: 72px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-1); background: var(--elevated); }
.dir__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dir__name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.dir__brand { font-size: 1.02rem; font-weight: 500; line-height: 1.5; }
.dir__fair { font-size: .85rem; color: var(--fg-3); line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.dir__pics { display: none; font-size: .8125rem; color: var(--fg-3); white-space: nowrap; }
.dir__arrow { color: var(--fg-3); transition: transform var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dir__row:hover { background: var(--raised); }
  .dir__row:hover .dir__arrow { transform: translateX(-3px); color: var(--fg); }
}
.dir__preview { display: none; }
@media (min-width: 640px) {
  .dir__row { grid-template-columns: 2.2em 96px 1fr auto auto; gap: 18px; }
  .dir__thumb { width: 96px; }
  .dir__pics { display: inline; }
}
@media (min-width: 1024px) {
  .work__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 36px; }
  .dir { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .dir__list { grid-column: 1 / span 7; }
  .dir__row { grid-template-columns: 2.2em 1fr auto auto; min-height: 60px; }
  .dir__thumb { display: none; }
  .dir__preview {
    display: block; grid-column: 8 / span 5; position: sticky; top: calc(var(--hdr-h) + 32px);
    aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-2); background: var(--elevated);
  }
  .dir__preview img { width: 100%; height: 100%; object-fit: cover; }
}

/* the gallery dialog */
.dlg--gallery { width: min(1040px, calc(100vw - 24px)); }
.dlg--gallery .dlg__head { position: sticky; top: 0; z-index: 1; background: var(--card); }
.dlg--gallery .dlg__title { font-size: 1rem; overflow-wrap: anywhere; }
.dlg.is-instant[open] { animation: none; }
.gal__fair { padding: 12px 20px 0; color: var(--fg-3); font-size: .9rem; overflow-wrap: anywhere; }
.gal { display: grid; gap: 10px; padding: 16px 20px 20px; }
.gal img { width: 100%; height: auto; border-radius: var(--r-1); background: var(--elevated); }
.gal--tall { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .gal--tall { grid-template-columns: repeat(4, 1fr); } }
.dlg { max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }


/* ---- assets/css/sections/04-kashan.css ---- */
/* Kashan: one story told big. The photo develops from a grey print to colour once (picture-develops). */
.kashan__grid { display: grid; gap: 32px; }
.kashan__text .h2 { margin-bottom: 16px; }
.kashan__text .link-line { margin-top: 12px; }
.kashan__small { display: none; }
.develop { position: relative; overflow: hidden; border-radius: var(--r-2); background: var(--elevated); aspect-ratio: 720 / 1060; max-height: 82svh; justify-self: center; width: 100%; }
.develop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.develop__print { filter: grayscale(1) contrast(.82) brightness(1.12); opacity: 0; }
.js .develop.is-waiting .develop__print { opacity: 1; }
.js .develop.is-waiting .develop__img { transform: scale(1.06); }
.develop__img { transition: transform 1.6s var(--ease-out); }
.develop__print { transition: opacity 1.6s var(--ease-out); }
@media (min-width: 1024px) {
  .kashan__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .kashan__text { grid-column: 1 / span 5; display: grid; justify-items: start; }
  .develop { grid-column: 7 / span 6; width: auto; height: min(760px, calc(100svh - var(--hdr-h) - 96px)); max-height: none; }
  .kashan__small { display: block; width: 46%; margin-top: 32px; aspect-ratio: 480 / 707; object-fit: cover; border-radius: var(--r-2); }
}
@media (prefers-reduced-motion: reduce) {
  .js .develop.is-waiting .develop__print { opacity: 0; }
  .js .develop.is-waiting .develop__img { transform: none; }
}


/* ---- assets/css/sections/05-build.css ---- */
/* Build: pinned chapters on desktop. The section is 2 screens of scroll beyond its own; the stage sticks. */
.build__text .h2 { margin-bottom: 10px; }
.build__intro { color: var(--fg-2); margin-bottom: 28px; max-width: 46ch; }
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; }
.step__no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-1); border: 1px solid var(--line-strong); font-size: .9rem; }
.step p { color: var(--fg-2); font-size: .95rem; line-height: 1.85; }
.step__pic { grid-column: 1 / -1; width: 100%; max-height: 70svh; object-fit: cover; border-radius: var(--r-2); background: var(--elevated); margin-top: 10px; }
.build__frame { display: none; }

@media (min-width: 1024px) and (min-height: 640px) {
  .build.is-pinned { padding-block: 0; height: calc(100svh * 3); }
  .build.is-pinned .build__stage { position: sticky; top: var(--hdr-h); height: calc(100svh - var(--hdr-h)); display: flex; align-items: center; }
  .build.is-pinned .build__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .build.is-pinned .build__text { grid-column: 1 / span 5; }
  .build.is-pinned .step__pic { display: none; }
  .build.is-pinned .step:not(.is-on) .h3, .build.is-pinned .step:not(.is-on) p { color: var(--fg-3); }
  .build.is-pinned .step:not(.is-on) .step__no { color: var(--fg-3); }
  .build.is-pinned .step.is-on .step__no { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
  .build.is-pinned .build__frame {
    display: block; grid-column: 7 / span 6; position: relative; height: min(740px, calc(100svh - var(--hdr-h) - 80px));
    overflow: hidden; border-radius: var(--r-2); background: var(--elevated);
  }
  .build__frame img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0s linear .26s; }
  .build__frame img.is-on { z-index: 2; opacity: 1; transition: opacity .24s var(--ease-out); }
}
@media (min-width: 1024px) {
  .build:not(.is-pinned) .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}


/* ---- assets/css/sections/06-scale.css ---- */
/* Scale: a type moment. The number set very large in the display face, three short facts beside it. */
.scale__title { margin-bottom: 24px; }
.scale__big { padding-block: 8px 28px; border-bottom: 1px solid var(--line-strong); }
.scale__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; line-height: 1; }
.scale__digits { font-size: clamp(5.5rem, 2rem + 17vw, 15rem); font-weight: 500; line-height: 1; letter-spacing: 0; }
.scale__unit { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); font-weight: 500; color: var(--fg-2); }
.scale__unit::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 12px; background: var(--brand-fill); border-radius: 2px; vertical-align: middle; }
.scale__what { margin-top: 14px; color: var(--fg-3); }
.scale__list { display: grid; gap: 0; }
.scale__list li { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.scale__k { font-size: 1.35rem; font-weight: 500; }
.scale__v { color: var(--fg-2); font-size: .95rem; max-width: 46ch; }
@media (min-width: 1024px) {
  .scale__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .scale__list li { border-bottom: 0; padding-top: 24px; }
}


/* ---- assets/css/sections/07-contact.css ---- */
/* Contact: the request form, then direct lines beside one photograph. */
.contact__grid { display: grid; gap: 40px; }
.contact__main .h2 { margin-bottom: 12px; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--fg-2); }
.field .opt { font-weight: 400; color: var(--fg-3); }
.field input {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--r-2);
  background: var(--card); font-size: 16px; line-height: 1.6;
  transition: border-color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out);
}
.field input::placeholder { color: var(--fg-3); opacity: .8; }
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--fg); }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field__err { min-height: 0; font-size: .85rem; color: #b3261e; }
.field__err:empty { display: none; }
.form__foot { display: grid; gap: 10px; justify-items: start; margin-top: 4px; }
.form__note { font-size: .8125rem; color: var(--fg-3); }
.form__done { margin-top: 28px; padding: 24px; border: 1px solid var(--line-strong); border-inline-start: 3px solid var(--brand-fill); border-radius: var(--r-2); }
.form__done .h3 { margin-bottom: 6px; }
.form__done p:not(.h3) { color: var(--fg-2); }
.form__done:focus-visible { outline-offset: 4px; }
.contact__pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-2); background: var(--elevated); margin-bottom: 16px; }
.callcards { display: grid; border-top: 1px solid var(--line); }
.callcard {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 4px;
  border-bottom: 1px solid var(--line); transition: background-color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.callcard:active { transform: scale(.99); }
.callcard__k { color: var(--fg-3); font-size: .9rem; }
.callcard__v { font-size: 1.1rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .callcard:hover { background: var(--raised); } }
:root[data-theme="dark"] .field__err { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__err { color: #ff8a80; } }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .contact__main { grid-column: 1 / span 7; }
  .contact__side { grid-column: 9 / span 4; padding-top: 8px; }
}


/* ---- assets/css/sections/90-assistant.css ---- */
/* Demo assistant: floating button at the bottom end corner, small panel above it. */
.as { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; }
.as__fab {
  display: grid; place-items: center; width: 52px; height: 52px; margin-inline-start: auto;
  background: var(--brand-fill); color: var(--brand-ink); border-radius: var(--r-3);
  box-shadow: var(--shadow);
  transition: background-color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.as__fab:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .as__fab:hover { background: var(--brand-fill-hover); } }
.as__panel {
  position: absolute; inset-inline-end: 0; bottom: 64px;
  width: min(340px, calc(100vw - 32px)); max-height: min(520px, calc(100dvh - 120px));
  display: flex; flex-direction: column;
  background: var(--card); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--r-3); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: bottom left;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.as__panel.is-open { opacity: 1; transform: none; }
.as__panel--instant { transition: none; }
.as__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.as__title { font-weight: 600; font-size: .9375rem; }
.as__log { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.as__msg { max-width: 88%; padding: 8px 12px; border-radius: var(--r-2); font-size: .875rem; line-height: 1.8; }
.as__msg--bot { background: var(--elevated); align-self: flex-start; }
.as__msg--user { background: var(--brand-soft); color: var(--fg); align-self: flex-end; }
.as__qs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.as__q {
  min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-2);
  font-size: .8125rem; text-align: start; line-height: 1.6;
  transition: border-color var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.as__q:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .as__q:hover { border-color: var(--brand); background: var(--brand-soft); } }
.as__note { padding: 8px 16px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--fg-3); text-align: center; }
@media (max-width: 480px) { .as__panel { width: calc(100vw - 32px); } }
@media (pointer: coarse) { .as__q { min-height: 44px; } }
