/* =====================================================================
   Celomix — cinematic homepage
   RTL-first; logical properties mirror the layout for English (LTR).
   ===================================================================== */

:root {
  --bg: #f6f3ee;
  --bg-2: #eee8df;
  --paper: #fffdf9;
  --ink: #1c1612;
  --ink-2: #4a3f37;
  --muted: #8b7f74;
  --espresso: #15100d;
  --espresso-2: #201813;
  --espresso-3: #2c221b;
  --cream: #efe7da;
  --line: rgba(28, 22, 18, .12);
  --line-light: rgba(255, 255, 255, .14);
  --red: #db5b58;
  --red-deep: #a74c49;
  --red-ink: #b8403d;
  --gold: #c8a46c;
  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --header-h: 80px;
  --sans: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --poem: "Noto Naskh Arabic", "Vazirmatn", serif;
  --display: "Vazirmatn", system-ui, sans-serif;
  --latin: "Montserrat", "Vazirmatn", sans-serif;
  --ease: cubic-bezier(.22, .7, .15, 1);
  --ease-cine: cubic-bezier(.65, 0, .2, 1);
  --fiber: url("../img/fiber.jpg");
}
html[lang="en"], html[lang="fr"] {
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --poem: "Cormorant Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.menu-open, html.dialog-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body, html[lang="fr"] body { line-height: 1.65; font-size: 15.5px; }

img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* film grain over everything — subtle, cinematic */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* textured swatch: colour + cellulose fibre */
[style*="--c"] { --c: #ccc; }
.tex, .sw-tex, .strip, .mini-sw, .pal-sw, .hero-chip, .viz-chip, .chip-dot, .cd-texture, .pj-color i, .picked-chip i {
  background-color: var(--c);
  background-image:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.12)),
    var(--fiber);
  background-size: 100% 100%, 100% 100%, 260px 260px;
  background-blend-mode: normal, normal, soft-light;
}

/* ------------------------------------------------------------------ type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--red-ink);
  margin-block-end: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--gold); }
html[lang="en"] .eyebrow, html[lang="fr"] .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px; }

.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; margin-block-end: clamp(32px, 4.5vw, 64px); }
.section h2, .story-title { font-family: var(--display); }
.section h2 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
html[lang="en"] .section h2, html[lang="fr"] .section h2 { font-weight: 500; letter-spacing: -.01em; line-height: 1.05; font-size: clamp(38px, 5.4vw, 76px); }
.section-lead { max-width: 52ch; color: var(--ink-2); font-size: 16.5px; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.demo-note { margin-block-start: 28px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.demo-note::before { content: "i"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; font-style: italic; font-family: Georgia, serif; }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  border: 1px solid transparent; background: none;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), transform .3s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-cine); }
[dir="ltr"] .btn::after { transform-origin: left; }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary::after { background: var(--red-deep); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.04); }
.btn-ghost::after { background: #fff; }
.btn-ghost:hover { color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::after { background: var(--red); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark::after { background: var(--ink); }
.btn-ghost-dark:hover { color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--red-ink); }
.link-arrow::after { content: "←"; transition: transform .35s var(--ease); }
[dir="ltr"] .link-arrow::after { content: "→"; }
.link-arrow:hover::after { transform: translateX(-5px); }
[dir="ltr"] .link-arrow:hover::after { transform: translateX(5px); }
.link-arrow.light { color: var(--gold); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--red-ink); font-weight: 500; font-size: 14px; }

.badge { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(219,91,88,.12); color: var(--red-ink); font-weight: 500; }

/* ------------------------------------------------------------------ chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.chips.small .chip { min-height: 34px; padding: 0 13px; font-size: 13px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid currentColor; background: none; color: inherit; opacity: .9; }

/* ------------------------------------------------------------------ fields */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.field.full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 10px 16px;
  border: 1px solid #d8d0c4; border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28,22,18,.06); }
input[aria-invalid="true"] { border-color: var(--red-ink); }
input[type="range"] { padding: 0; min-height: 32px; accent-color: var(--red); border: 0; background: none; box-shadow: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; color: #fff;
  transition: background-color .5s var(--ease), box-shadow .5s, transform .5s var(--ease);
  background: linear-gradient(to bottom, rgba(15,10,8,.55), rgba(15,10,8,0));
}
.site-header.scrolled { background: rgba(21,16,13,.88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.brand img { width: 38px; height: auto; }
.brand-word { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .22em; line-height: 1; direction: ltr; padding-inline-start: .22em; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: clamp(14px, 2.2vw, 36px); }
.main-nav a { position: relative; font-size: 14.5px; padding-block: 8px; opacity: .82; transition: opacity .3s; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .45s var(--ease-cine); }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-mobile-only { display: none; }

.header-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; direction: ltr; font-family: "Montserrat", sans-serif; }
.lang-switch button { min-width: 36px; height: 30px; border: 0; border-radius: 999px; background: none; color: #fff; font-size: 11.5px; letter-spacing: .08em; opacity: .65; transition: all .3s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); opacity: 1; font-weight: 600; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: #fff; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; margin-inline: auto; transition: transform .4s var(--ease), background-color .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.bars::before { top: -8px; } .bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; isolation: isolate; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--espresso); overflow: hidden; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.8s var(--ease-cine), transform 9s linear;
}
.hero-frame.is-active { opacity: 1; transform: scale(1.02); }
[dir="ltr"] .hero-frame { object-position: 60% 50%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(14,9,7,.82) 0%, rgba(14,9,7,.55) 30%, rgba(14,9,7,.05) 62%),
    linear-gradient(to bottom, rgba(14,9,7,.5) 0%, transparent 25%, transparent 62%, rgba(14,9,7,.75) 100%);
}
[dir="ltr"] .hero-shade {
  background:
    linear-gradient(to right, rgba(14,9,7,.82) 0%, rgba(14,9,7,.55) 30%, rgba(14,9,7,.05) 62%),
    linear-gradient(to bottom, rgba(14,9,7,.5) 0%, transparent 25%, transparent 62%, rgba(14,9,7,.75) 100%);
}
.hero-inner { padding-block: calc(var(--header-h) + 40px) 180px; }
.hero-kicker { font-size: 14px; letter-spacing: .06em; color: rgba(255,255,255,.78); margin-block-end: 22px; display: flex; align-items: center; gap: 14px; }
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--red); }
html[lang="en"] .hero-kicker, html[lang="fr"] .hero-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
.hero-title { font-family: var(--display); font-size: clamp(54px, 9vw, 148px); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; text-shadow: 0 10px 60px rgba(0,0,0,.25); }
html[lang="en"] .hero-title, html[lang="fr"] .hero-title { font-weight: 500; line-height: .98; letter-spacing: -.02em; font-size: clamp(56px, 9.5vw, 156px); }
html[lang="ar"] .hero-title { font-weight: 800; }
.hero-title .line { display: block; overflow: hidden; padding-block: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease-cine); }
.hero-title .line:nth-child(2) > span { transition-delay: .14s; }
.ready .hero-title .line > span { transform: none; }
.hero-title .line:nth-child(2) { color: var(--cream); }
.hero-sub { max-width: 36ch; margin-block-start: 26px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 300; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 42px; }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.hero-sub.reveal-up { transition-delay: .65s; } .hero-actions.reveal-up { transition-delay: .8s; }
.ready .reveal-up { opacity: 1; transform: none; }

