/* ==========================================================================
   LPM Smart Living — Smart Home Automation & Integrated Systems
   Design system: Luxury Architecture x Intelligent Technology
   ========================================================================== */

/* --- Animatable custom properties (scene engine) -------------------------- */
@property --curtain   { syntax: '<percentage>'; inherits: true; initial-value: 24%; }
@property --cove      { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --lamp      { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --warm      { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --tv        { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --sky-day   { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --sky-dusk  { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --sky-night { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --room-dim  { syntax: '<number>'; inherits: true; initial-value: 0; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg:        #101214;
  --bg-2:      #171A1D;
  --card:      #1C2024;
  --card-2:    #21262B;
  --text:      #F5F4F1;
  --muted:     #A8ADB2;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --blue:      #3B82F6;
  --blue-soft: rgba(59,130,246,0.14);
  --blue-line: rgba(59,130,246,0.42);
  --copper:    #C68A55;
  --copper-soft: rgba(198,138,85,0.14);

  --font-en: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --font: var(--font-en);

  --wrap: 1320px;
  --wrap-narrow: 940px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec-y: clamp(84px, 10vw, 150px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  --header-h: 76px;
}

html[lang="ar"] { --font: var(--font-ar); }

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,p,ul,ol,figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(198,138,85,.35); color: #fff; }

/* --- Typography ----------------------------------------------------------- */
.h-display {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; }
.h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500; }
.h4 { font-size: 1.02rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; }
html[lang="ar"] .h-display,
html[lang="ar"] .h1,
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.22; font-weight: 600; }
html[lang="ar"] .h-display { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
html[lang="ar"] body { line-height: 1.85; }

.lede { font-size: clamp(1.02rem, 1.25vw, 1.16rem); color: var(--muted); max-width: 62ch; }
html[lang="ar"] .lede { max-width: 56ch; }
.muted { color: var(--muted); }
.copper { color: var(--copper); }
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.82rem; text-transform: none; }
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--copper); flex: none;
}
.eyebrow.no-rule::before { display: none; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
section { position: relative; }
.section { padding-block: var(--sec-y); }
.section-tight { padding-block: clamp(56px, 6vw, 90px); }
.bg-2 { background: var(--bg-2); }

.sec-head { max-width: 780px; display: grid; gap: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.center .lede { margin-inline: auto; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid var(--border-2);
  background: var(--btn-bg);
  transition: transform .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), box-shadow .45s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .35s var(--ease); }
.btn .arw { width: 15px; height: 15px; }
[dir="rtl"] .btn .arw { transform: scaleX(-1); }
.btn:hover .arw { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arw { transform: scaleX(-1) translateX(3px); }

.btn-primary {
  background: var(--text); color: #0D0F11; border-color: transparent;
  box-shadow: 0 0 0 0 rgba(59,130,246,0);
}
.btn-primary:hover { box-shadow: 0 14px 40px -14px rgba(245,244,241,.45), 0 0 0 4px rgba(59,130,246,.12); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,0.05); }
.btn-blue { background: var(--blue); color: #fff; border-color: transparent; }
.btn-blue:hover { box-shadow: 0 16px 44px -16px rgba(59,130,246,.9); }
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --- Header --------------------------------------------------------------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-soft), backdrop-filter .5s var(--ease-soft),
              border-color .5s var(--ease-soft), height .4s var(--ease-soft);
}
.header.is-stuck {
  background: rgba(16,18,20,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  height: 66px;
}
.header-inner { width: 100%; display: flex; align-items: center; gap: 22px; }

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
/* The mark is drawn from theme tokens so it survives the light theme —
   its strokes used to be hardcoded near-white and vanished on a light page. */
.logo-mark .lm-frame  { stroke: var(--border-2); fill: none; }
.logo-mark .lm-stroke { stroke: var(--text); }
.logo-mark .lm-accent { stroke: var(--copper); }
.logo-mark .lm-dot    { fill: var(--blue); }
.logo-text { display: grid; line-height: 1.05; }
.logo-name { font-size: 0.98rem; font-weight: 700; letter-spacing: 0.02em; }
.logo-sub {
  font-size: 0.56rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .logo-sub { letter-spacing: 0; font-size: 0.62rem; text-transform: none; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin-inline-start: auto; }
.nav a {
  position: relative; font-size: 0.875rem; font-weight: 500; color: var(--muted);
  padding-block: 6px; transition: color .3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 100%; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: var(--to, left); transition: transform .4s var(--ease);
}
[dir="rtl"] .nav a::after { --to: right; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.02);
}
.lang-switch button {
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: var(--text); }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 12px; align-items: center; justify-content: center; flex: none;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text); position: relative; transition: .3s var(--ease); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--text); transition: .3s var(--ease);
}
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span::after { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 85; background: rgba(16,18,20,.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 26px) var(--gutter) 40px;
  display: grid; align-content: start; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em;
  padding-block: 13px; border-bottom: 1px solid var(--border);
}
.drawer .btn { margin-block-start: 26px; justify-content: center; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; padding-block: calc(var(--header-h) + clamp(40px, 7vw, 86px)) clamp(56px, 7vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset-block-start: -20%; inset-inline-end: -10%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(198,138,85,.13), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset-block-end: -30%; inset-inline-start: -14%;
  width: 52vw; height: 52vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(59,130,246,.10), transparent 65%);
  filter: blur(34px); pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; gap: clamp(38px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); align-items: center;
}
.hero-copy { display: grid; gap: 26px; align-content: start; }
.hero h1 { max-width: 13ch; }
html[lang="ar"] .hero h1 { max-width: 15ch; }
.hero h1 .ln { display: block; }
.hero h1 .ln-2 { color: var(--muted); }
.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  padding-block-start: 8px;
}
html[lang="ar"] .hero-trust { letter-spacing: 0; text-transform: none; font-size: 0.86rem; }
.hero-trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--copper); }

