/* ==========================================================================
   Magnifisa — v4: the Varmora-style layout in the Magnifisa identity,
   on top of the existing theme (main.css + enhance.css keep styling every
   mg-* part: filters, slab grid, calculator, worktop guide, form, modal,
   favourites, viewer, mobile bar).
   Type: Rubik + Cormorant Garamond italic
   Colour (October 2026 palette):
     Soft Sky #D8E2F0 · Sapphire Blue #1B3A73 · Deep Navy #0A1631 · Bright Silver #B9BFCB
   The accent full stop, flow line and buttons are Sapphire on light grounds
   and Bright Silver on dark ones (see "accent on dark grounds" below).
   ========================================================================== */

:root {
  /* the palette */
  --sky: #D8E2F0;
  --sapphire: #1B3A73;
  --navy: #0A1631;
  --silver: #B9BFCB;

  /* roles (the old names are kept so every part of the theme follows) */
  --champ: var(--sky);           /* light text on dark, light sections */
  --paper: #F3F6FB;              /* page background — a whisper of Soft Sky */
  --sand: var(--silver);
  --white: #FBFCFE;
  --noir: var(--navy);           /* text and dark sections */
  --noir2: #112047;
  --noir3: #1A2C58;
  --smoke: #5B667D;              /* muted text on light (5.4:1) */
  --gold: var(--sapphire);       /* the accent */
  --gold-soft: #2A4F94;          /* accent hover */
  --gold-d: #142D5A;
  --gold-ink: var(--sapphire);   /* small accent text on light */
  --on-gold: #FFFFFF;            /* text on an accent button */
  --champagne: var(--sky);
  --champagne-soft: #EEF2F9;
  --ink: var(--navy);
  --line: rgba(10, 22, 49, .12);
  --line-l: rgba(216, 226, 240, .16);

  --card: linear-gradient(140deg, #FBFCFE 0%, #EEF3FA 55%, #E2E9F4 100%);
  --shadow: 0 30px 60px -34px rgba(10, 22, 49, .35), 0 2px 6px rgba(10, 22, 49, .04);
  --shadow-s: 0 14px 30px -20px rgba(10, 22, 49, .4);

  --rad: 22px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --hdr: 76px;
  --header-h: 76px;
  --subnav: 58px;

  --f: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-s: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  /* the existing parts pick up the brand type too */
  --ff-display: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[lang="ar"] {
  --ff-display: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
  --ff-body: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
}

/* Accent on dark grounds: Sapphire would vanish on Deep Navy, so dark areas use Bright Silver. */
.sec--noir, .hero.v4, .phero.v4, .drawer.v4, .ftr.v4, .stack__card--dark, .band, .coll, .appcard, .app, .gal figure,
.room__view, .worldmap__lbl, .book--stone, .float.v4, .cinfo i, .hdr--overlay:not(.is-stuck),
.mg-section--dark, .mg-phero, .mg-viewer, .mg-mobilebar, .mg-calc__result, .mg-favbar__btn, .mg-tall__view, .mg-download {
  --gold: var(--silver);
  --gold-soft: #D0D5DF;
  --gold-d: var(--silver);
  --gold-ink: var(--silver);
  --on-gold: var(--navy);
}
::selection { background: var(--sapphire); color: #FFFFFF; }
.mg-btn--gold { --fg: var(--on-gold); }
.mg-skip, .mg-fav.is-on, .mg-slabpage__zoom:hover, .mg-switch__item.is-active { color: var(--on-gold); }

/* ---------- Base (only inside the new layout, never inside an mg-* part) ---------- */
html { scroll-padding-top: calc(var(--hdr) + var(--subnav) + 16px); }
body.mg { background: var(--paper); color: var(--noir); font-family: var(--f); line-height: 1.65; overflow-x: clip; text-rendering: optimizeLegibility; }
:where(.v4) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote):where(:not(:is([class^="mg-"], [class*=" mg-"]):not(body, main) *, [class^="mg-"], [class*=" mg-"])) { margin: 0; }
:where(.v4) :where(ul, ol):where(:not(:is([class^="mg-"], [class*=" mg-"]):not(body, main) *, [class^="mg-"], [class*=" mg-"])) { padding: 0; list-style: none; }
:where(.v4) :where(img, svg, video, canvas):where(:not(:is([class^="mg-"], [class*=" mg-"]):not(body, main) *, [class^="mg-"], [class*=" mg-"])) { display: block; max-width: 100%; }
:where(.v4) :where(button):where(:not(:is([class^="mg-"], [class*=" mg-"]):not(body, main) *, [class^="mg-"], [class*=" mg-"])) { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
:where(.v4) :where(a) { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.v4 .wrap, .wrap.v4 { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.v4 .wrap--narrow { max-width: calc(980px + var(--gut) * 2); }
.sec.v4 { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec.v4.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.sec--champ { background: var(--champ); }
.sec--white { background: var(--white); }
.sec--noir { background: var(--noir); color: var(--champ); }
.v4 .center { text-align: center; }

/* ---------- Type ---------- */
.v4 .eyebrow { font: 600 12px/1.4 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 18px; }
.sec--noir .eyebrow, .v4 .on-dark .eyebrow { color: var(--gold); }
.v4 .script { font: italic 500 clamp(24px, 2.5vw, 34px)/1.1 var(--f-s); color: var(--noir2); letter-spacing: 0; margin-bottom: 6px; }
.sec--noir .script, .v4 .on-dark .script { color: var(--champ); }
.v4 .h1 { margin: 0; font: 700 clamp(44px, 7.2vw, 108px)/.96 var(--f); letter-spacing: -.035em; }
.v4 .h2 { margin: 0; font: 600 clamp(32px, 4.4vw, 60px)/1.04 var(--f); letter-spacing: -.025em; }
.v4 .h2 b { font-weight: 700; }
.v4 .h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 34px)/1.12 var(--f); letter-spacing: -.015em; }
.v4 .caps { margin: 0; font: 500 clamp(28px, 3.2vw, 44px)/1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.v4 .lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; color: var(--smoke); max-width: 62ch; }
.sec--noir .lede, .v4 .on-dark .lede { color: rgba(216, 226, 240, .74); }
.v4 .fs { color: var(--gold); }                       /* the gold full stop */
.v4 .shead { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.v4 .shead.center { margin-inline: auto; }
.v4 .shead .lede { margin-top: 18px; }
.v4 .shead.center .lede { margin-inline: auto; }
.v4 .shead--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.v4 .shead--split .lede { margin-top: 0; }

/* Flow line — traced from the wavy baselines of the logotype */
.v4 .flow { display: block; width: 100%; height: 22px; color: var(--gold); }
.v4 .flow path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Buttons & links ---------- */
.v4 .btn { --bg: var(--noir); --fg: var(--champ); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--fg); font: 500 15px/1 var(--f); letter-spacing: .01em; border: 1px solid transparent; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; white-space: nowrap; cursor: pointer; text-decoration: none; }
.v4 .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.v4 .btn svg { width: 18px; height: 18px; flex: none; }
.v4 .btn .mg-btn__meta { font: 400 11.5px/1 var(--f); opacity: .7; margin: 0; }
.v4 .btn--gold { --bg: var(--gold); --fg: var(--on-gold); }
.v4 .btn--gold:hover { --bg: var(--gold-soft); }
.v4 .btn--light { --bg: var(--paper); --fg: var(--noir); }
.v4 .btn--line { --bg: transparent; --fg: var(--noir); border-color: rgba(10, 22, 49, .28); }
.v4 .btn--line:hover { --bg: var(--noir); --fg: var(--champ); }
.v4 .btn--line-l { --bg: transparent; --fg: var(--champ); border-color: rgba(216, 226, 240, .4); }
.v4 .btn--line-l:hover { --bg: var(--champ); --fg: var(--noir); }
.v4 .btn--glass { --bg: rgba(216, 226, 240, .14); --fg: var(--champ); border-color: rgba(216, 226, 240, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.v4 .btn--glass:hover { --bg: var(--champ); --fg: var(--noir); }
.v4 .btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.v4 .btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.v4 .btnrow.center { justify-content: center; }

.v4 .arrow { display: inline-flex; align-items: center; gap: 10px; font: italic 600 17px/1.2 var(--f); color: var(--noir2); padding-block: 6px; }
.v4 .arrow svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.v4 .arrow:hover svg { transform: translateX(6px); }
.sec--noir .arrow, .v4 .on-dark .arrow { color: var(--champ); }
[dir="rtl"] .v4 .arrow svg, [dir="rtl"] .v4 .btn svg.i-arr, [dir="rtl"] .v4 .flip { transform: scaleX(-1); }
[dir="rtl"] .v4 .arrow:hover svg { transform: scaleX(-1) translateX(6px); }

/* ---------- Header (transparent over the photo → solid on scroll, like Varmora) ---------- */
.hdr.v4 { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--hdr); transition: background .4s, box-shadow .4s, transform .45s var(--ease); }
.admin-bar .hdr.v4 { top: 32px; }
.hdr__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr__logo { position: relative; display: block; flex: none; width: 140px; height: 32px; }
.hdr__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .35s; }
[dir="rtl"] .hdr__logo img { object-position: right center; }
.hdr__logo .l-light { opacity: 0; }
.hdr__nav { flex: 1; display: flex; justify-content: center; transition: opacity .35s, visibility .35s; }
.hdr__nav > ul { display: flex; align-items: center; gap: 4px; }
.hdr__link { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; font: 500 15px/1 var(--f); color: var(--noir); transition: background .25s; white-space: nowrap; }
.hdr__link:hover, .hdr__link[aria-expanded="true"], .hdr__link[aria-current="page"] { background: rgba(10, 22, 49, .06); }
.hdr__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 999px 999px 6px 6px; }
.hdr__link .caret { width: 10px; height: 10px; transition: transform .3s; }
.hdr__link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.hdr__tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.v4 .iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--noir); transition: background .25s, color .25s; }
.v4 .iconbtn:hover { background: rgba(10, 22, 49, .07); }
.v4 .iconbtn svg { width: 21px; height: 21px; }
.v4 .langbtn { width: auto; padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; border-radius: 999px; font: 500 14px/1 var(--f); }
.v4 .hdr__cta { margin-inline-start: 6px; min-height: 44px; padding: 0 20px; font-size: 14px; }
.hdr .mg-burger { display: none; flex-direction: row; gap: 0; border: 0; background: none; width: 44px; height: 44px; }

.hdr.v4:not(.hdr--overlay) ~ .mg-main { padding-top: var(--hdr); }
.hdr.v4:not(.hdr--overlay), .hdr.is-stuck { background: rgba(243, 246, 251, .92); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(10, 22, 49, .35); }
.hdr.is-hidden { transform: translateY(-110%); }

/* Over the photo: a minimal bar — logo · search · language · menu */
.hdr--overlay:not(.is-stuck) { background: linear-gradient(to bottom, rgba(10, 22, 49, .55), rgba(10, 22, 49, 0)); }
.hdr--overlay:not(.is-stuck) .l-dark { opacity: 0; }
.hdr--overlay:not(.is-stuck) .l-light { opacity: 1; }
.hdr--overlay:not(.is-stuck) .iconbtn { color: var(--champ); }
.hdr--overlay:not(.is-stuck) .iconbtn:hover { background: rgba(216, 226, 240, .14); }
.hdr--overlay:not(.is-stuck) .hdr__nav, .hdr--overlay:not(.is-stuck) .hdr__cta { opacity: 0; visibility: hidden; }
.hdr--overlay:not(.is-stuck) .mg-burger { display: inline-grid; }

/* Products mega menu */
.hdr .has-menu { position: relative; }
.hdr .menu { position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; translate: -50% 0; min-width: 260px; padding: 12px; border-radius: 18px; background: var(--white); box-shadow: 0 40px 80px -40px rgba(10, 22, 49, .55), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
[dir="rtl"] .hdr .menu { translate: 50% 0; }
.hdr .menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.hdr .menu.is-open { opacity: 1; visibility: visible; transform: none; }
.hdr .menu--mega { width: min(760px, 92vw); display: grid; grid-template-columns: 1fr 1fr 210px; gap: 12px; padding: 14px; }
.menu__card { display: block; border-radius: 14px; overflow: hidden; background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s; }
.menu__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); }
.menu__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.menu__card div { padding: 14px 16px 16px; }
.menu__card b { display: block; font: 600 18px/1.2 var(--f); }
.menu__card span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--smoke); }
.menu__list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.3; transition: background .2s; }
.menu__list a:hover { background: var(--paper); }
.menu__list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.menu__list p { padding: 8px 12px 6px; font: 600 11px/1 var(--f); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }

/* Drawer (mobile + the menu button over the photo) */
.drawer.v4 { position: fixed; inset: 0; z-index: 120; background: var(--noir); color: var(--champ); display: flex; flex-direction: column; padding-bottom: 32px; overflow-y: auto; animation: drawer-in .7s var(--ease-io) both; }
.drawer.v4[hidden] { display: none; }
@keyframes drawer-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.admin-bar .drawer.v4 { top: 32px; }
.drawer__top { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; flex: none; }
.drawer__top img { width: 140px; height: 32px; object-fit: contain; object-position: left; }
[dir="rtl"] .drawer__top img { object-position: right; }
.drawer.v4 .iconbtn { color: var(--champ); }
.drawer.v4 .iconbtn:hover { background: rgba(216, 226, 240, .12); }
.drawer__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; margin-top: clamp(20px, 6vh, 60px); }
.drawer__nav a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font: 600 clamp(30px, 5vw, 56px)/1.05 var(--f); letter-spacing: -.02em; transition: color .25s; animation: drawer-link .6s var(--ease) both; animation-delay: .25s; }
.drawer__nav li:nth-child(2) a { animation-delay: .31s; }
.drawer__nav li:nth-child(3) a { animation-delay: .37s; }
.drawer__nav li:nth-child(4) a { animation-delay: .43s; }
.drawer__nav li:nth-child(5) a { animation-delay: .49s; }
.drawer__nav li:nth-child(n+6) a { animation-delay: .55s; }
@keyframes drawer-link { from { opacity: 0; transform: translateY(20px); } }
.drawer__nav a small { font: 500 13px/1 var(--f); color: var(--gold); letter-spacing: .1em; }
.drawer__nav a:hover { color: var(--gold); }
.drawer__side { display: grid; gap: 14px; }
.drawer__card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: 16px; background: var(--noir2); border: 1px solid var(--line-l); transition: border-color .25s; }
.drawer__card:hover { border-color: rgba(74, 111, 181, .5); }
.drawer__card img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.drawer__card b { display: block; font-size: 18px; }
.drawer__card span { font-size: 13.5px; color: rgba(216, 226, 240, .65); }
.drawer__contact { margin-top: 10px; font-size: 15px; color: rgba(216, 226, 240, .75); display: grid; gap: 6px; }
.drawer__contact a:hover { color: var(--gold); }
.drawer__side .btn { justify-self: start; }