.hero-colorbar { position: absolute; inset-inline: 0; bottom: 0; padding-block-end: 28px; }
.hero-colorbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-current {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(20,14,11,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; text-align: start; transition: background-color .3s;
}
[dir="rtl"] .hero-current { padding: 10px 10px 10px 18px; }
.hero-current:hover { background: rgba(20,14,11,.6); }
.hero-chip { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); transition: background-color 1.2s var(--ease); }
.hero-current-text { display: flex; flex-direction: column; line-height: 1.35; }
.hero-current-text small { font-size: 11.5px; opacity: .7; letter-spacing: .04em; font-family: var(--latin); }
.hero-current-text strong { font-weight: 600; font-size: 16px; }
.hero-current-cta { font-size: 12.5px; color: var(--gold); padding-inline-start: 10px; border-inline-start: 1px solid rgba(255,255,255,.2); margin-inline-start: 4px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { position: relative; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; display: grid; place-items: center; }
.hero-dot i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: transform .4s var(--ease); }
.hero-dot:hover i, .hero-dot.is-active i { transform: scale(1.18); }
.hero-dot::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
.hero-dot.is-active::before { --p: 1; }
.hero-dot.run::before { animation: ring 6.5s linear forwards; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes ring { from { --p: 0; } to { --p: 1; } }
.scroll-cue { position: absolute; inset-inline-start: 50%; bottom: 120px; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; transform: translateX(50%); display: none; }
.scroll-cue span { position: absolute; top: 8px; inset-inline-start: 50%; width: 3px; height: 8px; margin-inline-start: -1.5px; border-radius: 2px; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =====================================================================
   STORY
   ===================================================================== */
.story { background: var(--espresso); color: var(--cream); padding-block: clamp(90px, 12vw, 180px); position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, rgba(200,164,108,.12), transparent 60%); pointer-events: none; }
.story-grid { position: relative; }
.story-title { font-size: clamp(28px, 4.1vw, 60px); font-weight: 300; line-height: 1.55; max-width: 24ch; color: #f5efe6; }
html[lang="en"] .story-title, html[lang="fr"] .story-title { font-weight: 400; line-height: 1.18; max-width: 22ch; font-size: clamp(34px, 4.8vw, 72px); }
.story-title .w { display: inline-block; opacity: .12; transition: opacity .9s var(--ease), color .9s; transition-delay: calc(var(--i) * 45ms); }
.story-title.in .w { opacity: 1; }
.js .story-title.reveal { transform: none; opacity: 1; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-block-start: clamp(64px, 8vw, 120px); }
.pillar { border-block-start: 1px solid var(--line-light); padding-block-start: 22px; }
.pillar-num { font-family: var(--latin); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.pillar h3 { font-size: 19px; font-weight: 600; margin-block: 10px 8px; color: #fff; }
.pillar p { font-size: 14.5px; color: rgba(239,231,218,.7); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--paper); }
.about-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: center; }
.about-copy .section-lead + .section-lead { margin-block-start: 14px; }
.about-copy h2 { margin-block-end: 22px; }
.about-slogan { margin-block-start: 34px; font-family: var(--poem); font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); }
.about-slogan span:last-child { color: var(--red-ink); }
html[lang="en"] .about-slogan, html[lang="fr"] .about-slogan { font-style: italic; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; }
.stats li { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 4px; }
.stats li:first-child { background: var(--espresso); color: var(--cream); }
.stats strong { font-family: var(--display); font-size: clamp(44px, 5vw, 76px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
html[lang="en"] .stats strong, html[lang="fr"] .stats strong { font-weight: 500; }
.stats li:first-child strong { color: var(--gold); }
.stats span { font-size: 14px; color: var(--muted); }
.stats li:first-child span { color: rgba(239,231,218,.7); }

/* =====================================================================
   PRODUCT LINES
   ===================================================================== */
.lines { background: var(--espresso); color: var(--cream); }
.lines .section-lead { color: rgba(239,231,218,.75); }
.line-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.line-card { position: relative; padding: 0 0 26px; border-radius: var(--radius-lg); overflow: hidden; background: var(--espresso-3); transition: transform .6s var(--ease); }
.line-card:hover { transform: translateY(-6px); }
.line-tex { display: block; height: 240px; margin-block-end: 22px; background-color: var(--c);
  background-image: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.22), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.18)), var(--fiber);
  background-size: 100% 100%, 100% 100%, 300px 300px; background-blend-mode: normal, normal, soft-light; transition: transform 1.2s var(--ease); }