/* --- Scene engine --------------------------------------------------------- */
.scene-shell { display: grid; gap: 16px; }
.scene {
  --curtain: 24%; --cove: 0; --lamp: 0; --warm: 0; --tv: 0; --room-dim: 0;
  --sky-day: 1; --sky-dusk: 0; --sky-night: 0;
  position: relative; width: 100%; aspect-ratio: 16 / 11;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #191d21, #0e1113);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
  transition: --curtain 2.1s var(--ease-soft), --cove 1.5s var(--ease-soft),
              --lamp 1.5s var(--ease-soft), --warm 1.7s var(--ease-soft),
              --tv 1.2s var(--ease-soft), --sky-day 1.8s var(--ease-soft),
              --sky-dusk 1.8s var(--ease-soft), --sky-night 1.8s var(--ease-soft),
              --room-dim 1.6s var(--ease-soft);
  contain: paint;
}
.scene[data-state="evening"]  { --curtain: 24%; --cove: .55; --lamp: .5; --warm: .35; --sky-day: 0; --sky-dusk: 1; --sky-night: 0; --room-dim: .15; }
.scene[data-state="ambient"]  { --curtain: 30%; --cove: 1;  --lamp: .9; --warm: .78; --sky-day: 0; --sky-dusk: .25; --sky-night: 1; --room-dim: .3; }
.scene[data-state="curtains"] { --curtain: 100%; --cove: .8; --lamp: .8; --warm: .62; --sky-day: 0; --sky-dusk: 0; --sky-night: 1; --room-dim: .45; }
.scene[data-state="movie"]    { --curtain: 100%; --cove: .22; --lamp: .12; --warm: .3; --tv: 1; --sky-night: 1; --sky-day: 0; --sky-dusk: 0; --room-dim: .72; }
.scene[data-state="away"]     { --curtain: 100%; --cove: 0; --lamp: 0; --warm: .05; --tv: 0; --sky-night: 1; --sky-day: 0; --sky-dusk: 0; --room-dim: .8; }
.scene[data-state="sleep"]    { --curtain: 100%; --cove: .1; --lamp: .06; --warm: .16; --tv: 0; --sky-night: 1; --sky-day: 0; --sky-dusk: 0; --room-dim: .82; }

.scene-room { position: absolute; inset: 0; }
.wall {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #23282d 0%, #1a1e22 46%, #15181b 100%);
}
.wall::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
  opacity: var(--room-dim);
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(180deg, #1e2226, #101314);
  border-top: 1px solid rgba(255,255,255,.06);
}
.floor::after {
  content: ''; position: absolute; left: 8%; right: 8%; top: 0; height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(198,138,85,.5), transparent 70%);
  opacity: calc(var(--warm) * .55); filter: blur(12px);
}

/* window + sky */
.window {
  position: absolute; top: 11%; right: 8%; width: 46%; height: 56%;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 60px rgba(0,0,0,.55) inset;
}
.sky { position: absolute; inset: 0; }
.sky-day   { background: linear-gradient(180deg, #9dc0dc 0%, #cbd8de 55%, #e6dbcb 100%); opacity: var(--sky-day); }
.sky-dusk  { background: linear-gradient(180deg, #40506b 0%, #8a6a63 58%, #d3915a 100%); opacity: var(--sky-dusk); }
.sky-night { background: linear-gradient(180deg, #0b1220 0%, #131c2b 60%, #1d2433 100%); opacity: var(--sky-night); }
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(10,13,18,.85) 6% 16%, transparent 16% 22%,
    rgba(10,13,18,.75) 22% 34%, transparent 34% 42%, rgba(10,13,18,.9) 42% 56%,
    transparent 56% 63%, rgba(10,13,18,.7) 63% 78%, transparent 78% 86%, rgba(10,13,18,.85) 86% 100%);
  -webkit-mask-image: linear-gradient(180deg, #000, #000);
}
.skyline::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,208,150,.9) 40%, transparent 45%);
  background-size: 14px 12px; opacity: calc(var(--sky-night) * .5);
}
.mullion { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(20,23,26,.9); }
.mullion.m1 { left: 33.33%; } .mullion.m2 { left: 66.66%; }
.window-frame { position: absolute; inset: 0; border: 3px solid rgba(24,28,31,.95); border-radius: 6px; }

.curtain {
  position: absolute; top: 0; bottom: 0; width: calc(var(--curtain) / 2);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, rgba(0,0,0,.16) 3px 9px),
    linear-gradient(180deg, #3b3630, #26231f);
  box-shadow: 0 0 34px rgba(0,0,0,.6);
}
.curtain-start { left: 0; }
.curtain-end   { right: 0; }

/* ceiling cove */
.cove-strip {
  position: absolute; top: 6.5%; left: 6%; width: 78%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #F0D2AD, transparent);
  opacity: var(--cove);
  box-shadow: 0 0 30px 6px rgba(240,210,173,.5);
}
.cove-wash {
  position: absolute; top: 7%; left: 2%; width: 86%; height: 46%;
  background: linear-gradient(180deg, rgba(240,205,160,.34), transparent 78%);
  opacity: var(--cove); filter: blur(6px);
}

/* furniture */
.sofa {
  position: absolute; left: 7%; bottom: 22%; width: 40%; height: 20%;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #33383d, #22262a);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.9);
}
.sofa::before {
  content: ''; position: absolute; left: 6%; top: -34%; width: 88%; height: 46%;
  border-radius: 10px; background: linear-gradient(180deg, #3a4046, #2b3035);
}
.table {
  position: absolute; left: 20%; bottom: 14%; width: 20%; height: 5%;
  border-radius: 5px; background: linear-gradient(180deg, #2c3136, #1d2124);
}
.lamp {
  position: absolute; right: 6%; bottom: 22%; width: 3px; height: 22%;
  background: linear-gradient(180deg, #3a3f44, #23272b);
}
.lamp-head {
  position: absolute; right: 3.2%; bottom: 41%; width: 9%; height: 7%;
  border-radius: 50% 50% 4px 4px;
  background: linear-gradient(180deg, #4a4038, #2c2724);
}
.lamp-glow {
  position: absolute; right: 0; bottom: 12%; width: 30%; height: 46%;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,196,128,.55), transparent 66%);
  opacity: var(--lamp); filter: blur(10px);
}
.tv {
  position: absolute; left: 9%; top: 20%; width: 30%; height: 22%;
  border-radius: 5px; background: #0c0e10; box-shadow: 0 0 0 1px rgba(255,255,255,.07);
  overflow: hidden;
}
.tv::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, #1e4f8a, #2f6fbd 40%, #6f4a8a 75%, #b06a4a);
  opacity: var(--tv);
}
.tv-spill {
  position: absolute; left: 0; top: 12%; width: 56%; height: 62%;
  background: radial-gradient(ellipse at 30% 40%, rgba(59,130,246,.4), transparent 68%);
  opacity: var(--tv); filter: blur(18px);
}
.warm-wash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 62% 62%, rgba(198,138,85,.36), transparent 62%);
  opacity: var(--warm); mix-blend-mode: screen; pointer-events: none;
}
.scene-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(0,0,0,.55) 100%);
}