/* ---------- Home hero — a wall of 80 × 260 slabs ---------- */
.hero.v4 { position: relative; height: 100vh; height: 100svh; min-height: 660px; max-height: 1100px; background: var(--noir); color: var(--champ); overflow: hidden; isolation: isolate; }
.hero__wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; z-index: -2; }
.hero__slab { position: relative; overflow: hidden; background: var(--noir2); }
.hero__slab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.25s var(--ease-io), transform 7s var(--ease); transition-delay: calc(var(--i) * .1s), 0s; }
.hero__slab img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.hero__slab img.is-leaving { z-index: 0; clip-path: inset(0 0 0 0); }
.hero__tag { position: absolute; z-index: 3; top: calc(var(--hdr) + 18px); inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); font: 500 10.5px/1.3 var(--f); letter-spacing: .2em; text-transform: uppercase; color: rgba(216, 226, 240, .72); transition: opacity .45s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tag::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(10, 22, 49, .92) 0%, rgba(10, 22, 49, .55) 34%, rgba(10, 22, 49, .12) 62%, rgba(10, 22, 49, .3) 100%),
  linear-gradient(to right, rgba(10, 22, 49, .55), rgba(10, 22, 49, 0) 60%); }
[dir="rtl"] .hero__scrim { background:
  linear-gradient(to top, rgba(10, 22, 49, .92) 0%, rgba(10, 22, 49, .55) 34%, rgba(10, 22, 49, .12) 62%, rgba(10, 22, 49, .3) 100%),
  linear-gradient(to left, rgba(10, 22, 49, .55), rgba(10, 22, 49, 0) 60%); }
.hero__content { position: absolute; inset: auto 0 0; padding-bottom: 150px; }
.hero__copy { position: absolute; bottom: 150px; max-width: 780px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero__copy.is-on { position: relative; bottom: auto; opacity: 1; visibility: visible; }
.hero__copy .eyebrow { color: var(--gold); }
.hero__title { margin: 0; font: 700 clamp(46px, 7.4vw, 112px)/.95 var(--f); letter-spacing: -.035em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero__copy.is-on .ln > span { transform: none; }
.hero__copy.is-on .ln:nth-child(2) > span { transition-delay: .08s; }
.hero__copy.is-on .ln:nth-child(3) > span { transition-delay: .16s; }
.hero__lede { margin-top: 22px; max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: rgba(216, 226, 240, .8); }
.hero__copy .btnrow { margin-top: 28px; }
.hero__tabs { position: absolute; z-index: 4; bottom: 34px; inset-inline: 0; display: flex; justify-content: center; gap: 12px; padding-inline: 16px; }
.hero__tab { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 8px; border-radius: 14px; background: rgba(216, 226, 240, .16); border: 1px solid rgba(216, 226, 240, .22); color: var(--champ); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 600 14px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; overflow: hidden; transition: background .35s, color .35s, border-color .35s; }
[dir="rtl"] .hero__tab { padding: 0 8px 0 22px; }
.hero__tab:hover { background: rgba(216, 226, 240, .26); }
.hero__tab[aria-selected="true"] { background: var(--noir); border-color: var(--noir); }
.hero__tabicon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--champ); color: var(--noir); }
.hero__tabicon svg { width: 22px; height: 22px; }
.hero__tab i { position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero__tab i { transform-origin: right; }
.hero__tab[aria-selected="true"] i { animation: tabprog var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__tab[aria-selected="true"] i { animation-play-state: paused; }
@keyframes tabprog { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; z-index: 4; bottom: 42px; inset-inline-start: var(--gut); display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--f); letter-spacing: .22em; text-transform: uppercase; color: rgba(216, 226, 240, .7); }
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Inner page hero ---------- */
.phero.v4 { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; background: var(--noir); color: var(--champ); overflow: hidden; isolation: isolate; padding-top: calc(var(--hdr) + 40px); }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero.v4 .phero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.phero__wall { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.phero__wall img { width: 100%; height: 100%; object-fit: cover; animation: rise 1.3s var(--ease-io) both; animation-delay: calc(var(--i) * .1s); }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.phero.v4::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 22, 49, .9), rgba(10, 22, 49, .25) 55%, rgba(10, 22, 49, .45)); }
.phero__inner { padding-bottom: clamp(48px, 7vw, 96px); width: 100%; }
.phero.v4 .script { color: var(--champ); }
.phero__title { margin: 0; font: 700 clamp(48px, 8vw, 120px)/.92 var(--f); letter-spacing: -.035em; text-transform: uppercase; }
.phero.v4 .lede { color: rgba(216, 226, 240, .78); margin-top: 18px; }
.phero.v4 .phero__specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; background: none; border: 0; border-radius: 0; max-width: none; overflow: visible; }
.phero.v4 .phero__specs li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(216, 226, 240, .28); background: rgba(216, 226, 240, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; }
.phero.v4 .phero__specs b { color: var(--gold); font-weight: 600; margin-inline-end: 6px; }
.phero.v4.phero--short { min-height: 56vh; }

/* ---------- Intro: arch split into three slabs ---------- */
.v4 .intro__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.archsplit { --g: 10px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); aspect-ratio: 4 / 5; max-width: 540px; border-radius: 50% 50% var(--rad) var(--rad) / 34% 34% var(--rad) var(--rad); overflow: hidden; }
.archsplit > span { background-size: calc(300% + var(--g) * 2) 100%; background-repeat: no-repeat; transition: transform 1.2s var(--ease); }
.archsplit > span:nth-child(1) { background-position: 0% 50%; }
.archsplit > span:nth-child(2) { background-position: 50% 50%; transform: translateY(var(--p2, 0)); }
.archsplit > span:nth-child(3) { background-position: 100% 50%; transform: translateY(var(--p3, 0)); }
.archwrap { position: relative; }
.archwrap::after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); inset-inline-end: 8%; top: 4%; }
.archwrap .flow { position: absolute; inset-inline-start: -4%; bottom: 8%; width: 46%; }
.v4 .intro__text .h2 { margin-bottom: 22px; }
.v4 .intro__text p + p { margin-top: 14px; }
.v4 .intro__text .arrow { margin-top: 18px; }
.seals { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.seal { width: 92px; height: 92px; border-radius: 50%; border: 1px solid rgba(10, 22, 49, .22); display: grid; place-content: center; text-align: center; gap: 2px; position: relative; }
.seal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(10, 22, 49, .16); }
.seal b { font: 600 21px/1 var(--f); letter-spacing: -.02em; }
.seal small { font: 500 9.5px/1.2 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }

/* Branches — India (factory), Tanzania, Egypt, London, UAE */
.v4 .branches { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.v4 .branches li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; box-shadow: 0 6px 14px -12px rgba(10, 22, 49, .4); }
[dir="rtl"] .v4 .branches li { padding: 8px 10px 8px 14px; }
.v4 .branches i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(74, 111, 181, .2); flex: none; }
.v4 .branches li:first-child i { background: var(--noir); box-shadow: 0 0 0 3px rgba(10, 22, 49, .14); }
.v4 .branches--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 26px 0 22px; }
.v4 .branches--grid li { display: grid; grid-template-columns: 12px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; }
.v4 .branches--grid i { grid-row: 1 / 3; }
.v4 .branches--grid b { font: 600 15.5px/1.2 var(--f); }
.v4 .branches--grid small { font-size: 12px; color: var(--smoke); }

/* ---------- Stacked product cards (sticky stack, like Varmora) ---------- */
.stack { position: relative; }
.stack__card { --i: 0; position: sticky; top: calc(var(--hdr) + 24px + var(--i) * 26px); display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); min-height: 420px; padding: 20px; margin-bottom: 48px; border-radius: var(--rad); background: var(--card); box-shadow: var(--shadow); overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.stack__card:last-child { margin-bottom: 0; }
.stack__media { position: relative; border-radius: 16px; overflow: hidden; min-height: 300px; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack__card:hover .stack__media img { transform: scale(1.04); }
.stack__num { position: absolute; top: 14px; inset-inline-start: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 22, 49, .72); color: var(--champ); font: 600 11px/1 var(--f); letter-spacing: .18em; }
.stack__body { position: relative; z-index: 1; align-self: center; padding-block: 24px; padding-inline-end: clamp(0px, 10vw, 220px); }
.v4 .stack__title { margin-bottom: 18px; }
.stack__body p:not(.script) { color: var(--smoke); max-width: 60ch; }
.v4 .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.v4 .chips li { padding: 7px 13px; border-radius: 999px; background: rgba(10, 22, 49, .05); border: 1px solid var(--line); font-size: 13.5px; }
.stack__art { position: absolute; inset-inline-end: -30px; bottom: -40px; width: clamp(180px, 22vw, 300px); height: auto; color: rgba(10, 22, 49, .1); pointer-events: none; }
.stack__art * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.stack__card--dark { background: linear-gradient(140deg, #13244D, #0A1631 70%); color: var(--champ); }
.stack__card--dark .stack__body p:not(.script) { color: rgba(216, 226, 240, .72); }
.v4 .stack__card--dark .script, .v4 .stack__card--dark .arrow { color: var(--champ); }
.v4 .stack__card--dark .chips li { background: rgba(216, 226, 240, .06); border-color: var(--line-l); }
.stack__card--dark .stack__art { color: rgba(216, 226, 240, .1); }

/* ---------- Numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.stat { grid-column: span 3; padding: clamp(24px, 3vw, 38px) 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-s); text-align: center; }
.stats--3 .stat:nth-child(n+5) { grid-column: span 4; }
.v4 .stat__n { font: 400 clamp(36px, 4vw, 54px)/1 var(--f); letter-spacing: -.03em; color: var(--noir); direction: ltr; }
.v4 .stat__n small { font-size: .42em; font-weight: 500; letter-spacing: 0; margin-inline-start: 4px; color: var(--smoke); }
.v4 .stat p:not(.stat__n) { margin-top: 10px; font-size: 14.5px; color: var(--smoke); }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.feat { padding: 30px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-s); text-align: center; }
.v4 .feat svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--noir); }
.feat svg * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v4 .feat p { font-size: 15px; line-height: 1.5; color: var(--noir2); }

/* ---------- Stone technology (dark) ---------- */
.tech__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.v4 .tech__flow { margin: 56px 0 8px; opacity: .9; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-l); }
.step { padding: 34px 28px 10px 0; position: relative; }
[dir="rtl"] .step { padding: 34px 0 10px 28px; }
.step + .step { padding-inline-start: 28px; border-inline-start: 1px solid var(--line-l); }
.v4 .step__ill { width: 64px; height: 64px; color: var(--gold); margin-bottom: 26px; }
.step__ill * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.v4 .step__n { font: 300 clamp(30px, 3vw, 46px)/1 var(--f); letter-spacing: -.03em; color: var(--gold); direction: ltr; text-align: start; }
[dir="rtl"] .v4 .step__n { text-align: right; }
.v4 .step h3 { margin-top: 14px; font: 600 19px/1.3 var(--f); }
.v4 .step p:not(.step__n) { margin-top: 10px; font-size: 15px; color: rgba(216, 226, 240, .7); }
.v4 .tech__result { margin-top: 56px; font: italic 500 clamp(22px, 2.4vw, 32px)/1.35 var(--f-s); color: var(--champ); max-width: 34ch; }
.v4 .advs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.v4 .advs span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-l); background: rgba(216, 226, 240, .05); font-size: 14px; color: rgba(216, 226, 240, .88); }
.v4 .advs span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.v4 .tech__note { margin-top: 18px; font-size: 13.5px; color: rgba(216, 226, 240, .6); max-width: 80ch; }
.v4 .tech__note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Map card + world map ---------- */
.mapcard { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.worldmap { position: relative; width: 100%; max-width: 640px; margin-inline: auto; direction: ltr; }
.worldmap svg { display: block; width: 100%; height: auto; overflow: visible;
  /* the map is cut at 60° N and 96° E — fade those edges instead of showing a straight line */
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%);
  mask-composite: intersect; }