.line-card:hover .line-tex { transform: scale(1.06); }
.line-tex.silk { background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%), linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.15)), var(--fiber); background-size: 220% 100%, 100% 100%, 220px 220px; animation: sheen 6s var(--ease) infinite; }
.line-tex.sparkle { background-image: radial-gradient(circle at 13% 27%, rgba(255,250,235,.45) 0 .5px, transparent 1.2px), radial-gradient(circle at 71% 64%, rgba(255,255,255,.35) 0 .6px, transparent 1.4px), radial-gradient(circle at 46% 83%, rgba(255,236,190,.4) 0 .4px, transparent 1.1px), radial-gradient(circle at 88% 12%, rgba(255,255,255,.3) 0 .5px, transparent 1.3px), linear-gradient(115deg, transparent 35%, rgba(255,250,235,.32) 50%, transparent 65%), linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.16)), var(--fiber); background-size: 23px 29px, 41px 37px, 57px 53px, 71px 67px, 220% 100%, 100% 100%, 260px 260px; animation: sheen2 7s var(--ease) infinite; }
@keyframes sheen2 { 0%, 100% { background-position: 0 0, 0 0, 0 0, 0 0, 120% 0, 0 0, 0 0; } 50% { background-position: 0 0, 0 0, 0 0, 0 0, -20% 0, 0 0, 0 0; } }
@keyframes sheen { 0%, 100% { background-position: 120% 0, 0 0, 0 0; } 50% { background-position: -20% 0, 0 0, 0 0; } }
.line-num { position: absolute; top: 16px; inset-inline-start: 18px; font-family: var(--latin); font-size: 12px; letter-spacing: .12em; color: rgba(28,22,18,.6); }
.line-card h3 { padding-inline: 24px; font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; color: #fff; }
html[lang="en"] .line-card h3, html[lang="fr"] .line-card h3 { font-weight: 500; }
.line-latin { padding-inline: 24px; font-family: var(--latin); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-block: 2px 12px; }
.line-card p:last-child { padding-inline: 24px; font-size: 14.5px; color: rgba(239,231,218,.75); }

/* =====================================================================
   TECHNICAL
   ===================================================================== */
.tech { background: var(--bg); }
.tech-block { display: grid; grid-template-columns: 300px 1fr; gap: 24px clamp(28px, 4vw, 64px); padding-block: clamp(30px, 4vw, 52px); border-block-start: 1px solid var(--line); }
.tech-head { display: flex; flex-direction: column; gap: 10px; }
.tech-no { font-family: var(--latin); font-size: 13px; font-weight: 600; color: var(--red-ink); letter-spacing: .1em; }
.tech-head h3 { font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; line-height: 1.35; }
html[lang="en"] .tech-head h3, html[lang="fr"] .tech-head h3 { font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); }
.tech-head small { display: block; margin-block-start: 6px; font-family: var(--latin); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); direction: ltr; text-align: start; }
[dir="rtl"] .tech-head small { text-align: right; }
.spec-grid { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec { background: var(--paper); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.spec.hl { background: var(--espresso); color: var(--cream); }
.spec dt { font-size: 13px; color: var(--muted); }
.spec.hl dt { color: var(--gold); }
.spec dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.spec dd b { font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; line-height: 1.35; }
.spec dd span { font-size: 13px; color: var(--ink-2); }
.spec.hl dd span { color: rgba(239,231,218,.7); }
.tech-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tech-cols > div { padding: 24px; border-radius: var(--radius-lg); background: var(--paper); }
.tech-cols h4 { font-size: 17px; font-weight: 700; margin-block-end: 12px; }
.tech-cols p { font-size: 14.5px; color: var(--ink-2); }
.substrates li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-block-end: 1px solid var(--line); font-size: 15.5px; font-weight: 500; }
.substrates em { font-style: normal; font-family: var(--latin); font-size: 13px; color: var(--red-ink); direction: ltr; }
.note-risk { margin-block-start: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(219,91,88,.08); font-size: 13.5px !important; }
.use-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.use-tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid.two { grid-template-columns: 1fr 1fr; }
.feature-grid li { padding: 24px; border-radius: var(--radius-lg); background: var(--paper); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.feature-grid li:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(28,22,18,.45); }
.fi { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); margin-block-end: 16px; }
.fi svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h4 { font-size: 17px; font-weight: 700; margin-block-end: 8px; }
.feature-grid p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.matrix.compare { min-width: 640px; }
.matrix.compare td { text-align: center; }
.matrix.compare th.us, .matrix.compare td.us { background: rgba(219,91,88,.08); }
.matrix.compare thead th.us { background: var(--red); color: #fff; font-family: var(--latin); letter-spacing: .14em; }
.matrix.compare td.yes { color: #2f6b45; font-weight: 700; }
.matrix.compare td.no { color: var(--muted); font-size: 13.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin-block-end: 14px; }
.steps h4 { font-size: 17px; font-weight: 700; margin-block-end: 6px; }
.steps p { font-size: 14px; color: var(--ink-2); }
.calc-result.calc-result-2 { grid-template-columns: 1fr 1fr; margin-block-start: -8px; }
.calc-packs { margin: 4px 0 14px; font-size: 14.5px; font-weight: 600; color: var(--ink, #23343a); min-height: 1.4em; }
.seg-sub button { font-size: 13px; }
.foot-slogan { font-family: var(--poem); font-size: 18px !important; color: #fff; }
html[lang="en"] .foot-slogan, html[lang="fr"] .foot-slogan { font-style: italic; }
@media (max-width: 1180px) {
  .line-grid { grid-template-columns: 1fr 1fr; }
  .tech-block { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; }
  .tech-cols, .feature-grid, .feature-grid.two { grid-template-columns: 1fr; }
  .matrix.compare { min-width: 0; }
  .matrix.compare td { text-align: start; }
  .matrix.compare td.us { background: rgba(219,91,88,.08); }
}
@media (max-width: 560px) {
  .line-grid, .spec-grid, .steps { grid-template-columns: 1fr; }
  .line-tex { height: 180px; }
  .seg-sub { flex-direction: column; border-radius: 16px; }
  .seg-sub button { border-radius: 12px; }
}

/* =====================================================================
   CAPABILITIES / UNITS
   ===================================================================== */
.units { background: var(--paper); }
.flow { list-style: none; margin: 0 0 clamp(32px, 4vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.flow::before { content: ""; position: absolute; top: 19px; inset-inline: 7%; height: 2px; background: linear-gradient(to left, var(--red), var(--gold)); opacity: .5; }
[dir="ltr"] .flow::before { background: linear-gradient(to right, var(--red), var(--gold)); }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-inline: 4px; }
.flow span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--gold); font-weight: 700; font-size: 14px; box-shadow: 0 0 0 6px var(--paper); }
.flow li:first-child span, .flow li:last-child span { background: var(--red); color: #fff; }
.flow b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.unit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.unit { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid transparent; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.unit:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: 0 34px 56px -40px rgba(28,22,18,.55); }
.unit:nth-child(2), .unit:nth-child(6) { background: var(--espresso); color: var(--cream); }
.unit:nth-child(2) .unit-d, .unit:nth-child(6) .unit-d, .unit:nth-child(2) .unit-list, .unit:nth-child(6) .unit-list { color: rgba(239,231,218,.75); }
.unit:nth-child(2) .fi, .unit:nth-child(6) .fi { background: var(--red); }
.unit:nth-child(2) .fi svg, .unit:nth-child(6) .fi svg { stroke: #fff; }
.unit:nth-child(2) .link-arrow, .unit:nth-child(6) .link-arrow { color: var(--gold); }
.unit:nth-child(2) h3, .unit:nth-child(6) h3 { color: #fff; }
.unit-top { display: flex; justify-content: space-between; align-items: flex-start; }
.unit-top .fi { margin: 0; }
.unit-no { font-family: var(--latin); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.unit h3 { font-size: 20px; font-weight: 800; margin-block-start: 8px; }
html[lang="en"] .unit h3, html[lang="fr"] .unit h3 { font-family: var(--display); font-weight: 500; font-size: 26px; }
.unit-en { font-family: var(--latin); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); direction: ltr; text-align: start; }
[dir="rtl"] .unit-en { text-align: right; }
.unit:nth-child(2) .unit-en, .unit:nth-child(6) .unit-en { color: var(--gold); }
.unit-d { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.unit-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.unit-list li { display: flex; gap: 8px; align-items: baseline; }
.unit-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transform: translateY(-2px); }
.unit .link-arrow { align-self: flex-start; }
.unit.unit-cta { background: linear-gradient(150deg, var(--red-deep), #6e2e2c); color: #fff; justify-content: center; }
.unit.unit-cta h3 { color: #fff; font-size: 24px; }
.unit.unit-cta .unit-d { color: rgba(255,255,255,.8); }
.unit-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 10px; }
.unit-cta .btn-primary { background: #fff; color: var(--ink); }
.unit-cta .btn-primary::after { background: var(--cream); }

/* =====================================================================
   EXPORT & LOGISTICS
   ===================================================================== */
.export { background: var(--espresso); color: var(--cream); overflow: hidden; }
.export::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 10% 0%, rgba(219,91,88,.14), transparent 60%), radial-gradient(40% 50% at 95% 100%, rgba(200,164,108,.12), transparent 60%); pointer-events: none; }
.export .wrap { position: relative; }
.export .section-lead { color: rgba(239,231,218,.78); }
.xsteps { list-style: none; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }
.xsteps li { background: var(--espresso-2); padding: 22px 22px 24px; transition: background-color .4s; }
.xsteps li:hover { background: var(--espresso-3); }
.xs-no { display: block; font-family: var(--latin); font-size: 12px; color: var(--gold); letter-spacing: .12em; margin-block-end: 10px; }
.xsteps h4 { font-size: 17px; font-weight: 700; color: #fff; margin-block-end: 6px; }
.xsteps p { font-size: 13.5px; color: rgba(239,231,218,.7); line-height: 1.8; }
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xcard { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line-light); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 14px; }
.xcard h3 { font-size: 19px; font-weight: 700; color: #fff; }
.xlist { list-style: none; margin: 0; padding: 0; flex: 1; }
.xlist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-block-end: 1px solid var(--line-light); font-size: 14px; }
.xlist b { font-family: var(--latin); font-weight: 500; font-size: 13px; color: var(--gold); direction: ltr; }
.xlist span { color: rgba(239,231,218,.8); text-align: end; }
.xcheck { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; color: rgba(239,231,218,.85); }
.xcheck li { display: flex; gap: 10px; align-items: baseline; }
.xcheck li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.fine.light { color: rgba(239,231,218,.5); }
.xdest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-block-start: 16px; padding: 26px 28px; border-radius: var(--radius-lg); background: linear-gradient(110deg, rgba(219,91,88,.18), rgba(200,164,108,.1)); border: 1px solid var(--line-light); }
.xdest h3 { font-size: 20px; font-weight: 700; color: #fff; margin-block-end: 6px; }
.xdest p { font-size: 14.5px; color: rgba(239,231,218,.8); max-width: 60ch; }
@media (max-width: 1180px) {
  .xsteps { grid-template-columns: repeat(2, 1fr); }
  .xgrid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .flow::before { display: none; }
}
@media (max-width: 760px) {
  .xgrid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .xsteps { grid-template-columns: 1fr; } }

/* =====================================================================
   COLLECTIONS
   ===================================================================== */
.collections { background: var(--bg); padding-block-end: clamp(60px, 8vw, 120px); }
.collection-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 28px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  scroll-padding-inline: var(--gutter);
}
@media (min-width: 1500px) { .collection-rail { padding-inline: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); } }
.col-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.col-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(28,22,18,.45); }
.col-strips { display: flex; height: 300px; }
.strip { flex: 1; cursor: pointer; transition: flex .7s var(--ease-cine); position: relative; }
.strip:hover { flex: 2.6; }
.col-body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.col-num { font-family: var(--latin); font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.col-body h3 { font-family: var(--display); font-size: 34px; font-weight: 800; }
html[lang="en"] .col-body h3, html[lang="fr"] .col-body h3 { font-weight: 500; font-size: 40px; }
.col-body p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.col-foot { display: flex; justify-content: space-between; align-items: center; padding-block-start: 14px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* =====================================================================
   CATALOGUE
   ===================================================================== */
.catalog { background: var(--bg-2); }
.catalog-tools { display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 1px 0 var(--line); margin-block-end: 26px; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; pointer-events: none; }
.search input { padding-inline-start: 50px; border-radius: 999px; background: var(--bg); border-color: transparent; min-height: 54px; }
.search.small input { min-height: 46px; background: var(--paper); border-color: var(--line); }
.filter-row { display: grid; grid-template-columns: 96px 1fr; align-items: start; gap: 12px; }
.filter-label { font-size: 13px; color: var(--muted); padding-block-start: 9px; }
.catalog-count { font-size: 13px; color: var(--muted); margin-block-end: 18px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.sw-btn { all: unset; display: block; width: 100%; cursor: pointer; }
.sw-tex { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 18px 30px -24px rgba(28,22,18,.5); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.sw-tex::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); background-size: 260% 100%; background-position: 120% 0; transition: background-position 1.1s var(--ease); }
.sw-btn:hover .sw-tex, .sw-btn:focus-visible .sw-tex { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 36px 44px -28px rgba(28,22,18,.6); }
.sw-btn:hover .sw-tex::after { background-position: -40% 0; }
.sw-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 10px; }
.sw-code { position: absolute; top: 12px; inset-inline-start: 14px; font-family: var(--latin); font-size: 11px; letter-spacing: .1em; color: rgba(28,22,18,.6); direction: ltr; }
.sw-tex.dark .sw-code { color: rgba(255,255,255,.75); }
.sw-meta { display: flex; flex-direction: column; padding: 14px 4px 0; line-height: 1.5; }
.sw-meta strong { font-size: 16px; font-weight: 600; }
.sw-meta small { font-size: 12.5px; color: var(--muted); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* =====================================================================
   SPACES
   ===================================================================== */
.spaces { background: var(--espresso); color: var(--cream); overflow: hidden; }
.spaces .section-lead { color: rgba(239,231,218,.75); }
.spaces-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.spaces-tabs { display: flex; flex-direction: column; border-block-start: 1px solid var(--line-light); }
.space-tab { display: flex; align-items: baseline; gap: 16px; padding: 18px 4px; border: 0; border-block-end: 1px solid var(--line-light); background: none; text-align: start; color: rgba(239,231,218,.55); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; font-family: var(--display); transition: color .4s, padding .5s var(--ease); }
html[lang="en"] .space-tab, html[lang="fr"] .space-tab { font-weight: 500; font-size: clamp(22px, 2vw, 28px); }
.space-tab:hover { color: #fff; }
.space-tab.is-active { color: #fff; padding-inline-start: 14px; }
.space-num { font-family: var(--latin); font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.spaces-panel { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; animation: fadeIn .8s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.space-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.space-media img { width: 100%; height: 100%; object-fit: cover; animation: kb 12s ease-out both; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1); } }
.space-copy h3 { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 800; color: #fff; }
html[lang="en"] .space-copy h3, html[lang="fr"] .space-copy h3 { font-weight: 500; }
.space-text { font-family: var(--poem); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.9; margin-block: 14px 18px; color: rgba(239,231,218,.9); }
html[lang="en"] .space-text, html[lang="fr"] .space-text { font-style: italic; line-height: 1.5; font-size: clamp(20px, 1.7vw, 25px); }
.space-count { font-size: 13px; color: var(--gold); margin-block-end: 12px; }
.space-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 22px; }
.mini-sw { width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 6px 14px -6px rgba(0,0,0,.5); transition: transform .35s var(--ease); }
.mini-sw:hover, .mini-sw.is-active { transform: scale(1.14); }
.mini-sw.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }

/* =====================================================================
   VISUALISER
   ===================================================================== */
.visualizer { background: var(--bg); }
.viz-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.viz-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--espresso); box-shadow: 0 50px 80px -50px rgba(28,22,18,.7); }
#viz-canvas, #viz-fallback { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
#viz-canvas.flash, #viz-fallback.flash { animation: vizIn .6s var(--ease); }
@keyframes vizIn { from { opacity: .55; filter: blur(2px); } to { opacity: 1; filter: none; } }
.viz-tag { position: absolute; top: 16px; inset-inline-start: 16px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: #fff; background: rgba(20,14,11,.5); backdrop-filter: blur(10px); }
.viz-tag b { font-family: var(--latin); font-weight: 600; letter-spacing: .06em; }
.viz-scenes { position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 8px; }
.scene-btn { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,14,11,.5); color: #fff; font-size: 12.5px; backdrop-filter: blur(10px); transition: background-color .3s; }
[dir="rtl"] .scene-btn { padding: 5px 5px 5px 12px; }
.scene-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.scene-btn.is-active { background: #fff; color: var(--ink); }
.scene-btn:disabled { opacity: .35; cursor: not-allowed; }
.viz-side { display: grid; gap: 20px; }
.viz-info { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.viz-chip { width: 64px; height: 64px; flex: none; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.viz-info small { display: block; font-size: 12px; color: var(--muted); }
.viz-info strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.4; }
.viz-palette { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding-inline-end: 6px; }
.pal-group { display: grid; gap: 6px; }
.pal-label { font-size: 12px; color: var(--muted); }
.pal-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
@media (min-width: 1181px) { .viz-side { gap: 14px; } .pal-sw { aspect-ratio: 1.35; } }
.pal-sw { aspect-ratio: 1; border-radius: 8px; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .3s var(--ease), box-shadow .3s; }
.pal-sw:hover { transform: translateY(-2px); }
.pal-sw.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.viz-upload { display: grid; gap: 8px; padding: 16px 18px; border: 1px dashed #cbbfae; border-radius: var(--radius-lg); font-size: 13.5px; color: var(--ink-2); }
.viz-upload .badge { justify-self: start; }

/* ------------------------------------------------------------------ your own room */
.viz-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); margin-block-end: 22px; }
.viz-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font-size: 14.5px; color: var(--ink-2); transition: all .35s var(--ease); }
.viz-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.viz-tabs .new { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; }
.mr { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.mr-stage { position: relative; }
.mr-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  min-height: clamp(360px, 46vw, 560px); padding: 32px; border-radius: var(--radius-lg); cursor: pointer;
  border: 1.5px dashed #c9bba8; color: var(--ink-2);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(160deg, #efe7da, #e4d8c6);
  transition: border-color .3s, transform .4s var(--ease);
}
.mr-drop:hover, .mr-drop.over { border-color: var(--red); transform: scale(1.005); }
.mr-drop strong { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; color: var(--ink); }
html[lang="en"] .mr-drop strong, html[lang="fr"] .mr-drop strong { font-weight: 500; }
.mr-drop .btn { margin-block-start: 8px; pointer-events: none; }
.mr-drop-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.mr-drop-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.mr-privacy { max-width: 40ch; color: var(--muted); font-size: 12.5px; }
.mr-try { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--red-ink); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.mr-canvas { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--espresso); box-shadow: 0 50px 80px -50px rgba(28,22,18,.7); user-select: none; -webkit-user-select: none; touch-action: none; }
.mr-canvas canvas { display: block; width: 100%; height: auto; }
#mr-after, #mr-mask { position: absolute; inset: 0; height: 100%; }
#mr-mask { pointer-events: none; image-rendering: auto; }
.mr-canvas[data-tool="add"], .mr-canvas[data-tool="sub"] { cursor: crosshair; }
.mr-canvas[data-tool="brush"], .mr-canvas[data-tool="erase"] { cursor: cell; }
#mr-after.flash { animation: vizIn .5s var(--ease); }
.mr-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 999px; background: rgba(20,14,11,.72); color: #fff; font-size: 15px; backdrop-filter: blur(8px); pointer-events: none; animation: pulse 2.2s var(--ease) infinite; white-space: nowrap; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(219,91,88,.55); } 50% { box-shadow: 0 0 0 14px rgba(219,91,88,0); } }
.mr-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(20,14,11,.45); backdrop-filter: blur(2px); }
.mr-busy p { margin: 0; padding: 0 20px; color: #fff; font-size: 14px; text-align: center; }
.mr-busy p:empty { display: none; }
.mr-busy span { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mr-compare { position: absolute; inset: 0; }
.mr-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.mr-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.mr-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; }
.mr-lbl { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(20,14,11,.6); color: #fff; font-size: 12px; pointer-events: none; }
.mr-lbl.before { inset-inline-start: 14px; } .mr-lbl.after { inset-inline-end: 14px; }
.mr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block-start: 14px; padding: 12px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.mr-tools { flex-wrap: wrap; }
.mr-tools button { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; }
.mr-tools svg, .icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mr-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); transition: all .25s; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mr-slider { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.mr-slider input { width: 120px; min-height: 28px; }
.mr-side { display: grid; gap: 16px; }
.mr-side .mr-slider input { flex: 1; width: auto; }
.mr-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.mr-steps li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: var(--paper); font-size: 12px; color: var(--muted); text-align: center; transition: all .4s var(--ease); }
.mr-steps li span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-weight: 700; font-size: 13px; }
.mr-steps li b { font-weight: 500; overflow-wrap: anywhere; hyphens: auto; }
.mr-steps li.is-active { background: var(--ink); color: #fff; }
.mr-steps li.is-active span { background: var(--red); color: #fff; }
.mr-steps li.is-done span { background: #2f6b45; color: #fff; }
.mr-poem { margin-block-start: 6px; font-family: var(--poem); font-size: 15px; line-height: 1.85; color: var(--ink-2); }
html[lang="en"] .mr-poem, html[lang="fr"] .mr-poem { font-style: italic; font-size: 17px; line-height: 1.45; }
#mr-info { align-items: flex-start; }
.mr-share { display: grid; gap: 10px; }
.mr-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-wa { background: #23a55a; color: #fff; } .btn-wa::after { background: #1b8a4a; }
.btn-tg { background: #2a9fd8; color: #fff; } .btn-tg::after { background: #1f86b9; }
.btn-wa svg, .btn-tg svg { width: 18px; height: 18px; fill: currentColor; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled::after { display: none; }
@media (max-width: 1180px) { .mr { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mr-toolbar { gap: 10px; }
  .mr-tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 18px; }
  .mr-tools button { justify-content: center; white-space: nowrap; font-size: 12.5px; min-height: 40px; border-radius: 14px; }
  .mr-actions { width: 100%; justify-content: space-between; }
  .mr-slider { width: 100%; justify-content: space-between; }
  .mr-slider input { flex: 1; }
  .viz-tabs { width: 100%; } .viz-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
}

/* =====================================================================
   PROJECTS
   ===================================================================== */
.projects { background: var(--paper); }
.geo { display: grid; gap: 14px; margin-block-end: 30px; }
.country-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-block-end: 1px solid var(--line); }
.ctab { position: relative; padding: 12px 0; border: 0; background: none; font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; color: var(--muted); transition: color .3s; }
.ctab sup { font-family: var(--latin); font-size: 10.5px; font-weight: 500; color: var(--red-ink); margin-inline-start: 2px; }
.ctab::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .45s var(--ease-cine); }
.ctab:hover, .ctab.is-active { color: var(--ink); }
.ctab.is-active::after { transform: scaleX(1); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.pj { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--espresso); color: #fff; min-height: 340px; display: flex; }
.pj.wide { grid-column: span 2; }
.pj.full { grid-column: 1 / -1; min-height: 420px; }
.pj figure { position: absolute; inset: 0; }
.pj img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pj:hover img { transform: scale(1.06); }
.pj-body { position: relative; align-self: flex-end; width: 100%; padding: 70px 24px 22px; background: linear-gradient(to top, rgba(14,9,7,.86), rgba(14,9,7,.35) 60%, transparent); }
.pj-place { font-size: 12.5px; letter-spacing: .04em; color: var(--gold); }
.pj h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; margin-block: 2px 12px; }
html[lang="en"] .pj h3, html[lang="fr"] .pj h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2vw, 30px); }
.pj-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pj-color { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 12.5px; backdrop-filter: blur(6px); transition: background-color .3s; }
[dir="rtl"] .pj-color { padding: 5px 6px 5px 12px; }
.pj-color:hover { background: rgba(255,255,255,.2); }
.pj-color i { width: 20px; height: 20px; border-radius: 50%; }

/* =====================================================================
   CALCULATOR
   ===================================================================== */
.calculator { background: var(--bg-2); }
.calc-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.calc-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.calc-intro .section-lead { margin-block-start: 20px; }
.calc-card { background: var(--paper); border-radius: 18px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 20px; box-shadow: 0 50px 80px -60px rgba(28,22,18,.55); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: none; font-size: 14px; color: var(--ink-2); transition: all .35s var(--ease); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.walls { display: grid; gap: 12px; }
.wall-row { display: grid; grid-template-columns: 70px 1fr 1fr 36px; align-items: end; gap: 12px; }
.wall-label { font-size: 13px; color: var(--muted); padding-block-end: 14px; }
.wall-remove { width: 36px; height: 50px; border: 0; background: none; font-size: 22px; color: var(--muted); }
.wall-remove:hover { color: var(--red-ink); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-result { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.calc-result > div { background: var(--bg); padding: 16px; display: grid; gap: 2px; text-align: center; }
.calc-result small { font-size: 12px; color: var(--muted); }
.calc-result strong { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.calc-result .primary { background: var(--ink); color: #fff; }
.calc-result .primary small { color: rgba(255,255,255,.65); }
.calc-result .primary strong { color: #fff; font-size: clamp(24px, 2.6vw, 34px); }

/* =====================================================================
   QUALITY
   ===================================================================== */
.quality { background: var(--espresso-2); color: var(--cream); }
.quality .section-lead { color: rgba(239,231,218,.75); margin-block-start: 18px; }
.quality-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.quality-figure { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.quality-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 0 14px rgba(255,255,255,.03), 0 60px 90px -40px rgba(0,0,0,.8); }
.quality-figure figcaption { position: absolute; bottom: 8%; inset-inline-end: 0; padding: 8px 16px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; }
.q-list { margin-block-start: 32px; }
.q-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-block-end: 1px solid var(--line-light); font-size: 17px; }
.q-list em { font-style: normal; font-size: 12px; color: var(--gold); }

/* =====================================================================
   PROJECT VALUE (ICB4 / PMBOK)
   ===================================================================== */
.pm { background: var(--paper); border-block-start: 1px solid var(--line); }
.triple { display: flex; gap: 0; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.triple li { padding: 10px 22px; font-size: 14px; font-weight: 600; }
.triple li + li { border-inline-start: 1px solid var(--ink); }
.triple li:nth-child(2) { background: var(--ink); color: #fff; }
.pm-intro { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; padding-block: 30px; border-block: 1px solid var(--line); margin-block-end: clamp(40px, 5vw, 72px); }
.pm-kicker { font-size: 13px; color: var(--red-ink); font-weight: 600; padding-block-start: 6px; }
.pm-lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.9; color: var(--ink); max-width: 64ch; }
html[lang="en"] .pm-lead, html[lang="fr"] .pm-lead { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.45; }
.pm-block { display: grid; grid-template-columns: 300px 1fr; gap: 24px clamp(28px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px); border-block-end: 1px solid var(--line); }
.pm-block-head h3 { font-family: var(--display); font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; margin-block: 12px 10px; }
html[lang="en"] .pm-block-head h3, html[lang="fr"] .pm-block-head h3 { font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); }
.pm-block-head p { font-size: 14.5px; color: var(--ink-2); }
.std { display: inline-block; font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; background: var(--espresso); color: var(--gold); direction: ltr; }
.icb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: icb; }
.icb li { position: relative; padding: 26px 24px; border-radius: var(--radius-lg); background: var(--bg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.icb li:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(28,22,18,.5); }
.code-tag { display: inline-block; font-family: var(--latin); font-size: 11px; letter-spacing: .08em; color: var(--red-ink); direction: ltr; }
.icb h4, .domain h4 { font-size: 19px; font-weight: 700; margin-block: 10px 8px; }
.icb p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.domain { padding: 26px 26px 10px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.domain-tag { font-family: var(--latin); font-size: 11px; letter-spacing: .1em; color: var(--muted); direction: ltr; text-align: end; }
[dir="rtl"] .domain-tag { text-align: start; }
.domain dl { margin: 14px 0 0; }
.domain dt { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15.5px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.domain dd { margin: 6px 0 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.kpi { flex: none; font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; direction: ltr; }
.matrix-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.matrix th, .matrix td { padding: 18px 20px; text-align: start; vertical-align: top; line-height: 1.75; }
.matrix thead th { background: var(--espresso); color: var(--cream); font-size: 13px; font-weight: 600; }
.matrix tbody tr + tr { border-block-start: 1px solid var(--line); }
.matrix tbody th { font-weight: 700; width: 22%; background: var(--bg); }
.matrix td.good { color: #2f6b45; }
.matrix td.risk { color: var(--red-ink); }
.matrix td.good::before, .matrix td.risk::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 8px; background: currentColor; vertical-align: middle; }
.pm-quote { margin-block-start: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); border-radius: 18px; background: var(--espresso); color: var(--cream); position: relative; overflow: hidden; }
.pm-quote::before { content: "”"; position: absolute; top: -40px; inset-inline-start: 24px; font-family: Georgia, serif; font-size: 220px; line-height: 1; color: var(--red); opacity: .35; }
[dir="ltr"] .pm-quote::before { content: "“"; }
.pm-quote blockquote { position: relative; font-family: var(--poem); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.95; max-width: 60ch; }
html[lang="en"] .pm-quote blockquote, html[lang="fr"] .pm-quote blockquote { font-style: italic; line-height: 1.45; font-size: clamp(23px, 2.2vw, 31px); }
.pm-quote figcaption { margin-block-start: 18px; font-size: 13px; color: var(--gold); }
.pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block-start: 28px; }
.pm-sheet { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 1180px) {
  .pm-block { grid-template-columns: 1fr; }
  .icb { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .pm-intro { grid-template-columns: 1fr; }
  .icb, .domains { grid-template-columns: 1fr; }
  /* matrix becomes stacked cards */
  .matrix-wrap { border: 0; overflow: visible; }
  .matrix { min-width: 0; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: auto; }
  .matrix tbody tr { border: 1px solid var(--line) !important; border-radius: var(--radius-lg); overflow: hidden; margin-block-end: 12px; }
  .matrix tbody th { width: auto; background: var(--espresso); color: var(--cream); }
  .matrix td { padding-block: 12px; border-block-start: 1px solid var(--line); }
  .matrix td::after { content: none; }
  .matrix td[data-label]::before { content: attr(data-label); display: block; width: auto; height: auto; margin: 0 0 4px; background: none; border-radius: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
}

/* =====================================================================
   DEALERS
   ===================================================================== */
.dealers { background: var(--bg); }
.dealer-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-block-end: 28px; }
.dealer-tools .country-tabs { flex: 1; }
.dealer-tools .search { width: min(320px, 100%); }
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dealer { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--ease), box-shadow .5s; }
.dealer:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(28,22,18,.5); }
.dealer.featured { background: var(--espresso); color: var(--cream); }
.dealer.featured .dealer-country, .dealer.featured .dealer-soon { color: rgba(239,231,218,.6); }
.dealer.featured .link-arrow { color: var(--gold); }
.dealer-type { align-self: flex-start; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(219,91,88,.12); color: var(--red-ink); margin-block-end: 10px; }
.dealer.featured .dealer-type { background: var(--red); color: #fff; }
.dealer h3 { font-family: var(--display); font-size: 28px; font-weight: 800; }
html[lang="en"] .dealer h3, html[lang="fr"] .dealer h3 { font-weight: 500; font-size: 32px; }
.dealer-country { font-size: 13px; color: var(--muted); }
.dealer-name { font-size: 14.5px; margin-block-start: 10px; font-weight: 500; }
.dealer-soon { font-size: 13px; color: var(--muted); flex: 1; }
.dealer .link-arrow { margin-block-start: 12px; align-self: flex-start; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: var(--espresso); color: var(--cream); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: var(--fiber); background-size: 300px; opacity: .06; mix-blend-mode: screen; pointer-events: none; }
.contact .section-lead { color: rgba(239,231,218,.78); margin-block-start: 18px; }
.contact-layout { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact-channels { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 34px; }
.channel { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 14px; transition: background-color .3s, border-color .3s; }
.channel:hover { background: var(--red); border-color: var(--red); }
.channel svg, .social svg, .fab svg { width: 18px; height: 18px; fill: currentColor; }
.contact-form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; box-shadow: 0 60px 100px -50px rgba(0,0,0,.7); }
.seg-light { flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; min-height: 50px; padding: 8px; border: 1px dashed #d1c6b7; border-radius: var(--radius); align-items: center; }
.picked em { font-style: normal; font-size: 13px; color: var(--muted); padding-inline: 8px; }
.picked-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
[dir="rtl"] .picked-chip { padding: 4px 5px 4px 12px; }
.picked-chip i { width: 22px; height: 22px; border-radius: 50%; }
.picked-chip:hover { border-color: var(--red-ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 14px; }
.form-status.ok { color: #2f7a4b; }
.form-status.err { color: var(--red-ink); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: #0f0b09; color: rgba(239,231,218,.75); padding-block: 80px 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand .brand-word { color: #fff; font-size: 18px; }
.footer-brand p { font-size: 14px; max-width: 30ch; }
.site-footer h3 { font-size: 13px; font-weight: 600; color: #fff; margin-block-end: 14px; letter-spacing: .04em; }
.footer-nav li + li { margin-block-start: 8px; }
.footer-nav a { font-size: 14px; transition: color .3s; }
.footer-nav a:hover { color: #fff; }
.footer-news p { font-size: 14px; }
.social { display: flex; gap: 10px; margin-block-start: 16px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: all .3s; }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-word { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: clamp(64px, 17vw, 270px); letter-spacing: .08em; line-height: .9; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(239,231,218,.14); margin-block: 60px 20px; direction: ltr; white-space: nowrap; user-select: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; border-block-start: 1px solid rgba(255,255,255,.08); padding-block-start: 20px; }
.preview-flag { color: var(--gold); }

/* =====================================================================
   COLOUR DIALOG
   ===================================================================== */
.color-dialog {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: min(860px, calc(100svh - 32px));
  padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 80px 140px -40px rgba(0,0,0,.6);
}
.color-dialog[open] { animation: dlgIn .7s var(--ease-cine); }
.color-dialog::backdrop { background: rgba(12,8,6,.72); backdrop-filter: blur(6px); animation: fadeOnly .5s; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.cd-inner { display: grid; grid-template-columns: 1.15fr 1fr; height: min(860px, calc(100svh - 32px)); }
.cd-media { position: relative; background: var(--c); overflow: hidden; }
.cd-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.cd-texture { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); background-size: 100% 100%, 100% 100%, 340px 340px; }
.cd-media.show-texture .cd-texture { opacity: 1; }
.cd-toggle { position: absolute; bottom: 18px; inset-inline-start: 18px; display: flex; padding: 4px; border-radius: 999px; background: rgba(20,14,11,.55); backdrop-filter: blur(10px); }
.cd-toggle button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #fff; font-size: 13px; }
.cd-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.cd-body { position: relative; padding: clamp(28px, 4vw, 56px); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.cd-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 26px; line-height: 1; color: var(--ink); transition: all .3s; }
.cd-close:hover { background: var(--ink); color: #fff; }
.cd-meta { font-family: var(--latin); font-size: 12.5px; letter-spacing: .12em; color: var(--muted); }
html[lang="fa"] .cd-meta, html[lang="ar"] .cd-meta { font-family: var(--sans); letter-spacing: .04em; }
.cd-name { font-family: var(--display); font-size: clamp(38px, 4.4vw, 64px); font-weight: 900; line-height: 1.1; margin-block-start: -10px; }
html[lang="en"] .cd-name, html[lang="fr"] .cd-name { font-weight: 500; }
.cd-poem { position: relative; font-family: var(--poem); font-size: clamp(19px, 1.7vw, 24px); line-height: 2; color: var(--ink-2); padding-inline-start: 22px; border-inline-start: 3px solid var(--c); }
html[lang="en"] .cd-poem, html[lang="fr"] .cd-poem { font-style: italic; line-height: 1.5; font-size: clamp(22px, 2vw, 28px); }
.cd-block h3 { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-block-end: 10px; }
.cd-block .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-block .tag { color: var(--ink-2); }
.cd-block .tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cd-projects { display: grid; gap: 10px; }
.cd-projects li { display: flex; align-items: center; gap: 12px; }
.cd-projects img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.cd-projects span { display: flex; flex-direction: column; line-height: 1.45; font-size: 14px; }
.cd-projects small { color: var(--muted); font-size: 12px; }
.cd-family { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-family .mini-sw { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cd-family .mini-sw.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.cd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: auto; }
.cd-nav { display: flex; gap: 8px; }
.cd-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 22px; }
.cd-nav button:hover { background: var(--ink); color: #fff; }
[dir="rtl"] .cd-nav button { transform: scaleX(-1); }

/* =====================================================================
   FLOATING
   ===================================================================== */
.chat-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.past-hero .chat-fab { opacity: 1; transform: none; pointer-events: auto; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-tg { background: #2a9fd8; }
.fab-wa { background: #23a55a; }
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(50%, 30px); z-index: 400; padding: 12px 22px; border-radius: 16px; width: max-content; max-width: min(92vw, 460px); line-height: 1.7; text-align: center; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: all .5s var(--ease); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); max-width: calc(100vw - 32px); }
[dir="ltr"] .toast { transform: translate(-50%, 30px); }
.toast.show { opacity: 1; transform: translate(50%, 0); }
[dir="ltr"] .toast.show { transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 13.5px; }
  .header-cta { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .viz-layout { grid-template-columns: 1fr; }
  .viz-palette { max-height: none; grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .brand { flex-direction: row; gap: 10px; }
  .brand img { width: 30px; }
  .header-tools { margin-inline-start: auto; gap: 10px; }
  .main-nav {
    position: fixed; inset: 0; top: 0; z-index: -1; margin: 0;
    display: flex; align-items: center; background: rgba(15,10,8,.97);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; padding: calc(var(--header-h) + 10px) var(--gutter) 40px; }
  .main-nav li { overflow: hidden; }
  .main-nav a { display: block; padding: 12px 0; font-size: clamp(24px, 6vw, 34px); font-weight: 700; opacity: 1; border-block-end: 1px solid rgba(255,255,255,.07); transform: translateY(100%); transition: transform .7s var(--ease-cine); }
  .main-nav.open a { transform: none; }
  .main-nav.open li:nth-child(2) a { transition-delay: .04s; } .main-nav.open li:nth-child(3) a { transition-delay: .08s; }
  .main-nav.open li:nth-child(4) a { transition-delay: .12s; } .main-nav.open li:nth-child(5) a { transition-delay: .16s; }
  .main-nav.open li:nth-child(6) a { transition-delay: .2s; } .main-nav.open li:nth-child(7) a { transition-delay: .24s; }
  .main-nav.open li:nth-child(8) a { transition-delay: .28s; }
  .main-nav a::after { display: none; }
  .nav-mobile-only { display: block; }

  .hero { justify-content: flex-end; }
  .hero-frame, [dir="ltr"] .hero-frame { object-position: 66% 50%; }
  .hero-shade, [dir="ltr"] .hero-shade { background: linear-gradient(to top, rgba(14,9,7,.92) 0%, rgba(14,9,7,.6) 42%, rgba(14,9,7,.05) 72%, rgba(14,9,7,.5) 100%); }
  .hero-inner { padding-block: 120px 170px; }
  .hero-colorbar-inner { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .hero-dots { justify-content: space-between; }
  .hero-dot { width: 46px; height: 46px; } .hero-dot i { width: 26px; height: 26px; }
  .hero-current { justify-content: flex-start; }
  .hero-current-cta { margin-inline-start: auto; }

  .spaces-layout { grid-template-columns: 1fr; }
  .spaces-tabs { flex-direction: row; overflow-x: auto; border: 0; gap: 8px; scrollbar-width: none; }
  .spaces-tabs::-webkit-scrollbar { display: none; }
  .space-tab { flex: none; border: 1px solid var(--line-light); border-radius: 999px; padding: 8px 18px; font-size: 16px; }
  .space-tab.is-active { padding-inline-start: 18px; background: #fff; color: var(--ink); }
  .space-num { display: none; }
  .spaces-panel { grid-template-columns: 1fr; }
  .calc-layout, .quality-layout, .contact-layout { grid-template-columns: 1fr; }
  .calc-intro { position: static; }
  .cd-inner { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding-block: 72px; }
  .lang-switch button { min-width: 30px; height: 28px; font-size: 10.5px; }
  @media (max-width: 380px) { .lang-switch button { min-width: 27px; letter-spacing: .02em; } }
  .hero-title { font-size: clamp(48px, 14vw, 72px); }
  html[lang="en"] .hero-title, html[lang="fr"] .hero-title { font-size: clamp(50px, 14vw, 76px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-current-cta { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding-block: 18px; }
  .collection-rail { grid-auto-columns: 82%; }
  .col-strips { height: 220px; }
  .filter-row { grid-template-columns: 1fr; gap: 6px; }
  .filter-row .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -22px; padding-inline: 22px; scrollbar-width: none; }
  .filter-row .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .catalog-tools { padding: 16px; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .viz-palette { grid-template-columns: 1fr 1fr; }
  .viz-scenes { inset-inline: 10px; bottom: 10px; overflow-x: auto; }
  .scene-btn { flex: none; }
  .scene-btn span { display: none; }
  [dir] .scene-btn { padding: 4px; }
  .project-grid { grid-template-columns: 1fr; }
  .pj.wide, .pj.full { grid-column: auto; }
  .pj { min-height: 300px; }
  .country-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .country-tabs::-webkit-scrollbar { display: none; }
  .ctab { flex: none; }
  .calc-grid, .form-grid { grid-template-columns: 1fr; }
  .wall-row { grid-template-columns: 1fr 1fr 32px; }
  .wall-label { grid-column: 1 / -1; padding: 0; }
  .calc-result { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .chat-fab { bottom: 16px; inset-inline-end: 14px; }
  .fab { width: 48px; height: 48px; }
  .color-dialog { width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; }
  .cd-inner { height: 100svh; grid-template-rows: 38% 1fr; }
  .cd-body { padding: 24px 20px 28px; gap: 18px; }
  .cd-close { position: fixed; top: 12px; inset-inline-end: 12px; z-index: 2; }
}

/* =====================================================================
   MATERIAL LAYER — "plastered with Celomix"
   Every section sits on a real cellulose surface under raking light;
   cards are raised plaster tiles, icons are medallions pressed into it.
   ===================================================================== */
:root {
  --fiber: url("../img/tex/relief.jpg");
  --tex-ivory: url("../img/tex/ivory.jpg");
  --tex-linen: url("../img/tex/linen.jpg");
  --tex-clay: url("../img/tex/clay.jpg");
  --tex-sage: url("../img/tex/sage.jpg");
  --tex-espresso: url("../img/tex/espresso.jpg");
  --tex-size: 820px;
  --rake-light: radial-gradient(ellipse 85% 70% at 12% -5%, rgba(255,251,242,.62), rgba(255,251,242,0) 62%);
  --rake-shade: linear-gradient(to bottom, rgba(70,48,30,0) 55%, rgba(70,48,30,.10));
  --rake-dark: radial-gradient(ellipse 70% 65% at 88% -10%, rgba(214,178,122,.13), rgba(214,178,122,0) 60%), radial-gradient(ellipse 120% 70% at 50% 115%, rgba(0,0,0,.55), rgba(0,0,0,0) 60%);
}
[dir="ltr"] { --rake-light: radial-gradient(ellipse 85% 70% at 88% -5%, rgba(255,251,242,.62), rgba(255,251,242,0) 62%); }

[data-mat] { background-color: var(--bg); background-repeat: no-repeat, no-repeat, repeat; background-size: 100% 100%, 100% 100%, var(--tex-size); }
[data-mat="ivory"] { background-image: var(--rake-light), var(--rake-shade), var(--tex-ivory); }
[data-mat="linen"] { background-image: var(--rake-light), var(--rake-shade), var(--tex-linen); }
[data-mat="clay"]  { background-image: var(--rake-light), var(--rake-shade), var(--tex-clay); }
[data-mat="sage"]  { background-image: var(--rake-light), var(--rake-shade), var(--tex-sage); }
[data-mat="espresso"] { background-color: var(--espresso); background-image: var(--rake-dark), linear-gradient(transparent, transparent), var(--tex-espresso); }
.story::before, .export::before, .contact::before { display: none; }
.site-footer { background: #0e0a08 var(--tex-espresso); background-size: var(--tex-size); background-blend-mode: multiply; }

/* sections meet like two plaster layers: a soft lip of shadow at each seam */
[data-mat] + [data-mat] { box-shadow: inset 0 14px 18px -16px rgba(40,26,16,.45); }
[data-mat="espresso"] + [data-mat]:not([data-mat="espresso"]) { box-shadow: inset 0 16px 22px -16px rgba(20,12,8,.55); }

/* engraved headings */
[data-mat]:not([data-mat="espresso"]) h2 { text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(70,48,30,.08); }
[data-mat="espresso"] h2 { text-shadow: 0 -1px 0 rgba(0,0,0,.65), 0 1px 0 rgba(255,236,210,.06); }
[data-mat="clay"] .section-lead, [data-mat="sage"] .section-lead { color: #3a2f27; }
[data-mat="clay"] .eyebrow, [data-mat="sage"] .eyebrow { color: #8e2f2c; }

/* raised plaster tiles on light surfaces */
.catalog-tools, .spec:not(.hl), .tech-cols > div, .feature-grid li, .steps li, .viz-info, .mr-toolbar, .mr-steps li:not(.is-active),
.calc-card, .dealer:not(.featured), .icb li, .domain, .stats li:not(:first-child), .col-card .col-body, .unit:not(:nth-child(2)):not(:nth-child(6)):not(.unit-cta),
.contact-form, .search.small input, .chip:not(.is-active), .tool, .uses li {
  background-color: #f3ede3;
  background-image: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.18) 55%, rgba(255,255,255,.05)), var(--tex-ivory);
  background-size: 100% 100%, var(--tex-size);
  border-color: transparent;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 rgba(110,80,55,.10), 0 1px 2px rgba(70,48,30,.10), 0 22px 38px -26px rgba(70,48,30,.55);
}
.spec-grid, .stats { background: rgba(110,80,55,.12); }
.chip:not(.is-active) { box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), 0 4px 10px -6px rgba(70,48,30,.4); }
.col-card { background: transparent; box-shadow: 0 30px 50px -34px rgba(70,48,30,.6); }
.calc-result > div:not(.primary) { background: rgba(255,255,255,.35); }

/* tiles on dark surfaces: deeper plaster with a hairline of gold */
.line-card, .xcard, .xsteps li, .unit:nth-child(2), .unit:nth-child(6), .dealer.featured, .stats li:first-child, .spec.hl, .q-list, .pm-quote {
  background-color: #241b16;
  background-image: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%), var(--tex-espresso);
  background-size: 100% 100%, var(--tex-size);
  box-shadow: inset 0 1px 0 rgba(255,236,210,.07), 0 0 0 1px rgba(200,164,108,.16), 0 26px 44px -26px rgba(0,0,0,.85);
}
.xsteps { background: transparent; gap: 12px; }
.xsteps li { border-radius: var(--radius-lg); }
.q-list { padding: 8px 22px; border-radius: var(--radius-lg); }

/* icon medallions pressed into the plaster */
.fi, .tool-ico, .mr-drop-ico, .flow span {
  background-color: #e6dccb;
  background-image: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), var(--tex-linen);
  background-size: 100% 100%, 260px;
  box-shadow: inset 2px 3px 6px rgba(80,55,35,.38), inset -2px -2px 5px rgba(255,255,255,.75), 0 1px 0 rgba(255,255,255,.6);
}
.fi svg, .tool-ico svg, .mr-drop-ico svg { stroke: var(--red-deep) !important; filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)); }
.flow span { color: var(--red-deep); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.flow li:first-child span, .flow li:last-child span { background-color: var(--red); background-image: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), var(--tex-clay); background-blend-mode: normal, multiply; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.3); }
/* on dark tiles the medallion is a raised brass-edged seal */
.unit:nth-child(2) .fi, .unit:nth-child(6) .fi, [data-mat="espresso"] .fi, .xcard .fi {
  background-color: #2c221c; background-image: radial-gradient(circle at 35% 30%, rgba(255,236,210,.14), rgba(255,236,210,0) 60%), var(--tex-espresso);
  box-shadow: 0 0 0 1px rgba(200,164,108,.45), inset 0 1px 0 rgba(255,236,210,.12), 0 10px 18px -8px rgba(0,0,0,.9);
}
.unit:nth-child(2) .fi svg, .unit:nth-child(6) .fi svg, [data-mat="espresso"] .fi svg { stroke: var(--gold) !important; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.6)); }

/* the colour-sample tag on each surface */
.mat-tag {
  position: absolute; top: 22px; inset-inline-end: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 0; font-size: 11.5px; color: var(--ink-2); cursor: pointer;
  background: rgba(255,255,255,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), 0 6px 16px -10px rgba(70,48,30,.6);
  transition: background-color .3s, transform .3s var(--ease);
}
[dir="rtl"] .mat-tag { padding: 5px 6px 5px 12px; }
.mat-tag:hover { background: rgba(255,255,255,.7); transform: translateY(-1px); }
.mat-tag i { width: 20px; height: 20px; border-radius: 50%; background-color: var(--c); background-image: var(--fiber); background-size: 80px; background-blend-mode: soft-light; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.mat-tag span { color: var(--muted); }
.mat-tag b { font-family: var(--latin); font-weight: 600; letter-spacing: .06em; direction: ltr; }
@media (max-width: 640px) { .mat-tag { top: 14px; font-size: 10.5px; } .mat-tag span { display: none; } }

.matrix-wrap { background: rgba(250,246,239,.88); box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), 0 22px 38px -26px rgba(70,48,30,.55); }
.matrix.compare td.us { background: rgba(219,91,88,.10); }

.real-cta { position: relative; display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 26px; margin-block-end: 26px; padding: 14px 28px 14px 14px; border-radius: 18px; overflow: hidden; color: var(--cream);
  background: var(--espresso) var(--tex-espresso); background-size: var(--tex-size); box-shadow: 0 0 0 1px rgba(200,164,108,.2), 0 30px 50px -30px rgba(0,0,0,.8); transition: transform .5s var(--ease); }
[dir="rtl"] .real-cta { padding: 14px 14px 14px 28px; }
.real-cta:hover { transform: translateY(-4px); }
.real-cta-img { height: 130px; border-radius: 12px; background: url(../img/real/113/dining-m.jpg) center/cover; }
.real-cta-txt { display: flex; flex-direction: column; gap: 4px; }
.real-cta small { color: var(--gold); font-size: 12px; }
.real-cta b { font-size: clamp(18px, 1.8vw, 24px); color: #fff; }
.real-cta em { font-style: normal; font-size: 14px; color: rgba(239,231,218,.7); }
.real-cta .link-arrow { color: var(--gold); }
@media (max-width: 760px) { .real-cta { grid-template-columns: 1fr; } .real-cta-img { height: 160px; } }

/* ================================================================== the four families */
.families { position: relative; background: var(--espresso); color: #efe7da; padding-block: clamp(70px, 9vw, 130px) 0; }
.families .anchor { position: absolute; top: 0; }
.fam-head { text-align: center; max-width: 820px; margin-inline: auto; padding-block-end: clamp(40px, 5vw, 70px); }
.fam-head h2 { margin: 8px 0 16px; font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; line-height: 1.15; color: #fff; }
.fam-lead { margin: 0 auto 28px; max-width: 60ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: rgba(239,231,218,.72); }
.fam-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-inline: auto; padding: 6px 6px 6px 6px; padding-inline-start: 16px;
  border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.fam-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.fam-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 15px; padding: 10px 4px; outline: none; }
.fam-search input::placeholder { color: rgba(239,231,218,.45); }
.fam-search button { border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 700; color: var(--espresso); background: var(--gold); cursor: pointer; }
.fam-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 13px; color: #e8b9a0; }

.fam { position: relative; min-height: min(92vh, 900px); display: grid; align-content: end; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 4vw, 64px); padding-block-end: 150px; }
.fam-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.fam.is-in .fam-bg { transform: scale(1); }
.fam-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(12,8,6,.86) 0%, rgba(12,8,6,.45) 38%, rgba(12,8,6,0) 62%), linear-gradient(to top, rgba(12,8,6,.9), rgba(12,8,6,0) 34%); }
.fam.flip .fam-shade { background: linear-gradient(to right, rgba(12,8,6,.86) 0%, rgba(12,8,6,.45) 38%, rgba(12,8,6,0) 62%), linear-gradient(to top, rgba(12,8,6,.9), rgba(12,8,6,0) 34%); }
.fam-mark { position: absolute; inset-inline-end: 3vw; top: 4vw; margin: 0; pointer-events: none; font-family: "Cormorant Garamond", serif; font-weight: 500;
  font-size: clamp(90px, 17vw, 300px); line-height: .8; letter-spacing: .05em; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fam) 70%, transparent); opacity: .5; }
.fam.flip .fam-mark { inset-inline-end: auto; inset-inline-start: 3vw; }
.fam-body { max-width: 520px; display: grid; gap: 12px; opacity: 0; transform: translateY(24px); transition: opacity 1.2s .2s, transform 1.2s .2s cubic-bezier(.2,.7,.2,1); }
.fam.flip .fam-body { justify-self: end; }
.fam.is-in .fam-body { opacity: 1; transform: none; }
.fam-num { margin: 0; font-size: 13px; color: var(--fam); letter-spacing: .03em; }
.fam h3 { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.fam h3 span { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(56px, 7vw, 110px); letter-spacing: .05em; line-height: .95; color: #fff; }
.fam h3 small { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: var(--fam); }
.fam-mood { margin: 0; font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; color: #fff; }
.fam-world { margin: 0; font-size: 15px; line-height: 2; color: rgba(239,231,218,.78); }
.fam-cta { justify-self: start; margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; padding: 13px 22px; border-radius: 999px; text-decoration: none;
  color: var(--espresso); background: var(--fam); font-weight: 700; font-size: 14.5px; box-shadow: 0 16px 34px -16px var(--fam); transition: transform .4s; }
.fam-cta span { font-family: var(--latin); font-weight: 600; font-size: 12px; letter-spacing: .06em; opacity: .75; }
.fam-cta:hover { transform: translateY(-2px); }
.fam-chips { position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: 18px clamp(24px, 4vw, 64px) 26px; list-style: none; display: flex; gap: 12px;
  overflow-x: auto; scrollbar-width: none; background: linear-gradient(to top, rgba(12,8,6,.75), transparent); }
.fam-chips::-webkit-scrollbar { display: none; }
.fam-chips a { display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.fam-chips i { width: 54px; height: 54px; border-radius: 50%; background-size: 260%; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 10px 18px -10px #000; transition: transform .35s; }
.fam-chips a:hover i, .fam-chips a:focus-visible i { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 2px var(--fam), 0 10px 18px -10px #000; }
.fam-chips span { font-family: var(--latin); font-size: 11px; color: rgba(239,231,218,.7); }
@media (max-width: 760px) {
  .fam { min-height: 88svh; padding-block-end: 132px; }
  .fam-bg { object-position: 50% 30%; }
  .fam-shade, .fam.flip .fam-shade { background: linear-gradient(to top, rgba(12,8,6,.95) 0%, rgba(12,8,6,.6) 45%, rgba(12,8,6,.1) 75%); }
  .fam.flip .fam-body { justify-self: start; }
  .fam-mark, .fam.flip .fam-mark { top: 18px; inset-inline-start: auto; inset-inline-end: 12px; font-size: 26vw; }
  .fam-chips i { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .fam-bg, .fam-body { transition: none; transform: none; opacity: 1; } }