/* scene chips */
.scene-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02);
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.chip .led {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); flex: none;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip[aria-selected="true"], .chip.is-active {
  color: var(--text); border-color: rgba(59,130,246,.5); background: var(--blue-soft);
}
.chip[aria-selected="true"] .led, .chip.is-active .led {
  background: var(--blue); box-shadow: 0 0 10px 1px rgba(59,130,246,.9);
}

/* --- Credibility strip ---------------------------------------------------- */
.cred-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cred-item {
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2.2vw, 34px);
  border-inline-start: 1px solid var(--border);
  display: grid; gap: 8px; align-content: start;
}
.cred-item:first-child { border-inline-start: 0; }
.cred-k { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; }
.cred-v { font-size: 0.9rem; color: var(--muted); }
.cred-item .rule { width: 22px; height: 1px; background: var(--copper); }

/* --- Problem -> Solution -------------------------------------------------- */
.merge-stage { position: relative; margin-block-start: clamp(40px, 5vw, 70px); }
.merge-canvas { position: relative; width: 100%; aspect-ratio: 16 / 8.2; min-height: 300px; }
.merge-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.merge-line {
  fill: none; stroke: var(--blue-line); stroke-width: 1.2;
  stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1.1s var(--ease-soft);
}
.merge-stage.is-linked .merge-line { stroke-dashoffset: 0; }
.merge-line.d1 { transition-delay: .05s } .merge-line.d2 { transition-delay: .16s }
.merge-line.d3 { transition-delay: .27s } .merge-line.d4 { transition-delay: .38s }
.merge-line.d5 { transition-delay: .49s }

.merge-node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; gap: 8px; justify-items: center; text-align: center; width: 118px;
}
[dir="rtl"] .merge-node { transform: translate(50%, -50%); }
.node-tile {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .6s var(--ease), background .6s var(--ease), box-shadow .6s var(--ease), transform .8s var(--ease);
}
.node-tile svg { width: 24px; height: 24px; stroke: var(--muted); fill: none; stroke-width: 1.4; transition: stroke .6s var(--ease); }
.merge-stage.is-linked .node-tile {
  border-color: rgba(59,130,246,.4); box-shadow: 0 0 30px -8px rgba(59,130,246,.55);
}
.merge-stage.is-linked .node-tile svg { stroke: var(--text); }
.node-label { font-size: 0.8rem; color: var(--muted); }
.merge-stage.is-linked .node-label { color: var(--text); }

.merge-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.86);
  width: clamp(120px, 15vw, 168px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; gap: 4px;
  background: radial-gradient(circle at 50% 40%, #232a31, #14181b);
  border: 1px solid rgba(59,130,246,.35);
  opacity: 0; transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s, box-shadow .9s var(--ease) .45s;
}
.merge-stage.is-linked .merge-hub {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 70px -14px rgba(59,130,246,.7);
}
.merge-hub .hub-k { font-size: 0.72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .merge-hub .hub-k { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.merge-hub .hub-v { font-size: 0.98rem; font-weight: 600; padding-inline: 10px; line-height: 1.25; }

.merge-heads { display: grid; gap: 6px; }
.merge-h2 {
  opacity: .28; transition: opacity .8s var(--ease), color .8s var(--ease);
}
.merge-stage.is-linked ~ .merge-heads .merge-h2,
.merge-heads.is-linked .merge-h2 { opacity: 1; }
.eco-link.is-live { stroke: var(--blue); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(59,130,246,.8)); }
.eco-link-wrap.is-live .eco-pulse { opacity: 1; animation: ecoTravel 1.9s linear infinite; }
@keyframes ecoTravel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.eco-core .k { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
html[lang="ar"] .eco-core .k { letter-spacing: 0; text-transform: none; font-size: .74rem; }
.eco-core .v { font-size: clamp(.85rem, 1.3vw, 1.05rem); font-weight: 600; letter-spacing: -.01em; }

.eco-node {
  position: absolute; transform: translate(-50%,-50%);
  display: grid; justify-items: center; gap: 7px; width: 92px; text-align: center;
  cursor: pointer;
}
[dir="rtl"] .eco-node { transform: translate(50%,-50%); }
.eco-node .dot {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.eco-node svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.4; transition: stroke .35s var(--ease); }
.eco-node span { font-size: .8rem; color: var(--muted); transition: color .35s var(--ease); }
.eco-node:hover .dot, .eco-node.is-live .dot, .eco-node:focus-visible .dot {
  border-color: rgba(59,130,246,.55); background: #1f262d; transform: scale(1.06);
  box-shadow: 0 0 26px -6px rgba(59,130,246,.75);
}
.eco-node:hover svg, .eco-node.is-live svg { stroke: var(--text); }
.eco-node:hover span, .eco-node.is-live span { color: var(--text); }
.eco-readout .h4 { margin-block-end: 6px; }
.sol-block.flip .sol-visual { order: -1; }
.sol-index {
  font-size: .74rem; letter-spacing: .2em; color: var(--copper); font-weight: 600;
}
.sol-caps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 22px; }
.sol-caps li {
  display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted);
}
.sol-caps li::before {
  content: ''; width: 5px; height: 5px; margin-block-start: 9px; border-radius: 50%;
  background: var(--blue); flex: none; box-shadow: 0 0 8px rgba(59,130,246,.8);
}
.mock-tile.on { border-color: rgba(59,130,246,.42); background: var(--blue-soft); color: var(--text); }
.mock-tile.on .mock-toggle { background: rgba(59,130,246,.45); }
.mock-tile.on .mock-toggle::after { inset-inline-start: 13px; background: #fff; }
.mock-slider { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); position: relative; }
.mock-slider i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 62%; border-radius: 4px; background: linear-gradient(90deg, var(--copper), #E8B583); display: block; }
[dir="rtl"] .mock-slider i { background: linear-gradient(-90deg, var(--copper), #E8B583); }
@keyframes barBreathe { from { filter: brightness(.7); } to { filter: brightness(1.25); } }
@keyframes curtainCycle { 0%,15% { transform: scaleX(1); } 60%,100% { transform: scaleX(.22); } }
@keyframes nodePulse { 0%,100% { opacity: .3; r: 2.4; } 50% { opacity: 1; r: 3.6; } }
@keyframes camScan { to { inset-inline-start: 110%; } }
.flow.is-in .flow-step { opacity: 1; transform: none; }
.flow.is-in .flow-step:nth-child(1) { transition-delay: .05s }
.flow.is-in .flow-step:nth-child(2) { transition-delay: .16s }
.flow.is-in .flow-step:nth-child(3) { transition-delay: .27s }
.flow.is-in .flow-step:nth-child(4) { transition-delay: .38s }
.flow.is-in .flow-step:nth-child(5) { transition-delay: .49s }
.flow.is-in .flow-step:nth-child(6) { transition-delay: .60s }
.flow.is-in .flow-step:last-child .flow-num { border-color: rgba(59,130,246,.55); color: var(--text); box-shadow: 0 0 24px -6px rgba(59,130,246,.8); }
.exp-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.exp-item {
  background: var(--bg); padding: 20px 22px; display: grid; gap: 8px; align-content: start;
  transition: background .4s var(--ease);
}
.exp-item:hover { background: var(--card); }
.exp-item .n { font-size: .66rem; color: var(--copper); letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.exp-item .t { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }

/* --- Smart scenes --------------------------------------------------------- */
.scenes-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(30px,4vw,58px); align-items: center; }
.scene-menu { display: grid; gap: 8px; }
.scene-btn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: rgba(255,255,255,.015); text-align: start; width: 100%;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.scene-btn:hover { border-color: var(--border-2); transform: translateX(3px); }
[dir="rtl"] .scene-btn:hover { transform: translateX(-3px); }
.scene-btn[aria-selected="true"] {
  border-color: rgba(59,130,246,.45); background: linear-gradient(100deg, rgba(59,130,246,.1), rgba(28,32,36,.5));
}
.scene-btn .sb-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); }
.scene-btn svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.4; }
.scene-btn[aria-selected="true"] svg { stroke: var(--text); }
.scene-btn .sb-name { font-size: .98rem; font-weight: 600; letter-spacing: -.012em; }
.scene-btn .sb-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-block-start: 2px; display: block; }
.scene-btn .sb-go { width: 16px; height: 16px; stroke: var(--muted); opacity: 0; transition: opacity .3s var(--ease); }
[dir="rtl"] .scene-btn .sb-go { transform: scaleX(-1); }
.scene-btn[aria-selected="true"] .sb-go { opacity: 1; stroke: var(--blue); }

