/* ==========================================================================
   METRABUILD — main.css
   Dark architectural glass theme. Written with CSS logical properties so the
   same file serves both the RTL (Arabic) and LTR (English) sites.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
/* Palette taken from the Metrabuild company profile: deep navy ground with a
   metallic gold accent, matching the logo's silver shield and gold building. */
:root {
  --bg:            #070c14;
  --bg-2:          #0c1523;
  --bg-3:          #12203a;
  --navy:          #14304f;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --surface-3:     rgba(255, 255, 255, 0.09);
  --line:          rgba(255, 255, 255, 0.09);
  --line-2:        rgba(212, 175, 55, 0.24);

  --text:          #eef2f8;
  --text-dim:      #c2cbd8;
  --muted:         #94a1b3;

  --brand:         #c8a24a;   /* gold — primary accent */
  --brand-400:     #d9b563;
  --brand-300:     #ecd08a;
  --silver:        #c3ccd8;   /* the logo's metallic frame */
  --brand-soft:    rgba(200, 162, 74, 0.13);

  --grad:          linear-gradient(135deg, #f0d795 0%, #c8a24a 48%, #a57c2b 100%);
  --grad-soft:     linear-gradient(135deg, rgba(200, 162, 74, 0.18), rgba(195, 204, 216, 0.05));

  --ok:            #2ecc8f;
  --err:           #ff5f6d;

  --r-sm:          8px;
  --r:             14px;
  --r-lg:          20px;
  --r-xl:          28px;

  --shadow:        0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg:     0 32px 90px rgba(0, 0, 0, 0.55);
  --glow:          0 0 0 1px rgba(200, 162, 74, 0.25), 0 20px 60px rgba(200, 162, 74, 0.18);

  --ff-body:       'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-head:       'Sora', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --container:     1240px;
  --pad-x:         clamp(18px, 4vw, 40px);
  --section-y:     clamp(68px, 8.5vw, 130px);

  --ease:          cubic-bezier(0.22, 0.68, 0.32, 1);
  --dur:           0.45s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Author rules like `.project-card { display:block }` would otherwise beat the
   UA sheet's [hidden] rule, so state it explicitly. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient light behind the whole page — keeps the dark UI from feeling flat. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% -8%,  rgba(200, 162, 74, 0.15), transparent 62%),
    radial-gradient(760px 520px at 8% 12%,   rgba(20, 48, 79, 0.65),  transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(20, 48, 79, 0.55), transparent 65%);
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

::selection { background: rgba(200, 162, 74, 0.42); color: #fff; }

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

/* Centred with auto margins rather than translateX(-50%): the transform pushed
   the box past the viewport edge and widened the RTL scroll area. */
.skip-link {
  position: absolute;
  inset-inline: 0;
  top: -80px;
  width: max-content;
  max-width: 90vw;
  margin-inline: auto;
  z-index: 200;
  background: var(--brand);
  color: #0b1421;          /* dark on gold — white would fail contrast */
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 0 0 var(--r) var(--r);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022), transparent); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4.5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 16px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.85rem; }
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.center .eyebrow::after {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
  margin-bottom: 18px;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.075rem);
  max-width: 62ch;
}
.center .section-lead { margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(288px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #04121f;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(200, 162, 74, 0.26);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(200, 162, 74, 0.40); }

/* Sheen sweep on hover — reads as light moving across glass. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 0.65s var(--ease);
}
.btn-primary:hover::after { inset-inline-start: 115%; }

.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand-400); }

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--brand-300);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-link .icon { width: 17px; height: 17px; }
.btn-link:hover { gap: 14px; color: #fff; }

[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

/**
 * The frosted bar is painted by a pseudo-element, not by the header itself.
 *
 * backdrop-filter makes an element the containing block for every
 * position:fixed descendant. With it on .site-header, the full-screen mobile
 * menu — a fixed child with inset:0 — was sized to the HEADER instead of the
 * viewport: 130px tall, with the rest of the links unreachable below it. The
 * bug only appeared once the page had been scrolled and the bar turned
 * frosted, which is why it survived so long.
 */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(7, 12, 20, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: opacity 0.35s var(--ease);
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  transition: min-height 0.35s var(--ease);
}
.is-stuck .header-inner { min-height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.055em;
  color: #fff;
  line-height: 1;
}
.logo-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }

.nav-list { display: flex; align-items: center; gap: clamp(6px, 1.5vw, 22px); }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform var(--dur) var(--ease);
}
[dir="rtl"] .nav-list a::after { --origin: right; }
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: #fff; }