.worldmap .land { fill: var(--noir); opacity: .78; }
.worldmap .land.is-near { fill: var(--gold-d); opacity: .55; }
.worldmap .arc { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.worldmap .arc.b { stroke: rgba(74, 111, 181, .35); stroke-width: 5; filter: blur(2px); }
.worldmap.is-in .arc { stroke-dashoffset: 0; }
.worldmap .pin { fill: var(--gold); stroke: var(--white); stroke-width: 2; }
.worldmap .pin.hub { fill: var(--noir); stroke: var(--gold); stroke-width: 3; }
.worldmap .pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.worldmap .pulse.b { animation-delay: 1.3s; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.worldmap__lbl { position: absolute; translate: 10px -50%; padding: 6px 10px; border-radius: 9px; background: var(--noir); color: var(--champ); font: 500 12px/1.2 var(--f); white-space: nowrap; box-shadow: var(--shadow-s); pointer-events: none; opacity: 0; transition: opacity .6s .9s; }
.worldmap.is-in .worldmap__lbl { opacity: 1; }
.worldmap__lbl b { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.worldmap__lbl.is-left { translate: calc(-100% - 10px) -50%; }
.worldmap__lbl.is-hub { background: var(--gold); color: var(--noir); }
.worldmap__lbl.is-hub b { color: var(--noir); }
html[lang="ar"] .worldmap__lbl { font-family: var(--f); }

/* ---------- Marquee ---------- */
.marquee { --gap: 18px; position: relative; overflow: hidden; direction: ltr; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marq 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.appcard { position: relative; flex: none; width: clamp(220px, 22vw, 300px); aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--noir2); margin: 0; }
.appcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.appcard:hover img { transform: scale(1.06); }
.appcard figcaption { position: absolute; inset: auto 0 0; padding: 56px 18px 16px; background: linear-gradient(to top, rgba(10, 22, 49, .85), transparent); color: var(--champ); font: 500 15px/1.3 var(--f); }
html[lang="ar"] .appcard figcaption { direction: rtl; text-align: right; }
.appcard figcaption small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ---------- Contact block ("Get in touch" + "Let's connect") ---------- */
.connect { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.connect__info { padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, #E3EAF5, #D3DDEE); }
.v4 .connect__info .h3 { margin-bottom: 12px; }
.v4 .connect__info > p { color: #3D4860; font-size: 15px; }
.v4 .cinfo { display: grid; gap: 22px; margin-top: 30px; }
.cinfo li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.cinfo i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--noir); color: var(--champ); }
.v4 .cinfo i svg { width: 19px; height: 19px; }
.cinfo b { display: block; font: 600 16px/1.3 var(--f); margin-bottom: 3px; }
.cinfo span, .cinfo a { font-size: 15px; color: #2C3650; }
.cinfo a:hover { color: var(--noir); text-decoration: underline; text-underline-offset: 3px; }
.v4 .connect__branches { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(10, 22, 49, .14); font-size: 13.5px; color: #3D4860; }
.connect__form { padding: clamp(28px, 4vw, 48px); }
.v4 .connect__form .h3 { margin-bottom: 26px; }
/* the existing enquiry form, dressed for the light card */
.connect__form .mg-field > span { font: 500 13.5px/1.2 var(--f); letter-spacing: 0; text-transform: none; color: var(--noir2); }
.connect__form .mg-field input, .connect__form .mg-field select, .connect__form .mg-field textarea { min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; background: #E9EEF6; color: var(--noir); font: 400 15px/1.4 var(--f); }
.connect__form .mg-field input:focus, .connect__form .mg-field select:focus, .connect__form .mg-field textarea:focus { outline: none; border-color: var(--gold-d); background: var(--white); box-shadow: 0 0 0 4px rgba(74, 111, 181, .14); }
.connect__form .mg-form__submit { border-radius: 999px; min-height: 52px; font-family: var(--f); }

/* ---------- Catalogue card ---------- */
.catcard { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); padding-inline-end: clamp(28px, 8vw, 120px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.v4 .catcard .lede { margin-top: 14px; }
.catpills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.catpill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 14px; background: rgba(10, 22, 49, .06); border: 1px solid var(--line); font-weight: 500; transition: background .25s, transform .3s var(--ease); }
[dir="rtl"] .catpill { padding: 8px 8px 8px 18px; }
.catpill:hover { background: var(--white); transform: translateY(-2px); }
.catpill i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--white); box-shadow: 0 2px 6px rgba(10, 22, 49, .08); }
.v4 .catpill i svg { width: 22px; height: 22px; }
.catpill i svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.catpill small { display: block; font-size: 12px; color: var(--smoke); font-weight: 400; }
.books { position: relative; height: 380px; perspective: 1400px; }
.book { position: absolute; width: 230px; aspect-ratio: 8 / 11; border-radius: 4px 10px 10px 4px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 28px 34px 50px -26px rgba(10, 22, 49, .6), inset 6px 0 0 rgba(255, 255, 255, .06), inset 9px 0 12px -6px rgba(0, 0, 0, .35); transition: transform .9s var(--ease); }
.v4 .book img { width: 120px; }
.book small { font: 600 10px/1.4 var(--f); letter-spacing: .22em; text-transform: uppercase; }
.book strong { font: 600 22px/1.15 var(--f); letter-spacing: -.01em; }
.book--stone { background: linear-gradient(150deg, #13244D, #0A1631); color: var(--champ); top: 20px; inset-inline-start: 18%; transform: rotate(-4deg) rotateY(14deg); z-index: 2; }
.book--stone small { color: var(--gold); }
.book--flex { background: linear-gradient(150deg, #E9EEF7, #C9D3E4); color: var(--noir); top: 62px; inset-inline-start: 46%; transform: rotate(6deg) rotateY(-10deg); }
.book--flex small { color: var(--gold-ink); }
.catcard:hover .book--stone { transform: rotate(-7deg) rotateY(18deg) translateY(-8px); }
.catcard:hover .book--flex { transform: rotate(9deg) rotateY(-14deg) translateY(-4px); }
.book .slabmark { display: flex; gap: 5px; }
.book .slabmark span { width: 14px; aspect-ratio: 8 / 26; border-radius: 2px; background: currentColor; opacity: .25; }
.book .slabmark span:nth-child(2) { opacity: .45; }
.book .slabmark span:nth-child(3) { background: var(--gold); opacity: 1; }
.vtext { position: absolute; right: 26px; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; font: 600 clamp(22px, 2.2vw, 30px)/1 var(--f); letter-spacing: .3em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(10, 22, 49, .18); }
[dir="rtl"] .vtext { right: auto; left: 26px; }

/* ---------- Tri cards ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tri__card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 3.6vw, 44px) 26px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-s); transition: transform .4s var(--ease), box-shadow .4s; }
.tri__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.v4 .tri__card > svg { width: 46px; height: 46px; margin-bottom: 22px; }
.tri__card > svg * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v4 .tri__card h3 { font: 500 24px/1.2 var(--f); letter-spacing: -.01em; }
.v4 .tri__card p { margin: 10px 0 18px; font-size: 15px; color: var(--smoke); max-width: 30ch; }
.v4 .tri__card .arrow { margin-top: auto; }

/* ---------- Footer ---------- */
.ftr.v4 { background: var(--noir); color: var(--champ); padding-top: 26px; }
.ftr .ftr__flow { color: var(--gold); opacity: .9; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.v4 .ftr__brand img { width: 160px; margin-bottom: 22px; }
.v4 .ftr__brand p { font-size: 14.5px; color: rgba(216, 226, 240, .68); max-width: 36ch; }
.v4 .ftr__brand .script { color: var(--champ); margin-bottom: 14px; font-size: 26px; }
.v4 .ftr__addr { margin-top: 16px; }
.ftr__addr b { color: var(--champ); font-weight: 500; }
.v4.ftr h3 { font: 600 12px/1 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.ftr li + li { margin-top: 10px; }
.ftr li a, .ftr li span { font-size: 15px; color: rgba(216, 226, 240, .8); transition: color .2s; }
.ftr li a:hover { color: var(--gold); }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid var(--line-l); font-size: 13.5px; color: rgba(216, 226, 240, .55); }

/* ---------- Floating buttons ---------- */
.float.v4 { position: fixed; z-index: 80; inset-inline-end: 22px; bottom: 22px; display: grid; gap: 10px; }
.fab { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--noir); color: var(--champ); box-shadow: 0 14px 30px -12px rgba(10, 22, 49, .55); transition: transform .3s var(--ease), opacity .3s, visibility .3s; }
.fab:hover { transform: translateY(-3px); }
.v4 .fab svg { width: 22px; height: 22px; }
.fab--wa { background: #1F9D55; color: #fff; }
.fab--top { opacity: 0; visibility: hidden; border: 1px solid rgba(216, 226, 240, .35); }
.fab--top.is-on { opacity: 1; visibility: visible; }

/* ---------- Search overlay ---------- */
.search.v4 { position: fixed; inset: 0; z-index: 130; background: rgba(10, 22, 49, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: block; animation: fade .25s; }
.search.v4[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.search__panel { width: min(760px, calc(100% - 32px)); margin: 90px auto 0; background: var(--white); color: var(--noir); border-radius: 22px; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .6); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .search__bar { padding: 10px 20px 10px 12px; }
.v4 .search__bar > svg { width: 22px; height: 22px; color: var(--smoke); flex: none; }
.search__bar input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; font: 400 19px/1 var(--f); color: var(--noir); outline: none; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__res { max-height: min(60vh, 560px); overflow-y: auto; padding: 10px; }
.v4 .search__res h4 { padding: 12px 12px 6px; font: 600 11px/1 var(--f); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.sres { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; }
.sres:hover, .sres:focus-visible { background: var(--paper); }
.v4 .sres img, .sres .sw { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.sres .sw { display: grid; place-items: center; }
.v4 .sres .sw svg { width: 18px; height: 18px; }
[dir="rtl"] .v4 .sres .sw svg { transform: scaleX(-1); }
.sres b { display: block; font-weight: 500; font-size: 15px; }
.sres span span { font-size: 13px; color: var(--smoke); }
.sres em { font-style: normal; font-size: 12px; color: var(--smoke); }
.v4 .search__empty { padding: 26px 16px; color: var(--smoke); text-align: center; }

/* ---------- Sub navigation ---------- */
.subnav.v4 { position: sticky; top: var(--hdr); z-index: 60; background: rgba(243, 246, 251, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
.admin-bar .subnav.v4 { top: calc(var(--hdr) + 32px); }
.hdr.is-hidden ~ .mg-main .subnav.v4 { top: 0; }
.subnav__in { display: flex; align-items: center; gap: 6px; height: var(--subnav); overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav.v4 a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--noir2); transition: background .2s, color .2s; }
.subnav.v4 a:hover { background: rgba(10, 22, 49, .06); }
.subnav.v4 a.is-on { background: var(--noir); color: var(--champ); }
/* the colour filters stick under the sub navigation */
.v4 .mg-filterbar { top: calc(var(--hdr) + var(--subnav)); background: rgba(243, 246, 251, .94); }
.hdr.is-hidden ~ .mg-main .v4 .mg-filterbar { top: var(--subnav); }

/* ---------- Stone: family cards (Varmora "Explore our engineered stone") ---------- */
.colls { position: relative; }
.coll { --i: 0; position: sticky; top: calc(var(--hdr) + var(--subnav) + 16px + var(--i) * 18px); height: min(76vh, 660px); min-height: 460px; margin-bottom: 40px; border-radius: 28px; overflow: hidden; color: var(--champ); display: grid; place-items: center; text-align: center; box-shadow: 0 -20px 50px -30px rgba(10, 22, 49, .5); isolation: isolate; transform-origin: 50% 0; }
.coll:last-child { margin-bottom: 0; }
.v4 .coll > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.coll:hover > img { transform: scale(1.04); }
.coll::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 22, 49, .55), rgba(10, 22, 49, .25) 70%), linear-gradient(to top, rgba(10, 22, 49, .65), transparent 40%); }
.coll__mid { padding-inline: 20px; }
.coll__mid small { font: 600 11px/1 var(--f); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.v4 .coll__mid h3 { margin: 12px 0 8px; font: 700 clamp(38px, 6vw, 86px)/.95 var(--f); letter-spacing: -.02em; text-transform: uppercase; }
.v4 .coll__mid p { font: italic 500 clamp(19px, 2vw, 26px)/1.2 var(--f-s); color: rgba(216, 226, 240, .9); }
.v4 .coll__mid .arrow { margin-top: 18px; color: var(--champ); }
.coll__foot { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 28px; font: 500 12px/1 var(--f); letter-spacing: .18em; text-transform: uppercase; }
.coll__foot span, .coll__foot a { display: inline-flex; align-items: center; gap: 10px; color: var(--champ); }
.v4 .coll__foot svg { width: 26px; height: 26px; }
.coll__foot svg * { fill: none; stroke: currentColor; stroke-width: 1.4; }
.coll__foot a:hover { color: var(--gold); }

/* Dark feature band (Varmora "Never stains or scratches") */
.band { position: relative; overflow: hidden; background: var(--noir); color: var(--champ); isolation: isolate; }
.band__img { position: absolute; inset: 0 0 0 38%; z-index: -2; }
[dir="rtl"] .band__img { inset: 0 38% 0 0; }
.v4 .band__img img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--noir) 38%, rgba(10, 22, 49, .7) 60%, rgba(10, 22, 49, .25)); }
[dir="rtl"] .band::after { background: linear-gradient(-90deg, var(--noir) 38%, rgba(10, 22, 49, .7) 60%, rgba(10, 22, 49, .25)); }
.v4.band .eyebrow { color: var(--gold); }
.v4.band .caps { max-width: 18ch; }
.v4.band .lede { margin-top: 16px; max-width: 48ch; color: rgba(216, 226, 240, .74); }
.v4 .bandfeats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; margin-top: 56px; max-width: 900px; }
.bandfeats li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.35; color: rgba(216, 226, 240, .88); }
.v4 .bandfeats svg { width: 40px; height: 40px; color: var(--champ); }
.bandfeats svg * { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Applications grid (stone page) */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--noir2); }
.v4 .app img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.app:hover img { transform: scale(1.06); }
.app figcaption { position: absolute; inset: auto 0 0; padding: 60px 18px 18px; background: linear-gradient(to top, rgba(10, 22, 49, .85), transparent); color: var(--champ); font-weight: 500; }

/* Edge profiles */
.edges { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.edges__img { position: relative; border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 440px; outline: 1px solid rgba(10, 22, 49, .25); outline-offset: 14px; }
.v4 .edges__img img { width: 100%; height: 100%; object-fit: cover; }
.v4 .edgelist { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin-top: 30px; }
.edgelist li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.v4 .edgelist svg { width: 92px; height: 58px; color: var(--noir); }
.edgelist svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.edgelist svg .s { fill: rgba(10, 22, 49, .06); }
.edgelist b { display: block; font: 600 16px/1.25 var(--f); }
.edgelist span { font-size: 13.5px; color: var(--smoke); line-height: 1.45; }

/* Split */
.v4 .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.v4 .split--rev > :first-child { order: 2; }
.split__media { position: relative; }
.v4 .split__media img { border-radius: var(--rad); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.v4 .split__media img + img { position: absolute; width: 46%; inset-inline-end: -6%; bottom: -10%; aspect-ratio: 8 / 13; border: 8px solid var(--champ); border-radius: 18px; box-shadow: var(--shadow); }
.v4 .split--rev .split__media img + img { inset-inline-end: auto; inset-inline-start: -6%; }
.v4 .checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { position: relative; padding-inline-start: 30px; color: var(--smoke); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.checks b { color: var(--noir); font-weight: 600; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 16px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font: 600 11px/1.2 var(--f); letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); }
.tbl tbody th { font-weight: 600; width: 22%; }
.tbl small { display: block; opacity: .7; font-size: 12.5px; margin-top: 2px; }
.tbl--dark th, .tbl--dark td { border-color: var(--line-l); }
.tbl--dark thead th { color: var(--gold); }
.tbl--dark td { color: rgba(216, 226, 240, .82); }
.tbl--dark td:last-child { color: rgba(216, 226, 240, .6); }
.tblwrap { overflow-x: auto; border-radius: 18px; }
.tbl--cmp { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-s); }
.tbl--cmp thead th { background: var(--noir); color: var(--champ); font-size: 13px; letter-spacing: .12em; }
.tbl--cmp tr.hl th, .tbl--cmp tr.hl td { background: rgba(74, 111, 181, .12); font-weight: 500; }
.v4 .note { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line-l); background: rgba(216, 226, 240, .05); }
.v4 .note p { flex: 1 1 380px; color: rgba(216, 226, 240, .82); }
.v4 .note b { color: var(--champ); }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gal figure { position: relative; border-radius: 18px; overflow: hidden; background: var(--noir2); }
.gal figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gal figure:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.gal figure:nth-child(n+3) { grid-column: span 2; }
.v4 .gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(10, 22, 49, .8), transparent); color: var(--champ); font-size: 14px; }

/* About */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 30px 24px; border-radius: 20px; background: var(--noir2); border: 1px solid var(--line-l); }
.value b { display: block; font: 300 44px/1 var(--f); color: var(--gold); letter-spacing: -.03em; }
.v4 .value h3 { margin-top: 18px; font: 600 20px/1.2 var(--f); }
.v4 .value p { margin-top: 8px; color: rgba(216, 226, 240, .7); font-size: 15px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv > div { padding: clamp(28px, 4vw, 44px); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-s); }
.v4 .mv h3 { font: 600 12px/1 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 16px; }
.v4 .mv p { font: 500 clamp(19px, 1.8vw, 24px)/1.4 var(--f); letter-spacing: -.01em; }
.hsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.hstep { padding: 28px 24px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-s); }
.hstep::before { counter-increment: s; content: "0" counter(s); display: block; font: 600 12px/1 var(--f); letter-spacing: .2em; color: var(--gold-ink); margin-bottom: 18px; }
.v4 .hstep h3 { font: 600 22px/1.2 var(--f); }
.v4 .hstep p { margin-top: 8px; color: var(--smoke); font-size: 15px; }
.divs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.divs > .div { display: block; border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-s); transition: transform .4s var(--ease), box-shadow .4s; }
.divs > .div:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.v4 .divs > .div img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.divs > .div > div { padding: 28px; }
.divs > .div small { font: 600 11px/1 var(--f); letter-spacing: .2em; color: var(--gold-ink); }
.v4 .divs > .div h3 { margin: 10px 0; font: 600 26px/1.15 var(--f); }
.v4 .divs > .div p { color: var(--smoke); }
.v4 .quote { text-align: center; margin-top: clamp(48px, 7vw, 90px); }
.v4 .quote p { font: italic 500 clamp(30px, 4.6vw, 64px)/1.08 var(--f-s); max-width: 18ch; margin-inline: auto; }
.quote small { display: block; margin-top: 22px; font: 600 12px/1 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* Google map on the contact page */
.mg-map.v4-map { margin-top: 18px; aspect-ratio: 21 / 8; border-radius: 26px; border: 0; box-shadow: var(--shadow-s); }

/* ---------- Photo room visualiser ---------- */
.room__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.room__scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v4 .chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; color: var(--noir); transition: background .2s, color .2s, border-color .2s; }
.v4 .chip:hover { border-color: rgba(10, 22, 49, .3); }
.v4 .chip[aria-pressed="true"] { background: var(--noir); color: var(--champ); border-color: var(--noir); }
.v4 .chip--sm { height: 34px; padding: 0 13px; font-size: 13px; }
.room__view { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--noir2); box-shadow: var(--shadow); isolation: isolate; }
.v4 .room__view canvas, .room__orig { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.room__orig { opacity: 0; transition: opacity .25s; pointer-events: none; }
.room__view.is-orig .room__orig { opacity: 1; }
.room__veil { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(10, 22, 49, .45); color: var(--champ); font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.room__view.is-busy .room__veil { opacity: 1; visibility: visible; }
.room__veil span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(216, 226, 240, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.room__compare { position: absolute; z-index: 3; inset-inline-end: 14px; bottom: 14px; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(10, 22, 49, .66); color: var(--champ); border: 1px solid rgba(216, 226, 240, .25); font: 500 13px/1 var(--f); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); user-select: none; -webkit-user-select: none; touch-action: none; }
.room__compare:active, .room__view.is-orig .room__compare { background: var(--gold); color: var(--noir); }
.room__label { position: absolute; z-index: 3; inset-inline-start: 14px; top: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(10, 22, 49, .66); color: var(--champ); font: 500 12.5px/1.25 var(--f); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.room__label b { display: block; color: var(--gold); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.room__panel { position: sticky; top: calc(var(--hdr) + 24px); padding: 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-s); }
.v4 .room__panel .eyebrow { margin-bottom: 12px; }
.room__fams { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.room__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 4px 4px 8px; margin-inline: -4px; scrollbar-width: thin; }
.v4 .room__sw { position: relative; display: block; aspect-ratio: 8 / 20; border-radius: 5px; overflow: hidden; background: var(--sand); box-shadow: 0 6px 12px -8px rgba(10, 22, 49, .5), inset 0 0 0 1px rgba(10, 22, 49, .08); outline: 2px solid transparent; outline-offset: 2px; transition: transform .3s var(--ease), outline-color .2s; }
.room__sw span { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.room__sw:hover { transform: translateY(-3px); }
.room__sw[aria-pressed="true"] { outline-color: var(--noir); }
.room__sw[hidden] { display: none; }
.room__now { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.v4 .room__fam { font: 600 11px/1.3 var(--f); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.v4 .room__now .h3 { margin-top: 6px; font-size: clamp(22px, 2vw, 28px); }
.v4 .room__fin { margin-top: 4px; font-size: 14px; color: var(--smoke); }
.v4 .room__now .btnrow { margin-top: 18px; gap: 8px; }
.v4 .room__note { margin-top: 16px; font-size: 13px; color: var(--smoke); }
.room.is-failed .room__view::after { content: attr(data-failed); position: absolute; inset: auto 14px 14px; z-index: 4; padding: 10px 14px; border-radius: 10px; background: rgba(10, 22, 49, .8); color: var(--champ); font-size: 13px; }

/* ---------- The existing parts, inside the new layout ---------- */
.v4 .mg-slabgrid--home { margin-top: 8px; }
.v4 .mg-tall__media { border-radius: 6px; }
.v4 .mg-chipbtn { font-family: var(--f); }
.v4 .mg-search input { font-family: var(--f); }
.mg-modal .mg-btn, .mg-section .mg-btn { font-family: var(--f); }
.mg-section .mg-h2, .mg-section .mg-display { font-family: var(--f); letter-spacing: -.025em; }

/* ---------- Arabic ---------- */
html[lang="ar"] body.mg { font-family: var(--f); line-height: 1.8; }
html[lang="ar"] .v4 .script, html[lang="ar"] .v4 .tech__result, html[lang="ar"] .v4 .quote p, html[lang="ar"] .v4 .coll__mid p { font-family: var(--f); font-style: normal; font-weight: 300; letter-spacing: 0; }
html[lang="ar"] .v4 .script { color: var(--gold-ink); }
html[lang="ar"] .sec--noir .script, html[lang="ar"] .phero.v4 .script, html[lang="ar"] .stack__card--dark .script, html[lang="ar"] .ftr .script { color: var(--gold); }
html[lang="ar"] .v4 .h1, html[lang="ar"] .v4 .h2, html[lang="ar"] .hero__title, html[lang="ar"] .phero__title, html[lang="ar"] .v4 .coll__mid h3 { line-height: 1.18; }
html[lang="ar"] .v4 .arrow { font-style: normal; }
html[lang="ar"] .hero__title .ln { padding-bottom: .14em; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr__nav, .v4 .hdr__cta { display: none; }
  .hdr .mg-burger { display: inline-grid; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .v4 .bandfeats { grid-template-columns: repeat(2, 1fr); }
  .room__grid { grid-template-columns: 1fr; }
  .room__panel { position: static; }
  .room__swatches { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); max-height: none; }
}
@media (max-width: 980px) {
  .v4 .intro__grid, .mapcard, .catcard, .connect, .v4 .split, .edges, .v4 .shead--split, .tech__top, .drawer__body { grid-template-columns: 1fr; }
  .v4 .split--rev > :first-child { order: 0; }
  .archsplit { max-width: 440px; margin-inline: auto; }
  .stack__card { grid-template-columns: 1fr; top: calc(var(--hdr) + 12px + var(--i) * 16px); }
  .stack__media { min-height: 240px; }
  .stack__body { padding: 6px 6px 18px; }
  .stat { grid-column: span 6; }
  .stats--3 .stat:nth-child(n+5) { grid-column: span 6; }
  .stats--3 .stat:last-child:nth-child(odd) { grid-column: span 12; }
  .feats, .values, .hsteps { grid-template-columns: 1fr 1fr; }
  .tri { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .books { height: 320px; }
  .vtext { display: none; }
  .apps { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gal figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gal figure:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
  .divs, .mv { grid-template-columns: 1fr; }
  .v4 .split__media img + img { display: none; }
  .phero__wall { grid-template-columns: repeat(3, 1fr); }
  .phero__wall img:nth-child(n+4) { display: none; }
  .drawer__body { gap: 28px; }
  .coll { top: calc(var(--hdr) + var(--subnav) + 10px + var(--i) * 12px); }
  .mg-map.v4-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) {
  /* the quick-action bar takes the bottom 64 px — the hero ends above it */
  .hero.v4 { height: calc(100vh - 64px); height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
  .float.v4 { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .float.v4 .fab--wa { display: none; }
  .mg-favbar { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 782px) {
  .admin-bar .hdr.v4, .admin-bar .drawer.v4 { top: 46px; }
  .admin-bar .subnav.v4 { top: calc(var(--hdr) + 46px); }
}
@media (max-width: 720px) {
  :root { --hdr: 66px; --header-h: 66px; --subnav: 54px; }
  .hdr__logo { width: 120px; height: 28px; }
  .v4 .langbtn span { display: none; }
  .v4 .langbtn { padding: 0; width: 44px; justify-content: center; }
  .hero.v4 { min-height: 600px; }
  .hero__wall { grid-template-columns: repeat(2, 1fr); }
  .hero__slab:nth-child(n+3) { display: none; }
  .hero__copy { bottom: 124px; }
  .hero__content { padding-bottom: 124px; }
  .hero__tabs { bottom: 24px; gap: 8px; }
  .hero__tab { height: 50px; padding-inline-end: 14px; gap: 9px; font-size: 12.5px; letter-spacing: .08em; }
  .hero__tabicon { width: 34px; height: 34px; }
  .hero__scroll, .hero__tag { display: none; }
  .hero__lede { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-top: 16px; font-size: 15.5px; }
  .hero__copy .eyebrow { margin-bottom: 12px; font-size: 10.5px; }
  .hero__copy .btnrow { margin-top: 22px; gap: 10px; }
  .hero__copy .btnrow .btn { min-height: 46px; padding: 0 18px; }
  .stats { gap: 10px; }
  .stat { padding: 22px 12px; }
  .feats { gap: 10px; }
  .v4 .edgelist { grid-template-columns: 1fr; }
  .v4 .bandfeats { grid-template-columns: 1fr; }
  .band__img { inset: 0; opacity: .35; }
  [dir="rtl"] .band__img { inset: 0; }
  .ftr__grid { grid-template-columns: 1fr; gap: 30px; }
  .coll { min-height: 420px; height: 70vh; }
  .coll__foot { padding: 16px; font-size: 10.5px; letter-spacing: .1em; }
  .values, .hsteps, .apps { grid-template-columns: 1fr; }
  .apps .app { aspect-ratio: 16 / 11; }
  .phero__wall { grid-template-columns: repeat(2, 1fr); }
  .phero__wall img:nth-child(n+3) { display: none; }
  .float.v4 { inset-inline-end: 14px; }
  .fab { width: 48px; height: 48px; }
  .books { height: 260px; }
  .book { width: 160px; padding: 18px 16px; }
  .v4 .book img { width: 86px; }
  .book strong { font-size: 17px; }
  .book--stone { inset-inline-start: 4%; }
  .book--flex { inset-inline-start: 38%; top: 46px; }
  .mapcard { padding: 22px; }
  .worldmap__lbl { font-size: 10.5px; padding: 4px 7px; }
  .worldmap__lbl b { font-size: 8px; }
  .room__view { aspect-ratio: 4 / 5; border-radius: 18px; }
  .room__label { display: none; }
  .room__panel { padding: 18px; }
  .v4 .branches--grid { grid-template-columns: 1fr 1fr; }
  .search__panel { margin-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__slab img { transition: none; }
  .drawer.v4, .drawer__nav a { animation: none; }
  .worldmap .arc { transition: none; stroke-dashoffset: 0; }
}

@media print {
  .hdr.v4, .drawer.v4, .float.v4, .search.v4, .subnav.v4, .hero__tabs { display: none !important; }
}

/* ------------------------------------------------------------------ 4.3 — a simpler home page */
/* hero: the slab wall leans gently with the pointer (data-tilt sets --tx / --ty from -1 to 1) */
.hero--simple .hero__wall { perspective: 1600px; perspective-origin: 50% 45%; }
.hero--simple .hero__slab { --o: calc(var(--i) - 1.5); transform: rotateY(calc(var(--tx, 0) * -7deg + var(--o) * -1.5deg)) rotateX(calc(var(--ty, 0) * 3deg)) translateZ(calc(var(--tx, 0) * var(--o) * 16px)); transition: transform 1.1s var(--ease); }
.hero--simple .hero__content { padding-bottom: 110px; }
.hero--simple .hero__copy { max-width: 660px; }
@media (prefers-reduced-motion: reduce) { .hero--simple .hero__slab { transform: none; transition: none; } }

/* two products, side by side */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__card { position: relative; display: block; height: clamp(380px, 44vw, 600px); border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--noir); }
.duo__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.duo__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 22, 49, .88), rgba(10, 22, 49, .18) 55%, rgba(10, 22, 49, 0)); }
.duo__card:hover img { transform: scale(1.04); }
.duo__body { position: absolute; inset: auto 0 0; padding: clamp(22px, 3vw, 40px); }
.duo__num { font: 500 12px/1 var(--f); letter-spacing: .2em; color: var(--silver); }
.v4 .duo__title { margin: 10px 0 0; font: 600 clamp(28px, 3.2vw, 46px)/1.05 var(--f); letter-spacing: -.02em; color: #fff; }
.duo__meta { margin-top: 10px; font-size: 15px; color: rgba(216, 226, 240, .86); }
.duo__card .arrow { margin-top: 18px; color: #fff; }
.v4 .shead--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }

/* one calm call to action */
.ctaband { display: grid; grid-template-columns: 1.1fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-s); }
.ctaband .lede { margin-top: 12px; }
.v4 .ctaband .btnrow { margin-top: 0; justify-content: flex-end; }
.btn .i-wa { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo__card { height: 400px; }
  .ctaband { grid-template-columns: 1fr; }
  .v4 .ctaband .btnrow { justify-content: flex-start; }
}