.status-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.status-cell { background: var(--card); padding: 14px 16px; display: grid; gap: 4px; }
.status-cell .k { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .status-cell .k { letter-spacing: 0; text-transform: none; font-size: .74rem; }
.status-cell .v { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; transition: color .5s var(--ease); }
.status-cell .v.hi { color: var(--copper); }
.status-cell .v.on { color: var(--blue); }

/* --- Landmark experience -------------------------------------------------- */
.landmark-list { display: grid; border-top: 1px solid var(--border); }
.landmark {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding-block: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--border);
  transition: padding-inline .5s var(--ease), background .5s var(--ease);
  padding-inline: 0;
}
.landmark:hover { padding-inline: 14px; background: rgba(255,255,255,.015); }
.landmark > span:nth-child(2) { display: grid; min-width: 0; }
.landmark .lm-name, .landmark .lm-meta { display: block; }
.landmark .lm-n { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.landmark .lm-name { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; }
.landmark .lm-meta { font-size: .82rem; color: var(--muted); margin-block-start: 3px; }
.landmark .lm-line { width: clamp(20px, 6vw, 90px); height: 1px; background: var(--border-2); }
.disclosure {
  margin-block-start: 26px; padding: 16px 20px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: rgba(255,255,255,.015);
  font-size: .82rem; color: var(--muted); display: flex; gap: 12px; align-items: flex-start;
}
.disclosure svg { width: 16px; height: 16px; stroke: var(--copper); fill: none; stroke-width: 1.4; flex: none; margin-block-start: 3px; }

/* --- Process (how it works) ----------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.step {
  background: var(--bg); padding: clamp(26px,3vw,38px) clamp(18px,2vw,28px);
  display: grid; gap: 14px; align-content: start; position: relative;
  transition: background .5s var(--ease);
}
.step:hover { background: var(--card); }
.step .s-n { font-size: .72rem; color: var(--copper); letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.step .s-t { font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }
.step ul { display: grid; gap: 6px; }
.step ul li { font-size: .86rem; color: var(--muted); padding-inline-start: 14px; position: relative; }
.step ul li::before {
  content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-2);
}
.step p { font-size: .88rem; color: var(--muted); }
.step .s-arrow {
  position: absolute; inset-block-start: clamp(26px,3vw,38px); inset-inline-end: 18px;
  width: 15px; height: 15px; stroke: var(--border-2); fill: none; stroke-width: 1.4;
}
[dir="rtl"] .step .s-arrow { transform: scaleX(-1); }
.step:last-child .s-arrow { display: none; }
.founder-name { font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -.025em; }
.founder-role { font-size: .92rem; color: var(--copper); }
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-block-start: 6px; }
.tag-pill {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.02); font-size: .8rem; color: var(--muted);
}
.tag-pill b { color: var(--text); font-weight: 600; }

/* --- Traditional vs LPM --------------------------------------------------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.vs-pane {
  border-radius: var(--r-xl); border: 1px solid var(--border); padding: clamp(24px,3vw,38px);
  display: grid; gap: 22px; align-content: start; position: relative; overflow: hidden;
}
.vs-old { background: linear-gradient(170deg, #16191c, #101214); }
.vs-old .vs-title { color: var(--muted); }
.vs-new {
  background: linear-gradient(170deg, rgba(198,138,85,.09), rgba(28,32,36,.55));
  border-color: rgba(198,138,85,.28);
}
.vs-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }
.vs-switches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.vs-switch {
  aspect-ratio: 1 / 1.35; border-radius: 7px; border: 1px solid var(--border);
  background: #1a1e21; position: relative;
}
.vs-switch::after {
  content: ''; position: absolute; left: 22%; right: 22%; top: 18%; height: 46%;
  border-radius: 3px; background: rgba(255,255,255,.07);
}
.vs-one {
  border-radius: 16px; border: 1px solid rgba(59,130,246,.35); padding: 16px;
  background: rgba(16,18,20,.6); display: grid; gap: 10px;
}
.vs-one .vo-head { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; }
.vs-one .vo-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-one .vo-scenes span {
  font-size: .68rem; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.vs-one .vo-scenes span:first-child { border-color: rgba(59,130,246,.5); background: var(--blue-soft); color: var(--text); }
.vs-list { display: grid; gap: 9px; }
.vs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); }
.vs-list li svg { width: 15px; height: 15px; flex: none; margin-block-start: 4px; stroke-width: 1.5; fill: none; }
.vs-old .vs-list li svg { stroke: #6a7076; }
.vs-new .vs-list li { color: var(--text); }
.vs-new .vs-list li svg { stroke: var(--copper); }

/* --- Estimator ------------------------------------------------------------ */
.estimator {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: linear-gradient(170deg, #1a1e22, #121517);
  padding: clamp(24px, 3.4vw, 48px);
  box-shadow: 0 50px 100px -60px rgba(0,0,0,.95);
}
.est-progress { display: grid; gap: 12px; margin-block-end: clamp(24px,3vw,36px); }
.est-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .78rem; color: var(--muted); }
.est-track { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.est-fill {
  height: 100%; width: 20%; border-radius: 2px;
  background: linear-gradient(90deg, var(--copper), var(--blue));
  transition: width .6s var(--ease);
}
[dir="rtl"] .est-fill { background: linear-gradient(-90deg, var(--copper), var(--blue)); }
.est-step { display: none; }
.est-step.is-active { display: grid; gap: 22px; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.est-q { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -.022em; }
html[lang="ar"] .est-q { letter-spacing: 0; font-weight: 600; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: rgba(255,255,255,.015); cursor: pointer; font-size: .92rem;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.opt:hover { border-color: var(--border-2); transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-2); flex: none;
  display: grid; place-items: center; transition: .3s var(--ease);
}
.opt.multi .mark { border-radius: 6px; }
.opt .mark::after {
  content: ''; width: 8px; height: 8px; border-radius: inherit; background: var(--blue);
  transform: scale(0); transition: transform .3s var(--ease);
}
.opt:has(input:checked) { border-color: rgba(59,130,246,.5); background: var(--blue-soft); }
.opt:has(input:checked) .mark { border-color: var(--blue); }
.opt:has(input:checked) .mark::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; color: var(--muted); }
.field label .req { color: var(--copper); }
.field input {
  padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,.02); transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus { outline: none; border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.05); }
.field input::placeholder { color: #6c7278; }
.field .err { font-size: .74rem; color: #E0785F; display: none; }
.field.is-invalid input { border-color: rgba(224,120,95,.6); }
.field.is-invalid .err { display: block; }
.est-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block-start: 8px; }
.est-hint { font-size: .78rem; color: var(--muted); }
.est-done { display: none; gap: 18px; justify-items: center; text-align: center; padding-block: clamp(20px,4vw,44px); }
.est-done.is-active { display: grid; animation: stepIn .6s var(--ease); }
.est-done .ok {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(59,130,246,.5); background: var(--blue-soft);
  box-shadow: 0 0 40px -10px rgba(59,130,246,.9);
}
.est-done .ok svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.6; }
.est-summary {
  width: 100%; max-width: 560px; display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; text-align: start;
}
.est-summary .row { background: var(--card); padding: 12px 16px; display: flex; justify-content: space-between; gap: 16px; font-size: .86rem; }
.est-summary .row .k { color: var(--muted); }
.est-summary .row .v { font-weight: 600; text-align: end; }

/* --- Final CTA ------------------------------------------------------------ */
.final-cta { position: relative; overflow: hidden; border-radius: 0; }
.cta-scene { position: absolute; inset: 0; }
.cta-scene .sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0a0e14 0%, #141a22 40%, #1d1a18 100%);
  opacity: 1;
}
.cta-villa { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; }
.cta-villa .mass {
  position: absolute; bottom: 0; background: linear-gradient(180deg, #191d21, #0d1012);
  border-top: 1px solid rgba(255,255,255,.05);
}
.cta-villa .m1 { left: 6%; width: 30%; height: 62%; }
.cta-villa .m2 { left: 30%; width: 40%; height: 92%; }
.cta-villa .m3 { left: 64%; width: 30%; height: 54%; }
.cta-win {
  position: absolute; border-radius: 2px; background: rgba(240,205,160,.65);
  box-shadow: 0 0 22px 3px rgba(240,205,160,.35);
  animation: winFlicker 9s ease-in-out infinite;
}
@keyframes winFlicker { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.cta-pool {
  position: absolute; left: 12%; right: 12%; bottom: 4%; height: 12%;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(59,130,246,.22), transparent 70%);
  filter: blur(10px);
}
.final-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,20,.9), rgba(16,18,20,.72) 45%, rgba(16,18,20,.94));
}
.cta-content { position: relative; z-index: 2; text-align: center; display: grid; gap: 24px; justify-items: center; }
.cta-content .lede { margin-inline: auto; }

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(50px,6vw,80px) 30px; }
.footer-top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,1fr)); gap: clamp(30px,4vw,60px); }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-block-end: 16px; }
html[lang="ar"] .footer h4 { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.footer-links { display: grid; gap: 11px; }
.footer-links a, .footer-contact a { font-size: .9rem; color: var(--muted); transition: color .3s var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 11px; }
.footer-contact .row { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.footer-contact svg { width: 15px; height: 15px; stroke: var(--copper); fill: none; stroke-width: 1.4; flex: none; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  display: grid; place-items: center; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.socials a:hover { border-color: var(--border-2); background: rgba(255,255,255,.03); }
.socials svg { width: 16px; height: 16px; fill: var(--muted); }
.socials a:hover svg { fill: var(--text); }
.footer-bottom {
  margin-block-start: clamp(36px,4vw,56px); padding-block-start: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--muted);
}

/* --- Floating contact ----------------------------------------------------- */
.wa-float {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(28,32,36,.88); border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.9);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); border-color: rgba(37,211,102,.5); }
.wa-float svg { width: 24px; height: 24px; fill: #6ee49a; }
.mobile-bar { display: none; }

/* --- Reveal animation ----------------------------------------------------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s } .rv-d2 { transition-delay: .16s }
.rv-d3 { transition-delay: .24s } .rv-d4 { transition-delay: .32s }

/* --- Language transition -------------------------------------------------- */
body.lang-swapping main, body.lang-swapping .header, body.lang-swapping .footer { opacity: .25; }
main, .header, .footer { transition: opacity .28s var(--ease-soft); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .eco-layout, .scenes-layout, .exp-layout, .founder, .sol-block { grid-template-columns: 1fr; }
  .sol-block.flip .sol-visual { order: 0; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-item:nth-child(3) { border-inline-start: 0; }
  .cred-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid .card:nth-child(n) { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 760px) {
  :root { --sec-y: clamp(64px, 12vw, 90px); }
  .h-display { font-size: clamp(2.3rem, 10vw, 3rem); }
  .versus, .split, .grid-3, .grid-2, .field-grid, .exp-list { grid-template-columns: 1fr; }
  .status-bar { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: 1fr; }
  .cred-item { border-inline-start: 0; border-top: 1px solid var(--border); }
  .cred-item:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step .s-arrow { transform: rotate(90deg); }
  [dir="rtl"] .step .s-arrow { transform: rotate(90deg); }
  .sol-caps { grid-template-columns: 1fr; }
  .grid-4, .tech-grid, .why-grid { grid-template-columns: 1fr; }
  .merge-canvas { aspect-ratio: 1 / 1.15; }
  .merge-node { width: 84px; }
  .node-tile { width: 50px; height: 50px; border-radius: 15px; }
  .node-label { font-size: .72rem; }
  .landmark { grid-template-columns: auto 1fr; }
  .landmark .lm-line { display: none; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
    position: fixed; inset-inline: 12px; inset-block-end: 12px; z-index: 80;
    padding: 10px; border-radius: 18px;
    background: rgba(23,26,29,.9); border: 1px solid var(--border-2);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 20px 44px -20px rgba(0,0,0,.95);
  }
  .mobile-bar .wa {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    border: 1px solid var(--border); background: rgba(255,255,255,.03);
  }
  .mobile-bar .wa svg { width: 21px; height: 21px; fill: #6ee49a; }
  .mobile-bar .btn { width: 100%; }
  body { padding-block-end: 78px; }
  .footer-top { grid-template-columns: 1fr; }
  .est-summary .row { flex-direction: column; gap: 2px; }
  .est-summary .row .v { text-align: start; }
}

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .header, .mobile-bar, .wa-float, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Additions & overrides — diagram geometry, RTL mirroring, form primitives
   ========================================================================== */

/* --- Diagram node placement (logical, so RTL mirrors correctly) ----------- */
.merge-node, .eco-node { inset-inline-start: var(--x); top: var(--y); }
.eco-node { padding: 0; background: none; border: 0; }

/* SVG link geometry is mirrored as a whole in RTL so lines still meet nodes */
[dir="rtl"] .merge-svg, [dir="rtl"] .eco-svg { transform: scaleX(-1); }

/* Normalized path length => predictable draw-on animation at any size */
.merge-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.merge-stage.is-linked .merge-line { stroke-dashoffset: 0; }
[data-eco-line].is-live .eco-beam { opacity: 1; animation: ecoBeam 1.7s linear infinite; }
[data-eco-line].is-live .eco-link { stroke: var(--blue); stroke-width: 1.4; }
@keyframes ecoBeam { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* --- Fieldset / legend primitives ---------------------------------------- */
.est-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-step legend {
  display: block; width: 100%; padding: 0; margin-block-end: 18px; float: none;
}
.est-step > .est-hint:first-of-type { margin-block-start: -8px; }

/* --- :has() fallback for option cards ------------------------------------ */
.opt.is-checked { border-color: rgba(59,130,246,.5); background: var(--blue-soft); }
.opt.is-checked .mark { border-color: var(--blue); }
.opt.is-checked .mark::after { transform: scale(1); }

/* --- Estimator nav ordering ---------------------------------------------- */
.est-nav .est-hint { order: 3; flex-basis: 100%; }
.est-nav #estBack { order: 1; }
.est-nav #estNext, .est-nav #estSubmit { order: 2; margin-inline-start: auto; }

/* --- Utilities ------------------------------------------------------------ */
.hide-sm { display: inline-flex; }
@media (max-width: 620px) { .hide-sm { display: none; } }

@media (max-width: 620px) {
  .scene-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding-block-end: 4px; -webkit-overflow-scrolling: touch;
  }
  .scene-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* Landmark rows keep their vertical rhythm when the line is hidden */
@media (max-width: 760px) { .landmark { gap: 14px; } }

/* Hero scene sits first on small screens for immediate visual impact */
@media (max-width: 1024px) {
  .hero-grid { grid-template-areas: 'copy' 'scene'; }
  .hero-copy { grid-area: copy; }
  .hero-grid .scene-shell { grid-area: scene; }
}

/* Reduce continuous animation on mobile to protect battery / CWV */
@media (max-width: 760px) {
  .lightbar i, .vis-curtain-frame .cpanel, .cam::after, .cta-win { animation: none; }
  .plan-node.pulse { animation-duration: 5s; }
  .vis-curtain-frame .cpanel { transform: scaleX(.24); }
}

/* Print-safe + no-JS: never leave revealed content hidden */
.no-js .rv { opacity: 1; transform: none; }

/* ==========================================================================
   PHOTOGRAPHY LAYER
   Atmospheric imagery sits *behind* the existing CSS/SVG scenes. Every photo
   is decorative (empty architecture, no people, no client work) and carries an
   empty alt, so the accessibility tree and the CMS project slots are unchanged.
   ========================================================================== */

.bg-photo {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none; line-height: 0;
}
.bg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-photo::after { content: ''; position: absolute; inset: 0; }

/* Section-level backdrop host. */
.has-bg-photo { position: relative; overflow: hidden; isolation: isolate; }
.has-bg-photo > .wrap { position: relative; z-index: 2; }

/* --- Hero atmosphere ------------------------------------------------------ */
/* The scrim is darkest under the copy, which swaps sides between LTR and RTL. */
:root { --scrim-x: 18%; }
html[dir="rtl"] { --scrim-x: 82%; }

.hero::before, .hero::after { z-index: 1; }
.hero-grid { z-index: 2; }
.hero-photo img {
  opacity: .60; object-position: 62% 46%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 97%);
}
.hero-photo::after {
  background:
    radial-gradient(130% 80% at var(--scrim-x) 34%, rgba(16,18,20,.80), transparent 72%),
    linear-gradient(180deg, rgba(16,18,20,.34), rgba(16,18,20,.66) 58%, rgba(16,18,20,.97));
}

/* --- Behind the walls ----------------------------------------------------- */
.pane-tech .bg-photo img { opacity: .50; filter: grayscale(.35) brightness(.7) saturate(.8); }
.pane-tech .bg-photo::after {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(59,130,246,.18), transparent 66%),
    linear-gradient(150deg, rgba(13,16,17,.55), rgba(13,16,17,.78));
}

.pane-interior .bg-photo img { opacity: .95; }
.pane-interior .bg-photo::after {
  background: linear-gradient(160deg, rgba(38,32,25,.12), rgba(15,12,9,.45));
}
/* The photo replaces the hand-built CSS room; the copper wash stays on top. */
.pane-interior.has-photo .int-window,
.pane-interior.has-photo .int-cove,
.pane-interior.has-photo .int-sofa,
.pane-interior.has-photo .int-floor { display: none; }
.pane-interior.has-photo .int-room { z-index: 1; }
.pane-interior.has-photo .int-glow { opacity: .45; }

/* --- Technical expertise -------------------------------------------------- */
#expertise > .bg-photo img { opacity: .20; object-position: 50% 42%; }
#expertise > .bg-photo::after {
  background: linear-gradient(180deg, rgba(23,26,29,.72), rgba(23,26,29,.88) 55%, rgba(23,26,29,.97));
}

/* --- Founder -------------------------------------------------------------- */
/* --- Final CTA ------------------------------------------------------------ */
.cta-scene.has-photo .cta-villa { display: none; }
.cta-scene .bg-photo img { opacity: 1; object-position: 50% 58%; }
/* Lighter than the CSS-only villa needed, so the photograph reads through. */
.final-cta::after {
  background: linear-gradient(180deg, rgba(16,18,20,.80), rgba(16,18,20,.52) 46%, rgba(16,18,20,.90));
}

@media print { .bg-photo { display: none; } }

/* --- Filled CMS slots ----------------------------------------------------- */
/* Project thumbnails: the dashed empty-state border gives way to the image. */
.cms-thumb.has-photo {
  position: relative; overflow: hidden; padding: 0;
  border: 1px solid var(--border); background: #0e1113;
}
.cms-thumb.has-photo .bg-photo img { opacity: .92; }
.cms-thumb.has-photo .bg-photo::after {
  background: linear-gradient(180deg, rgba(16,18,20,.10), rgba(16,18,20,.42));
}
.cms-card:hover .cms-thumb.has-photo .bg-photo img {
  opacity: 1; transform: scale(1.03);
}
.cms-thumb.has-photo .bg-photo img { transition: opacity .5s var(--ease), transform .8s var(--ease); }

/* Filled project cards no longer need the skeleton bars. */
.cms-card:has(.cms-thumb.has-photo) .cms-line { display: none; }

/* ==========================================================================
   SIMPLIFIED LAYOUT — compact solution cards + merged technical foundation
   ========================================================================== */

/* --- Solutions: five compact cards replace five full-width blocks --------- */
.sol-cards {
  display: grid; gap: clamp(16px, 1.6vw, 22px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sol-card:nth-child(4), .sol-card:nth-child(5) { grid-column: span 1; }
.sol-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.sol-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.sol-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sol-card-media .bg-photo img { opacity: .9; transition: transform .8s var(--ease); }
.sol-card:hover .sol-card-media .bg-photo img { transform: scale(1.04); }
.sol-card-media .bg-photo::after {
  background: linear-gradient(180deg, rgba(16,18,20,.16), rgba(16,18,20,.62));
}
.sol-card-media .sol-index {
  position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-start: 14px;
  font-size: .72rem; letter-spacing: .16em; color: var(--copper); font-weight: 600;
}
.sol-card-body { display: grid; gap: 10px; padding: clamp(16px, 1.6vw, 22px); align-content: start; }
.sol-card-body p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; }
.sol-card .sol-caps {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0; margin-block-start: 4px;
}
.sol-card .sol-caps li {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
  font-size: .73rem; color: var(--muted); background: rgba(255,255,255,.02);
}
.sol-card .sol-caps li::before { content: none; }

/* --- Technical foundation (merged section) -------------------------------- */
.tf-layout {
  display: grid; gap: clamp(26px, 3.4vw, 50px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start;
}
.tf-lead { display: grid; gap: 16px; align-content: start; }
.tf-lead .founder-name { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.tf-lead .lede { font-size: .96rem; }
.tf-landmarks .landmark-list { margin: 0; }

@media (max-width: 1024px) {
  .sol-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-layout { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .sol-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LAYOUT FIXES
   ========================================================================== */

/* 1. Mobile header overflowed the viewport by ~138px: .logo was flex:none, so
      the long uppercase descriptor could never shrink and pushed the language
      switch and burger off-screen. */
.logo { min-width: 0; flex: 0 1 auto; }
.logo-text { min-width: 0; }
.logo-name, .logo-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .logo-sub { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .lang-switch button { padding: 5px 9px; font-size: .74rem; }
}

/* 2. Hero scene chips ran past the right edge on small screens. */
.scene-chips { flex-wrap: wrap; }
@media (max-width: 420px) {
  .scene-chips { gap: 6px; }
  .scene-chips .chip { font-size: .68rem; padding: 6px 9px; }
}

/* 3. The estimator's full-width submit button overflowed its container. */
.est-nav { flex-wrap: wrap; }
.est-nav .btn { max-width: 100%; }
#estSubmit { white-space: normal; text-align: center; line-height: 1.35; }

/* 4. .btn sets display:inline-flex, which beat the UA [hidden] rule — the
      estimator's Back and Submit buttons were visible on every step. */
[hidden] { display: none !important; }

/* 5. The real CTA photograph is far brighter than the render it replaced,
      so the headline needed a stronger scrim to stay legible. */
.final-cta::after {
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(16,18,20,.86), rgba(16,18,20,.62) 62%),
    linear-gradient(180deg, rgba(16,18,20,.80), rgba(16,18,20,.58) 46%, rgba(16,18,20,.92));
}
.cta-scene .bg-photo img { opacity: .82; }

/* 6. Belt-and-braces: nothing may create a horizontal scrollbar. */
html, body { overflow-x: hidden; }

/* ==========================================================================
   LIGHT THEME
   The page is dark-first. `data-theme="light"` on <html> repaints it; the
   scene previews and the CTA photo stay dark on purpose — they are media
   surfaces that carry their own light-on-dark type in both themes.
   ========================================================================== */

:root[data-theme="light"] {
  --bg:          #FAF9F7;
  --bg-2:        #F1EFEA;
  --card:        #FFFFFF;
  --card-2:      #F6F4F0;
  --text:        #14171A;
  --muted:       #56606B;        /* 6.6:1 on --bg */
  --border:      rgba(16,18,20,0.10);
  --border-2:    rgba(16,18,20,0.20);
  --blue:        #1D5FD8;        /* 5.6:1 on --bg */
  --blue-soft:   rgba(29,95,216,0.10);
  --blue-line:   rgba(29,95,216,0.42);
  --copper:      #8A5522;        /* 5.9:1 on --bg */
  --copper-soft: rgba(138,85,34,0.12);
  color-scheme: light;
}

/* --- Surfaces: white tints have to become dark tints ---------------------- */
:root[data-theme="light"] .btn-ghost { background: rgba(16,18,20,.03); }
:root[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(16,18,20,.30); background: rgba(16,18,20,.06);
}
:root[data-theme="light"] .btn-primary { background: #14171A; color: #FAF9F7; }
:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 14px 40px -14px rgba(20,23,26,.42), 0 0 0 4px rgba(29,95,216,.14);
}

:root[data-theme="light"] .header.is-stuck { background: rgba(250,249,247,.78); }
:root[data-theme="light"] .drawer { background: rgba(250,249,247,.98); }
:root[data-theme="light"] .lang-switch { background: rgba(16,18,20,.03); }
:root[data-theme="light"] .lang-switch button[aria-pressed="true"] { background: rgba(16,18,20,.10); }

:root[data-theme="light"] .card .ico,
:root[data-theme="light"] .tag-pill,
:root[data-theme="light"] .disclosure,
:root[data-theme="light"] .scene-btn,
:root[data-theme="light"] .opt,
:root[data-theme="light"] .sol-card .sol-caps li { background: rgba(16,18,20,.03); }

:root[data-theme="light"] .landmark:hover { background: rgba(16,18,20,.03); }
:root[data-theme="light"] .socials a:hover { background: rgba(16,18,20,.05); }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .field select { background: #FFFFFF; }
:root[data-theme="light"] .est-track { background: rgba(16,18,20,.12); }
:root[data-theme="light"] .vs-old { background: linear-gradient(170deg, #F3F1ED, #EDEAE5); }
:root[data-theme="light"] .vs-new {
  background: linear-gradient(170deg, rgba(138,85,34,.09), rgba(255,255,255,.85));
  border-color: rgba(138,85,34,.28);
}
:root[data-theme="light"] .vs-switch { background: #E4E0DA; border-color: rgba(16,18,20,.10); }
:root[data-theme="light"] .vs-switch::after { background: rgba(16,18,20,.13); }
:root[data-theme="light"] .vs-old .vs-list li svg { stroke: #9AA0A6; }

/* Cards need a real edge on a light ground, not a transparent one. */
:root[data-theme="light"] .card,
:root[data-theme="light"] .sol-card,
:root[data-theme="light"] .vs-pane {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(16,18,20,.05), 0 12px 32px -22px rgba(16,18,20,.28);
}
:root[data-theme="light"] .exp-item { background: var(--card); }

/* The estimator panel carried a hardcoded dark gradient. */
:root[data-theme="light"] .estimator {
  background: linear-gradient(170deg, #FFFFFF, #F7F5F1);
  box-shadow: 0 1px 2px rgba(16,18,20,.05), 0 40px 90px -60px rgba(16,18,20,.45);
}
:root[data-theme="light"] .opt { background: #FFFFFF; }
:root[data-theme="light"] .opt:hover { background: rgba(16,18,20,.03); }

/* --- Media surfaces stay dark -------------------------------------------- */
/* The room previews and the mock UI panels read as lit screens; inverting
   them would destroy the thing they are illustrating. */
:root[data-theme="light"] .scene,
:root[data-theme="light"] .vs-one,
:root[data-theme="light"] .mock-ui {
  --text: #F5F4F1;
  --muted: #A8ADB2;
  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.18);
  color: #F5F4F1;
}
:root[data-theme="light"] .vs-one { background: #14171A; }

/* The merge hub is a dark disc in both themes — its type must stay light. */
:root[data-theme="light"] .merge-hub {
  --text: #F5F4F1;
  --muted: #A8ADB2;
  color: #F5F4F1;
}

/* The final CTA is a full-bleed photograph with type over it, in both themes. */
:root[data-theme="light"] .final-cta {
  --text: #F5F4F1;
  --muted: #CFD3D7;
  color: #F5F4F1;
}
:root[data-theme="light"] .final-cta .btn-primary { background: #FAF9F7; color: #14171A; }
:root[data-theme="light"] .final-cta .btn-ghost {
  color: #F5F4F1; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26);
}

/* --- Photo scrims: lighten toward the page, not toward black -------------- */
:root[data-theme="light"] .hero-photo img { opacity: .30; }
:root[data-theme="light"] .hero-photo::after {
  background:
    radial-gradient(130% 80% at var(--scrim-x) 34%, rgba(250,249,247,.90), rgba(250,249,247,.55) 72%),
    linear-gradient(180deg, rgba(250,249,247,.62), rgba(250,249,247,.86) 58%, rgba(250,249,247,.99));
}
:root[data-theme="light"] #expertise > .bg-photo img { opacity: .14; }
:root[data-theme="light"] #expertise > .bg-photo::after {
  background: linear-gradient(180deg, rgba(241,239,234,.86), rgba(241,239,234,.94) 55%, rgba(241,239,234,.99));
}
/* Card media keeps its dark vignette — the copper index sits on top of it. */

/* --- Theme toggle --------------------------------------------------------- */
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.02); color: var(--muted); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
:root[data-theme="light"] .theme-toggle { background: rgba(16,18,20,.03); }
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 380px) { .theme-toggle { display: none; } }