.nav-tail { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.lang-switch:hover { border-color: var(--brand-400); color: #fff; background: var(--brand-soft); }
.lang-switch .icon { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle-bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    /* NOT justify-content: center. Centring a column that is taller than the
       screen pushes the overflow off BOTH ends, and neither can be scrolled
       back to — on a 511px-tall phone the last item was simply unreachable.
       The auto margins below centre it when there is room and fall back to
       normal top-down scrolling when there is not. */
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 28px;
    padding: 90px var(--pad-x) 40px;
    background: rgba(7, 12, 20, 0.97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
  }
  /* Nothing in the menu may be squashed to make it fit; it scrolls instead. */
  .main-nav > * { flex-shrink: 0; }
  .main-nav > :first-child { margin-block-start: auto; }
  .main-nav > :last-child  { margin-block-end: auto; }

  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; z-index: 99; }

  /* The ✕ this turns into is the only way out of a full-screen menu, so the
     bar behind it stops being transparent while the menu is open — otherwise
     the links scroll underneath and the button is lost among them. */
  body.nav-open .site-header::before { opacity: 1; }
  body.nav-open .site-header { border-bottom-color: var(--line); }

  /* And the button itself has to paint ON TOP of the overlay. Both live in
     the same stacking context, so this has to beat the menu's own z-index of
     99 — anything lower and the ✕ is drawn underneath the very panel it
     closes, and the tap lands on the menu instead. */
  .nav-toggle { position: relative; z-index: 100; }

  .nav-list { flex-direction: column; gap: 6px; width: 100%; }
  .nav-list li { width: 100%; }
  .nav-list a {
    font-family: var(--ff-head);
    font-size: 1.45rem;
    font-weight: 600;
    text-align: center;
    padding: 14px 0;
    color: var(--text);
  }
  .nav-list a::after { display: none; }
  .nav-tail { flex-direction: column; width: 100%; max-width: 320px; }
  .nav-tail .btn, .lang-switch { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 140px 90px;
  overflow: hidden;
}

/* Curtain-wall mullion grid, drawn in CSS — no image request. */
.hero-grid {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 132px;
  transform: perspective(900px) rotateX(1.5deg);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 62% 42%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 72% at 62% 42%, #000 20%, transparent 78%);
}

/* A pane of light that drifts across the grid like a reflection. */
.hero-sheen {
  position: absolute;
  inset-block: -20%;
  inset-inline-start: -35%;
  width: 45%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(240, 215, 149, 0.10) 45%, rgba(236, 208, 138, 0.05) 60%, transparent);
  transform: skewX(-14deg);
  animation: sheen 11s var(--ease) infinite;
}
@keyframes sheen {
  0%, 100% { inset-inline-start: -40%; opacity: 0; }
  18%      { opacity: 1; }
  75%      { inset-inline-start: 108%; opacity: 0; }
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  inset-block-start: -12%;
  inset-inline-end: -6%;
  background: rgba(200, 162, 74, 0.24);
  animation: float 14s ease-in-out infinite;
}
.hero-glow-2 {
  width: 380px; height: 380px;
  inset-block-end: -14%;
  inset-inline-start: -8%;
  background: rgba(30, 66, 105, 0.55);
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, 38px, 0) scale(1.07); }
}

.hero-inner { position: relative; z-index: 2; max-width: 940px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-300);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(200, 162, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 162, 74, 0); }
}

.hero h1 {
  font-size: clamp(2.05rem, 6vw, 4.35rem);
  line-height: 1.12;
  margin-bottom: 24px;
}
[dir="rtl"] .hero h1 { line-height: 1.32; }
.hero h1 span { display: block; }

.hero-lead {
  font-size: clamp(1.02rem, 1.65vw, 1.19rem);
  color: var(--text-dim);
  max-width: 63ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Centred, because both bottom corners are taken by the floating
   WhatsApp / back-to-top buttons. */
.hero-scroll {
  position: absolute;
  inset-block-end: 34px;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
[dir="rtl"] .hero-scroll { letter-spacing: 0; text-transform: none; }
.hero-scroll::after {
  content: '';
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--brand-400), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0%, 100% { opacity: 0.3; width: 30px; } 50% { opacity: 1; width: 56px; } }

@media (max-width: 700px) { .hero-scroll { display: none; } }

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(130px, 16vw, 190px) clamp(40px, 6vw, 74px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 88px 120px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.95rem, 4.6vw, 3.3rem); margin-bottom: 16px; }
.page-hero .section-lead { font-size: clamp(1rem, 1.5vw, 1.1rem); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--muted); transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--brand-300); }
.breadcrumbs .sep { opacity: 0.45; }
.breadcrumbs [aria-current] { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   8. Cards — shared glass surface
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Light catching the top edge, as glass does. */
.card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.6;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  color: var(--brand-300);
  margin-bottom: 20px;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-icon .icon { width: 25px; height: 25px; }
.card:hover .card-icon { color: #fff; transform: scale(1.06) rotate(-3deg); }

.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.945rem; margin-bottom: 0; }
.card .btn-link { margin-top: 18px; }

/* Service card — adds a number watermark */
.service-card { display: flex; flex-direction: column; }
.service-card .card-num {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 20px;
  font-family: var(--ff-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  transition: color var(--dur) var(--ease);
}
.service-card:hover .card-num { color: rgba(200, 162, 74, 0.16); }
.service-card .btn-link { margin-top: auto; padding-top: 18px; }

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: rgba(7, 12, 20, 0.72);
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2vw, 28px);
  text-align: center;
  transition: background-color var(--dur) var(--ease);
}
.stat:hover { background: rgba(200, 162, 74, 0.07); }
.stat-value {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-unit { font-size: 0.52em; font-weight: 600; margin-inline-start: 0.18em; }
.stat-label { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. Split section (about / image + text)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split-media { position: relative; }
.split-media img,
.split-media .ph-frame {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.split-media::after {
  content: '';
  position: absolute;
  inset-block-end: -22px;
  inset-inline-end: 0;
  width: 56%;
  height: 56%;
  z-index: -1;
  border-radius: var(--r-xl);
  background: var(--grad-soft);
  filter: blur(38px);
}
/* The offset halo only bleeds outwards once the container padding can absorb
   it — below that it would push the page 4px wider than the viewport. */
@media (min-width: 760px) {
  .split-media::after { inset-inline-end: -22px; }
}

.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--text-dim);
  font-size: 0.965rem;
  line-height: 1.6;
}
.check-list .icon {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-300);
  box-sizing: content-box;
}

/* Floating badge over the media */
.media-badge {
  position: absolute;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  padding: 14px 20px;
  border-radius: var(--r);
  background: rgba(7, 12, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.media-badge strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.media-badge span { font-size: 0.8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   11. Project grid
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.885rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-2); }
.filter-btn.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-400);
  color: #fff;
}

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(16px, 2vw, 26px); }

.project-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease), filter 0.5s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.07); }
.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 12, 20, 0.92) 6%, rgba(7, 12, 20, 0.16) 56%, transparent 82%);
}

.project-tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(7, 12, 20, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-300);
}

.project-body {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 2;
  padding: 22px;
}
.project-body h3 { font-size: 1.12rem; margin-bottom: 7px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.project-meta .sep { opacity: 0.4; }
.project-arrow {
  position: absolute;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.project-card:hover .project-arrow { opacity: 1; transform: none; background: var(--brand); }
.project-arrow .icon { width: 18px; height: 18px; }

.empty-note {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}

/* --------------------------------------------------------------------------
   11b. Systems, materials & supplier brands
   -------------------------------------------------------------------------- */
.sub-head {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-300);
  margin: clamp(32px, 4vw, 48px) 0 18px;
}
[dir="rtl"] .sub-head { letter-spacing: 0; }

.system-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.system-producer {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.system-card .spec-list li { padding: 10px 0; align-items: baseline; }
.system-card .spec-list .v { font-size: 0.86rem; font-weight: 400; color: var(--text-dim); }

.spec-list-wide { columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.spec-list-wide li { break-inside: avoid; }
@media (max-width: 720px) { .spec-list-wide { columns: 1; } }

/* Brand names as pills — a supplier list that costs no image requests. */
.brand-strip { overflow: hidden; }
.brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.brand-list li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.brand-list li:hover {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand-soft);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   12. Process timeline
   -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.step { position: relative; padding-top: 34px; }
.step::before {
  content: '';
  position: absolute;
  inset-block-start: 13px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right, var(--line-2), transparent);
}
[dir="rtl"] .step::before { background: linear-gradient(to left, var(--line-2), transparent); }
.step::after {
  content: '';
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(200, 162, 74, 0.16);
}
.step-num {
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-300);
  margin-bottom: 10px;
  display: block;
}
.step h3 { font-size: 1.08rem; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 0.925rem; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(38px, 5.5vw, 68px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 320px at 82% 0%, rgba(200, 162, 74, 0.26), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 96px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 72%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-copy { max-width: 58ch; }
.cta-copy h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 12px; }
.cta-copy p { color: var(--text-dim); margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
}
.field label .req { color: var(--brand-400); }
.field label .opt { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 138px; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: #6b7686; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.16);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d99ac' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 18px;
  padding-inline-start: 16px;
  padding-inline-end: 42px;
}
[dir="ltr"] .field select { background-position: right 14px center; }
.field select option { background: var(--bg-2); color: var(--text); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--err); }
.field-error { font-size: 0.82rem; color: var(--err); min-height: 0; }

/* Honeypot — hidden from people, visible to naive bots. */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }

.alert {
  display: flex;
  gap: 13px;
  padding: 17px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  margin-bottom: 22px;
}
.alert .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.alert h3 { font-size: 1rem; margin-bottom: 4px; }
.alert p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.alert-ok  { background: rgba(46, 204, 143, 0.09); border-color: rgba(46, 204, 143, 0.35); color: var(--ok); }
.alert-err { background: rgba(255, 95, 109, 0.09); border-color: rgba(255, 95, 109, 0.35); color: var(--err); }

.info-cards { display: grid; gap: 14px; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.info-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.info-card .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; flex: none; }
.info-card .card-icon .icon { width: 20px; height: 20px; }
.info-card h3 { font-size: 0.83rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
[dir="rtl"] .info-card h3 { letter-spacing: 0; text-transform: none; }
.info-card a, .info-card p { font-size: 0.98rem; color: var(--text); display: block; }
.info-card a:hover { color: var(--brand-300); }

.map-frame {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 320px; border: 0; filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* --------------------------------------------------------------------------
   15. Detail pages (service / project)
   -------------------------------------------------------------------------- */
.prose { font-size: 1.03rem; color: var(--text-dim); }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.6em; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.side-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: sticky;
  top: 100px;
}
.side-card h2 { font-size: 1.05rem; margin-bottom: 18px; }

.spec-list { display: grid; gap: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .k { color: var(--muted); flex: none; }
.spec-list dd, .spec-list .v { margin: 0; color: var(--text); text-align: end; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 28px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pager a { display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.pager .lbl { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }
.pager .ttl { font-family: var(--ff-head); font-weight: 600; color: var(--text); transition: color var(--dur) var(--ease); }
.pager a:hover .ttl { color: var(--brand-300); }
.pager .next { text-align: end; margin-inline-start: auto; }

/* Tag pill list used for capabilities / keywords */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pill:hover { border-color: var(--brand-400); color: #fff; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(56px, 7vw, 100px);
  padding-top: clamp(44px, 5.5vw, 76px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%);
}
/* Explicit breakpoints rather than auto-fit: a minmax() floor of 160px across
   four tracks forces a 720px minimum, which overflowed small phones. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 48px);
}
@media (min-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
  .footer-brand { grid-column: auto; }
}
.footer-brand .logo-footer { margin-bottom: 6px; }
.logo-tagline {
  color: var(--brand-300);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px !important;
}
.footer-about { color: var(--muted); font-size: 0.93rem; max-width: 46ch; }

.footer-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
[dir="rtl"] .footer-title { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }

.footer-list { display: grid; gap: 11px; }
.footer-list a, .footer-list span { color: var(--muted); font-size: 0.925rem; transition: color var(--dur) var(--ease); }
.footer-list a:hover { color: var(--brand-300); }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; }
.contact-list .icon { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--brand-400); }

.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: all var(--dur) var(--ease);
}
.social-row a:hover { color: #fff; border-color: var(--brand-400); background: var(--brand-soft); transform: translateY(-2px); }
.social-row .icon { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: clamp(34px, 4vw, 56px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* --------------------------------------------------------------------------
   17. Floating controls
   -------------------------------------------------------------------------- */
.to-top, .wa-float {
  position: fixed;
  z-index: 90;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.to-top {
  inset-block-end: 26px;
  inset-inline-end: 26px;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  background: rgba(7, 12, 20, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); border-color: var(--brand); }
.to-top .icon { width: 20px; height: 20px; }

.wa-float {
  inset-block-end: 26px;
  inset-inline-start: 26px;
  width: 54px; height: 54px;
  background: #22c35e;
  color: #fff;
  box-shadow: 0 12px 34px rgba(34, 195, 94, 0.35);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float .icon { width: 27px; height: 27px; }

@media (max-width: 560px) {
  .to-top  { inset-block-end: 18px; inset-inline-end: 16px; }
  .wa-float { inset-block-end: 18px; inset-inline-start: 16px; width: 48px; height: 48px; }
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */
.err-page { min-height: 74vh; display: grid; place-items: center; text-align: center; padding-block: 140px 80px; }
.err-code {
  font-family: var(--ff-head);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   20. Preferences & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  body::before, .site-header, .to-top, .wa-float, .hero-sheen, .hero-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .project-card { break-inside: avoid; }
}
